Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, February 22, 2025 
 
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!
 Web Forums - SalesLogix Web Platform & Application Architect
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: 1:M to a 1:M
Ken Poggensee
Posts: 71
 
1:M to a 1:MYour last visit to this thread was on 1/1/1970 12:00:00 AM
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--
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/22/2025 9:08:56 AM