11/26/2024 1:26:42 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.
|
|
|
|
Dynamic Data grid with Checkboxes
Posted: 11 Sep 06 3:09 PM
|
fiogf49gjkf0d I have a project that involves programatically getting a list of picklist values (counties actually) from the picklist table, then displaying them in a datagrid and selecting them with checkboxes. I also need to make sure the checkboxes are checked for the selected counties when the screen is in edit mode.
Is there an example in the SLX system someone could point me to? Is this possible, or is there an easier way?
I started to code it and get the right data in the grid, but I can't make the checkbox active (won't let me check them). I need to return the check records from the grid and then update another table with the info. I will be checking the same table to check the boxes on display. I don't currently have the checkbox bound to a real field. I also tried binding it to a field in the picklist table, but it doesn't contain a boolean so wonder if that is the problem..
With grdCounty .SQL.Text = "SELECT text, picklistID From PICKLIST where PICKLISTID ='" & sPicklistID & "' "
With .Columns 'remove any existing columns If (.Count > 0) Then For i = 0 To .Count - 1 .Item(0).Delete Next End If
'add column for ACCOUNT field Set col = .Add(0) col.FieldName = "text" col.Caption = "County" col.ReadOnly = True col.width=150
Set col = .Add(4) ' col.FieldName = "picklistID" ' col.formatType=ftBoolean col.Caption = "Select" col.ReadOnly = False col.DisableEditor= False
End With 'now refresh the grid to see the new columns .Refresh End With |
|
|
| |
|
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!
|
|
|
|
|
|
|
|