Change Colour on Sales Order depending on warehouse

Discussions relating to breakout scripting, .NET and COM programming with Jiwa objects.

Change Colour on Sales Order depending on warehouse

Postby aegean66 » Thu Sep 10, 2015 8:50 pm

Is there a way to change the colour on a sales order to make it obvious which warehouse you are in. (similar to how credits are red)

eg:

if SalesOrderOnject.LogicalID = "ASDGADFGFG" then

Make SalesOrderColour = blue

Else
End if
aegean66
Occasional Contributor
Occasional Contributor
 
Posts: 36
Joined: Wed Mar 02, 2011 2:26 pm
Location: Usa
Topics Solved: 2

Re: Change Colour on Sales Order depending on warehouse

Postby Scott.Pearce » Wed Sep 16, 2015 5:01 pm

You could do something like this in Form Loaded:

Code: Select all
If SalesOrderObject.LogicalID = "ZZZZZZZZZZ0000000000" Then
   FormObject.SSPanelSalesOrder.BackColor = &H00008000&
End If
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: Change Colour on Sales Order depending on warehouse

Postby aegean66 » Wed Sep 16, 2015 8:51 pm

Perfect. Thanks Scott for that.

What other properties does the FormObject have? how can I find this info?

Also the text and/or background colours on each sales order line?

cheers
Damon.
aegean66
Occasional Contributor
Occasional Contributor
 
Posts: 36
Joined: Wed Mar 02, 2011 2:26 pm
Location: Usa
Topics Solved: 2


Return to Technical / Programming

Who is online

Users browsing this forum: No registered users and 2 guests