Set item property

Dear All
Any one tell me. Can i use
SET_ITEM_PROPERTY('ALLAWANCES.TXT_TEST', VISIBLE, PROPERTY_TRUE);
in when list change trigger
thanks in advance
Regards,

Look up Set_item_property in the on-line help, at the very bottom, the section titled "Propagation of Property Changes". When you set Visible to false, Forms also sets these False: Enabled, Navigable, Queryable, Updateable and Update_Null.
So along with setting Visible to True, you also should set Enabled=True, Navigable=True, Queryable=True and Updateable=True, in that order.

Similar Messages

  • Set item property to false and true

    when i set item to false and then set item property to true. The item is displayed but its gray out and not enabled. Am i missing something
    Set_Item_Property('PUSH_BUTTON_SAVE',VISIBLE,PROPERTY_FALSE);
    and then
              Set_Item_Property('PUSH_BUTTON_SAVE',VISIBLE,PROPERTY_TRUE);

    Check the Forms online help on Set_Item_Property, near the bottom in the usage notes. Lots of things happen when you set visible to False:
    Setting DISPLAYED to False:
      sets the Enabled and Navigable item properties to False
      sets the Updateable item property to False
      sets the Update_Null item property to False
      sets the Required item property to False
      sets the Queryable item property to False
    So you may need to set more of them back to true in your code when you want to make it re-display.

  • Gettng item property - prompt visual attribute

    have set the prompt visual attribute to 'ACTIVE_COL'
    SET_ITEM_PROPERTY ('TEST',PROMPT_VISUAL_ATTRIBUTE, 'ACTIVE_COL')
    but when I try to get the value back it return 'CUSTOM'
    GET_ITEM_PROPERTY ('TEST',PROMPT_VISUAL_ATTRIBUTE)
    Why???

    I have overcome this problem by setting item property in form design to 'ACTIVE_COL' then change it back to 'DEFAULT'
    it works fine.

  • Item property

    hi can someone help me !!!
    I have some 100 records in a table.I have created a form to display these records.
    Now say I want the records with the previous years 2005-06 to be shown in the form as greyed out or not enabled but visible.At the same time the records with the year 2007-08 in the same form should be highlighted.
    please let me know how to use the set item property or set item instance property for the above records.
    Thanks

    When I put this trigger in Post query
    all the records are disabled.
    the current year record to be enabled.
    Please suggest it is urgent.
    Post Query:
    if :mhr_expenses.exp_fyear = '2005-06' then
         set_item_property('exp_fyear',enabled,property_false);
         set_item_property('exp_slno',enabled,property_false);
         set_item_property('exp_particulars',enabled,property_false);
         set_item_property('exp_value',enabled,property_false);
    elsif :mhr_expenses.exp_fyear = '2007-08' then
         set_item_property('exp_fyear',enabled,property_true);
         set_item_property('exp_slno',enabled,property_true);
         set_item_property('exp_particulars',enabled,property_true);
         set_item_property('exp_value',enabled,property_true);
    end if;

  • Set Synchronize with Item property at runtime in Forms

    Hi,
    We have a requirement to set the "sychronize with item" property to null for one of the fields of seeded form during run time (this is to avoid modifying the seeded form which has the synchronize property of field A set to field B. We are planning to do this change in CUSTOM.PLL). I couldn't find any property in "APP_ITEM_PROPERTY2.set_property" which can suffice my requirement. I am working on Forms 10g.
    Please let me know if anybody has worked on similar requirement.
    Thanks,
    Shree

    Hello.
    You can perform this by using:
    set_tab_page_property('Tab_page_name', label,'your_desire_label');
    and for item set_item_property.
    More details on these built-ins and also some example can be found in Forms Builder Help.
    Regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • FRM-41390:  Cannot set REQUIRED property of subordinate mirror item

    hi,
    this is sathish,
    i have customized the oracle apps shipping transaction form, in this form i am calling the 10g report every thing is working fine but,when i open the form at that time it is showing the ERROR "FRM-41390: Cannot set REQUIRED property of subordinate mirror item"
    can any one suggest me how to slove this.
    tahnks,

    The first question is do you know what the error message means?
    It seems to be saying that you have a mirrored item, ie a field that it set to mirror the value of another. The error seems to indicate that it is not happy for this mirror item to have the required property set.
    If you know this already, then sorry for the explanation, but you did not make it clear in the post.
    I suggest to search for mirror items and see what properties they have, also see if you have a set_item property on said item that makes it required. I'm not sure from your description whether this happens at startup or after some event in the form.
    rgds

  • Forms 10g : How to set the Database Item property for an item dynamically ?

    Hello all,
    I have a requirement where I need to set the database item property of an item to TRUE/FALSE
    dynamically at runtime based on certain conditions.
    Earlier, in forms 6i I've used,
    Set_Item_Property (<item_name>, DATABASE_ITEM, PROPERTY_TRUE);
    But in Forms 10g it doesn't recognize this Database_Item property and gives a compilation error.
    Have I overlooked something or has this property become obsolete in Forms 10g ?
    If obsoleted what is the replacement property ?
    Regards,
    Sam

    Some options:
    1. Create a database-view, including the "real" column in databases where it exists and a "dummy"-column in databases where it doesn't exist.
    If that's not possible,
    2. set database="No" for your item and
    -- create a POST-QUERY-trigger which reads the data for that column from the database, if the column exists, and
    -- create a ON-UPDATE-trigger which includes an
    UPDATE_RECORD;
    UPDATE THETABLE SET
      THECOLUMN=thevalue
    WHERE  ROWID=:THEBLOCK.ROWID;3. Base your block on either a select-from-clause, a ref-cursor or a procedure to adjust he query-part,, for saving use a procedure.

  • How to set the item property to restrict the user to not to copy from above

    Hi Guru's,
    I have a requirement like, There were two items on the form name email Id, Confirm email Id.
    I have to ristrict the user to not to copy from email Id item.. make him/her to enter the value into confirm email id item field manually.
    How to set the item property to restrict the user to not to copy from above item and paste it in this item.
    Please help.
    Thanks!!

    Just an opinion here, but that is about the dumbest requirement I have ever seen.
    I am always annoyed by web sites that ask me to enter my email twice. I ALWAYS copy the email address from the original entry and paste it into the second one.
    People enter their email addresses so often, it takes a real klutz to not get it right. And what makes you think that if they enter it twice, that they won't enter it wrong both times anyway???

  • Why SAP B1 set all form item property of "Enabled" to true automatically?

    When I set some items property of "Enabled" to false in a user define form in the form load event.
    But now I click some editable item and type some thing in the edit text bar, I see all of uneditble item suddenly can be edit. It's not convenient, means we need to more coding work about this.

    Hi Alan,
    you may set the Form Property
    oForm.AutoManaged =False
    If it's True all item visible/enabled-propertys are dependent to form mode and they're always switching back to their defined state when the mode changes.
    If you want to use the oForm.AutoManaged =True then you can define exactly the behavior of the items in each mode:
                Dim modeMaskFind As Integer
                Dim modeMaskOk As Integer
                Dim modeMaskAdd As Integer
                Dim colUid As String
                Dim oCbx As SAPbouiCOM.ComboBox
                oForm.AutoManaged = True
                oForm.SupportedModes = _
                         SAPbouiCOM.BoAutoFormMode.afm_Ok Or _
                         SAPbouiCOM.BoAutoFormMode.afm_Add Or _
                         SAPbouiCOM.BoAutoFormMode.afm_Find
                modeMaskFind = SAPbouiCOM.BoAutoFormMode.afm_Find
                modeMaskOk = SAPbouiCOM.BoAutoFormMode.afm_Ok
                modeMaskAdd = SAPbouiCOM.BoAutoFormMode.afm_Add
               With oForm.Items
                    .Item("CBX_YEAR").SetAutoManagedAttribute( _
                           SAPbouiCOM.BoAutoManagedAttr.ama_Editable, modeMaskAdd, _
                           SAPbouiCOM.BoModeVisualBehavior.mvb_True _
                    ) ' editable in AddMode
                     .Item("CBX_YEAR").SetAutoManagedAttribute( _
                             SAPbouiCOM.BoAutoManagedAttr.ama_Editable, modeMaskFind, _
                             SAPbouiCOM.BoModeVisualBehavior.mvb_False _
                     ) ' NOT editable in FindMode
                    .Item("CBX_YEAR").SetAutoManagedAttribute( _
                           SAPbouiCOM.BoAutoManagedAttr.ama_Editable, modeMaskOk,  
                           SAPbouiCOM.BoModeVisualBehavior.mvb_True _
                     ) ' editable in OKMode
                    .Item("CBX_YEAR").AffectsFormMode = True
                End With
    Cheers,
    Roland

  • Check box Item property in mutiple record block

    Hi,
    I have migrated a number of forms from 6i to 10g. All seems to be working apart from a problem with the display of check boxes that are part of a multiple record block. The item property for the checkbox has font weight set to bold and this works fine on the 6g version. On the 10g version it is displayed as normal font weight.
    Any other items in the record, text items etc are displayed in bold correctly.
    As this seems to affect a lot of forms is there some patch/fix that I should have applied or is this just the way it is?
    I am trying to use set_item_instance_property to set them manually but that doesn't seem to make any difference.
    Thanks in advance and Happy Christmas/New Year.

    Problem solved following response from Oracle support desk -
    UPDATE
    ======
    Hi Dave,
    When using lookandfeel=generic, the colors for different Windows items (e.g., menu, check
    box, window background ...etc) are taken directly from the Operating System
    (OS) user settings. I tested the issue with lookandfeel=oracle and with
    colorScheme set to different values, and check box tick in this case takes the
    same color as the color scheme used.
    I suggest then using dark color scheme to give you a similar effect as it was in Forms 6i. for example:
    colorScheme=Titanium

  • Item property : Update allowed: No

    I have created a tabular form. Due to the fact that it is not possible to record the primary key manually, i have create a fake primary key on field 'ID'. The field 'StatusID' has now a unique constraint in the database. Also the foreign keys refer to the field 'StatusID'.
    I want to prevent updating the field 'StatusID'. In Oracle Forms this was very easy.
    You can set the item property Update allowed : NO.
    But how can I implement this in an APEX tabular form?
    Regards,
    Johan Brouwer

    Leo,
    It's a tabular form. The field StatusID can be recorded manual.
    When a StatusID has been created, it's not allowed to change it anymore.
    If you use "display as text, save state", you are also not able to insert the data in that field.
    So if a record has been created, then it's not allowed to change the field anymore.
    In oracle forms, this was very easy. You could set the insert_allowed property on YES and the update_allowed property on NO. I'll want to built the same functionality in the tabular form.
    Regards,
    Johan

  • DTW - setting item properties

    Hello,
    I've been trying to get this to work and I think I have tried most of the obvious options. I'm trying to set an item property (QryGroup1) in the OITM table and the DTW is giving me an error no matter what I try. So here's what I've done and hopefully someone can point me in a new direction.
    In my template (Items.xlt), in the Properties1 field (which I'm almost positive maps to the QryGroup1 field in the table), I have tried inputting "Y", "Yes", "1", and "tYes". None of those have worked. I've also tried changing the template column header to 'QryGroup1' just for the heck of it. The error I've gotten is " '' is not a valid value for field 'QryGroup1'. The valid values are: 'Y' - 'Yes', 'N' - 'No'Application-defined or object-defined erroroItems". I don't know really what else to do since I've already tried the values it has suggested to me with no luck. It's just weird that it doesn't even include what I have in my template in the error message either (it just puts a blank in as the invalid value).
    That's pretty much it. I'm hoping that somebody out there knows what's going on. I have a little over 1300 items to flag this property on and would rather not do it manually. I figured this would be pretty straightforward to do (since all of my other times using DTW have worked fine) but obviously not. I'm using SBO 2005A SP1 PL31, DTW version 2005.0.17, API version 6.80.319 (this is from inside DTW).
    Thanks in advance for any help,
    Brent McDonell

    Hi Gordon,
    That worked. I didn't think the field was case-sensitive. So I had tried it as 'tYes' and not 'tYES' (which is why it didn't work initially). I definitely do think I was making it harder on myself now that I know it was just a problem with upper-case vs. lower-case. Thank you very much for your help.
    Brent

  • Why the "Synchronize with Item" property don't save?

    I created that table :-
    create table syn (col1 number , col2 number);
    and in forms 6i ..... I determinate col1 as the value for "Synchronize with Item" .
    http://img169.imageshack.us/img169/6258/synar6.png
    and when I test it in runtime , it work correctly and after I saved the data and get out of forms and went to database to ensure the data existing ... I surprised that the data in col2 not existing at all .... wholly empty
    SQL> select*from syn;
    COL1 COL2
    1
    2
    3
    4
    5
    6
    7
    8
    8 rows selected.
    why the item (COL2) don't save the data that inserted into it automatically by "Synchronize with Item" property ????

    i should use copy property not Synchronize ?That's meant for copying values from master to detail, so it would probably not work as you want within the same record. I think you should set the value of the secondary item in pre-insert and pre-update triggers, depending on what you're actually trying to accomplish?

  • Set trigger property using JDAPI

    Hi.
    I have a couple of forms I need to modify using JDAPI. Among others I need to set trigger property "Fire in enter query mode" from no to yes. But I just cant find the way how to do this.
    Any help would be appreciated.
    Gregor

    This help may have some info..
    http://www.oracle.com/webapps/online-help/forms/10g/
    Please expand the "Programming Oracle Forms with JDAPI" item and look inside.
    http://www.oracle.com/webapps/online-help/forms/10g/state/content/navId.3/navSetId._/vtTopicFile.jdapi%7Cjdapi_subclassobjprops~html/vtTopicId./

  • Set ENABLE property

    In my form I have a list item which ENABLE property is set to FALSE.I want to set this property to TRUE if value of another list item is 'File'.I writed this in WHEN-NEW-ITEM-INSTANCE trigger :
    BEGIN
    IF LTRIM(RTRIM(:P_3))='File' THEN
    SET_ITEM_PROPERTY('P_4',ENABLED,PROPERTY_TRUE) ;
    END IF;
    END;
    but did'nt work.
    Please help me!

    You can try to put your code in POST-TEXT-ITEM trigger of P_3.
    If it does not help then also add to your code:
    BEGIN
    IF LTRIM(RTRIM(:P_3))='File' THEN
    -- add this
    SET_ITEM_PROPERTY('P_4',INSERT_ALLOWED,PROPERTY_TRUE) ;
    SET_ITEM_PROPERTY('P_4',UPDATE_ALLOWED,PROPERTY_TRUE) ;
    SET_ITEM_PROPERTY('P_4',ENABLED,PROPERTY_TRUE) ;
    END IF;
    END;
    I hope this will help you.
    Helena

Maybe you are looking for

  • Posting period problem (very urgent)

    Hi all, I want to open a last posting period for particular user which i have handled through authorization group but at the same time i want to open a some G/L codes for other users.Please confirm is it possible to do both the things at the same tim

  • Dead pixel on my new iPod Touch 5th Generation. Can I get a replacement?

    Today I bought an iPod Touch 16GB Silver. I activated it and after maybe half an hour, I noticed a single dead pixel in the upper left part of the display. I know that with iPhones there's a policy that 1 dead pixel, replacement. iPads have a 3 dead

  • Sync calendar entries not appearing in outlook 2010

    Hi there, I'd be grateful for any help on this one as I'm just bout pulling my hair out. Basically, when I sync calendars on my iPad 3 using iTunes, the entries do not appear anywhere in Outlook 2010 which is my default mail/calendar client. My setup

  • Settlement rule validation

    I need to create a control that will restrict the abiltiy of an order to settle to only certain types of WBS elements. Currently we have a settlement profile that will only allow WBS settlement.  We need to further restrict this settlement to only sp

  • Bound variable types and how to tell?

    is there a way to tell what type a bound variable (really the column its being used against) is? i am writing a generic sql application and need to find out what type a bound variable is so i can convert the value to the appropriate type to allow the