Friday, March 27, 2009

Tip for beginners

If you want to make property of a check box disabled and enabled according to situations then pls try this:
first disable the check box by using
set_item_property('BLOCK.ITEM',enabled,property_false);
then when u want to enable that use as shown below
set_item_property('BLOCK.ITEM',enabled,property_true);
set_item_property('BLOCK.ITEM',update_allowed,property_true);

otherwise it will not allow you to update the checkbox status.


Bency J Mathew
s/w engineer
TRASSET INDIA

1 comment:

  1. I'm new to Oracle Forms 10g.
    When I create a data block based on a table using Data Block Wizard, the block's Query Data Source Columns property is automatically populated with column definition entries corresponding to the columns of the base table.
    I tried making changes to these entries, for example by changing the data types to wrong data types or even deleting them, and I found that those changes had no effect on the block at all. The form was still working as I wanted.
    Please explain what is exactly the role of the block's Query Data Source Columns property.

    Thank you very much.

    p.s: The F1 key help says "The Query Data Source Columns property is valid only when the Query Data Source Type property is set to Table, Sub-query, or Procedure". So, please explain in each context of Query Data Source Type.

    ReplyDelete