Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, June 28, 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: How Can I Return A Value From Dialog Action?
Wiley S.
Posts: 52
 
How Can I Return A Value From Dialog Action?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Dec 11 5:21 PM
fiogf49gjkf0d

I have a table I am using that is related to my leads.  It stores a Company name and id.


I have created a popup dialog from LeadDetails that allows entering a new company and correctly saves back to Company table.


However, I would like to capture the output of that save (a COmpany name and ID) and pass them back to Lead Details.


What is the process for doing this?  New to the object model so I cannot seem to figure out which event and where.


Thanks,


W

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: How Can I Return A Value From Dialog Action?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Dec 11 6:55 PM
fiogf49gjkf0d

The most basic way to do this is to use Session variables.


e.g.


Session["CompanyName"] = theCompanyName;


 

[Reply][Quote]
Wiley S.
Posts: 52
 
Re: How Can I Return A Value From Dialog Action?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Dec 11 7:01 PM
fiogf49gjkf0d

Really?  I am surprised.  With this giant object model, I would not expect to resort to a Session variable.


Also not sure that would do it tho in this case.  


I just want to have the company name and Id after the dialog action insert completes and put it back to my Insert form for Leads.


Since the Lead insert page is not going to reload, the Session var would not be refreshed.  Unless I am missing something?


Thank you Raul!



 


 


 


 

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: How Can I Return A Value From Dialog Action?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Dec 11 7:14 PM
fiogf49gjkf0d

As long as the code is server side, then it would work.


When a dialog closes, the page does refresh, so the Session variable does work.


Now, if the Created Entity is linked via a Relationship, you could in theory reach it that way...


 


E.g.


MyEntity.ExtensionEntity.Field  // for a One to One relationship


or


foreach (MyExtensionEntity extension in MyEntity.Extensions)   //for One to Many relationship


{}


 


 

[Reply][Quote]
Wiley S.
Posts: 52
 
Re: How Can I Return A Value From Dialog Action?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Dec 11 5:42 PM
fiogf49gjkf0d

Raul,


 


This is a One to Many relationship with a single entry in CompanyMaster possibly having multiple Leads.


Neither table has "Is Extension" set so they probably are not available.


So from my Leads form, I currently pop up the Company Master form and add a row to Company Master.


After insert to CompanyMaster, can get the value of the newly inserted CompanyMaster via the return of a Business Rule?


Sorry if these questions are really fumb.  This object model is a bit daunting.


 


Thanks,


W


 

[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/28/2025 10:11:26 AM