calcfield and C/Front

vaibhav_soulvaibhav_soul Member Posts: 17
Hi,

1. I am trying to use calcfield using c/front on the inventory field of Items table.

2. Before doing that, I set the location filters.

Done using this code-
CFrontDotNet.Instance.SetFilter(tableHandle, filterFieldNumber, val);
CFrontDotNet.Instance.CalcFields(itemhandle, itemrechandle, fldval);

where fldval[0] = 68 and fldval[1] = 0

However, this seems to give the Inventory value always as zero. What am I missing?? ](*,) [-o<

Comments

  • vaibhav_soulvaibhav_soul Member Posts: 17
    By the way, this is in NAV 5.0
  • vikram7_dabasvikram7_dabas Member Posts: 611
    inventory value is flow field use the function clcfield in coding.like:
    name of table.calcfield(name of field which is flow field) then u'll find the correct value
    Vikram Dabas
    Navision Technical Consultant
  • kinekine Member Posts: 12,562
    Have you correct parameters in the Calcfields? Where is the TableHandle which is used in the previous SetFilter command? There must be some connection that the Calcfields is processing the same table as the SetFilter is filtering...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.