Conditional Formtting

dineshkumarcser
Member Posts: 34
Dear all,
Is Conditional Formatting is possible in navision forms
like if we goes to sales order list form
there we color fields according to our requirement like
if location is blue then sell to customer no is of red color otherwise green
Is Conditional Formatting is possible in navision forms
like if we goes to sales order list form
there we color fields according to our requirement like
if location is blue then sell to customer no is of red color otherwise green
0
Comments
-
In the OnFormat trigger of "Sell-to customer no." :
if "Location Code" = 'BLUE' then Currform."Sell-to Customer No.".UpdateForeColor(255) else CurrForm."Sell-to Customer No.".UpdateForeColor(255*256) ;
Btw, in this case i would make a new field in the location table to store the color you want, and retrieve that in the above code. That way you don't have to use any magic numbers/codes. The code ( stil in the OnFormat trigger ) would then become something like :if not Location.get("Location code") then Location.init ; CurrForm."Sell-to customer No.".UpdateForeColor(Location."Customer Color" ;
0 -
thank u so much
can u plz tell me how to pick this color code0 -
dineshkumarcser wrote:thank u so much
can u plz tell me how to pick this color codeRGB ( R : Integer, G : Integer, B : Integer ) : Integer if R < 0 then R := 0 ; if R > 255 then R := 255 ; if G < 0 then G := 0 ; if G > 255 then G := 255 ; if B < 0 then B := 0 ; if B > 255 then B := 255 ; Exit( R + ( G * 256 ) + ( B * 256 * 256 ) ) ;
0 -
MBerger wrote:I have made a function for it in almost all databases we have here, so i can just use the Red, Green and Blue values
As Also seen here:
viewtopic.php?f=5&t=42489
& another:
http://www.mibuso.com/dlinfo.asp?FileID=1055
all your color needs will be met by these few posts :thumbsup:0
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