Running a subform with parameeters
emkpro
Member Posts: 47
Hi everyone,
I tried to figure a way for an hole day and cound't manage it so please help me.
I know that I can run a form with parameter with Form.Run command but what if I want to activeate a subform using C/side parameters???
To be precise I have a customer form (Card taype) and a subform in one of its tabs (table type) for that customers contacts.
I couldt just filter contancts of a customer from subform properties since three tables involved (Customer, contact, Business contact relationship)
I couldn't send variables form customer to contact list (don't know if it could be done but I tried defining the variables as global in customer form an it isn't recognised from the contact list form) And I don't know how to filter my subform Contact lists records by code
what should I do?
I tried to figure a way for an hole day and cound't manage it so please help me.
I know that I can run a form with parameter with Form.Run command but what if I want to activeate a subform using C/side parameters???
To be precise I have a customer form (Card taype) and a subform in one of its tabs (table type) for that customers contacts.
I couldt just filter contancts of a customer from subform properties since three tables involved (Customer, contact, Business contact relationship)
I couldn't send variables form customer to contact list (don't know if it could be done but I tried defining the variables as global in customer form an it isn't recognised from the contact list form) And I don't know how to filter my subform Contact lists records by code
what should I do?
//EMK\\
0
Comments
-
Hello,
Do these things:
1: Fill in the name property of the subform control like 'SUBFORM'.
2: In the subform object create a function with parameters like 'MYFUNCTION(Param1, Param2, etc)'.
3: Call this function from the parent form like:
'CurrForm.SUBFORM.Form.MYFUNCTION(Param1, Param2, etc)
Do your processing in the MYFUNCTION function in the subform object.
You cant call back the parent form from the subform.In a world without Borders or Fences, who needs Windows and Gates?0 -
Thanks
this should come handy //EMK\\0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions