Enable/disable an item in a multirecord block

hello to all
How is possible Enable/disable an item in a multirecord block?
set_item_property change all instances of an item in a multi-record block
SET_ITEM_INSTANCE_PROPERTY only affects the display
thanks

Hi,
You cannot set the Enabled property in a multi-record block, instead you can change the INSERT_ALLOWED, UPDATE_ALLOWED properties. So that the user can't change the value in the item.
Regards,
Manu.
If my response or the response of another was helpful, please mark it accordingly

Similar Messages

  • Using XMLLIST - Enable/Disable Menu Items

    I am using XMLList for creating menu items.
    I want to enable / disable menu items based on the permissions to the user.
    Below is the code snippet:
    <fx:XMLList  id="newData">
                                  <menuitem id="item1" label="{resourceManager.getString('taskmgmt', 'taskmgmt.label.newProject')}" />
                                  <menuitem id="item2" label="{resourceManager.getString('taskmgmt', 'taskmgmt.label.projectFromTemplate')}" enabled="false"/>
                        </fx:XMLList>
    private function ItemClickHandler(event:MenuEvent):void
         if(PermissionManager.isAddPermitted("WTM_PROJECT_PLANNING")){
                                                           ProjectAssignmentModel.projectAssignmentFlag=false;
                                                           if(event.item.@label == resourceManager.getString('taskmgmt', 'taskmgmt.label.newProject')){
                                                                     clearModel();
                                                                     dispatchEvent(new SwitchViewEvent(SwitchViewEvent.SWITCH_VIEW_EVENT,false));
    protected function newMenuButton_clickHandler(event:MouseEvent):void
                                            if(! PermissionManager.isAddPermitted("WTM_PROJECT_PLANNING")){
                                                      newData.item1.enabled = false;
                                            else
                                                      menuList.dataProvider = newData;
                                                      menuList.show(event.stageX + 5 , event.stageY + 5);
                                                      mode = CREATE;
    Based on the permission, I want to dynamically enable / disable the "New Project" button.
    Can someone provide information how to achieve this ?
    Further update on this, it is giving the following error while running of the application:
    "TypeError: Error #1089: assignment to list with more than one item is not supported"

    Resolved by using the correct Data Provider and iterating through the list

  • Enable disable toolbar items on click on any checkbox,radio button,text box.

    Hi Friends,
    I am create application in eclipse RCP E4 and now i am trying to Enable disable toolbar items on click on any checkbox, radio button, text box .
    Please Help me friends....

    Hello friend my proble is solve and now i am sharing my solution ....
    I am create RCP application and view side any listener click event fire time apply this code
    IEvaluationService evaludationService = (IEvaluationService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(IEvaluationService.class);
    evaludationService.getCurrentState().addVariable("noOfRowsChecked", noOfRowsChecked);
    evaludationService.requestEvaluation("com.jobsleaf.propertytester.canDeleteItem");
    and add plug in extension and create property tester class means listener property tester class side apply this code
    IEvaluationService ws = (IEvaluationService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(IEvaluationService.class);
    Integer integer = (Integer) ws.getCurrentState().getVariable("noOfRowsChecked");
    if (integer != null)
    if (integer.intValue() > 0)
    return true;
    I hope useful above code when use property tester in eclipse RCP

  • Validation of item in a multirecord block(Forms 6i,EBS 11.5.10.2)

    Hi all,
    I developed a form in which some of the blocks are multirecord blocks.One of the multirecord block have 3 items in it.
    The user may enter data like this
    FROM TO RATE
    0 1000 10
    1000 2000 9
    2000 3000 8.5
    My requirement is the FROM field value of the 2nd record should not be less than the TO field value of 1st record. The FROM field value of the 3rd record should not be less than TO field value of the 2nd record and so on...
    i.e the form should not allow the user to enter data like this
    FROM TO RATE
    0 1000 10
    900 2000 9
    800 3000 8.5
    Can anyone suggest me how to do this?
    Thanks & Regards

    Hi all,
    I developed a form in which some of the blocks are multirecord blocks.One of the multirecord block have 3 items in it.
    The user may enter data like this
    FROM TO RATE
    0 1000 10
    1000 2000 9
    2000 3000 8.5
    My requirement is the FROM field value of the 2nd record should not be less than the TO field value of 1st record. The FROM field value of the 3rd record should not be less than TO field value of the 2nd record and so on...
    i.e the form should not allow the user to enter data like this
    FROM TO RATE
    0 1000 10
    900 2000 9
    800 3000 8.5
    Can anyone suggest me how to do this?
    Thanks & Regards

  • Howto enable disable menubar items in actionscript

    Hello,
    My problem is that i want to enable/disable buttons in a
    menubar according to the loaded page.
    So what i did was when the user clicks on the menubar, it
    triggers a function. Inside that function there will become a check
    on which page is at front. According to that page i am gonna set
    menuitems on and off.
    Thats the idea i had, so now my problem.
    I first try to create a simple solution like my code beneath.

    I'd suggest changing things around a bit. See if the
    following works for you. The clickHandler() method has the syntax
    you're looking for.
    TS

  • Enable / Disable selection screen block

    Hi, could u pls tell me how do I enable/disable selection screen block written below based on radio button selected??
    Block to be enabled / disabled :
    *----APO Version and RFC destination block
    SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-013.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 01(20) text-e11.    "APO Planning Version
    SELECTION-SCREEN POSITION 29.
    SELECT-OPTIONS s_apover FOR w_version NO INTERVALS.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 01(20) text-e09.    "APO RFC Destination
    SELECTION-SCREEN POSITION 32.
    PARAMETERS  :  p_aporfc LIKE rfcdes-rfcdest.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b4.
    Radiobuttons :
    Material Type
    SELECTION-SCREEN BEGIN OF BLOCK ss04 WITH FRAME TITLE text-072       .
    PARAMETERS :
         Load only FERTs
           p_FERT  RADIOBUTTON GROUP styp DEFAULT  'X' USER-COMMAND rusr ,
         Load ROH/HALBs
           p_HALB  RADIOBUTTON GROUP styp                                .
    SELECTION-SCREEN END   OF BLOCK ss04                                 .
    Thanx in advance

    Hi
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: pa_file TYPE rlgrap-filename MODIF ID abc,
    pa_lifnr TYPE lfa1-lifnr MODIF ID abc,
    pa_vkorg TYPE vbak-vkorg MODIF ID abc.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS: pa_kunnr TYPE vbak-kunnr MODIF ID def.
    SELECT-OPTIONS: s_lifnr FOR gs_lfa1-lifnr MODIF ID def,
    s_date FOR gs_lfa1-erdat MODIF ID def,
    s_augru FOR gs_vbak-augru MODIF ID def,
    s_vbeln FOR gs_vbak-vbeln MODIF ID def.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_upd RADIOBUTTON GROUP g1 USER-COMMAND uc01 DEFAULT 'X'."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-004 FOR FIELD pa_upd.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_rep RADIOBUTTON GROUP g1 ."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-005 FOR FIELD pa_rep.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b3.
    IF pa_rep EQ gc_x.
    LOOP AT SCREEN.
    IF screen-group1 = gc_abc.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_def.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF pa_upd EQ gc_x.
    *For Reprocessing
    LOOP AT SCREEN.
    IF screen-group1 = gc_def.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_abc.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    CLEAR pa_upd.
    ENDLOOP.
    ENDIF.
    REPORT zrich_001.
    PARAMETERS: p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X'
                            user-command chk,
                p_rad2 RADIOBUTTON GROUP grp1.
    SELECT-OPTIONS: s_datum1 FOR sy-datum MODIF ID d1,
                    s_datum2 FOR sy-datum MODIF ID d2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_rad1 = 'X'
          AND screen-group1 = 'D2'.
          screen-active = '0'.
        ENDIF.
        IF p_rad2 = 'X'
         AND screen-group1 = 'D1'.
          screen-active = '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    Regards
    Anji

  • Enable/disable textbox depending on list option, list is dependent on Radio

    Hi,
    I'm trying to enable/disable text_box which is dependent on select_list option, select_list is dependent on radio_button.
    I'm able to enable/disable select_list using radio_button options, but I'm unable to handle text box which is again dependent on this SELECT_LIST item.
    under html header page:-
    <script type="text/javascript">
    function disableOnValue(o)
    if (o.value == 'Y')
    document.getElementById('P86_Select_list_item').disabled = false;
    else
    document.getElementById('P86_Select_list_item').disabled = true;
    document.getElementById('P86_text_box_item').disabled = true;
    </script>
    <script type="text/javascript">
    $(document).ready(function()
    $('#P86_Select_list_item').change(function()
    if($(this).val() == 'Other')
    $('#P86_text_box_item').attr("disabled", false);
    else
    $('#P86_text_box_item').attr("disabled", true);
    </script>
    under Region_Source of the region, whose Display point :- <b>Before Footer</b>
    <script type="text/javascript">
    if(document.getElementById('P86_radio_button_0').checked == true)
    {disableOnValue(document.getElementById('P86_radio_button_0'));}
    else
    {disableOnValue(document.getElementById('P86_radio_button_1'));}
    </script>
    and under Radio_button item, HTML Form Element Attributes :- <b>onchange="javascript:disableOnValue(this);"</b>
    also same way under text_box item , HTML Form Element Attributes :- <b>disabled</b>
    any help
    Deep

    Thanks for replying Ben,
    I have kept an example into apex workspace
    workspace:- DEEPAPEX
    username:- [email protected]
    password:- walubu
    application "Javascript" page 1
    I'm able to enable/disable Select_list item & Text_box item with the help of Radio_button item(depending on user select yes or no option of the radio button)
    But after selecting Yes option of the radio_button, only when user select "Other" option of the Select_List item the Text_box should be enabled otherwise it should be disabled for any of the options of the Select_list item.
    I hope you understand my point.
    Deep

  • Disable button when no records in multirecord block.

    Hello,
    In a tabular multirecord block we have a button that will open another window for the selected row. The problem is that when there are no records in the multirecord-block, the first line is still selected, and the pushbutton is enabled. This will cause an error when the user press the button when there are no records. Adding code to the button will of course take care of the error, but it is still enabled. How do we disable the entire line when there are no records?

    how about - directly after querying the master record...
    go_block(<block>)
    if :blk.key (or :blk.rowid) is null then
      SET_ITEM_PROPERTY('<buttonname>',enabled, property_false);

  • Is there a way to enable/disable a tabular form item based on the value of a second item?

    Hi Everyone,
    I have a tabular form based on a collection.   The column c050(maps to f30) will be either Y/N.  If it is Y, then I would like to enable column c024( maps to f24) (which happens to be a radio button based on lov).  If the value of c050 = N, then disable c024.   There are potentially many rows, and the item c024 would only be enable/disabled for the specific row.   So if row 1 has c050=Y and row 2 has C050=N then row 1 c024 is enabled, and row 2 c024 is disabled.  Hope that makes sense.
    I have created a dynamic action called enable/disable HMS fields.
    event=CHANGE
    selection type = jquery selector
    jquery selector = input[name='f30']
    condition EQUAL TO
    value Y
    true action1 - enable, jquery selector, input[name='f24']
    true action 2 - alert, You have added an HMS Species.   There may be additional data to enter.  thanks
    false action1 - disable jquery selector, input[name='f24']
    false action2 - alert, no hms worries.
    The alerts in both cases show properly...but nothing seems to happen to f24.....what am I doing wrong?
    thanks

    Agh! This is the first time you mention this is a radio button!  That changes things a lot! As you can see, the format is different (f24_0001_0001) than what we have discussed (f24_0001).
    Radio buttons have their own quirks.  My bad, I should have asked what you had.  But since you said your original selectors on input were working I just thought these were text fields or something like that.
    How about you change it to a drop down list just so that you can see all work?  And fully understand it.
    Then you can work out the radio button option.
    If that doesn't get you there... I'm going to ask you setup an example in apex.oracle.com and give me credentials to log in and take a look.
    I could re-try the js on my side with a radio but it will take some time.
    So just to be clear... f30 is a drop down and f24 is a radio?
    See, this line:
    $x_disableItem("f24_" + row, true);
    Is NEVER going to find the radio buttons because it's missing the 3rd 0001 and 0002 (how many options do you have?)
    So perhaps you try it like this:
    $x_disableItem("f24_" + row + '_0001', true);
    $x_disableItem("f24_" + row + '_0002', true);
    ... keep going for the options...
    Do the same for the false of course.
    But I think this needs a better approach if you'll have radio buttons.  I just need to work it out.
    Ok, go try things...
    Thanks
    -Jorge

  • Cannot enable the text item after disable it in Forms 6i

    Hi All,
    I want to enable/disable the text items depending on the value of the radio group. Since the text items and the radio group are on different tab page, so I place the following code on the WHEN-TAB-PAGE-CHANGED trigger, to do this:
    if :recordgroup ='P' then
    set_item_property(item1, ENABLED,PROPERTY_TRUE);
    set_item_property(item1, NAVIGABLE,PROPERTY_TRUE);
    elsif :recordgroup ='K' then
    set_item_property(item1, ENABLED,PROPERTY_FALSE);
    set_item_property(item1, NAVIGABLE,PROPERTY_FALSE);
    end if;
    When recordgroup is 'K', item1 is disabled, then when recordgroup has changed to 'P', item1 is still disabled.
    Both recordgroup and items are database items.
    How come like this?
    Thanks is advance,
    Vanessa

    Hi Vanessa, you must use a "when-radio-changed" trigger, and you need to know what properties of a item are afected when you change any one of this, for your problem ...
    if :recordgroup ='P' then
    set_item_property(item1, ENABLED,PROPERTY_TRUE);
    set_item_property(item1, NAVIGABLE,PROPERTY_TRUE);
    -- Add this line:
    Set_Item_property(item1, Update_Allowed, Property_True);
    elsif :recordgroup ='K' then
    set_item_property(item1, ENABLED,PROPERTY_FALSE);
    -- If you want, you can delete this line:
    set_item_property(item1, NAVIGABLE,PROPERTY_FALSE);
    end if;
    try it!
    Ruben.

  • Have a multirecord block with several unbound items, filled by calling just

    In oracle forms I have a form with a multi-record block, with several unbound items.
    One of these unbound items is a formula based item.
    The formula for this item fills the others unbound items.
    A procedure with several out parameters is called.
    E.g.
    :cmr.id (holding the unique id of a database record)
    :cmr.unbound_dummy, with formula f_fill_blk_unbound_items(:blk.id)
    :cmr.unbound_adres
    :cmr.unbound_contactperson
    function f_fill_blk_unbound_items(p_id in customers.id%type)
    return number
    is
    l_rc number;
    begin
    customer_pck.get_adres_and_contactperson
    (p_id => p_id --IN
    ,p_adres => :cmr.unbound_adres --OUT
    ,p_contactperson => :cmr.unbound_contactperson --OUT
    return(0);
    end;
    QUESTION: how can I do something similar in APEX; have a multirecord block with several unbound items, filled by calling just one procedure with several out parameters ?

    Thank you for your reply.
    I can write database functions as wrappers, one for each out parameter, and use these in a select.
    But:
    - having one procedure with several out parameters was done for performance reasons.
    - I want to leave my database as is, and just replace the client.
    Easy as this is using Oracle developer forms, I cannot find out how to do this in any of the APEX examples/documentation.

  • Is it possible to enable & disable a field in a multi record block

    When I enable a field in the multi record block all the records for that field are enabled or vice versa. I don't want that.
    If I enable a field for one record the rest of them should stay as it is.
    Thanks for any help.
    Syed Jaleel.

    You can set update_allowed,insert_allowed, Navigable false for
    field in multirecord block using
    Set-Item_Instance_Property;
    Eg:
    Set_Item_Instance_Property('BlkName.item_name',Record_number,Insert_Allowed,Property_False);

  • Problem with multirecord block

    Hi every one
    I have multirecord block in form conten 2 textitem A & B
    and i have checkbox .
    i need when i check the checkbox set instance item A Enable and item B Disable
    and vice versa
    the problem is when i check the checkbox all instance of item enable or disable
    but i want that instance what I foucs on .

    You can't disable/enable an individual instance of a multi-record item.
    What you CAN do is use SET_ITEM_INSTANCE_PROPERTY to set INSERT_ALLOWED, UPDATE_ALLOWED and VISUAL_ATTRIBUTE. To disable, set up a visual attribute that mimics a disabled field, and set INSERT_ALLOWED and UPDATE_ALLOWED to false. If you don't want them to be able to click or tab the cursor into the field create a pre-text-item trigger on the items that checks the value of the checkbox and raises form_trigger_failure if this field should be disabled.

  • Enable/disable lov button in a multi-row bloc

    Hi all,
    I have a form in which there is a multi-row block with some lov buttons related to some items,
    in query mode, user should not be able to modify item, item property update_allowed is set to false, that worked, but user is able to modify item when he clicks on the lov button...so i want to disable the button for query records and for record in (insert or new), button should be enable,
    i tried some tips but don't work, do you have any idea
    Thanks for your help.

    Hi,
    Can you suggest some methods to enable/disable LOVs in my search query? I have a customized VC which performs search and I need to enable/disable the LOVs depending on requirement.
    Abhishek

  • Disable a field of a detail block

    Hi. I am working on master-detail form.i want to disable my detail block field when execute.
    But no error no changes.Here is my code
    TRIGGER:POST-QUERY
    IF :XXTT_KONTRAT_LINES_V.TIP=2 THEN
      fnd_message.set_string('1');fnd_message.show();
    --SET_ITEM_INSTANCE_PROPERTY('XXTT_KONTRAT_LINES_V.SS_NO', CURRENT_RECORD, enabled, PROPERTY_true);
    SET_ITEM_INSTANCE_PROPERTY('XXTT_KONTRAT_LINES_V.SS_NO', CURRENT_RECORD, insert_allowed, PROPERTY_true);
    SET_ITEM_INSTANCE_PROPERTY('XXTT_KONTRAT_LINES_V.SS_NO', CURRENT_RECORD, update_allowed, PROPERTY_true);
    SET_ITEM_INSTANCE_PROPERTY('XXTT_KONTRAT_LINES_V.SS_NO', CURRENT_RECORD, NAVIGABLE, PROPERTY_true);
    else
      fnd_message.set_string('2');fnd_message.show();
    SET_ITEM_INSTANCE_PROPERTY('XXTT_KONTRAT_LINES_V.SS_NO', CURRENT_RECORD, insert_allowed, PROPERTY_false);
    SET_ITEM_INSTANCE_PROPERTY('XXTT_KONTRAT_LINES_V.SS_NO', CURRENT_RECORD, update_allowed, PROPERTY_false);
    END IF;

    mustafa_yilmaz wrote:
    Hi. I am working on master-detail form.i want to disable my detail block field when execute.
    --SET_ITEM_INSTANCE_PROPERTY('XXTT_KONTRAT_LINES_V.SS_NO', CURRENT_RECORD, enabled, PROPERTY_true);
    You can't ENABLE or DISABLE an item in a multi-row block using the Set_Item_Instance_Property() built-in.  Take a look at the Forms Help system on this built-in and you will find that you can only set the following properties using this built-in:  BORDER_BEVEL, INSERT_ALLOWED, NAVIGABLE, REQUIRED, UPDATE_ALLOWED, and VISUAL_ATTRIBUTE.
    In order to make a field in a multi-row block disabled, you have to emulate a disabled field.  In other words, you can set the INSERT/UPDATE_ALLOWED properties as you are doing and I would recommend you also set the NAVIGABLE property to FALSE in your ELSE clause as well.  If you need the field to appear as if it is disabled, then I recommend you create a set of visual attributes; one for a disabled field and one for an enabled field.  Something like: DISABLED_FIELD and ENABLED_FIELD.  Then you can use the Set_Item_Instance_Property() built-in to set the visual attribute in addition to the other properties you are setting.  This will give the field the appearance that it is disabled.
    Hope this helps.
    Craig...

Maybe you are looking for

  • How do I copy my files from an external drive to my new computer

    I had all my music files on my old laptop whose motherboard burned out. I removed the hard drive, and would like to copy my old music files from my old hard drive to the internal hard drive in my new computer. I think I can do this one file at a time

  • T430 doesn't resume correctly via fingerprint scanner

    Hello, I have a pretty new T430 and occasionally (about 30% of time time) when I try to resume from hiberation or sleep via the fingerprint scanner, it will start to boot, maybe even show the desktop for a brief second, but then stop on a black scree

  • Issue with the assignment of Employee to the Territory structure

    HI       User is facing an issue in the assignment of Employee to the Territory structure. When the user is trying to assign a Employee say 'x' to a Terr ID, the following error occurs 'Assignment to item failed,chenges have not been saved'. Item ref

  • Ways to flash my 7800 GTX 512mb with what available roms ?

    Hello fellow PPC users, I am new on this forum, and hope I ask my quastions the right way I got me a 7800 GTX 512mb (PC card) for my PowerMac G5 Quad running Leopard. I read a lot of discussions about this but I never came across of a topic with inst

  • Out of office reply on mountain lion server

    how to create an "out of office" automatic response on OSX Server Mountain Lion? It was possible on Lion but not in the latest version.