GET_ITEM_PROPERTY

Hello All,
I am trying to get the item NAVIGABLE proeprty value as "if get_item_property('block.item',navigable) = 'TRUE' then
else
end if;
But always I am egtting the property as false for some items. But these items keyboard navigable property set as true, enabled property set as yes and visible proeprty as yes, at the design time. Not any changes in run time.
also I am getting one error "FRM-41805 Ambiguous item name : ........" error for these items. But always I am puting the block name with the item name.
Any suggestion. I am using forms 10g.
Regards
SUN

> I am getting one error "FRM-41805 Ambiguous item name : ........" error for these items. But always I am puting the
block name with the item name.
Are you sure you did everywhere? Search your entire form for the item name, and see how many places it turns up. I'll bet someplace, you left out the block.

Similar Messages

  • Get_item_property(item, x_pos)

    Hi,
    get_item_property(item, x_pos) and set_item_property(item, x_pos, number) works in forms 9.0.4.0.19 correctly. But if I use this one in pll library it does not work. Can you help me?
    get_item_property(item, y_pos) and set_item_property(item, y_pos, number) works in forms and in pll library correctly!

    What do you mean with 'item'? A varchar string, or an object. Go for the latter.
    Regards,
    Martin Malmstrom

  • Visual attribute through get_item_property

    Hi People,
    I use forms 10g.While designing the form I wish to assign VISUAL ATTRIBUTE property for my TEXT_ITEM.So i tried wrinting the following code in WHEN-BUTTON-PRESSED of a push button.The code as follows,
    declare
         vlbl varchar(20);
         vatt varchar(20);
    begin
    vatt:=get_item_property('VA7',visual_attribute);
    vlbl:=     get_item_property(':block3.TEXT_ITEM6',vatt);
         end;But it shows me an error as,
    FRM-40105: Unable to resolve reference to item.
    Pls can u help me how to assign the Visual Attribute through get_item_property.
    With Regards
    VIDS

    I tried the same but I am getting FRM-41011: Undefined Attribute.Yes, because you are trying with the visual attribute group property and as i check the GET_ITEM_PROPERTY help it should have work. But also the same error as you mentions Undefined Attribute.
    I also checked the value returned by get_item_property('VA7',visual_attribute) using message which is 'CUSTOM' Yes, it is returns the CUSTOM either you specify the visual attribute group or not.
    So in this case the GET_ITEM_PROPERTY is returning "the name of a logical attribute defined in the resource file" is what I feel.I guess.
    Any idea how "the name of a named visual attribute" can be obtained.The task as the code is looking can be achieved by the following code.
    DECLARE
      vAttribName VARCHAR2(100);
    BEGIN
      vAN:=GET_ITEM_PROPERTY('ITEM_NAME',CURRENT_RECORD_ATTRIBUTE);
      SET_ITEM_PROPERTY('ITEM_NAME',CURRENT_RECORD_ATTRIBUTE,vAttribName);
    END;So, it will set the current record visual attribute property dynamically by the code.
    Also would like to know about resource file? What is it.Well, did not get experience about this matter. And haven't tried before. But maybe documentation will help.
    -Ammad

  • Using get_item_property to determine if an item is a database item or not

    I have tried using the get_item_property built in to determine if an item is a database item or not and the compiler returns an error... So, I guess that I can't use get_item_property to find this out. Is there any other way?
    Many thanks for any help.

    Yes it is suffisant.
    In this case (forms clearly tells you than this property name does not exists), just type Ctrl-H in forms builder, click the INDEX tab page, enter Get_Item_Property and open the Online-help on this keyword.
    What do you see ?
    1) There is not exists any DATABASE_ITEM property name.
    2) there is a COLUMN_NAME property that do the job.
    Francois

  • GET_ITEM_PROPERTY in QOTLNDET_LINES block

    Hi,
    My requirement is like this, In QOTHDDET form, QOTLNDET_LINES block, whenever i am changing the agreement_name, i want to add a condition in my program to check whether the value got changed or not. for that i tried a condition like GET_ITEM_PROPERTY(FIND_ITEM('QOTLNDET_LINES.AGREEMENT_NAME'),DATABASE_VALUE) to check the database value, but whenever we change the lov its getting the latest lov instead of getting from the database. i tried with system.form_status to check whether it is in 'QUERY' or 'CHANGED' mode. but it is not working properly, even sometimes if i change the lov the record status is in 'QUERY' mode. i can't figure out why it is happening like this. can anybody suggest a workaround for this, as this is a very urgent requirement. please update me on this.
    Thanks,
    ramakrishnan

    I tried a simple EMP test case and read the HIREDATE and this come out ok even with the NLS_DATE_FORMAT set ok (mon-YYYY-dd)
    Can you try in a simple case and see if this reproduces?
    I would also suggest that since this looks like a specific Forms question, you post to the Forms forum where there may be more people
    who can help
    Regards
    Grant Ronald
    Forms Product Management

  • An easy question about GET_ITEM_PROPERTY

    Hello friends at www.oracle.com ,
    how can I obtain the item's initial value by using GET_ITEM_PROPERTY built-in? I couldn't find it even at Oracle documentation.
    Best regards,
    Franklin Gongalves Jr.

    Hello Shay,
    my objective is exactly not to depend on :BLOCK.item := value , because if I change :BLOCK.item initial value, I'd need to seek for each part of the program that contains the assignment we've described.
    I'd rather be making changes in only ONE point of the program - this is a situation where getting item's initial value, instead of assigning it, would be interesting, because if I change its initial value at item's properties, other parts of the program will automatically work with the new initial value, with no need to search the whole program to find where this initial value was set manually.
    And, in my case, the item is really a database item, but it's a situation where obtaining its value from GET_ITEM_PROPERTY ('BLOCK.item', database_value) might not help - sorry but it's quite complicated to explain.
    Thanks, and best regards,
    Franklin Gongalves Jr.
    can't you just do variable=:item_name?
    This will give you the value od the item. Do it at the point of time you need.
    Also if this is a database item, you can check the value in the DB and I think there is a get_item_property property of the db value as well.

  • Forms 10g  get_item_property('item',justification) doesn't work ?

    Hi all,
    This is driving me mad ... I just want the justification (alignment) of the data in an item ... the prompt_text_alignment works but not the , seemingly simple , get_item_property('item',justification); - even though it's there in the help text.
    Is it there ? mis-spelt or called something else ?
    TIA
    Steve

    It was a case of a supported item type - the procedure wouldn't even compile correctlt it didn't recognise the keyword. However, it liked alignment - guess I must have forgotten to try that :) Thanks Andreas!

  • 10gR2 App Server Windows- Get_Item_Property failing

    if Get_Item_Property ( 'block.item_name', 'ENABLED' ) = 'TRUE'
    fails on the application server (FRM-40735). Works fine on OC4J.
    Worked fine on the app server in 10gR1. This is where I had originally put
    this code. It now fails on 10gR2.
    Any ideas?
    Thanks

    And I've been doing forms since 1997.
    Changing it to:
    if Get_Item_Property ( 'block.item_name', ENABLED ) = 'TRUE'
    This solves my problem.
    It'd be easier is the 'ENABLED' just didn't compile. (And I believe it probably happened
    this way in 4.5/5.0).
    if Get_Item_Property ( 'block.item_name', 'ENABLED' )
    = 'TRUE'
    fails on the application server (FRM-40735). Works
    fine on OC4J.
    Worked fine on the app server in 10gR1. This is where
    I had originally put
    this code. It now fails on 10gR2.
    Any ideas?
    Thanks

  • Urgent : get_item_property------bug ???

    I try to use the
    get_item_property('item_name',visual_attribute) to check the visual attribute name, but it returns 'CUSTOM' to me. But my other forms have no problem on using this built-in.
    Using the get_item_instance_property is the same.
    What is the cause of this ?
    Does anyone have any idea about this.
    please help.

    Hi,
    I think that the maybe reason it does not return you the column name (provided that your system.current_item is really what it should at the time of the execution of get_item_property), is that it actually has no column name attribute specified..
    I think that I have sometime commited changes through a block that had not specified column name in its items, and that makes me thinking that maybe forms associate items with columns that correspond to their Name property instead, if they find nothing on Column Name property.
    Anyway, maybe I'm wrong, but make sure the property is not empty cause I think this is the right way of getting the db column name of an item. And make sure your on the right item when get_item_property is called. hth
    regards,
    teo

  • JUSTIFICATION (Get_item_property)

    Can someone tell me how to get justification of text item ? (forms 6i)
    get_item_property('block.text_item1',JUSTIFICATION) doesn't work, probably bug or something ?!

    Dear Friend,
    You are using correct syntax. Why it is not working? Give me what happens and also ur codings.
    JUSTIFICATION Returns the text alignment for text items and display items only. Valid return values are START, END, LEFT, CENTER, RIGHT.
    Correct usage:
    get_item_property('block.text_item1',JUSTIFICATION);
    Regards,
    Senthil .A. Perumal.

  • Urgent: get_item_property(:system.current_item,column_name)

    I try to use the get_item_property(:system.current_item,column_name) to check the column name , but it returns blank...
    Is there any way to get the column name for the item?
    Regards,
    Ashok. C

    Hi,
    I think that the maybe reason it does not return you the column name (provided that your system.current_item is really what it should at the time of the execution of get_item_property), is that it actually has no column name attribute specified..
    I think that I have sometime commited changes through a block that had not specified column name in its items, and that makes me thinking that maybe forms associate items with columns that correspond to their Name property instead, if they find nothing on Column Name property.
    Anyway, maybe I'm wrong, but make sure the property is not empty cause I think this is the right way of getting the db column name of an item. And make sure your on the right item when get_item_property is called. hth
    regards,
    teo

  • Why is Get_Item_Property ('my_item', Canvas_Name) undocumented?

    I found yesterday, that canvas_name is working and it does a very good job in my webforms-environment.
    Is it undocumented, because it is obsolet, it becomes obsolet or is it still forgotten in the doc's ?
    Gerd

    Get_item_property('BLOCK.ITEMX', Item_Canvas ) is documented. You should probably use that instead.

  • Double click and get and store the value in variable.

    Hi,
    My intention is when i double click a particular record on a tabular, i want to capture or store the particular value of record into a variable and call that variable in print/preview button PLSQL code.
    Below i show the screenshot which contain a tabular and print preview button. After populating the data. the user will double click on the agent code LC354 and click the print/preview button it should display report for only the
    agent code of LC354(this is what i want). But normally when i click the print preview button it wil show the report of agent code of LC354 and LC325(this what i dont want).
    http://imageshack.us/photo/my-images/811/printpb.png/
    My problem is how to capture the value((*LC354*)) of particular record after double click the agent code(*LC354*)?
    i tried to store agent code in variable AG_CNT in mouse double click trigger with following plsql code. but it dosent work.
    declare
    AG_CNT varchar2(10);
    begin
    *AG_CNT* :=GET_ITEM_PROPERTY('RFQ_AGENT_DETAILS.AGENT_CODE',CURRENT_RECORD);
    end;after that pass that AG_CNT value in *:AG_CODE*. below code is in print/preview button.
         cursor c1 is select nvl(count(ENQUIRY_NO),0) from scott.EXP_QUOTE_STATUS
         where ltrim(rtrim(upper(job_status))) like 'APPROVED%' and ENQUIRY_NO = :REQ_FOR_QUOT.ENQUIRY_NO
    AND AGENT_CODE=*:AG_CODE* ;how to do this?
    skud.

    Hi skud
    i juast want to store the agent code to variable.if i did get ur point...
    Why don't u just use a simple assign statment for example...
    DECLARE
    V_VALUE  NUMBER;
    BEGIN
    V_VALUE := LC354 ; -- IF it was a value as LC354 static i mean
    -- or u could use any value
    V_VALUE := :ur_form_item_name; --- if it was dynamic
    END;That's it .
    Hope this helps...
    Regards,
    Ammatu Allah.

  • Push button query!!!!!!! help needed

    hello all,
    I HAVE USED THIS LOGIC FOR MAKING THE DATA ASCENDING AND
    DESECENDING,AND TRIED ALL THE
    SOLUTIONS THAT WERE SUPPLIED BY MY FRIENDS IN THIS GROUP,BUT COULD NOT
    CHANGE THE
    VISUAL ATTRIBUTE OF THE BUTTON.I AM REPEATING MY QUERY.I WANT TO HAVE
    THE
    PUSH BUTTON TO SIGNIFY VISUALLY THE ASCENDING AND DESCENDING DATA I.E
    WHEN THE
    DATA COMES IN THE ASCENDING WAY,THE PUSH BUTTON
    SHOULD HAVE A "inverted v"ACC CODE"" ALONG WITH NAME "ACC CODE" I.E IT SHOULD
    LOOK LIKE "ACC CODE "ACC CODE inverted v "
    AND WHEN THE DATA COMES IN THE DESCENDING WAY,THE PUSH BUTTON
    SHOULD HAVE A " v".I.E IT SHOULD
    LOOK LIKE "ACC CODE "ACC CODE' v' ".SO PLZ HELP me TO GET THIS .
    Any changes should be made to nls_lang parameter in registry???????????
    PLZ LET ME KNOW WHAT IS FONT THAT I SHOULD USE.U CAN CHANGE THE CODING
    THAT I HAVE WRITTEN
    IN THE "WHEN BUTTON PRESSED" TRIGGER OF ACC_CODE.
    BEGIN
    go_block('age_tran');
    BEGIN
    IF
    get_item_property('PB_ACC_ORDER',LABEL)='&Acc Code' THEN
    set_block_property('age_tran',order_by,'acc_code ASC');
    execute_query(no_validate);
    SET_ITEM_PROPERTY('PB_ACC_ORDER',LABEL,'&Acc Code'||'
    '||upper(chr(94)));
    ElSIF
    get_item_property('pb_acc_order',LABEL)='&Acc Code'||'
    '||upper(chr(94)) THEN
    Set_block_property('age_tran',order_by,' acc_code DESC');
    execute_query(no_validate);
    SET_ITEM_PROPERTY('pb_acc_order',LABEL,'&Acc Code'||' '||'v');
    ELSE
    Set_block_property('age_tran',order_by,'BALANCE DESC');
    execute_query(no_validate);
    SET_ITEM_PROPERTY('pb_acc_order',LABEL,'&Acc Code');
    END IF;
    END;
    END;
    THANKING U

    Hi Shiju,
    U can use the combination of fornt slash(/) and back slash(\) to fulfil ur requirement.
    For ascending u can use /\ and for descending u can use \/. Does this solve the purpose?
    I think it will.
    Suprabhat.

  • Is it possible to know if an item value has changed

    Hi,
    I'm working on a form and need to know if an item value has changed without compare it with database_value of get_item_property. there is a button <save> on the form and i want to know when user click again and again on button save if this item value has changed. thanks for your ideas.

    Tabit7 - Posted: Apr 9, 2011 12:15 AMbut sometimes in query mode, the item is not navigable and its vallue changed and the prev_value did not work, perhaps the w-n-i-i do not fire>
    If you look up the trigger in the Forms Help system it will tell you if the trigger will fire in Query Mode. The WNII trigger will file in Query Mode where as the Pre-Text-Item trigger does not.
    i try an other way and it seems to work, i put a flag in w-v-i when database_value is different from block value and use this flag in button Save, thanks a lot for your idea it put me in the way. Glad you were able to find a way to resolve your issue. ;-)
    HamidHelal - Posted: Apr 10, 2011 9:27 AM can you please give an example of u'r idea ? >
    First, create a variable that is visible to the entire form. Many people would simply use a GLOBAL variable, but I do not like the limitations of GLOBALs and I don't like the fact that they are visible to the entire Forms sessions, not just my form. I prefer to use a Forms program unit (PU) Package Specification so I can explicitly define the variable data type (eliminates the need to cast the GLOBAL to the correct data type) and the variable only occupies the amount of memory needed to support the variable. Also, when I exit my form, the variable is automatically erased.
    /* Sample Forms PU Package Specification */
    PACKAGE Form_vars IS
       g_prev_val   VARCHAR2(50);
    END Form_vars;No that I've created a variable to store the Previous Value of an Item, I can write code to use it. I will use a Form Level When-New-Item-Instance (WNII) trigger to ensure I capture the value exiting value of the item before any changes.
    /* Sample WNII trigger */
    BEGIN
       Form_vars.g_prev_val := Name_in(:system.trigger_item);
    END;This is a very simple example. There are many other ways to implement this method; such as using the Pre-Text and Post-Text-Item triggers as Abdetu suggested.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

Maybe you are looking for