3/16/2026 4:34:22 PM
|
| |
| slxdeveloper.com Community Forums |
|
| |
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
|
|
|
|
SetFieldValue always updates first row
Posted: 12 Jan 08 12:41 PM
|
Hi,
I am trying to get SetFieldValue to update the row of a grid. I have added the PK manually to the grid (and made non-visible). I've debugged the script code and all the values being passed in are correct. However; no matter what PK value I pass in, the first row in the grid changes. No matter which way I sort the grid, the first row always changes.
Is anyone aware of any know issues in this regard? I am using 7.2 lan
Alternatively, is there another way to refresh the contents on a row in the grid without refreshing the whole grid?
Thanks, Dave |
|
|
|
Re: SetFieldValue always updates first row
Posted: 16 Jan 08 9:07 AM
|
I know of no way to refresh a row in a grid without refreshing the whole grid, BUT your other issue may be that you are trying to work on the grid recordset and not the grid itself (which is fine, but the recordset doesn't maintain the selected index) so what you have to do first is DataGrid.GetCurrentField("PKValue") where PKValue is the column name of the pk field you have hidden. Then, if you are using the grid recordset (i.e. set objRS = DataGrid.Recordset) then you need to do objRS.find with the id retrieved earlier.
Please post your code if this doesn't make sense and I'll see if I can help further. |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|