Question : Oracle Form 4.5 Update Allowed Problem

Is it possible to set Update Allowed to False

SET_BLOCK_PROPERTY (ObjID_Pack.vk_follow_up_blk, UPDATE_ALLOWED, PROPERTY_FALSE);

but set one field to update allowed?

Because I do not want to disable EACH field.......

e.g. if I have a block MY_BLOCK contains the following fields
FIELD_ONE
FIELD_TWO
FIELD_THREE
FIELD_FOUR
FIELD_FIVE

In some circumstances, I may set MY_BLOCK's UPDATE_ALLOWED to FALSE
but set FIELD_THREE's UPDATE_ALLOWED to TRUE

but user is unable to enter any value in the FIELD_THREE

anyone can help?

Answer : Oracle Form 4.5 Update Allowed Problem

In Oracle Forms the hierarchy looks like this:
block -> item

So in this case the whole block except FIELD_THREE can be updated:
SET_BLOCK_PROPERTY ('MY_BLOCK', UPDATE_ALLOWED, PROPERTY_TRUE);
and
SET_ITEM_PROPERTY ('MY_BLOCK.FIELD_THREE', UPDATE_ALLOWED, PROPERTY_FALSE);

In this case the whole block cannot be updated:
SET_BLOCK_PROPERTY ('MY_BLOCK', UPDATE_ALLOWED, PROPERTY_FALSE);
and
SET_ITEM_PROPERTY ('MY_BLOCK.FIELD_THREE', UPDATE_ALLOWED, PROPERTY_TRUE);
This is why an user is unable to enter a value in the FIELD_THREE.
Random Solutions  
 
programming4us programming4us