Run form on opening a form

ROBO
Member Posts: 39
I've got the following question i've got a form with buttons on it that opens other forms with multiple filters. Is there a posibility that when i klik the button and then close the "main" form the 2 form starts up the next time i open the "main" form with the same filters? And when i go to another "relation" the filters apply to that relation?
ThanX
ThanX
0
Comments
-
ROBO wrote:I've got the following question i've got a form with buttons on it that opens other forms with multiple filters. Is there a posibility that when i klik the button and then close the "main" form the 2 form starts up the next time i open the "main" form with the same filters?ROBO wrote:And when i go to another "relation" the filters apply to that relation?Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Is there a possibilty that I can run a button when I open a form(simulate a click)0
-
Put the code behind the button in a function.
In the "OnOpenForm"-trigger, run that function.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Can you help me with the code?0
-
ROBO wrote:Can you help me with the code?
Function MyButtonOnClick: MyRecord.RESET; MyRecord.SETCURRENTKEY(...); MyRecord.SETRANGE(...); FORM.RUN(0,MyRecord); // or FORM.RUN(FORM::"My Form",MyRecord); END;
OnOpenForm:MyButtonOnClick();
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
It is not quit what i mean. I've got a few buttons on my form. Can I push one of the the buttons by a code on a form start?
ThanX0 -
No you cannot 'push buttons' in C/AL code. You CAN however, put the click code inside a function, and call the function in the OnPush trigger of the button. Then you can add a call to the function in the OnOpen trigger, and you will have the same result. All that the button does is run the function, you add the function call to OnOpen, and it does the same thing.
My guess though is that you don't have the C/AL editor in your license?0 -
This had solved the "problem": http://www.mibuso.com/forum/viewtopic.p ... highlight=
ThanX all for your help0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions