Get the Value from Another form
dilipkinthada
Member Posts: 11
Hi all,
I wanted to get a textbox value which is in another form, How can i get that.
Actually i have a order form and from there i call
another form called Accessories. Now in that
form Accessories i wanted the value of a textbox
Can anyone help me in doing this?
I wanted to get a textbox value which is in another form, How can i get that.
Actually i have a order form and from there i call
another form called Accessories. Now in that
form Accessories i wanted the value of a textbox
Can anyone help me in doing this?
0
Comments
-
You can add a function to the called form which returns the value of the textbox.Ufuk Asci
Pargesoft0 -
Hi,
I added a function in the called form which returns the value of textbox.
when i debug it is showing the value .. but when i close the second form..i am getting empty value
Reg
Dilip0 -
Hi,
Yes, you get an empty value because the form is not open anymore.
The value that you are retrieving from the other form, is it stored in a table?
If so, why don't you just read the record instead and get the value that way.
Regards,
WillyFostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.0 -
Hi,
The pattern I have used is this:
Create a function on the called form like SetValues(1,2,3,etc);
Create a function on the called form like GetValues(var1, var2,var3,etc)
On the calling form create a variable for the form CalledForm
On a button or menu choice
Clear(calledform);
Calledform.setvalues(1,2,3,etc); sends any values to be used on the called form
calledform.run or runmodal
you can set the values on the OnOpen trigger
After you close the called form it is still in scope so you can call
Calledform.getvalues(var1,var2,var3,etc); gets any values set in the called form
I hope this helps
Steve0 -
Hi ,
I tried ur code and it worked.
Thank you.
Reg
Dilip.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K 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
- 324 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