8/28/2025 5:29:44 AM
|
|
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.
|
|
|
|
Datagrid on Data Form
Posted: 20 Feb 09 2:14 PM
|
Hello People,
I am using SLX 6.2.4 and looking for some help with this request.
Here is the situation:
For Contacts I have a tab with a datagrid (say Children for Table Child). This grid is editable, I use standard Data Form which get launched by right click on the grid. This piece works fine, I am able to add, edit or delete child records.
On this data form, I added a second grid (say Grand Children for Table GrandChild). This grid ia editable too and I use another Data Form.
The problem is when you do Add Child and from there do Add Grand Child. Grand Child doesn't get saved. But if I add Grand Child from Edit Child form it works fine.
Is there a way to save Child record from script. I am considering writing my own Data Form if there is no other way.
Cheers, RN |
|
|
|
Re: Datagrid on Data Form
Posted: 20 Feb 09 8:20 PM
|
As far as I know, you cannot create a manage form hierarchy in the way that you have described - the manage form works only to a depth of one.
You will need to script it to achieve what you want. I recommend that you disable the standard Add/Edit/Delete functions on your grandchildren datagrid and create the same options on a popup menu. Then, in code, you need to trap which of the popup menu items was selected and fire off whatever SQL is required. You may also want to write some code to enable/disable the menu items, based on whether there are records in the datagrid (no need for the delete option when there are zero records in the grid, for example).
Phil
|
|
|
|
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!
|
|
|
|
|
|
|
|