Changing colour of line depending on product

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

Re: Changing colour of line depending on product

Postby Scott.Pearce » Mon Sep 21, 2020 11:26 am

Put this in the "Form GridLines Displayed" breakout section:

Code: Select all
If FormObject.GridManager.GridText(FormObject.grdLines, "PartNo", Row) = "1171" Then
    FormObject.grdLines.Col = -1
    FormObject.grdLines.Col2 = -1
    FormObject.grdLines.Row = Row
    FormObject.grdLines.Row2 = Row
    FormObject.grdLines.ForeColor = vbBlue
End If


Note. The SalesOrderLineObject that is passed in to that breakout point is Nothing for me, which is why I'm using the grid object to get the part no. Must be an old bug.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230

Return to Technical / Programming

Who is online

Users browsing this forum: No registered users and 4 guests