![arrozpegao](/community/data/avatars/m/8/8418.jpg?1590187253)
arrozpegao
Active Member
hi guys,
how to prepare input data to a Form request in order to pass header values and grid values?
i have a custom table : id, name, address, line number, itm , quantity
where i have same id for diferent line numbers. i have the data for the grid (itm and quantity). Name and address are the header values.
Then, in order to get a json structure like this:
{ [{id, name, address, [{line number1, itm1, quantity1},{line number2, itm2, quantity2}]}]}
i used a data request and a custom script
i have multiple id and inside multiples line numbers (multilevel array)
how can i pass this string/object variable to a Form Request P4120 to create a sales order BY ID? i can´t iterate multiples id with multiples lines inside.
Thanks in advance
how to prepare input data to a Form request in order to pass header values and grid values?
i have a custom table : id, name, address, line number, itm , quantity
where i have same id for diferent line numbers. i have the data for the grid (itm and quantity). Name and address are the header values.
Then, in order to get a json structure like this:
{ [{id, name, address, [{line number1, itm1, quantity1},{line number2, itm2, quantity2}]}]}
i used a data request and a custom script
i have multiple id and inside multiples line numbers (multilevel array)
how can i pass this string/object variable to a Form Request P4120 to create a sales order BY ID? i can´t iterate multiples id with multiples lines inside.
Thanks in advance