Create a new "Shape" (as per the "beige" in attain).
Set the "BackColor" to the color you want.
Set "Visible" to NO
Set the "Name" to the color of you have chosen (i.e. Green,Yellow,Red etc...)
Place this new shape OVER the current "beige" setting.
Repeat the above steps for the amount of companies that you have.
then write the following code in the OnAfterGetRecord() trigger:
if COMPANYNAME=A then
Currform.Beige.Visible(True);
if COMPANYNAME=B then
Currform.Green.Visible(True);
if COMPANYNAME=C then
Currform.Yellow.Visible(True);
You must remeber to set the property of the current shape ("Beige") to NO otherwise this will always show.
Thanks for ur Reply but this is not the solution which i am looking for... i had done this already... what i want is that the user would like to change the color of the company as they wish... i mean give them the option of the 9 colors and may be on the company info they can choose it..
Create a new table with an option field for your chosen colors and change the table property "DataPerCompany" to NO....
Create your primary key as "Company"
On whichever trigger you decide to use the code would look something like this....
CompanyColors.Get(COMPANYNAME); //Defined as global to the newly created table
if CompanyColours.Color=beige then
Currform.Beige.Visible(True);
if CompanyColours.Color=Green then
Currform.Green.Visible(True);
if CompanyColours.Color=Yellow then
Currform.Yellow.Visible(True);
Comments
Easiest way I can think of is this:
Create a new "Shape" (as per the "beige" in attain).
Set the "BackColor" to the color you want.
Set "Visible" to NO
Set the "Name" to the color of you have chosen (i.e. Green,Yellow,Red etc...)
Place this new shape OVER the current "beige" setting.
Repeat the above steps for the amount of companies that you have.
then write the following code in the OnAfterGetRecord() trigger:
if COMPANYNAME=A then
Currform.Beige.Visible(True);
if COMPANYNAME=B then
Currform.Green.Visible(True);
if COMPANYNAME=C then
Currform.Yellow.Visible(True);
You must remeber to set the property of the current shape ("Beige") to NO otherwise this will always show.
Hope that helps.
Dean
True :oops: ,
But the delay would not be noticable so i didn't think it mattered too much???
Thanks for ur Reply but this is not the solution which i am looking for... i had done this already... what i want is that the user would like to change the color of the company as they wish... i mean give them the option of the 9 colors and may be on the company info they can choose it..
Cheer's
Prem
Create a new table with an option field for your chosen colors and change the table property "DataPerCompany" to NO....
Create your primary key as "Company"
On whichever trigger you decide to use the code would look something like this....
CompanyColors.Get(COMPANYNAME); //Defined as global to the newly created table
if CompanyColours.Color=beige then
Currform.Beige.Visible(True);
if CompanyColours.Color=Green then
Currform.Green.Visible(True);
if CompanyColours.Color=Yellow then
Currform.Yellow.Visible(True);
Easy
---
My Blog: http://NAV-Magno.be
(unless you want to alllow that some companies has the same color)
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Can anyone tell me how to change the Navigation Panel color on 4.0? Or is there a way to have a different color wallpaper/scheme per company?
Thanks,
Trin
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n