anumoses
asked on
Oracle forms query
I have a code that sets values in the fields.
If v_load_drive_details_rec.t otal_drive s > c1_rec.crew then
set_item_property(v_item_n ame3_c, VISUAL_ATTRIBUTE, 'VA_RED');
End if;
Its putting the color on all the fileds. But I wanted this only if the condition is satisfied. I have enclosed the picture for the one that needs to be color.
Help is appreciated.
code.txt
print-screen.JPG
expected.JPG
If v_load_drive_details_rec.t
set_item_property(v_item_n
End if;
Its putting the color on all the fileds. But I wanted this only if the condition is satisfied. I have enclosed the picture for the one that needs to be color.
Help is appreciated.
code.txt
print-screen.JPG
expected.JPG
I think you need to use: "set_item_instance_propert y" instead of "set_item_property". The difference is: "set_item_property" will affect all records in a multi-record block, while "set_item_instance_propert y" will only affect one one record (the current record).
ASKER
If v_load_drive_details_rec.t otal_drive s > c1_rec.crew then
set_item_instance_property (v_item_na me3_c, CURRENT_RECORD,VISUAL_ATTR IBUTE, 'VA_RED');
End if;
Did not work.
set_item_instance_property
End if;
Did not work.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've requested that this question be deleted for the following reason:
None of the answers helped me. Please delete the question
None of the answers helped me. Please delete the question
What "Did not work"? The "set_item_instance_propert y" command will do exactly what you asked for, if I understood your question correctly. I think your question is basically: "how can I change the background color for one field (item) of just one record in a multi-record block"?