When I pay a Vendor I go to the Payment Journal,
Enter the vendor #, blah blah & hit apply entries.
In which all that vendors OPEN enties appear.
I hit f9 to select which Invoices & credits I want to Pay & Use.
Some Vendors Have A ton of Entries. How can I make the Apply Vendor Enties Form show the credits in red?
01/01/01 - Invoice - 200
01/02/01 - Invoice - 201
01/03/01 - Invoice - 202
01/01/02 - Credit - 100
01/04/01 - Payment - 150
0
Answers
OnFormat(VAR Text : Text[1024];)
But How Can I Get The Whole Line To Be colored Without having to put this code on every field?
Code Above Makes
Credit=Red
Payment=Green
http://www.BiloBeauty.com
http://www.autismspeaks.org
You can make it easier if you put your code in a function and only calls the function in the OnFormat-Trigger. This function then returns the color value.
OnFormat(VAR Text : Text[1024]): SetForeColor() : Integer
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
That's what I was Afraid of. Oh Well.
http://www.BiloBeauty.com
http://www.autismspeaks.org
I've added it to several forms and even did the little
if unit price = 0 change to red on sales orders thing.
I guess when staring at a screen for 8 hrs a day - little changes like this really make the users happy.
http://www.BiloBeauty.com
http://www.autismspeaks.org
sorry for reactivate this :roll:
How would the code look like if I would like to have unit price = 0 in the sales line ?
RIS Plus, LLC
http://www.BiloBeauty.com
http://www.autismspeaks.org
RIS Plus, LLC
http://www.BiloBeauty.com
http://www.autismspeaks.org
Debugger is pointing at ELSE... I was just trying to use this as a starting point to play around with this and I immediately got nailed with this error I don't understand.
I put this in the OnFormat(VAR Text : Text[1024];) of Document Type of Customer Ledger Entries, not Amount.
You have to change your code slightly for each column you want to change
for example for the "Document No" column you would put this:
For Posting Date this:
etc etc
http://www.BiloBeauty.com
http://www.autismspeaks.org
I read this topic, but I couldn't do line color change.
I understand the code, but in case sales line color, where have to write the code?
I couldnt find it!
thx
You have to put the code on every field you want to change - it will not do the whole line in one shot (I Know ](*,) )
the only thing you have to change in the code as you go field by field isto change this part.
CurrForm.Amount.UPDATEFORECOLOR(255); <<-- Use this on the Amount Field
CurrForm."Posting Date".UPDATEFORECOLOR(255); <<--You would alterthe code to this if you are putting on the posting date field
CurrForm."Document Type".UPDATEFORECOLOR(255); <<--You would alterthe code to this if you are putting on the document type field
CurrForm."ETC, etc etc etc".UPDATEFORECOLOR(255);
http://www.BiloBeauty.com
http://www.autismspeaks.org