2/22/2025 9:00:18 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 the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
1:M to a 1:M
Posted: 31 Mar 08 12:07 PM
|
Ok here is the scoop, I need a 1:M to a 1:M. I have a quotes data-grid off of accounts. I use an edit column to open up a detail view for the quote. This all works fine and dandy….
Now I want to add another data-grid to this quotes detail view to add\edit the line items for the quote. So what I did was add a data-source to the form and pointed the ‘source’ to my QuoteLines table. I then created a data-grid and used this new data-source for the grids source. I then went into the ‘DataBindings’ of the grid and mapped the QuoteHeaderID (my first 1:M ID) to the ‘SelectedMember’.
So now when I go into the web-client and see my original QuoteHeader data-grid and open up the detail view. When the detail view tries to open I get the following error: “Object reference no set to an instance of an object”
I have a feeling it has something to do with setting the data-grid to the HeaderID that it is currently on. I know I had to do some scripting on the first 1:M data-grid to get it bound using something like: and not sure if I need to do something similar to this???
-------------------------------------------------------- if (this.BindingSource != null) { Sage.Entity.Interfaces.IContactOneToMany mContactOneToMany = this.BindingSource.Current as Sage.Entity.Interfaces.IContactOneToMany; Sage.Entity.Interfaces.IContact contact = GetParentEntity() as Sage.Entity.Interfaces.IContact; if (contact != null) { mContactOneToMany.Contact = contact; this.BindingSource.Bind(); } } --------------------------------------------------------
Any rate, I hope that was clearer than mud, and someone might have some pointers for me.
Thanks in advance
--Ken Poggensee-- |
|
|
|
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!
|
|
|
|
|
|
|
|