Home | Articles | Oracle Forms | Built In Routines | DISPLAY_ITEM built-in Oracle Forms

DISPLAY_ITEM built-in Oracle Forms

By
Font size: Decrease font Enlarge font

Maintained for backward compatibility only. For new applications, you should use the SET_ITEM_INSTANCE_PROPERTY built-in. DISPLAY_ITEM modifies an item’s appearance by assigning a specified display attribute to the item. DISPLAY_ITEM has the side-effect of also changing the appearance of any items that mirror the changed instance. SET_ITEM_INSTANCE_PROPERTY does not change mirror items.

You can reference any item in the current form.
Any change made by a DISPLAY_ITEM built-in is effective until:

  •     the same item instance is referenced by another DISPLAY_ITEM built-in, or
  •     the same item instance is referenced by the SET_ITEM_INSTANCE_PROPERTY built-in (with VISUAL_ATTRIBUTE property), or
  •     the instance of the item is removed (e.g., through a CLEAR_RECORD or a query), or
  •     you modify a record (whose status is NEW), navigate out of the record, then re-enter the record, or
  •     the current form is exited

Syntax

PROCEDURE DISPLAY_ITEM(item_id    ITEM,attribute    VARCHAR2);

PROCEDURE DISPLAY_ITEM(item_name    VARCHAR2,attribute    VARCHAR2);

Built-in Type  unrestricted procedure

Enter Query Mode  yes

Parameters

item_id    Specifies the unique ID that Form Builder assigns to the item when it
creates the item.  The data type of the ID is ITEM.
item_name    Specifies the VARCHAR2 string you gave to the item when you created it.
attribute    Specifies a named visual attribute that should exist.  You can also specify a

valid attribute from your Oracle*Terminal resource file. Form Builder will search for named visual attribute first. Note: You can specify Normal as a method for applying the default attributes to an item, but only if your form does not contain a visual attribute or logical (character mode or otherwise) called Normal. You can also specify NULL as a method for returning an item to its initial visual attributes (default, custom, or named).

DISPLAY_ITEM examples
/***
Built-in:    DISPLAY_ITEM
Example:   Change the visual attribute of each item in the   current record.
*/

DECLARE
cur_itm    VARCHAR2(80);
cur_block VARCHAR2(80) := :System.Cursor_Block;
BEGIN
cur_itm    := Get_Block_Property( cur_block, FIRST_ITEM );
WHILE ( cur_itm IS NOT NULL ) LOOP
cur_itm := cur_block||’.’||cur_itm;
Display_Item( cur_itm, ’My_Favorite_Named_Attribute’);
cur_itm := Get_Item_Property( cur_itm, NEXTITEM );
END LOOP;
END;

Subscribe to comments feed Comments (22 posted)

avatar
ali 29/05/2018 05:03:39
nice jaan
avatar
essay services review 29/05/2018 14:37:18
In computer we need to the many information and software. Its helpful and useful to do any thing on it. Here is best post about it and we should read it because it better way to know every thing about to know of computer education.
avatar
Blue Leather Jacket 16/07/2018 14:55:48
I think that you are waiting for the best holidays that’s why show the happiness in your eyes. You can write my research paper and then I am solve your this problem if you are interested in this offer then contact me.
avatar
uk assignment 16/07/2018 15:53:07
I am very impress to reading the whole content of in the blog. In the blog is very helpful for the new visitor. In the blog is very helpful for me. Thanks for sharing in the information.
avatar
cheap christian louboutin shoes 18/10/2018 07:54:50
You can also specify NULL as a method for returning an item to its initial visual attributes.
avatar
can someone do my essay for me 16/07/2018 16:20:49
Having some good friends is a great blessing of God. It is very good that you are looking forward for some new friends I hope you will be able to make new friends soon. I also have less friends and will make some new friends in future.
avatar
do my assignment for me 16/07/2018 16:39:57
I have read your article; it is very informative and helpful for me. I admire the valuable information you offer in your articles. I am really liked it.
avatar
car services 16/07/2018 16:40:39
It’s fascinating to peruse what other individuals thought and how it identifies with them or their customers, as their point of view could help you later on.
avatar
essay writing 23/07/2018 11:42:04
I am sure that the information for understanding the depression that you shared through your post is useful for people. I am impressed with the way of writing. It kept connected me all the time. Keep up the good work.
avatar
writing help uk 23/07/2018 11:43:14
Once these products are being launched in this website it is going to be worth of getting them for personal use. If you are having more products to be shared on this website I am sure to get them easily.
avatar
assignment writing help 04/08/2018 18:51:45
Block is a single tool for grouping relevant items into a working system for storing, performing and forming reports.
1 2 next total: 20 | displaying: 1 - 10

Post your comment

  • Bold
  • Italic
  • Underline
  • Quote

Please enter the code you see in the image:

Captcha
  • Email to a friend Email to a friend
  • Print version Print version
  • Plain text Plain text

Tagged as:

No tags for this article

Rate this article

0