6/19/2026 10:29:03 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 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.
|
|
|
|
Opening a new main view from code.
Posted: 08 Oct 08 6:33 PM
|
I’m sure this is a newb question, but…
I have a chuck of code that creates a new record in another entity\table and I want to open up that new record I created in the main view right afterwards. What is the syntax for opening up a main view entity knowing the ID? Below is what I got. It creates the record just fine and now I want it to close this current view and open up the main view for that new record….
----------------------------------------------- if (this.BindingSource != null) { Sage.Entity.Interfaces.ICeQuote quote = this.BindingSource.Current as Sage.Entity.Interfaces.ICeQuote; if (quote != null) {
Sage.Entity.Interfaces.IMergeTemplates newTemplate = Sage.Platform.EntityFactory.Create(); newTemplate.CeQuoteid = quote.Id.ToString(); this.BindingSource.Bind(); newTemplate.Save();
//Now open this new record up in the main view //???????????????????????????? } } -----------------------------------------------
|
|
|
|
Re: Opening a new main view from code.
Posted: 09 Oct 08 7:08 AM
|
Hey Ken, I would do something like
Server.Transfer(string.format("mainpage.aspx?entityid={0}", newTemplate.Id))
Actual syntax may vary slightly |
|
|
|
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!
|
|
|
|
|
|
|
|