How to disable programmatically an item in a Descriptive flexfield

Hi friends,
doy you know How to disable programmatically an item in a Descriptive flexfield using CUSTOM.pll?
The problem is that I need to do it under the WHEN-NEW-RECORD-INSTANCE event, and the item (based in an attribute column of a database table) hasn't a canvas asociated at that moment....
Do you have any example?
Thanks,
Jose.

Hi Prashant,
mmm yes, for now there are two fields it he DFF window.. but in a future .. may be more..
I've found a function:
fnd_flex_key_api.enable_column that may be properly for that, but I don't know what to pass in the the first parameter (flexfield IN flexfield_type)...
I mean: I suppose is the "name" for my DFF but.. how can I get it?
Thanks,
jose.

Similar Messages

  • How to disable/invisible submenubar item in Script ?

    I want to create a dynamic menubar (disable/invisible submenu
    item) in Script , My menubar is like the following:
    <mx:XML id="myMenuData">
    <xmlRoot>
    <menuitem label="MenuItem A" >
    <menuitem label="SubMenuItem A-1"/>
    <menuitem label="SubMenuItem A-2"/>
    </menuitem>
    <menuitem label="MenuItem B"/>
    </xmlRoot>
    </mx:XML>
    <mx:MenuBar labelField="@label"
    itemClick="menuHandler(event);" id="myMenu"
    dataProvider="{myMenuData}" />
    How to set SubMenuItem A-1 invisble/disable in Script?

    Bumping...I've the same question. Please help.
    Thanks!

  • How to disable instances of items in forms 4.5 in a mlti row block

    I have a multi row database block in forms 4.5 . One of the items is a checkbox. Based on certain conditions the user should be allowed to select only the checkbox only for some rows. How can i selectively disable the checkbox for some record and enable it for the other records.
    I know this can be done in OFrms 6i using set_item_instance_property but this is not available in forms 4.5 . Any ideas or workarounds to achieve this ?
    Thank You
    Satya
    Edited by: Satya V on Aug 13, 2009 11:48 AM

    I fear there is no direct solution.
    May be this is a work-around:
    1. Apply the older built-in: Display_item. You can't disable the item with display_item, but you can change the visual attribute and show the user that this item should not be checked.
    2. To be shure that the user doesn't ignore this "disable", you need a trigger, which resets the item to the proper value after an illegal change.

  • How to disable programmatically created Submit Button in ProcessFormRequest

    Hi All,
    I'm working on an issue where i have created an Upload button Programmatically. The upload button should get disabled after it is clicked. The code for the upload button creation is as below. This has been added in the processRequest of CO.
    OASubmitButtonBean oasb;
    oasb =
    (OASubmitButtonBean)pageContext.getWebBeanFactory().createWebBean(pageContext,
    OAWebBeanConstants.BUTTON_SUBMIT_BEAN,
    null,
    "BUTTON_SUBMIT");
    oasb.setID("Upload");
    oasb.setUINodeName("Upload");
    oasb.setEvent("Upload");
    oasb.setText("Upload");
    Now, when i handle the upload button click in the processFormRequest, i should also disable the button at the end. I followed the below method in the processFormRequest but it threw a null pointer exception at the point where i have disabled the button.
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    String strEvent = pageContext.getParameter(EVENT_PARAM);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (strEvent.equals("Upload"))
    OASubmitButtonBean oasb2 = (OASubmitButtonBean)webBean.findIndexedChildRecursive("Upload");
    oasb2.setDisabled(true); --- this is where the null pointer exception gets thrown
    I'm not sure if this is the way to go about it. Could you please let me know how to handle the above request?
    Regards,
    Shreyas
    Edited by: user11258661 on Mar 28, 2012 7:15 AM

    Hi Ram,
    Thank you for the response. I have created the button programmatically. So I'm not sure how to add the newly created button to the webBean as child. I'm new to OAF. So could you please elaborate. A code snippet might help.
    Thanks in advance.
    Regards,
    Shreyas

  • How to disable Add New Item in SharePoint 2013

    Hi,
    I want to disable the Add New Item button after the user created one item in SharePoint 2013.
    Is it possible to disable?
    Please reply
    Thank you

    I'd do it creating a custom web part that would mimic the list web part, and have logic in there that makes sure to hide the button once an entry by the current user has been made in the list. You could also create a workflow that would remove the user's
    permission to add a new item on the list upon creating an item.
    Nikolas Charlebois-Laprade Microsoft Certified Professional & Software Engineer http://nikcharlebois.com

  • How to ignore programmatically some items during a query ?

    Hi all,
    The process of my application is like this : first of all the end-user enters some criteria , then he/she presses a button to search for the possible results matching the criteria entered (execute_query). The possible results are displayed through a multirecord based datablock.
    The criteria screen has two parts , say part_a and part_b. When the end-user does not enter any criteria in part_b then the datasource of the results block should be a table , say data_source_1 ; and if some criteria are entered in part_b then the datasource of the results block should be a view , say data_source_2.
    The datasource data_source_1 has less number of columns than the datasource data_source_2 , but all of data_source_1's columns are included into data_source_2.
    So my problem is when the datasource of the results block is set to data_source_1 then there are unknown columns when executing the query (alert error). All of the columns of data_source_2 are included in the results block , and all of the columns of data_source_1 are automatically there because mathematically speaking data_source_1 is included into data_source_2.
    I have tried to use in the pre-query trigger of the results block this statement : set_item_property('results_possibles.column_a',queryable,property_false); but the same error still occurs.
    So how to ignore these items ?
    Thank you very much indeed.

    After looking at what you did to try to solve the problem, I'm not sure what the actual problem is.
    You can make both datasources have the same number of columns by selecting nulls:
    data_source_1: select a, b, c, null as d, null as e from <table>
    data_source_2: select a, b, c, d, e from <view>
    If you have a field which is used to query a column which is included in data_source_2 but not in data_source_1, and that field is populated when you run the query, then just set the block's default_where to ignore that field.
    eg
    data_source_1: where...and c like nvl(:control.c,'%')
    data_source_2: where...and c like nvl(:control.c,'%') and d like nvl(:control.d,'%')...

  • Forms personalisation - Vendor Form - How to Disable a Tab Page

    Hi,
    I am not a Forms 6i/9i programmer, although I have an appreciation of the concepts and can look at forms in Form builder. I have been looking at forms personalisation and have used it to execute plsql via the built in 'execute a procedure'. I can also see how to disable blocks, or items, but I haven;t managed to disable a form tab page i.e. On the vendor form there are tabs for GENERAL, CLASSIFICATION etc.
    I have tried using the object type Tab Page, but the poplist doesn;t list any tab pages. Also if you choose Canvas, the list of Canvases appears but generates errors when you try and use the form (complaining of tab page ids).
    I understand that to disable a tab page programatically, you would use SET_TAB_PAGE_PROPERTY i.e. in a forms trigger or in CUSTOM.pll
    I would have thought Forms personalisation could do this.
    Any ideas would be appreciated
    mark
    I under

    What you can do is hiding the tabs (see pic below) and force the active tab programmaticily
    Hope this helps
    Message Edité par TiTou le 09-20-2006 10:35 AM
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    Clipboard01.png ‏151 KB

  • How to Disable Event firing while updating a list item using poweshell

    Hi All,
    I am working on a powershell code which updates most of the list items in the entire web application. I am using SystemUpdate($false) to update the items so that 'modified' and 'modified By' and versions are not changed.
    However event receivers gets fired which is now a problem. I want to disable the Event receivers before update and enable it after update. I want powershell code for this. I am using SharePoint 2010.
    Your help would be much appreciated. Thank you in anticipation.
    Regards
    Karthik R.

    hi
    check this thread:
    How to disable event firing outside an event. It contains example on C#, but it is not difficult to convert it to PowerShell.
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • How to disable automatic opening of previously viewed items in Preview or TextEdit in Max OSX Lion?

    How to disable automatic opening of previously viewed items in Preview or TextEdit in Max OSX Lion? It was no such issue on Snow Leopard OS.
    Please help

    This is a new behavior introduced in Lion.  You can disable it completely via System Preferences, General: uncheck the "Restore windows..." box toward the bottom. 
    You can disable this behavior on a case by case basis by either closing all windows before quitting, or holding the option key while quitting, or holding the shift key while launching from dock.
    charlie

  • How to make disable/enable single item recovery effectively Immediately?

    for the following command , "it may take up to one hour to disable single item recovery",my question is how to make the disable/enable  single item recovery
    effectively Immediately by some command?
    SingleItemRecoveryEnabled $false/true
    http://technet.microsoft.com/en-us/library/ff678798(v=exchg.141).aspx
    Please click the Mark as Answer button if a post solves your problem!

    other options:
    Move the mailbox to another DB or if in a DAG, activate the DB on another server. ( the activating seems to work as far as I have seen at least).
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • How to disable File Browse... item including browse button

    Hi All,
    How to disable file File Browse... item including browse button based on Apex Item Value.
    thanks,
    nr

    Hello Trent,
    >> Does the read only attribute in 4.0+ of the page item not suffice?
    It all depends on your actual scenario.
    If the show/hide condition is known pre-rendering, you can use the Application Builder ReadOnly attribute. In this case, the APEX engine actually creates a simple text display so the input field and the browse button will not be displayed at all (and not just grayed out). However, if you need to toggle the status of the item, like in the example, or the status depends on a user input, using the disable attribute is much simpler (If you start with ReadOnly item, you will have to create the file browse item yourself, using JavaScript, or submit/re-direct the page so it will be rendered with the file browse item).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • How to disable a particular list item in flash cs3

    Friends,
    I need a small help on list component in flash cs3.
    assume that i have 5 items in my list and i want to disable 3,4,5 items from mylist box. how to do this ??
    item 1 -- enabled state
    item 2 -- enabled state
    item 3 -- disabled state
    item 4 -- disabled state
    item 5 -- disabled state
    using flash cs3, i want to achieve this , how to do this ?? any ideas pls..
    Rajesh

    Hi Rajesh,
    I've seen your query all over the internet, so I should warn you I don't believe it's possible to disable a List Item.
    For that you should use Josh Tynjala's open source Advanced List (http://code.google.com/p/flextoolbox/downloads/list).
    Best Regards,
    Filipe.

  • How to disable multiple items in menu ring?

    Hi I have a difficulty understanding on how to disable the items in the menu ring control. I need to know so that I will enable some items for the future products for testing. And why is the first item disabled? How can I disable the right items?
    Attachments:
    disabled_items.vi ‏23 KB

    Your vi works perfectly :
    you are disabling the menu items wich correspond to the elements of the 1D array :
    -if the array is empty, no element is disabled;
    -if the array contains 1 element, for instance = 3, the forth (3+1) menu item will be disabled. If the array element equal zero, then the first menu item will be disabled;
    - if the array contains 2 elements, then two corresponding menu items will be disabled, and so on...
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • How to disable and hide the menu items of 'copy From' button of Goods Recei

    hi expert,
    I am new in SAP B1. so please help me.
    Q:How to disable and hide the menu items of 'copy From' button of Goods Receipt PO form?
    Regards
    sanoj

    Hi Sanoj,
    Try This.....
    If pVal.FormType = "143" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE And pVal.BeforeAction = False Then
                oform = sbo_application.Forms.GetFormByTypeAndCount(pVal.FormType, "1")
                Dim oitem As SAPbouiCOM.Item
                oitem = oform.Items.Item("10000330")
                'To Disable the button
                oitem.Enabled = False
                'To hide the button
                'oitem.Visible = False
            End If
    Thanks
    Shafi
    Edited by: shafi_sunshine on Sep 15, 2011 7:35 AM

  • How do we programmatically "enable" the Page to have

    Some body known how do we programmatically "enable" the Page to have
    Item level security. - analogous to checking the box in the Page edit mode for "Enable item level security"
    J.

    Try this. It might work for you.
    declare
         l_page portal.wwsbr_api.page_record;
    begin
         select * into l_page
         from portal.wwv_user_owned_corners
         where siteid = <page group id>
         and id =<page id>;
         -- 0 is disabled . 1 is enabled.
         l_page.haveitemsecurity := 1;
         portal.wwsbr_api.modify_folder(
                   p_page => l_page
         wwpro_api_invalidation.execute_cache_invalidation;
         commit;
    end;
    regards
    Suresh.

Maybe you are looking for