Calcfields doesn't work using C/Front

jmlozaresjmlozares Member Posts: 110
Hi all!

I'm having trouble using c/front's calcfield method, error message is "Not Implemented". Does anybody has idea to solve this?

Best Regards!
Janderol Lozares Jr.
Manila, Phils.

Comments

  • mcapuccimcapucci Member Posts: 18
    Hi,
    maybe there are some problem in the definition of flow field or in some table used for the flow field definition (i.e. keys). Try to recompile all object.
    byebye
  • jmlozaresjmlozares Member Posts: 110
    Thanks for the reply!
    Janderol Lozares Jr.
    Manila, Phils.
  • jmlozaresjmlozares Member Posts: 110
    I'm accessing the Item table and tried to update the Inventory field, therefore Calcfields should be used. But, I don't know where I get wrong, everything is working except for this function.
    Janderol Lozares Jr.
    Manila, Phils.
  • dwestdwest Member Posts: 7
    jmlozares wrote:
    I'm accessing the Item table and tried to update the Inventory field, therefore Calcfields should be used. But, I don't know where I get wrong, everything is working except for this function.

    If I understand this correctly, you are trying to modify the value of the Inventory Field on the Item Card. This is not possible, The Inventory field is a calcfield, it shows the cummulative value of Quantity in the Item Ledger Entry table.

    To be exact..............

    Sum("Item Ledger Entry".Quantity WHERE (Item No.=FIELD(No.),Global Dimension 1 Code=FIELD(Global Dimension 1 Filter),Global Dimension 2 Code=FIELD(Global Dimension 2 Filter),Location Code=FIELD(Location Filter),Drop Shipment=FIELD(Drop Shipment Filter),Variant Code=FIELD(Variant Filter),Lot No.=FIELD(Lot No. Filter),Serial No.=FIELD(Serial No. Filter)))
  • easabanganeasabangan Member Posts: 114
    I am also experiencing this type of error in this function.

    My code is this
    ocxCF.CalcFields(Table, Record, FieldsToCalculate)
    

    I think the error is on the third argu(FieldsToCalculate) that I am passing in the cfront.

    Question : What must I pass to this argu? the field name or the Field No? What is the data type must I pass?

    Thanks in Advance
    No future at CPI
  • jmlozaresjmlozares Member Posts: 110
    thanks for replying!!

    True, I want to update Inventory field, but knowing its a flowfield of course I won't be able to update the value of the field directly, therefore i have to use the CALCFIELDS function isn't it? What Im doing actually is access the Item table from another database through C/Front, but using calcfield doesn't work, it returns the error something like "..Note Implemented". what could be wrong?
    Janderol Lozares Jr.
    Manila, Phils.
  • jmlozaresjmlozares Member Posts: 110
    using version 3.70, Table 27 (Item), field: Inventory.
    HItem := cfront.OpenTable(27);
    HRItem := cfront.AllocateRec(HItem);
    
    IF cfront.FindRec(HItem, HRItem, '-') THEN BEGIN
       cfront.CALCFIELDS(HItem, HRItem, 'Inventory');
    END;
    
    
    Janderol Lozares Jr.
    Manila, Phils.
  • krikikriki Member, Moderator Posts: 9,118
    BlackTiger wrote:
    But this problem exists not only in Navision. Same problem with .NET, SQL Server and other technologies. Looks like it's just impossible to read documentation first.
    Probably because analysts, bosses, customers are pushing us developers to produce and not lose time on reading/studying.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • krikikriki Member, Moderator Posts: 9,118
    BlackTiger wrote:
    Let's "boses" develop!
    Better not, otherwise they will even push us harder to fix all the mess they created :mrgreen:
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.