|
|
Re: TableField in Form [message #1801019 is a reply to message #1800964] |
Fri, 11 January 2019 09:06 |
The Maddes Messages: 44 Registered: October 2018 |
Member |
|
|
Hey Matthias,
you were guessing absolutely right.
So far i implemented the table and i can access it.
But i have a question regarding the Database handling.
So if i want to save x rows, it seems like i have to do sth like that:
MyTableRowData[] formRows = formData.getMyTable().getRows();
for (MyTableRowData row : formRows) {
if(ITableBeanRowHolder.STATUS_INSERTED == row.getRowState()) {
SQL.insert(SQLs.INSERT_STATEMENT
, new NVPair("value1Formdata", formData.getValue1())
, new NVPair("valueXFormdata", formData.getValueX())
, new NVPair("valueXRowData" row.getValueX())
, row);
}
}
To me it seems thats not the best way to achieve the desired result.
[Updated on: Fri, 11 January 2019 09:06] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02635 seconds