Name of the caller object

fazlehasan
Member Posts: 70
Hi all.
I have one small question:
Say Object "X" is calling object "Y".
How Object "Y" can tell what is the caller object?
Is there any method in C/Side to get the name / no. of the caller object
other than using Single Instance Code Unit - like using set and get funtions?
Thanks.
I have one small question:
Say Object "X" is calling object "Y".
How Object "Y" can tell what is the caller object?
Is there any method in C/Side to get the name / no. of the caller object
other than using Single Instance Code Unit - like using set and get funtions?
Thanks.
0
Comments
-
No, there is no way for that. Why you need that? I do not know any business process which will need that.0
-
Thanks for you reply
We need Item Tracking Lines (Form 6510) behave a little bit differently when called from Purchase Order (Form 50)
- like some fields would become disabled , some fields would be autofilled etc. based on which Form is calling it.
Thanks and regards
Fazle0 -
fazlehasan wrote:Thanks for you reply
We need Item Tracking Lines (Form 6510) behave a little bit differently when called from Purchase Order (Form 50)
- like some fields would become disabled , some fields would be autofilled etc. based on which Form is calling it.
Thanks and regards
Fazle
You may try adding a Global variable and setting its value before calling. and check for the flag in form opening.
there may be other better ways!"A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."0 -
The write two separate functions in the code unit and call a different function depending on your needs.David Singleton0
-
You already have this in the form - variable CurrentSourceType is ID of table from where it was called (Sales Line, Purchase Line)… just look into existing code, there are conditions making the proces differend based on the calling source...0
-
kine wrote:You already have this in the form - variable CurrentSourceType is ID of table from where it was called (Sales Line, Purchase Line)… just look into existing code, there are conditions making the proces differend based on the calling source...
Thanks0
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