Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, May 17, 2024 
 
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: Getting the ID on FormOpen (LAN Client)
Kevin Yu
Posts: 9
 
Getting the ID on FormOpen (LAN Client)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Oct 14 1:09 AM

How can I get the CurrentID of the form during execution of AXFormOpen? I just noticed that when you put code inside the function, it performs first before the controls are loaded, so when I try to show up the value of the CurrentID using messagebox (msgbox(form.CurrentID)), it just shows nothing. In what possible ways can I solve the problems, without the need to change a control (data grid for example) by creating it during runtime?

[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Getting the ID on FormOpen (LAN Client)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Oct 14 1:23 AM

If you need the ID on an add form (before it is set as CurrentID) all you need to do is this:



  1. Create a hidden label on the form and bind to the table's ID field

  2. On the OnChange of the form, create a new ID value using Application.BasicFunctions.GetIDFor("MyTableName") and then place in hidden label (this value will be saved as the record ID when the data is saved)

  3. Use the ID value as needed


Make sense?

[Reply][Quote]
Kevin Yu
Posts: 9
 
Re: Getting the ID on FormOpen (LAN Client)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Oct 14 12:05 AM

Sorry for hitting you up late, Sir. But I have already solved the problem using Application.MainView.CurrentID, I cannot recall really.Laughing

[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 © 2024 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): 5/17/2024 3:57:38 PM