Options

CALCFIELDS and XMLPorts

groovergroover Member Posts: 31
Has anybody managed to have the value of a FlowField exported via an xmlport in 4.0? E.g. the Balance field in the G/L Account table.
According to all available documentation, FlowFields can be calculated via the CalcFields property. Alternatively, I suppose you could write some code in the different XMLPort triggers. No matter what I try, the value is always 0. Any suggestions or samples??
BR,
Groover

Comments

  • Options
    groovergroover Member Posts: 31
    ](*,)
    A simple solution is:
    1. Assign a value to the VariableName property of the XMLPort DataItem <G/L Account>: e.g. GLAcc
    2. Make sure your XMLPort fields are defined as "GLAcc::Balance";
    3. In the OnAfterGetRecord trigger of the dataitem, write:
    GLAcc.calcfields(Balance);

    But what about the CalcField property?
    BR,
    Groover
  • Options
    kinekine Member Posts: 12,562
    what about AutoCalcField property on the field? Did you tried it?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.