• DISPLAY_ITEM built-in in Oracle D2k Forms


    DISPLAY_ITEM built-in in Oracle D2k Forms

    Description
    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;
  • 相关阅读:
    Python基础语法精讲
    使用xlwt 库将数据导入为Excel 表格
    统计指定目录下所有mp4文件的时长(包含子目录下的文件)
    获取一个目录下所有文件(完整路径,要借助os.path.join()方法)
    中国参与MOOC 建设的大学有多少所?
    蒙特卡洛方法应用
    手欠,起了一卦,看那房子的风水,悲剧了
    好无聊,大半夜地找了份传世服务端源码,编着玩
    昨晚房屋的风水
    上午,写了个小东西
  • 原文地址:https://www.cnblogs.com/quanweiru/p/6220327.html
Copyright © 2020-2023  润新知