Warning triangle on item card

stoocake
Member Posts: 32
We have a warning triangle on our item card that appears if there is a comment linked to an item. To enter a comment we click the button to the right of the Item No. If the comment list is blank there is no picture visible, if you type a comment, the picture appears.
Does anyone know how the code makes the picture visible if there is a comment in another table
Table 97: Comment Line
Table 27: ITem
Form 125: Comment List
Form 30: Item Card
Does anyone know how the code makes the picture visible if there is a comment in another table
Table 97: Comment Line
Table 27: ITem
Form 125: Comment List
Form 30: Item Card
0
Comments
-
The pencil-icon is a PictureBox which is placed beneath the little CommandButton. The property SourceExpr is set to the flowfield "Comment", property Bitmaplist is "7,6" which are the internal graphics used to display the pencil/sheet icon. Depending on the value of the field Comment, either bitmap 7 or bitmap 6 is displayed.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
How does the software check the contents of the comment table to know that the picture should be displayed? I am asking because I am trying to put something similar in that checks to see if there are any documents attached and displays a picture if there are.
Any more detailed help will be appreciated.0 -
The check is based on flowfield Comment in the Item table...0
-
...but where does the code change the value of the flowfield? I have no idea how it works?0
-
Flowfields are not changed by code. They respond to changes in the database automaticaly.
If you look in the table definition, you can see the formula of the flowfield.
Just put the comment field as a normal control on the form and see.0 -
Ok, I think I've found it - the calcformula property - there is a line that says:
Exist(Comment Line Where(Table Name=CONST(Item),No.=Field(No.)))
Sorry for sounding dumb, but I'm new to programming and Navision and it's not easy to pick up just by looking at it.
Thanks for your help guys.0 -
-
This was also helpful with Ship-To's on the customer card.
Unless you click on show ship-to's you don;t know if a customer has any.
Exist("Ship-to Address" WHERE (Customer No.=FIELD(No.)))
solves that problem0
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