on 2023 Mar 21 11:35 AM
Hi there,
I need the Gross Weight of the order in my Billing Document and I´m really struggling to iterate over the Items in the datastream. The GrossWeight is to be printed on the header level:
What I did so far:
What I am trying:
Here is my code/pseudocode so far:
foreach Item in (BillingDocumentitemNode[*]) do
var tempWeight = Item.YY1_GrossWeightMateria_BDI;
var tempQuantity = Item.Quantity;
var tempResult= tempWeight* tempQuantity;
$.addItem(tempResult, "")
endfor;
--> the bold written part is wrong, I know this, but I don't know how to make it right? And is the rest correct? My Questions:
how can I access the Datastream with formcalc?
Where is my mistake in the code above?
What else to keep in mind?
Hi Stephen,
I recommend to use extensibility and then coding in the cloud Badi, because I think the performance is better and the coding in ABAP is easier than the coding in formcalc.
If you really want to do it in Adobe LiveCycle Designer, I once tried a loop over FixPriceJournalEntries in the Professional Service form, and it worked with this coding (it's Java Script):
var oDataItems = xfa.resolveNodes("Form.frmHiddenFixPriceJournalEntries.FixPriceJournalEntriesNode[*]");
for (i=0 ; i < oDataItems.length ;i++ )
{...
Best regards,
Sandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
8 | |
6 | |
5 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.