-
base in this below codes only 1 item line support there's a way to set table to multiple Document Item line //we only support documents with one item line Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, So you simple fill a array or list or any other enumerable with the data you would like to be mapped to the function table. For example: // partner data
var partners = new[]
{
new { Role = "AG", No = "4711" },
new { Role = "WE", No = "4712" }
};
// later in function definition:
....
.SetTable("SALES_PARTNERS", partners, (s, partner) => s //this function will be called for each entry in partners
.SetField("PARTN_ROLE", partner.Role)
.SetField("PARTN_NUMB", partner.No)
) See also readme (Input mapping). Best Regards, |
Beta Was this translation helpful? Give feedback.
Hi,
sure.
The second argument of SetTable (inputList) is a
IEnumerable<TInput>
.TInput
could be any type.SetTable will create a row in the function table for each entry in inputList.
So you simple fill a array or list or any other enumerable with the data you would like to be mapped to the function table.
For example: