Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, June 30, 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: Get next ID
Adrian Jones
Posts: 8
 
Get next IDYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 May 10 8:09 AM
If i wanted to generate the next standard ID of a table in 7.2 LAN i would use the following:

Application.BasicFunctions.GetIDFor()

What is the equivelant function for this in 7.5 Web?
Basically I'm looking to set up a 'select sales process' on the 'Insert opportunity' form and therefore need to create a sales process record (In our LAN version we made users select a sales process when creating a new opportunity - and basically we are trying to replicate the process)

Thanks
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Get next IDYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 May 10 12:24 AM
I've been there and done it several times....

First of all, you probably will need to detach the InsertOpportunity view and make it a Smart Part.
Then, locate the places where the Save code is invoked and add your code there.

The code would be something like:
if (shouldSave)
{
_entity.Save();

After the Opportunity has been saved, you can add your own code:
string opportunityId = _entity.Id.ToString();
string pluginID = ddLSalesProcess.SelectedItem.Value; //Combo box on the Insert screen that I populate with the SP Plugin ID and Name
ISalesProcesses salesProcess = Sage.Platform.EntityFactory.Create();
salesProcess.InitSalesProcess(pluginID, opportunityId);

There may be several places to add the code, as you may have Save, and Save and New buttons....
[Reply][Quote]
Adrian Jones
Posts: 8
 
Re: Get next IDYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 May 10 10:03 AM
Thanks Raul, I'll give this a try and let you know how I get on.

I need to change my drop-down list though (as I had difficulty with the combo box, i created a lookup that looks and behaves like a combo box)

Thanks

Adrian
[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): 6/30/2025 5:11:50 AM