In my form I used a Temporary Table in DataSource - with property TableType: InMemory .
In My form I have a simple code,like this:
public TableTmpTable insertRecords(String _param_I, string _param_II) { TableTmpTable myInMemoryTable; myInMemoryTable.clear(); myInMemoryTable.initValue(); myInMemoryTable.Field_I = _param_I; myInMemoryTable.Field_II = _param_II; myInMemoryTable.insert(); return myInMemoryTable; }
I need to call this method more than once.
But, whenI call the method I lost my previous record. How can insert more record in InMemory table in different time?
Thanks in advice!
*This post is locked for comments
Very helpful advice. Thanks @Crispin John Augustine
Thanks @Vilmos Kintera , good advice.
Very helpful advice. Thanks @Crispin John Augustine
You have to link the locally declared temporary table against the form datasource. It is done with setTmpData() for InMemory temporary tables.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156