Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, August 13, 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: Opening a new main view from code.
Ken Poggensee
Posts: 71
 
Opening a new main view from code.Your last visit to this thread was on 1/1/1970 12:00:00 AM
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
//????????????????????????????
}
}
-----------------------------------------------

[Reply][Quote]
Mark Dykun
Posts: 297
 
Re: Opening a new main view from code.Your last visit to this thread was on 1/1/1970 12:00:00 AM
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
[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): 8/13/2025 3:08:14 PM