Enabling & Disabling of THTMLB_OCA (Action)

Hi Experts,
We have a requirement - to enable & disable the Action (THTMLB_OCA) column based on some critetria.
Say For Example: Compoent BT115QIT_SLSQ, Context Node - BTADMINI, Attribute - THTMLB_OCA (Action - Which can Delete or Take you to Item Detail).
Now say - if the ORDERED_PROD is 'XXX' I want to Disable this Action (THTMLB_OCA).
I tried in GET_I_THTMLB_OCA putting the rv_diabled = 'TRUE', but it doesnot work, as this is not like a normal input field.
So I thought to disable the field property - so that the Action field will be empty  nothing can be done using that. So I tried to implement GET_P_THTMLB_OCA
so based on the validation on the ORDERED_PROD - if I can control the Field property of THTMLB_OCA
  lv_iterator = collection_wrapper->get_iterator( ).
  lv_bo       = lv_iterator->get_current( ).
  lv_val      = lv_bo->get_property_as_string( 'ORDERED_PROD' ).
  CASE iv_property.
    WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
        IF lv_val1 = 'XXX'.
          rv_value = space.
        ELSE.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_oca.
        ENDIF.
ENDCASE.
It works fine for the 1st Entry - the 1st line item.
The Iterator - get_current always returns the 1st item, it is not going into the subsequest line items.
Any thought process in this regard?
Am I missing out something?
Please Help!
Thanks & Regards,
tarak

Hi Tarak,
You can remove the On Click Action Buttons from individual rows by redefining method GET_OCA_T_TABLE of the Context Node Class.
This method gets triggered for every row of the table view(check the signature of the method). Identify your condition here and call the super class using
CALL METHOD super->get_oca_t_table
    EXPORTING
      iv_component = iv_component
      iv_index     = iv_index
    RECEIVING
      rt_actions   = rt_actions.
Now simply disable the buttons from rt_actions.
FIELD-SYMBOLS: <fs_actions> TYPE crmt_thtmlb_one_click_action.
LOOP AT  rt_actions ASSIGNING <fs_actions>.
<fs_actions>-active  = abap_false.
ENDLOOP.
Regards,
Masood Imrani S.

