Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
More edittable weirdness
Good morning guys
Got a weird one for you.. I'm taking the results of a procedure and slamming into an edit table. The table has 2 columns and N rows. I've tested this filling both columns and 5 or so rows. In doing this I'm both updating ATRECORD and setting DEFPROP (which equates to ARRAY).
At first it seems to display properly; but if I enter/tab around, it changes the display so that col 1, row 1 (cell 1,1) shows what it should, the contents of cell 1,2 show in cell 2,1, and rows > 1 are empty. If I keep moving around, it eventually puts cell 1,1 and 1,2 show correctly, but rows > 2 are gone. It looks like after trying to stuff everything in row 1, it truncates because there are only 2 columns.
I've never seen this before; but I've never tried stuffing multiple rows and columns simultaneously in an edit table.
Any thoughts?
Thanks!
Got a weird one for you.. I'm taking the results of a procedure and slamming into an edit table. The table has 2 columns and N rows. I've tested this filling both columns and 5 or so rows. In doing this I'm both updating ATRECORD and setting DEFPROP (which equates to ARRAY).
At first it seems to display properly; but if I enter/tab around, it changes the display so that col 1, row 1 (cell 1,1) shows what it should, the contents of cell 1,2 show in cell 2,1, and rows > 1 are empty. If I keep moving around, it eventually puts cell 1,1 and 1,2 show correctly, but rows > 2 are gone. It looks like after trying to stuff everything in row 1, it truncates because there are only 2 columns.
I've never seen this before; but I've never tried stuffing multiple rows and columns simultaneously in an edit table.
Any thoughts?
Thanks!
Comments
You could use srp_rotate_array to swap it or build it differently in the first place so that your fms and vms are in the opposite places to what they are now
Does Srp_Rotate_Array work on a regular OI edittable?
You said that you are also using the ATRECORD property. Is this edit table databound?
Should I try using LIST instead of ARRAY/DEFPROP?
Michael, yes try using LIST to see how it pans out.
My suggestion was that whilst you were populating the ARRAY format, your data may have been in LIST format.
If that's the case, you can either
Thanks!
Basically what you were expecting to be columns will be rows and what you were expecting to be rows will be columns
Will try using LIST instead tho
Just for grins and giggles, what happens if you read the record normally but then immediately do something like this from a pushbutton:
AtRecord = Get_Property(@Window, 'ATRECORD') Set_Property(@Window, 'ATRECORD', AtRecord)