Dear Seniors, I am trying to color the ledger name. [#Field: LV Title] Fields : Simple Prompt, Name Field Width : 40% Screen Local : Field : Simple Prompt : Info : $$LocaleString:$$SysName:Ledger Local : Field : Name Field : Set as : #LedgerName Local : Field : Name Field : Style : Normal Bold Local : Field : Name Field : Width : 0 Local : Field : Default : Color : Set as :Blue Not getting the ledger color as blue.
It does not work that way........ You can't create ledger XYZ...and say...go out...and be born as black/blue/pink/red/yellow etc........ So rephrase your question...................
Now you make it.............. This TDL can be made available for Ledgers, Groups, StockItems etc. Also the colors are available in all reports and Vouchers. I just made this in a great hurry as a sample project, so not yet coded for other Masters. Colors have been incorporated with contrasting Background for highlight view. Now you can do it..... let me know your progress.
Code: [Collection: vTallyColoursv] List : "Red", "Green", "Blue" Title : "Which Colour" [System: UDF] vTallyColoursv : String : 21159 [#Part: MST LED Details] Add: Line:vTallyColoursv [Line: vTallyColoursv] Field: Short Prompt, vTallyColoursv Local: Field: Short Prompt: Set as: "Set Colour" [Field: vTallyColoursv] Use: Name Field Storage: vTallyColoursv Table : vTallyColoursv;, Not Applicable Show Table : Always [#Field: EI Consignee] Color: @@mydisountdays [System: Formula] mydisountdays : if $vTallyColoursv:Ledger:$PartyLedgerName CONTAINS "Red" then "red" else "Blue" i try its but not got succeed
[System: Formula] mydisountdays : if $vTallyColoursv:Ledger:$PartyLedgerName = "Red" then "Red" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "Blue" then "Blue" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "Green" then "Green" else "Black" COLOR will come after u save the voucher...............
why do you need code?? during Voucher entry....when on LedgerName prompt......go to alteration and change the color.
Code: [Collection: vTallyColoursv] List : "Red", "Green", "Yellow","Orange" Title : "Colour selection" [System: UDF] vTallyColoursv : String : 21159 [#Part: MST LED Details] Add: Line:vTallyColoursv [Line: vTallyColoursv] Field: Short Prompt,SampleColor, vTallyColoursv Local: Field: Short Prompt: Set as: "Ledger's Font Colour" Local: Field: SampleColor: Set as: "SAMPLE TEXT" Local: Field: Short Prompt: Width:20 Local: Field: Short Prompt: Style:Tiny Bold [Field: SampleColor] Use: Name Field Skip : Yes Width : 18 Border : Thin Box Widespaced: Yes Color: @@myOwnColor ;;;; Not Working (Do not showing color) [Field: vTallyColoursv] Use: Name Field Storage: vTallyColoursv Table : vTallyColoursv,Not Applicable Show Table : Always Width : 10 [#Field: EI Consignee] Color: @@myOwnColor [#Field: DSP VchAccount] Color: @@myOwnColor [System: Formula] myOwnColor : if $vTallyColoursv:Ledger:$PartyLedgerName = "Red" then "Red" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "yellow" then "yellow" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "orange" then "orange" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "Green" then "Green" else "Black" [Color:orange] RGB:255,127,0
please employ basis care in understanding and implementing code............ Errors as under: 1. Remove... SampleColor UDF and Storage name ...as it is redundant and no use in this code. 2. You have specified the Color in FIELD:Sample Color..... and what does COLOR does??? changes the color of the text.......... and where is your text??So input your text in this field.... Set as : "Sample Color" or whatever.
[Field: SampleColor] Use: Name Field Set as: "SAMPLE TEXT" Skip : Yes Width : 18 Border : Thin Box Widespaced: Yes Color: #vTallyColoursv
[#Field: AccTypeName];;;;List Of Account;;;;Why not showing in color..... Use : Name Field Color@myOwnColo
Field: AccTypeName is wrong field........... u need to target field specific to the report to make it work..........
Why its showing bad formula [System: Formula] myOwnColor : if $vTallyColoursv:Ledger:$PartyLedgerName = "Red" then "Red" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "MARON" then "MARON" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "orange" then "orange" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "Blue" then "Blue" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "AmericanRose" then "AmericanRose" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "BrilliantRose" then "BrilliantRose" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "ColumbianBlue" then "ColumbianBlue" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "PowderedBlue" then "PowderedBlue" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "Coral" then "Coral" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "CandyAppleRed" then "CandyAppleRed" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "RosyBrown" then "RosyBrown" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "MediumPurple" then "MediumPurple" else + if $vTallyColoursv:Ledger:$PartyLedgerName = "Green" then "Green" else "Black" [Colorrange] RGB:255,127,0 [Color:MARON] RGB:123,17,19 [Color: AmericanRose] RGB: 255,3,62 [Color:brilliantrose] RGB:255,85,163 [Color: ColumbianBlue] RGB: 155,221,255 [ColorowderedBlue] RGB:31,159,205 [Color: Coral] RGB: 255,127,80 [Color: CandyAppleRed] RGB: 255,8,0 [Color:RosyBrown] RGB:188,143,143 [Color:MediumPurple] RGB:147,112,219