Export flowfields with XMLPort

krikikriki Member, Moderator Posts: 9,118
I have started some testing with XMLports.
I created a XMLport to export customers with a few fields, one of them a flowfield.
I had always 0 as the value of the flowfield (as expected), so I put in the property "CalcFields" of the table the flowfield. Nothing.
I went to the field itself, in property "AutoCalcField" I changed it from "<Yes>" to "Yes". Nothing.
Finally I put in the "Balance - Export::OnBeforePassField()". the CALCFIELDS-statement for the field and it works.
So the properties don't work, do I forget something or is it a bug?
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Answers

  • rvduurenrvduuren Member Posts: 92
    Hello Alain Krikilion,
    I created a XMLport to export customers with a few fields, one of them a flowfield.
    I had always 0 as the value of the flowfield (as expected), so I put in the property "CalcFields" of the table the flowfield. Nothing.
    I went to the field itself, in property "AutoCalcField" I changed it from "<Yes>" to "Yes". Nothing.
    I tested your results, and yes it looks like a bug to me, one of us should report it..

    * Update
    Navision 4.00 default also uses manual CALCFIELDS see for your selve at XMLPORT 8002, Item > Inventory - Export::OnBeforePassField() > Item.CALCFIELDS(Inventory);
    Met vriendelijke groet, best regards,

    Rvduuren
  • DenSterDenSter Member Posts: 8,307
    That seems to be the only way to make that work. I've run into the same problem, and just accepted the funkyness of the XMLPort. I put it under the same category as the auto-update and replace of reports that never work the way you expect.

    I don't even know why they even give us those properties if they can't make them work. Either they knowingly give us stuff that doesn't work, or they don't test this properly.

    There is of course also a slight possibility that we are not using it correctly though :)
  • kinekine Member Posts: 12,562
    DenSter, you can ask directly someone from MSFT... ;-)

    If you will, please, send me CC...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • krikikriki Member, Moderator Posts: 9,118
    Thanx, at least I know I am not missing something.
    I remember the 4.00 beta. First thing I did was searching an object that used a XMLport, launched it ..... and had a crash.... :whistle:
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • DenSterDenSter Member Posts: 8,307
    Kamil, I really don't want to use our contact as a support person ;). It's just one extra line of code, and I don't mind writing it.
  • kinekine Member Posts: 12,562
    Yes, I know. It is not needed to send this sort of problems. There are other problems for support... I am waiting for Czech version of SP1 right now to have solved some problems...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.