Extension Challenges

TimAdams75
Member Posts: 6
I have recently started moving our existing IP into using subscriber events, but I have come across a number of challenges which I was hoping to get some advice on:
Exit Clauses with Functions on a Table:
Example: In certain circumstances I would like to stop the "UpdateDirectUnitCost" being triggered (Exited) when I have a parameter set on the Purchase & Payables Setup.
1) I cannot add the code to the subscriber event for the field as this would involve adding conditional code before function call within the field validation
2) I can utilise the OnBeforeModify, using Rec & XRec, but it seems massively clumsy/error-prone
3) I could add an Exit directly into the UpdateDirectUnitCost Function, but does this contravene best practice
Style Expressions On Page:
Example: In certain circumstance I would like to use the style expression to alert users to specific conditions
1) As far as I can see there is no way to work with Events to set the StyleExpression, as with the above I could leave the existing code but does this contravene best practice?
Thanks for the help in Advance
Tim
Exit Clauses with Functions on a Table:
Example: In certain circumstances I would like to stop the "UpdateDirectUnitCost" being triggered (Exited) when I have a parameter set on the Purchase & Payables Setup.
1) I cannot add the code to the subscriber event for the field as this would involve adding conditional code before function call within the field validation
2) I can utilise the OnBeforeModify, using Rec & XRec, but it seems massively clumsy/error-prone
3) I could add an Exit directly into the UpdateDirectUnitCost Function, but does this contravene best practice
Style Expressions On Page:
Example: In certain circumstance I would like to use the style expression to alert users to specific conditions
1) As far as I can see there is no way to work with Events to set the StyleExpression, as with the above I could leave the existing code but does this contravene best practice?
Thanks for the help in Advance
Tim
-1
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