Tuesday, February 16, 2021

NAV AL - Flowfield example

 tableextension 50017 "Item Journal Line Ext" extends "Item Journal Line"

{
    fields
    {
        field(50000; StdCost; Decimal)
        {
            FieldClass = FlowField;
            CalcFormula = Lookup(Item."Standard Cost" WHERE ("No."=FIELD("Item No.")));
           
        }
    }
}

Monday, February 15, 2021

Peachtree - How to connect to ODBC

  • Create External user and password 
    • Login as admin
    • User>Setup user security
    • Data Access/Crystal Reports
    • Access from outside Sage 50
      • With the following login info
      • Set a password
      • Username is always Peachtree
  • Create odbc - use external user and password


BC/NAV - Assembly - How to pick specific lots for assemblies

  Turn off Create Movements Automatically field in the Assembly Setup to require manual movements for assembly picks.

Monday, February 1, 2021

SSIS - Create Dynamic Data Connections for NAV/BC

https://www.sqlservercentral.com/articles/creating-a-robust-ssis-development-environment-using-the-ssis-catalog

  • Right click data connection>Parameterize
  • On the top, select "ConnectionString"
    • The value field will show the entire connection string
    • Put the entire thing into a parameter
    • Switch the ConnectionString property to use a parameter
  • Now you can update your parameter value with the exact connection string you want the connection to use.
  • On each data connection, you can also go to Properties>Expressions
    • Here you can use a variable as a connectionstring

Sunday, January 31, 2021

VSCode does not debug properly

 On BC Instance, set the web client address in the Client Services>Web Client Base URL


It should look like

http://demomachine01:8080/CRONUS/?company=CRONUS&dc=0