Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, February 22, 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!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: insert new ticket non modal - cancel button crashes system
chez
Posts: 44
 
insert new ticket non modal - cancel button crashes systemYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Jan 13 9:35 AM
fiogf49gjkf0d

i have changed the insert new ticket to be non modal as need it to minimise and allow possibly another ticket to be created too.  so instead of obj.showModal it is obj.Show in the insert ticket vbscriptwhen press the Cancel button on


The insert new ticket screen it seems to run closequery and close.-which the old 6.2 didn't do


Tried to set validation as true and instead of running the whole query put if mrCancel then closequery=true and exit function, but this crashed the system brings up access violations.


(also tried a application.basicfunctions.closeCurrentview true not do anything, not close)


How can i get the cancel button to work in the non modal view?


Thanks guys

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: insert new ticket non modal - cancel button crashes systemYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Jan 13 9:48 AM
fiogf49gjkf0d

I'd say you can't......leave it alone. If you need to insert another ticket then finish inserting the first one and insert another....

[Reply][Quote]
chez
Posts: 44
 
Re: insert new ticket non modal - cancel button crashes systemYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Jan 13 9:52 AM

need it to minimise if not allow another to be created so needs to be non-modal..


how do i can i cancel the non modal view as it running closequery and if set it to true, the system has access violations?

[Reply][Quote]
Lane
Posts: 121
 
Re: insert new ticket non modal - cancel button crashes systemYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Jan 13 10:11 AM
fiogf49gjkf0d

sounds like your form validate is still firing, might need to add code to skip these. Also look at the calling loop to see if thats looping you back in. I think there is a look there to block exiting improperly too.


application.basicfunctions.closecurrentview true should be working, unless something is blocking it in the validation code, and that could get you a crash ...


Also, you can't call the same form twice anyway, so unless you write some sort of data pushtostack, popfromstack function into the form, your plan isn't going to work. You could create a second ticket table and manage drafts separately, with a button that pushes the record into a ticket on save too. Probably way more trouble than its worth ...


 

[Reply][Quote]
chez
Posts: 44
 
Re: insert new ticket non modal - cancel button crashes systemYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Jan 13 10:37 AM
fiogf49gjkf0d

in validate put


 if frmNewTicket.ModalResult = mrCancel then


 validation=true


exit function


end if


but it still goes to closequery, have done similar thing in that so closequery=true..


but when press cancel button still fails.


tried application.basicfunctions.closecurrentview true in the cmdCancel method infront of and behind frmNewTicket.Parent.Close... no joy! still doesn't close screen and runs the closequery method then errors.

[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): 2/22/2025 3:56:52 PM