Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, February 21, 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: Generically invoke the edit form for a SalesLogix
Dave Cleary
Posts: 61
 
Generically invoke the edit form for a SalesLogixYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Dec 13 3:28 AM

Hi


I'm wanting to invoke the edit form from an add record button click so where on click a new record is created in the table and the edit form opens so additional details can be enetered. I have read Ryan's article titled "How to generically invoke the edit form for a SalesLogix datagrid" but can'r get my code to behave in the same way.


My code is as follows:


application.BasicFunctions.ShowViewForRecord(COMMISSIONS As String, Personal:Commission Manual Add As String, strNewID As String) As ModalResult


COMMISSIONS - is the table where the new row is being created.


Personal:Personal:Commission Manual Add - is the form that is being called to edit


strNewID - is the new record id


Can I just insert this line of code at the end of the create new record code? 


It is falling over on syntax checking with an error "Expected ')' " which is after the COMMISSIONS part of the code.


 


Can anyone advise as to why this is falling over?


Am I using this function in the right way?


 


Dave



[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Generically invoke the edit form for a SalesLogixYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Dec 13 4:30 AM

I'd say no.


If you already have the ID off the grid then you simply do:


Application.BasicFunctions.ShowViewForRecord "TABLENAME","ViewName",YourID


e.g


application.BasicFunctions.ShowViewForRecord "COMMISSION", "Personal:Commission Manual Add", strNewID


If you need to know the result then use:



x = application.BasicFunctions.ShowViewForRecord("COMMISSION", "Personal:Commission Manual Add", strNewID)


and x will be the result (0/1 etc).



 



 



 

[Reply][Quote]
Dave Cleary
Posts: 61
 
Re: Generically invoke the edit form for a SalesLogixYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Dec 13 10:31 AM

Thanks  Mike that worked a treat.

[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/21/2025 11:52:00 PM