Similar Messages

  • How to enable/disable the input fields based on the data entered/user action in the web dynpro abap?

    How to enable/disable the input fields based on the data entered in the web dynpro application abap?  If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.

    Hi,
    Try this code.
    First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
    Next go to Init method.
    Set the readonly value as 'X'.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
         DATA ls_context TYPE wd_this->element_context.
         DATA lv_visible TYPE wd_this->element_context-visible.
    *   get element via lead selection
         lo_el_context = wd_context->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_context IS INITIAL.
         ENDIF.
    *   @TODO fill attribute
    *   lv_visible = 1.
    *   set single attribute
         lo_el_context->set_attribute(
           name =  `READONLY`
           value = 'X').
    After that Go to the Action  ENTER.
    First read the input field ( first input field, which is value entered field) , next give a condition
    if input value is not initial  then set the readonly value is '  '.
    DATA lo_nd_input TYPE REF TO if_wd_context_node.
         DATA lo_el_input TYPE REF TO if_wd_context_element.
         DATA ls_input TYPE wd_this->element_input.
         DATA lv_vbeln TYPE wd_this->element_input-vbeln.
    *   navigate from <CONTEXT> to <INPUT> via lead selection
         lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
    *   @TODO handle non existant child
    *   IF lo_nd_input IS INITIAL.
    *   ENDIF.
    *   get element via lead selection
         lo_el_input = lo_nd_input->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_input IS INITIAL.
         ENDIF.
    *   get single attribute
         lo_el_input->get_attribute(
           EXPORTING
             name =  `VBELN`
           IMPORTING
             value = lv_vbeln ).
    if lv_vbeln IS not INITIAL.
        DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->element_context.
        DATA lv_visible TYPE wd_this->element_context-visible.
    *  get element via lead selection
        lo_el_context = wd_context->get_element( ).
    *  @TODO handle not set lead selection
        IF lo_el_context IS INITIAL.
        ENDIF.
    *  @TODO fill attribute
    *  lv_visible = 1.
    *  set single attribute
        lo_el_context->set_attribute(
          name =  `READONLY`
          value = ' ' ).

  • Need help with OA Framework. Enable/Disable LOV dynamically

    Hello,
    I am new to OA Framework. My requirement is as follows;
    The page should have a field with parameter org code (LOV). When the user selects an org and click GO button, the page should display all the inactive items (which have no Sales order or work order for last 2 years). In the table region, user selects single record or multiple records by a check box. The selected records should be processed after clicking a submit button in the table region. The process is, calling an API to change the status of the item to Inactive or some other status. The status should be determined by the user by selecting a LOV within the table region. I could create LOV based field for org code and could display the data on the page. I have been trying to display the LOV for item status , I have created a LOV under table region under table components > table actions. I could open the LOV and select a value, but the value is not defaulting to the field on the page. Somebody please help me with a suggestion or if you have the code for a similar kind of requirement please share with me.
    Also, need some suggestion on how to enable and disable LOV dynamically. I want to display the 2 LOV's in different regions. I want to enable the LOV for Item Status only after the org code is selected and the page populated after the user clicks GO button.
    Thanks in Advance…..

    Hi,
    I could open the LOV and select a value, but the value is not defaulting to the field on the page.pls check the LOV mapping ,this might be wrong.
    to enable/Disable LOV dynamically ,u need to use PPR,please check the lab solution exercise create employee chapter to learn to implement PPR functionality.
    Thanks
    Pratap

  • 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

  • Enable/disable operation buttons according to the selected row in table?

    Hi,
    I used JDev 11.1.1.2.0
    On my main page, it has a query section and display search result to a table component, and also has some operation buttons like (update/delete) on the toolbar.
    I want to enable/disable the operation buttons according to some filed value of the selected row in the table, and I searched the OTN forum, found more questions like this but seemed no found one right solution.
    The table is single selection, and has a status column, its data type is Integer, and I want to enable buttons when the selected row's status field value is 0 or 1, disable buttons when status value is other values.
    Table code like:
    <af:table value="#{bindings.VO1.collectionModel}" var="row"
    rows="#{bindings.VO1.rangeSize}"
    emptyText="#{bindingsVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.VO1.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.VOCriteriaQuery.queryDescriptor}"
    queryListener="#{bindings.VOCriteriaQuery.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.VO1.collectionModel.selectedRow}"
    selectionListener="#{bindings.VO1.collectionModel.makeCurrent}"
    rowSelection="single" id="resId1">
    Operation buttons code like:
    <af:commandToolbarButton text="Update" id="ctb2" action="editDAF"/>
    Any suggestion will be great help.
    Thanks,
    zeroxin

    Hi,
    create an attribute binding in the PageDef file for the status field. Then setup the button PartialTriggers property to point to the table ID. The button's disabled property then points to the status attribute binding like
    #{bindings.statusField.inputValue=='value'}
    Frank

  • Enabling/Disabling PDF in Browser Option (Acrobat XI)

    Firstly, know that yes I understand that this setting is no longer found in and handled by Acrobat XI and that to enable or disable PDF in browser setting you enable/disable the add-on in IE (or other browser).
    In the hopes of making it more straightforward and convenient for users to toggle this setting, one option is being explored to create a custom Javascript action in Acrobat to write to the user registry to turn this on/off.
    Is this feasible? Can Acrobat JavaScript actions read and write to the user's registry? As we have a collection of users that need to regularly toggle this setting (for reasons I won't go into here), it would be ideal to have an easy and straightforward means to change this setting. One possibility might be a custom Acrobat JavaScript action.
    Thoughts, suggestions, ideas?
    Thank you

    Thank you. Forgive me but I want to make absolutely certain...in no way can a custom Acrobat JavaScript action change the user's registry. Is this correct? A pointer to official documentation stating such would be excellent. I have to convince someone not easily convinced

  • Button enable/disable in Master-Detail table

    I am using JDeveloper 11.1.1.3.0 and I have a page fragment (.jsff) which includes a Master-Detail table and the Master table has 3 buttons that get enabled/disabled based on the specific string within a column say, if the column has value, 'DRAFT', the buttons should be enabled. In all other cases, the buttons should be disabled.
    The above mentioned scenario works in cases where the table has more than one row in the table; but in two cases the buttons don't get enabled even though the column has 'DRAFT' as its value:
         1. when the table first loads with the data populated in the table; clicking on the first row doesn't trigger the buttons, clicking on any other row triggers the buttons
         2. when there is only one row in the table
    To resolve this, I tried looking at the logs for any specific information regarding the buttons getting enabled or disabled. I couldn't find info on setting up a breakpoint for the commandbutton and the disabled property which would enable me to determine whether it is being triggered as soon as the table gets populated or not.
    How can I get the buttons to work per my requirements? Also, can I set breakpoints for the button and/or evaluate disabled property's EL expression?
    Thanks in advance.

    Navaneeth:
    The buttons are part of panelCollection which exists in panelHeader. As the below code demonstrates,
    1. Buttons are defined in the toolbar (t2) in panelCollection (pc1)
    2. Each buttons' partialTrigger is set to the table (md1)
    3. Tables' (md1) partialTrigger is set to the toolbar (t2).
    <af:panelHeader text="#{viewcontrollerBundle.HISTORIC_PANEL_SPECS__TESTER_S}" id="ph2">
            <af:panelCollection id="pc1" styleClass="AFStretchWidth">
              <f:facet name="menus"/>
              <f:facet name="toolbar">
                <af:toolbar id="t2" partialTriggers="t2">
                  <af:commandButton actionListener="#{bindings.promotePanelSpec.execute}"
                                    text="#{viewcontrollerBundle.PROMOTE_PANEL_SPEC}"
                                    id="cb1" icon="/Images/up16.png"
                                    partialTriggers="md1"
                                    disabled='#{bindings.Status!="DRAFT"}'
                                    immediate="true"/>
                  <af:commandButton text="#{viewcontrollerBundle.ADD_TESTER_SPEC}" id="cb2"
                                    partialTriggers="md1"
                                    icon="/Images/action_add.gif"
                                    actionListener="#{bindings.CreateWithParams.execute}"
                                    action="addTestSpec"
                                    disabled='#{bindings.Status!="DRAFT"}'/>
                  <af:commandButton actionListener="#{PanelSpecTesterSpec.deleteTesterSpec}"
                                    text="#{viewcontrollerBundle.REMOVE_TESTER_SPEC}"
                                    id="cb3" partialTriggers="md1 ::pc2:t1"
                                    icon="/Images/delete.png"
                                    disabled='#{bindings.Status!="DRAFT"}'/>
                </af:toolbar>
              </f:facet>
              <f:facet name="statusbar"/>
              <af:table id="md1"
                        rows="#{bindings.PanelSpecTesterSpecView1.rangeSize}"
                        fetchSize="#{bindings.PanelSpecTesterSpecView1.rangeSize}"
                        emptyText="#{bindings.PanelSpecTesterSpecView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                        var="row"
                        value="#{bindings.PanelSpecTesterSpecView1.collectionModel}"
                        rowBandingInterval="0"
                        selectedRowKeys="#{bindings.PanelSpecTesterSpecView1.collectionModel.selectedRow}"
                        selectionListener="#{bindings.PanelSpecTesterSpecView1.collectionModel.makeCurrent}"
                        rowSelection="single" partialTriggers="::t2"
                        filterVisible="true" displayRow="selected"
                        filterModel="#{bindings.ProductIdPanelSpecVersionToolNameQuery.queryDescriptor}"
                        queryListener="#{bindings.ProductIdPanelSpecVersionToolNameQuery.processQuery}">
                <af:column headerText="#{bindings.PanelSpecTesterSpecView1.hints.ProductId.label}"
                           sortProperty="ProductId" sortable="true" id="c39"
                           filterable="true">
                  <af:outputText value="#{row.ProductId}" id="ot28"/>
                </af:column>
                <af:column headerText="#{bindings.PanelSpecTesterSpecView1.hints.Status.label}"
                           sortProperty="Status" sortable="true" id="c43"
                           filterable="true">
                  <af:outputText value="#{row.Status}" id="ot40"/>
                </af:column>
              </af:table>
         </af:panelCollection>
    </af:panelHeader>The fact that the above code works when there are multiple rows tells me that buttons are having trouble reading the first row of the table.
    Also, I changed the displayRow property for the table from "selected" to "first" but no luck either.

  • Use rich:fileUpload/ to enable/disable my buttons with checking file names

    Hello!
    I need to upload some files with using <rich:fileUpload>,and i did it but i need to check file names for some reasons and enable or disable upload button but my problem is that when i open my modal panel and click add button of <rich:fileUpload> and then add upload button of <rich:fileUpload>(not my upload button but upload button wich <rich:fileupload> has) i check file name but the button is not enable/disable until i close my modal panel and open it agin,so i need to know how to modify my code to make it work?
    <rich:modalPanel  id="uploadFile" autosized="true" resizeable="false">
                    <f:facet name="header">
                     <h:panelGroup>
                         <h:outputText value="uploadFiles"></h:outputText>
                     </h:panelGroup>
                 </f:facet>
                 <h:form>
                      <rich:fileUpload  maxFilesQuantity="#{uploadBean.maxUploadFiles}" allowFlash="true" fileUploadListener="#{uploadBean.uploadListener}" immediateUpload="false"/>
                             <table>
                                <tr>
                                     <td><h:commandButton disabled="#{!uploadBean.xlsNameValid}" rendered="#{!uploadBean.admin}"  action="#{uploadBean.upload}" value="upload" /></td>
                                     <td><h:commandButton action="#{uploadBean.clearFiles}" value="cancel" id="cancel"/></td>
                                </tr>           
                           </table>
                 </h:form>
                 <rich:componentControl for="uploadFile" attachTo="cancel" operation="hide" event="onclick"/>
              </rich:modalPanel>

    No the problem is that file is being checked on server side, but if file is invalid the button Upload(my button ,not standart rich:fileUpload) must be disbaled,and shown,but i have to close this modal panel and open it again to see my button enabled/disabled

  • Enabling/Disabling menuitems in a JMenu

    Hi,
    The application I'm developing has a JMenu, like any other Swing app
    out there. The menuitems in that JMenu are enabled/disabled according
    to the state of the app. I'd like to know which is the best way to
    enable or disable the individual JMenuItems from any point in the
    app, do I have to hold a global pointer to every JMenuItem in the
    app and call setEnable() ? Or can I send a change event which
    is captured by a hypothetical enablelistener registered in
    every menu item ?
    thanks in advance

    Okay, here's a skeleton of working with actions and a Document/Listener pattern.
    Here are the core classes:
    import java.io.*;
    import java.util.*;
    import javax.swing.*;
    public interface DocModel {
        public class Event extends EventObject {
            public enum Type {DOC_OPENED, DOC_CLOSED};
            public Event(DocModel model, Type type) {
                super(model);
                this.type = type;
            public final Type getType() {
                return type;
            private final Type type;
        public interface Listener extends EventListener {
            public void docOpened(Event event);
            public void docClosed(Event event);
        public void addDocListener(Listener l);
        public void removeDocListener(Listener l);
        public void open(File file) throws IOException;
        public void play();
        public void close();
        public JComponent createView();
    }You don't have to nest types, but I like to.
    Here is an abstract class the lets EventListenerList do all the work (I copyied and pasted the code from the API.)
    import java.io.*;
    import javax.swing.event.*;
    public abstract class AbstractDocModel implements DocModel {
        private EventListenerList listenerList = new EventListenerList();
        protected void fireDocOpened() {
            Object[] listeners = listenerList.getListenerList();
            Event evt = new Event(this, Event.Type.DOC_OPENED);
            for (int i = listeners.length-2; i>=0; i-=2) {
                if (listeners==Listener.class)
    ((Listener)listeners[i+1]).docOpened(evt);
    protected void fireDocClosed() {
    Object[] listeners = listenerList.getListenerList();
    Event evt = new Event(this, Event.Type.DOC_CLOSED);
    for (int i = listeners.length-2; i>=0; i-=2) {
    if (listeners[i]==Listener.class)
    ((Listener)listeners[i+1]).docClosed(evt);
    public void addDocListener(Listener l) {
    listenerList.add(Listener.class, l);
    public void removeDocListener(Listener l) {
    listenerList.remove(Listener.class, l);
    public void open(File file) throws IOException {
    fireDocOpened();
    public void close() {
    fireDocClosed();
    Here is a simple implementation with Actions. I didn't have to make the actions DocListeners as well --
    that's overkill, I could have adjusted their enabled state in open/play/close, but I wanted to demonstrate
    letting listeners keep themselves in synch.
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.text.*;
    public class SimpleDocModel extends AbstractDocModel {
        private Document document = new PlainDocument();
        private class OpenAction extends AbstractAction implements DocModel.Listener {
            public OpenAction() {
                super("open");
            public void actionPerformed(ActionEvent evt) {
                try {//find file
                    File file = new File("bogus");
                    open(file);
                } catch (IOException e) {
                    //report it...
            public void docOpened(Event event) {
                setEnabled(false);
            public void docClosed(Event event) {
                setEnabled(true);
        private OpenAction openAction = new OpenAction();
        private class PlayAction extends AbstractAction implements DocModel.Listener {
            public PlayAction()
            {   super("play");
                setEnabled(false);
            public void actionPerformed(ActionEvent evt) {
                play();
            public void docOpened(Event event) {
                setEnabled(true);
            public void docClosed(Event event) {
                setEnabled(false);
        private PlayAction playAction = new PlayAction();
        private class CloseAction extends AbstractAction implements DocModel.Listener {
            public CloseAction()
            {   super("close");
                setEnabled(false);
            public void actionPerformed(ActionEvent evt) {
                close();
            public void docOpened(Event event) {
                setEnabled(true);
            public void docClosed(Event event) {
                setEnabled(false);
        private CloseAction closeAction = new CloseAction();
        public SimpleDocModel() {
            setMessage("empty doc");
            addDocListener(openAction);
            addDocListener(playAction);
            addDocListener(closeAction);
        public void addToToolBar(JToolBar tb) {
            tb.add(openAction);
            tb.add(closeAction);
            tb.add(playAction);
        public void open(File file) throws IOException {
            setMessage("file opened");
            super.open(file);
        public void close() {
            setMessage("closed");
            super.close();
        public void play() {
            setMessage("playing continuously");
        public JComponent createView() {
            JTextField view = new JTextField();
            view.setDocument(document);
            view.setEditable(false);
            return view;
        private void setMessage(String message) {
            try {
                document.remove(0, document.getLength());
                document.insertString(0, message, null);
            } catch (BadLocationException e) {
                e.printStackTrace();
    }Are you still with me? Run this code:
    import java.awt.*;
    import javax.swing.*;
    public class SampleApp {
        JFrame frame = new JFrame("Sample App");
        SimpleDocModel model = new SimpleDocModel();
        public SampleApp () {
            JToolBar tb = new JToolBar();
            model.addToToolBar(tb);
            Container cp = frame.getContentPane();
            cp.add(tb, BorderLayout.NORTH);
            cp.add(model.createView(), BorderLayout.SOUTH);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        public static void main(String[] args) {
            new SampleApp();

  • Is it possible to programatically enable/disable a schedule?

    Hi,
    I'm looking for a way to start and stop an existing schedule based on certain criteria.
    Is it possible to enable/disable a schedule programatically, from within an Action block?  Calling an HTTP URL for example?
    Thanks.

    Hi,
    One solution would be using the Illuminator service for this:
    First execute the Scheduler service with list mode (using XML query or HTTP Post action) as :
    /XMII/Illuminator?service=Scheduler&mode=List
    This will give you the list of the available scheduler configurations in the system along with the corresponding Job ID. Use XPath in BLS to retrieve the JobID from the list by the Scheduler Config name.
    Next execute the Scheduler service with Disable mode passing the JobID retrieved from :
    /XMII/Illuminator?service=Scheduler&mode=Enable&ID=<JobID>
    This will disable that particular scheduled job. To enable it use the same service with Enable mode:
    /XMII/Illuminator?service=Scheduler&mode=Disable&ID=<JobID>
    Hope this helps.
    Thanks,
    Dipankar

  • How to enable /disable MWI ?

    Hi,
    I want to write a small application to enable/disable IP Phone lamp. But confused by how to enable MWI(Message Waiting indicator). TAPI ? AXL ? or some others , which can implement it . Could you give me some direction, thank you !

    I never checked what happens on a database level. However, for any actions that have a direct influence on a device, writing directly into the database is the wrong approach.
    As an example: if you set a forward (callforward all) via database (and not AXL), calls may well be forwarded, but the phone's status won't be adapted (so you don't have the callforward indicator and no information about the callforward). If you set the callforward via JTAPI or AXL, the phone's status will also be updated to show that it has been forwarded.
    When you configure a phone, you'll see the same thing in many cases.. especially in older CCM releases, you were often told that you need to reset the phone to apply a change you've made. In newer versions, this is often (but not always done automatically.. you'll see the phone restart after pressing update).. it's the same thing here.. you write into the database, but then you also have to apply those changes to the phone (one good example is changing a line label.. you won't get the label to change on the phone by just writing to the database.. you have to restart the phone for it to load the new label name).
    Even if you need to get the mwi status, JTAPI will do that for you (CiscoAddress.getMessageWaiting - and to set it, it's CiscoAddress.setMessageWaiting). Since you need a CTI command to set the MWI, you can as well resort to CTI to get the MWI status as well and don't bother with the database.
    fkcallingsearchspace_mwi is definitely not it though - I can tell you that without looking at the diagram since fk_anything is a foreign key and you have an uuid value in that field. The mwi status would be a boolean since it can have just two values. In fact, it's numplan.ismessagewaitingon but as I said.. with any element that has a direct influence on a phone's appearance or behavior, you cannot just change it... at best you need a phone reset. And if you do it with JTAPI (and probably TAPI too.. I can't be sure because I've never done TAPI and hope to never have to), you can change the MWI status on the fly without having to restart the phone, which is much more elegant.

  • InvokeMethod and enabled/disabled

    Hi.
    I have created AM implementation and add new method. Exposed it to client.
    And by drag'n'drop-ing this exposed method to JSF there is a button which executes this method.
    By default on this button there is one property Disabled which is set to #{!bindings.methodName.enabled}.
    How do I handle enabled/disabled from my AM implementation? My logic for disabled toggle is very complex and I want it to put it in Java implementation not inside EL.
    Thx
    Regards
    Boris

    On my PageDef there is a
      <methodAction id="methodName" RequiresUpdateModel="true"
                      Action="invokeMethod" MethodName="methodName"
                      IsViewObjectMethod="false"
                      DataControl="AppModuleDataControl"
                      InstanceName="AppModuleDataControl.dataProvider"/>I can add permission to that method action like
      <methodAction id="methodName" RequiresUpdateModel="true"
                      Action="invokeMethod" MethodName="methodName"
                      IsViewObjectMethod="false"
                      DataControl="AppModuleDataControl"
                      InstanceName="AppModuleDataControl.dataProvider">
          <permission xmlns="http://xmlns.oracle.com/adf/security"/>
        </methodAction>How do I implement that permission(s)?
    Regards

  • Enable/Disable JMenu in JFrame on click of button in JInternalFrame

    Hello there. Could anybody help me out of the situation?
    I am trying to enable/disable JMenu of JFrame on click of a button which is in JInternalFrame.
    I want to set JMenu(this is in JFrame).setEnable(true) in ActionPerformed() of JInternalFrame, but JFrame and JInternalFrame are the different classes and I do not know how I can access JMenu in main frame.
    How should I write something like mainframe.menu.setEnabled(true) from internal frame?
    For JInternalFrame window action, there is JInternalFrameListener, but this is not relevant for my situation because I am trying to control on click of a button.
    Can anybody suggest a solution?

    // Main Frame
    public class MainFrame extends JFrame
         public MainFrame()
              InternalFrame l_int = new InternalFrame(this);
                    //try to initiate internal frame like this
         public void activateMenu()
              menuBar.setEnabled(true);
         public static void main(String args[])
              MainFrame mainframe = new MainFrame();
    // Internal Frame
    public class InternalFrame extends JInternalFrame
         private MainFrame m_mainFrm = null;
         public InternalFrame(MainFrame a_objMainFrame)
              //your own code
              m_mainFrm = a_objMainFrame;
         public void actionPerformed(ActionEvent a_objevent)
    if(m_mainFrm != null)
              m_mainFrm.activateMenu();
    }try this.. hope this will help you
    :)

  • Enable/disable via managed bean

    Hi
    using jdev 11.1.1.3
    Can anyone tell me how to disable/enable a input textfield from a managed bean which should happen on a button click.
    The fields are already populated with data and is editable, and is part of a taskflow.
    any help will be helpfull
    thanks

    Hi bigchill,
    a possible solution could be:
    1. create a bean containing following methods & attributes
    public class MyBean
         // initial value
         private boolean disabled= true;
         public String doSomething()
              this.disabled= false;
              return null;
         public void setDisabled(boolean pDisabled)
              this.disabled= pDisabled;
         public boolean isDisabled()
              return disabled;
    }2. Create an instance of the bean on a certain scope (depending on your requirements)
    3. Link the disabled attribute of the input component with the disabled property of the bean and link the "doSomething" bean method with the action attribute of the commandButton:
    <af:inputText label="Some textfield" disabled="#{s_myBean.disabled}"/>
    <af:commandButton action="#{s_myBean.doSomething}"/>That's it.
    Kind regards,
    Koen Verhulst

  • Enable/disable fields in Workspace form

    Okay here is my scenario. I need to disable some fields on a form depending on which user logs onto workspace to open the same form.
    1. User1 logs onto workspace and opens leave request form, fields at the top of the form are enabled for the user to fill out, bottom fields which are for leave request administrator to fill out are disabled but visible.
    2. User1 fills out top portion of leave request form and completes form. Workflow sends form to leave request administrators "To do" list in Workspace.
    3. Administrator opens up submitted form in Workspace and sees User1's filled out data on the form and the bottom fields are now enabled for administrator to approve or dissaprove. Bottom fields only include two check boxes, two text fields and one date field.
    Now how is this done? I am sure their maybe scripting involved? if so what is it and at what events in the form? Is this whole process done in the form or through Admin UI or Workebench as well? Please help!!!!!!!!!

    Hi Rahat,
    You can use the same form and enable/disable some fields according to the user's role with only little scripting. Review the steps the below:
    1-First place a hidden field ("user_role") in your form
    2-Insert a script object into your form onder "Variables" in object hierarchy and write a script for enabling/disabling the fields (regarding the value of "user_role")
    3-On the initialize and change events of the "user_role" call your script object
    4-On your process design, put a SetValue service before User tasks. In the asssignment you should set the desired user_role to the form, so that the script is triggered in your form and the fields are enabled/desiabled
    Fro further needs on your form or process design you can contact us from: http://www.kgc.com.tr/company_Contact.html
    Oguz
    http://www.kgc.com.tr

Maybe you are looking for