Changing properties of the grid control  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Changing properties of the grid control

Postby indikad » Tue Nov 10, 2015 4:38 pm

I need to be able to do something like this on Jiwa7 ( as seen on 6513 ) on SalesOrderReadComplete

FormObject.SSMainTabs.Tabs("Notes").Forecolor = vbRed
FormObject.SSMainTabs.Tabs("Notes").ForeColorSource = 1

Any help is apprecaited

and may I add another question related to this type of functionality ?
I need to be able to change the text on the GrdCartage cells ( column 1 cells ) and would appreciate i can get a sample code for that too.
such as in 6513
FormObject.grdCartage.SetText 0,1, "Surcharge"
FormObject.grdCartage.SetText 0,2 , "Freight"
FormObject.grdCartage.SetText 0,3, "Handling"

i need to do that on Jiwa7

[img]
gRDcARTAGE.PNG
gRDcARTAGE.PNG (7.79 KiB) Viewed 2991 times

[/img]
indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2

Re: Changing properties of the grid control  Topic is solved

Postby Scott.Pearce » Fri Nov 13, 2015 10:50 am

indikad wrote:I need to be able to do something like this on Jiwa7 ( as seen on 6513 ) on SalesOrderReadComplete

FormObject.SSMainTabs.Tabs("Notes").Forecolor = vbRed
FormObject.SSMainTabs.Tabs("Notes").ForeColorSource = 1


Code: Select all
salesOrderForm.MainTabControl.Tabs["Notes"].Appearance.ForeColor = System.Drawing.Color.Red; //Remember you can use the "Set Permissions" form to be able to see the names of controls! 


I need to be able to change the text on the GrdCartage cells


Code: Select all
salesOrderForm.grdCartage.ActiveSheet.RowHeader.Cells[0,0].Text = "Freight1"; 
salesOrderForm.grdCartage.ActiveSheet.RowHeader.Cells[1,0].Text = "Freight2";
salesOrderForm.grdCartage.ActiveSheet.RowHeader.Cells[2,0].Text = "Freight3";
Attachments
Plugin Sales Order Tab Forecolor Change and Cartage Grid Headings Change.xml
(31.89 KiB) Downloaded 720 times
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

Re: Changing properties of the grid control

Postby indikad » Thu Nov 19, 2015 3:59 pm

Thanks!
I like the code - (though cannot use the text strings on live.)
will try them and update.
indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 2 guests