6/30/2025 10:29:01 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.
|
|
|
|
Get next ID
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 |
|
|
|
Re: Get next ID
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.... |
|
|
|
Re: Get next ID
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 |
|
|
|
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!
|
|
|
|
|
|
|
|