Page 2 of 3
Re: Forecolor in grid displays the records alternating color
Posted: Fri Apr 23, 2010 3:18 pm
by Rathinagiri
The DynamicBackColor in third column of the browser, expects a block which returns an array of color codes. You have given block which returns again a block instead of an array of color codes. ie., you have nested two blocks which is an error here.
Re: Forecolor in grid displays the records alternating color
Posted: Fri Apr 23, 2010 3:53 pm
by Czarny_Pijar
rathinagiri wrote:
Code: Select all
DYNAMICBACKCOLOR { bckColor, bckColor, { || If( g_existotal < 0, { 255, 0, 0 }, If( RecNo() % 2 == 0, { 255,255,255 } , { 244,244,244 } ) ) } } ;
DYNAMICFORECOLOR { bckFore , bckFore , { || If( g_existotal < 0, { 255, 255, 255 }, {0,0,0} ) } } ;
I think that is an important example, and it should be placed in the Samples.
How about a missing Grid.13 ?

Re: Forecolor in grid displays the records alternating color
Posted: Sat Apr 24, 2010 8:44 pm
by jparada
Hi,
Thanks for explanation Rathinagiri, now I understand.
Best Regards
Javier
Re: Forecolor in grid displays the records alternating color
Posted: Sun Dec 05, 2010 12:31 pm
by nguyenchiduc
Use the color will be very helpful when sorting objects according to the work. Combined with the
COMBOBOX would be great.
I recently switched to HMG, the characteristics of the
BROWSE and
GRID very helpful
Code: Select all
/* DYNAMICFORECOLOR */
PRIVATE mau_chu := { || if ( alltrim(khongma_tho->xu_ly) == 'YES' .OR. alltrim(khongma_tho->ma) == 'OK', {255,255,255}, if ( alltrim(khongma_tho->xu_ly) == 'XOA' , {255,255,255}, if ( alltrim(khongma_tho->xu_ly) == 'LAP_MA' , {0,0,255}, if ( alltrim(khongma_tho->xu_ly) == 'D_HANH' , {255,0,0},{0,0,0})))) }
/* DYNAMICBACKCOLOR */
PRIVATE mau_nen := { || if ( alltrim(khongma_tho->xu_ly) == 'YES' , {0,0,255}, if ( alltrim(khongma_tho->xu_ly) == 'XOA' , {0,0,0},if ( alltrim(khongma_tho->ma) == 'OK',{255,0,0},{255,255,255} ))) }
<Screen Shots were removed because URLs not active anymore>
Re: Forecolor in grid displays the records alternating color
Posted: Sun Dec 05, 2010 6:00 pm
by sudip
Yes HMG is a great software tool

Your screenshots are also fantastic

Well done friend

Re: Forecolor in grid displays the records alternating color
Posted: Fri Dec 10, 2010 8:40 am
by nguyenchiduc
sudip wrote:Yes HMG is a great software tool

Your screenshots are also fantastic

Well done friend

thank you!
I do not want fancy, showy, but I have to analyze data with many tables at once. With a table has thousands of records and the key (customer, number, object ...). Colors will help me to quickly sort and limit mistakes.
Use the command:
SET FILTER TO something...
combined with
DYNAMICFORECOLOR and
DYNAMICBACKCOLOR in GRID will help me in analyzing data
Re: Forecolor in grid displays the records alternating color
Posted: Thu Mar 05, 2015 12:47 am
by Pablo César
Czarny_Pijar wrote:rathinagiri wrote:jparada wrote:Hi,
After getting that negative numbers are deployed with the color red (Thanks again Roberto).
Now I also like to do the same with DynamicBackColor property, and I try to do exactly as I do with the property DynamicForeColor, but I could not do it.
I attached image about the error that I am getting, please take a look, and also attach a small example, please take a look too.
Please can someone tell me how to fix it?
Thanks
Best Regards
Javier
Hi Javier,
Change the two lines (33,34) with this...
Code: Select all
DYNAMICBACKCOLOR { bckColor, bckColor, { || If( g_existotal < 0, { 255, 0, 0 }, If( RecNo() % 2 == 0, { 255,255,255 } , { 244,244,244 } ) ) } } ;
DYNAMICFORECOLOR { bckFore , bckFore , { || If( g_existotal < 0, { 255, 255, 255 }, {0,0,0} ) } } ;
I think that is an important example, and it should be placed in the Samples.
How about a missing Grid.13 ? 
I made some corrections, some are for Grid propose and others which have not working.

- Screen1.png (28.32 KiB) Viewed 2968 times
- GRID_13.rar
- Source files
- (3.32 KiB) Downloaded 189 times
- demo.rar
- Executable file
- (1.16 MiB) Downloaded 226 times
I hope you enjoy it !

Re: Forecolor in grid displays the records alternating color
Posted: Thu Mar 05, 2015 5:12 pm
by Javier Tovar
Excelente Pablo César,
Saludos
Forecolor in grid displays the records alternating color
Posted: Thu Mar 05, 2015 5:47 pm
by Pablo César
Thank you Javier, for your kind words.
Reserved merits to Javier Parada

Re: Forecolor in grid displays the records alternating color
Posted: Thu Mar 05, 2015 7:05 pm
by EduardoLuis
Hi Pablo:
As allways your contributions are exellent.-
Thanks for share with all of us.-
With regards. Eduardo