Hi
Smartclient version : v9.0p_2013-09-12/PowerEdition Deployment 2013-09-12
We use Postgresql 9.1 as our database. Instead of sequences, we use a 15 digit bigint column as the primary key in each of our tables. This column in all tables uses a common next_id() function to autogenerate next values.
So in our DS declarations we use autoGenerated="true" instead of type="sequence"
But this is causing problems with using the Master-Detail save functionality as described in http://www.smartclient.com/docs/9.0/a/system/reference/SmartClient_Explorer.html#FSqueuedAdd
When the master table data is saved, the resulting fetch brings back all the rows in the table instead of only the just inserted row. as a result the detail table rows are always added with id of the first row in the returned master table data.
Please find a complete sample code and server log attached.
Please suggest how to create master/detail add functionality in such a situation where the primary key is not a sequence.
Smartclient version : v9.0p_2013-09-12/PowerEdition Deployment 2013-09-12
We use Postgresql 9.1 as our database. Instead of sequences, we use a 15 digit bigint column as the primary key in each of our tables. This column in all tables uses a common next_id() function to autogenerate next values.
So in our DS declarations we use autoGenerated="true" instead of type="sequence"
But this is causing problems with using the Master-Detail save functionality as described in http://www.smartclient.com/docs/9.0/a/system/reference/SmartClient_Explorer.html#FSqueuedAdd
When the master table data is saved, the resulting fetch brings back all the rows in the table instead of only the just inserted row. as a result the detail table rows are always added with id of the first row in the returned master table data.
Please find a complete sample code and server log attached.
Please suggest how to create master/detail add functionality in such a situation where the primary key is not a sequence.
Comment