Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, August 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!
 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: Application.Forms - Calling a form element from another form
Billy
Posts: 2
 
Application.Forms - Calling a form element from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Apr 09 12:52 PM
I am trying to call a form from another form using the application.Forms function. Heres the code
[code]
dim Form
Set Form = Application.Forms("Personal:packagetypeadmin")
Form.txtfile.text = "test data"
[/code]

I was able to get this to work with other forms, but when I try it on my newly created form "packagetypeadmin" I get the following error:

Object required: Form

at line:
Form.txtfile.text "test data"

Thanks for your time!

[Reply][Quote]
Todd Hardin
Posts: 43
 
Re: Application.Forms - Calling a form element from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Apr 09 12:44 AM
Hmmm ideas:

1. Any chance this form plugin is not in the Personal family?

2. Possiblythe current ActiveX form is also named "Form"? (i.e. try changing your code to use
dim oForm
set oForm = ....


[Reply][Quote]
Billy
Posts: 2
 
Re: Application.Forms - Calling a form element from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Apr 09 1:01 PM
1) Doubled checked the plugin was in the personal family
2) the form object name works fine, its weird the syntax works fine with other forms but not this new one I created.

Let me know if you have any other ideas

Thanks again!
[Reply][Quote]
Mike Douglas
Posts: 19
 
Re: Application.Forms - Calling a form element from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Apr 09 6:00 AM
Having the same issue.
I have been using application.forms... for ages in a 6.2 database. Now it is upgraded t 7.51 and this just does not want to know. I have out in ryans sample "set controls actoss forms..." the GetForm Function and that fails too with "FRM", tried giving this different variable name too.

Any attempt to use application.forms to set a property fails. Tried nominating the SQL property of the datagrird instead of the bindid as well. However it nevers gets to that since application.forms fails
[Reply][Quote]
Mike Douglas
Posts: 19
 
Re: Application.Forms - Calling a form element from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Apr 09 6:01 AM
Having the same issue.
I have been using application.forms... for ages in a 6.2 database. Now it is upgraded t 7.51 and this just does not want to know. I have put in ryans sample "set controls across forms..." the GetForm Function and that fails too with "FRM", tried giving this different variable name too.

Any attempt to use application.forms to set a property fails. Tried nominating the SQL property of the datagrird instead of the bindid as well. However it nevers gets to that since application.forms fails
[Reply][Quote]
Mike Douglas
Posts: 19
 
Re: Application.Forms - Calling a form element from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Apr 09 6:04 AM
Having the same issue.
I have been using application.forms... for ages in a 6.2 database. Now it is upgraded t 7.51 and this just does not want to know. I have put in ryans sample "set controls across forms..." the GetForm Function and that fails too with "FRM", tried giving this different variable name too.

Any attempt to use application.forms to set a property fails. Tried nominating the SQL property of the datagrird instead of the bindid as well. However it nevers gets to that since application.forms fails
[Reply][Quote]
Mike Douglas
Posts: 19
 
Re: Application.Forms - Calling a form element from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Apr 09 8:38 AM
Sorry that previous got posted several times - blame IE7.
A thought I wonder if only works if calling a form on a Main View, rather that a form of a TAB, which is what I am doing. But it worked before?
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Application.Forms - Calling a form element from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Apr 09 1:26 PM
dim Formo, X
Set Formo = Application.Forms("System:Opportunity Detail")
X = cINT("0" & Formo.NumSitesCount.TEXT)

IF X > 0 THEN SelectFirstRecordForGrid(dgWORK)

works from a tab view.

Maybe you have to get a 'connection'/reference to the mainview in the collection first if you go after another mainview.....say you are on a Contact TAB and need Opportunity Detail info....
[Reply][Quote]
Mike Douglas
Posts: 19
 
Re: Application.Forms - Calling a form element from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Apr 09 2:46 AM
But...
Does it work if on a MAIN View form you try to refernce a TAB form, to set a property or indeed read one from tab, which is what I am trying to do.
To explain further ..
I have a New Main Form with its own Datgrid on it, this lists Contracts.
When the grid is clicked I capture the ContractID,

Then it has to change the BINDID on a datagrid within a TAB with the captured ContractID to popluate with data from a related table.


Set The grid
application.forms("Contract:MyPluginTabName").myDatagrid.bindid = strValue

If i put the datagrid onto the main form - and remove reference to Application.forms - then all is well.

Now here is the real bizarre one......
I made a new 626 main form, detail view and tab to do the same sort of thing, it worked in 626, bundled and moved to my slx751 database it worked, but my original - no chance still OBJECT REQUIRED


[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Application.Forms - Calling a form element from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Apr 09 8:22 AM
My code creates and references an OBJECT
[Reply][Quote]
Mike Douglas
Posts: 19
 
Re: Application.Forms - Calling a form element from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Apr 09 10:14 AM
Thanks for reply and yes I have tried this ..
Dim OBJProduct
set OBJProduct = Application.Forms("Contract:SLX75_ContractRenewalProducts")
OBJProduct.DGproducts.bindid = "DUM123456789"

and then in says "Object Required : OBJProduct", which is something I have seem many times over 3 days of trying to fix this.
I have even started again (building froms from scratch in 751 and still get this problem

The difference is that you are setting a the Main View Detail Form, whereas I trying to use a tab form, I think.
[Reply][Quote]
Mike Douglas
Posts: 19
 
Re: Application.Forms - Calling a form element from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Apr 09 10:55 AM
It looks like if there is only one tab present (as per earlier test), then all is well, since this tab must have focus BUT if there mutliple tabs then IF the form being set has focus - then it works, but if does not have focus then it fails
[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): 8/28/2025 5:56:41 PM