Way to make button show up only if there is something there?

yuppicide
Member Posts: 410
Nav 3.10
On the Shipping tab of a Sales Order. Where it says Ship-to Code there's a box and an arrow. If you click that arrow it will open the shipping addresses (if that customer has any).
Maybe there's a way to make that arrow only show up if there are shipping addresses?
Some customers have the same billing and shipping address. Every order we open that arrow up to see if there are any additional shipping addresses. If there are none, not having that arrow would save a few clicks of not having to check.
On the Shipping tab of a Sales Order. Where it says Ship-to Code there's a box and an arrow. If you click that arrow it will open the shipping addresses (if that customer has any).
Maybe there's a way to make that arrow only show up if there are shipping addresses?
Some customers have the same billing and shipping address. Every order we open that arrow up to see if there are any additional shipping addresses. If there are none, not having that arrow would save a few clicks of not having to check.
0
Comments
-
Hi,
you could achieve a similar thing on dynamically enabling the control. I would do this on OnAfterGetRecord, maybe OnAfterGetCurrrecord also. The visible, enabled and editable properties can be changed dynamically, the lookup property not.
with best regards
Jens0 -
How about a visible checkbox since you don't have a Dev License.
Sales Header Table (Table 36)
add a new field.
50090 - Ship-To Exists -> Type Boolean
View Properties
FieldClass->Flowfield
CalcFormula->Exist("Ship-to Address" WHERE (Customer No.=FIELD(Sell-to Customer No.)))
Sales Order Header Form -> Tools -> Designer
View->Field Menu
Find the New field "Ship-To Exists" drop on the tab of your choice.
Now when you enter the sell-to customer number of a new order this box will quickly tell you if they have any addresses listed in the "Ship-to address" table.
Save->Compile->Enjoy!0 -
Just copy the functionality from the comments button, it does 90% of what you want.David Singleton0
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