Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, June 8, 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: Dialog closed by the "x"
RJ Eaton
Posts: 234
 
Dialog closed by the "x"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jan 13 12:32 PM
fiogf49gjkf0d

We have an issue where soetimes users will click the small "x" in the right hand corner of a popup or dialog box. This circumvents any of the mandatory data checks we have in place. How can I catch the "x" click .


I looked up and was trying to work through the Dialogresult , however that doesn't seem to be the right method.. any hints..??


Even if someone could show me how to remove the x it would be ok.. since we have buttons to control the other items.. Here is what I am trying to use..

[Reply][Quote]
RJ Eaton
Posts: 234
 
Re: Dialog closed by the "x"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jan 13 12:52 PM
fiogf49gjkf0d

Here is code I am trying to use:


<p>public void usrCancel_OnClick(Object sender, FormViewPageEventArgs e){

 


     if(e.Cancel){


      throw new Sage.Platform.Application.ValidationException("Alert - You must close from the buttons below");


      }


}

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Dialog closed by the "x"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jan 13 4:57 PM
fiogf49gjkf0d

I thought clicking on the X cancelled the Save.....what data checks are you trying to make on data that was just saved prior to clicking on the X? (and I don't know how to trap the 'x', although I'm sure someone does....)

[Reply][Quote]
RJ Eaton
Posts: 234
 
Re: Dialog closed by the "x"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jan 13 5:03 PM

The sequence comes from the Opportunity Status..


 


Change to Closed Won it posts back the change to fire the OnChangeEvent to launch dialog screen.


We change the closed value to represent the NET value not the salepotential so set it to 0 on launch so user has to enter something.


if someone doesnt change values or makes value blank for closed won and hits "X" the opportunity stays closed-won however the value could be 0 or blank then


so need to intercept the "x" click or remove it from the window


 

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Dialog closed by the "x"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jan 13 6:52 PM
fiogf49gjkf0d

Got it.....current SLX Approach is to reset this stuff after the dialog has closed, and is fired on the X (Cancel)...makes sense to trap it ON the dialog....

[Reply][Quote]
Carla Tillman
Posts: 290
 
Re: Dialog closed by the "x"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Jan 13 9:27 AM
fiogf49gjkf0d

Have you considered onBefore Save Business Rule? 


 


if (opportunity.closed =="Closed-Won" && salespotential = 0)


{


dialogservice.showMessage("I can't save this record because you forgot to enter the value, silly.");


break;


}

[Reply][Quote]
RJ Eaton
Posts: 234
 
Re: Dialog closed by the "x"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Jan 13 2:26 PM

Carla, accept that it doesn't fire if user clicks the "X"


 

[Reply][Quote]
Carla Tillman
Posts: 290
 
Re: Dialog closed by the "x"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Jan 13 2:53 PM

Sorry Rich, thought your comment "Change to Closed Won it posts back the change to fire the OnChangeEvent to launch dialog screen." indicated the "Closed-Won" had already been captured.



The only other thing I can think of is if you can open the Dialog window from code, calling out the window parameters. 

[Reply][Quote]
RJ Eaton
Posts: 234
 
Re: Dialog closed by the "x"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jan 13 2:28 PM

Carla, I know it sounds strange.. the Opportunity Detail "Status Field" when changed to closed-won does postback, which fires the Onchange Event.. the Onchnage event calls the dialog window..

On the dialog window we have checks for net and gross revenue amounts and if user uses the buttons on form everything is great.. just if the click the x to close the dialog..  for some reason I can't seem to see the WebForm properties or I can add check to Form.Close == UserCancel


 


Sigh


Thanks for the help

[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/8/2025 6:19:08 AM