Hi,
Been searching for a while and am getting closer but think it's time to ask for help on this one.
I have a grid I fill with initial values from a local array. While I'd like to set the rowid to the same as the array's index for each row it seems that it's not possible to set the first one as rowid=0 so I've got used to the idea of having rowid = array_index +1. (If it is possible to synch them together that would be great).
However that's not really the main question. I've run into the issue of the rowid being set to +1 from the rowcount when adding a new row via editGridRow(new) and if I've deleted a row before I get duplicate rowids.
It seems I should be using AfterSubmit but I'm not sure how or whether that would work for local data. What I want to do is set the rowid for the new record to a specific number. Can someone help me as to how this should be done.
Also will this new rowid be the one that would be used in the subsequent afterInsertRow function I have – or will it be the one that is automatically assigned?
Hope that makes sense and someone will take pity on my hopelessness.
Thanks
Romyn
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top