Hi,
Thanks for any help
I use 2forms 1st calls the 2nd (not formset) , 2nd contains a grid in which I use colors according to the conditions below but the conditions all are not checked only the last one was cheched,I do not know in which evenement using this program for the moment I have use it in evenement the before and afterrowcolumnchange:
[Do case
Case article.qut_stk=0 and article.qut_conf>0
Thisform.grid1.SetAll("dynamicforecolor", ;
"IIF(article.qut_stk=0 and article.qut_conf>0, RGB(255,255,255), RGB(0,0,0))", "Column"
Thisform.grid1.SetAll("dynamicbackcolor", ;
"IIF(article.qut_stk=0 and article.qut_conf>0, RGB(145,72,72), RGB(255,255,255))", "Column"
Case article.qut_stk>0 and article.flag1=3
Thisform.grid1.SetAll("dynamicforecolor", ;
"IIF(article.qut_stk>0 and article.flag1=3, RGB(255,255,255), RGB(0,0,0))", "Column"
Thisform.grid1.SetAll("dynamicbackcolor", ;
"IIF(article.qut_stk>0 and article.flag1=3, RGB(187,119,119), RGB(255,255,255))", "Column"
Case article.qut_stk>0 and article.flag1=2
Thisform.grid1.SetAll("dynamicforecolor", ;
"IIF(article.qut_stk>0 and article.flag1=2, RGB(255,255,255), RGB(0,0,0))", "Column"
Thisform.grid1.SetAll("dynamicbackcolor", ;
"IIF(article.qut_stk>0 and article.flag1=2, RGB(255,102,102), RGB(255,255,255))", "Column"
Case article.qut_stk>0 and article.flag1=0
Thisform.grid1.SetAll("dynamicforecolor", ;
"IIF(article.qut_stk>0 and article.flag1=0, RGB(255,255,255), RGB(0,0,0))", "Column"
Thisform.grid1.SetAll("dynamicbackcolor", ;
"IIF(article.qut_stk>0 and article.flag1=0, RGB(0,0,0), RGB(255,255,255))", "Column"
Endcase]
Thanks for any help
I use 2forms 1st calls the 2nd (not formset) , 2nd contains a grid in which I use colors according to the conditions below but the conditions all are not checked only the last one was cheched,I do not know in which evenement using this program for the moment I have use it in evenement the before and afterrowcolumnchange:
[Do case
Case article.qut_stk=0 and article.qut_conf>0
Thisform.grid1.SetAll("dynamicforecolor", ;
"IIF(article.qut_stk=0 and article.qut_conf>0, RGB(255,255,255), RGB(0,0,0))", "Column"
Thisform.grid1.SetAll("dynamicbackcolor", ;
"IIF(article.qut_stk=0 and article.qut_conf>0, RGB(145,72,72), RGB(255,255,255))", "Column"
Case article.qut_stk>0 and article.flag1=3
Thisform.grid1.SetAll("dynamicforecolor", ;
"IIF(article.qut_stk>0 and article.flag1=3, RGB(255,255,255), RGB(0,0,0))", "Column"
Thisform.grid1.SetAll("dynamicbackcolor", ;
"IIF(article.qut_stk>0 and article.flag1=3, RGB(187,119,119), RGB(255,255,255))", "Column"
Case article.qut_stk>0 and article.flag1=2
Thisform.grid1.SetAll("dynamicforecolor", ;
"IIF(article.qut_stk>0 and article.flag1=2, RGB(255,255,255), RGB(0,0,0))", "Column"
Thisform.grid1.SetAll("dynamicbackcolor", ;
"IIF(article.qut_stk>0 and article.flag1=2, RGB(255,102,102), RGB(255,255,255))", "Column"
Case article.qut_stk>0 and article.flag1=0
Thisform.grid1.SetAll("dynamicforecolor", ;
"IIF(article.qut_stk>0 and article.flag1=0, RGB(255,255,255), RGB(0,0,0))", "Column"
Thisform.grid1.SetAll("dynamicbackcolor", ;
"IIF(article.qut_stk>0 and article.flag1=0, RGB(0,0,0), RGB(255,255,255))", "Column"
Endcase]