Hide or clothing on the value of the list of af: selectOneChoice! ***

Hello

Please help me with the sub condition. My UI have selectOneChoice 3. First choicebox have 3 values (mName, fName, lName) and 2 have a similar list (username, email, fName). These values are filled through ApplicationModule DC (DBViews). Here are my questions:

(* 1) If select user "Pnom' first choice, then who have withdrawn from the 2nd and 3rd choice box.*
(* 2) even if the user selects "userID" 2nd area that must be eliminated form the 3rd box. So finally the 3rd choice box should contain only email.*

Since my choices filled boxes of ApplicationModule DC (DBViews) while the page is loading, can't able to remove items from the list. No idea how to do this? Note: all in lode the first choice of page box will be enabled and disabled the other 2. When the user selects the value to the first box and the 2nd one will be activated while first tabout area.

When I try to delete the value from the list of DC, get the below error. So I think to hide or grayedout the item in the list, in order to prevent the user to select the same value again. Any help please?

javax.servlet.ServletException: Houston-25016: object DmcAdvancesearch2VView1 View is read-only.
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:279)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:239)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:196)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:149)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs (unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)



Thank you
klogube

You have the variable binding, but have you actually created a why manufacture VO?

1 VO:





  
    
    
    
  
  
    
  
  
    
      
    
  
  
    
      
    
  
  
    
      
    
  
  
    
      
    
  

2ND VO:





  
    
  
  
  
    
  
  
    
      
    
  

Tags: Java

Similar Questions

  • Show/hide panelFormLayout based on the current selection of selectOneChoice

    Hey all,.

    I have a relatively basic question, I'm looking for a clear answer.

    I have a layout with the following structure:

    JSP:root

    AF:panelFormLayout

    AF:panelGroupLayout

    -component selectOneChoice

    AF:panelFormLayout

    AF:panelGroupLayout

    ADF - components

    AF:panelFormLayout

    AF:panelGroupLayout

    ADF - components

    AF:panelFormLayout

    AF:panelGroupLayout

    ADF - components

    I'm looking for the easiest way to show/hide the 3 children of panelFormLayout based on what is selected in the selectOneChoice component.  I've hard-coded these values and set their values like "1, 2, 3" respectively.

    I've already tried defining a ValueChangeListener on the selectOneChoice component, but when I run the page and change the value - it doesn't seem to be hitting my method when I select something.

    Any help would be appreciated.

    JDev Version is 11.1.1.7

    Please add autoSubmit true on the selectOneChoice element and try, it will hit valueChangeListener.

    Also, you can set three PFL render property conditionally in your VCL and make a real at the same time.

    Thank you

  • How to hide a button in the page based on the condition button bar

    Hello

    I have a requirement to hide apply and save on value-selector button released in the status field to create work order page.

    kindly help

    ProcessRequest:

    Am = (OAApplicationModule) oapagecontext.getApplicationModule (webBean) OAApplicationModule;

    OAViewObject oaViewObj1 = (OAViewObject) am.findViewObject ("xxcustPVO");

    If (oaViewObj1 is nothing)

    {

    oaViewObj1 = (OAViewObject) am.createViewObject ("xxcustPVO", "xxcust.oracle.apps.eam.workorder.server.xxcustPVO");

    If (oaViewObj1! = null)

    {

    oapagecontext.putDialogMessage (new OAException ("got added attributes"));

    }

    }

    ProcessFormRequest:

    OAViewObject vo2 = (OAViewObject) am.findViewObject ("xxcustPVO");

    If (vo2.getFetchedRowCount () == 0)

    {

    VO2. InsertRow (VO2. CreateRow());

    Line OARow = (OARow) vo2.first ();

    row.setAttribute ("RowKey", new Number (1));

    oapagecontext.putDialogMessage (new OAException ('value inserted in VO'));

    }

    Based on Condition

    If (vo2! = null) {= (OARow) vo2.getCurrentRow (); line}

    If (line! = null) {}

    oapagecontext.putDialogMessage (new OAException ("inside the vo attribute"));

    row.setAttribute ("xxApply", Boolean.valueOf (false));

    row.setAttribute ("xxSave", Boolean.valueOf (false));

    }

    Card apply n Save button with SPEL

  • Show/hide menu based on the logged in user

    Hello

    12.1.3 Jdev

    I want to show/hide some menu items based on the logged in user.

    I will explain the current design:

    In my application, I created a menu as below. (It is created using 'Create or Update ADF Menu' file adfc_config).

    ibis_menu. XML

    <?xml version="1.0" encoding="windows-1252" ?>
    <menu xmlns="http://myfaces.apache.org/trinidad/menu">
      <itemNode id="itemNode_home" label="Home" action="goHome" focusViewId="/home"/>
      <itemNode id="itemNode_transaction" label="Transaction" action="goTransaction" focusViewId="/transaction"/>
      <itemNode id="itemNode_customer" label="Customer" action="goCustomer" focusViewId="/customer"/>
      <itemNode id="itemNode_upload" label="Upload" action="goUpload" focusViewId="/upload"/>
      <itemNode id="itemNode_profile" label="Profile" action="goProfile" focusViewId="/profile"/>
      <itemNode id="itemNode_serviceRequest" label="Service Request" action="goServiceRequest"
                focusViewId="/serviceRequest"/>
      <itemNode id="itemNode_report" label="Report" action="goReport" focusViewId="/report"/>
    </menu>
    

    I have a navigation pane in my Pages that use this menu as below:

    <af:navigationPane hint="bar" id="np1" value="#{ibis_menu}" var="menuInfo">
                            <f:facet name="nodeStamp">
                                <af:commandNavigationItem id="ni1" text="#{menuInfo.label}"
                                                          destination="#{menuInfo.destination}"
                                                          action="#{menuInfo.doAction}"/>
                            </f:facet>
                        </af:navigationPane>
    

    Now, I want to hide some items on the menu, depending on the Type of user loggedIn. I have the userType stored in the managed bean.

    How can I get this feature.

    An approach which I think is as below:

    Define a variable for each itemNode in a managedbean(session scope) and who associate with the property ' visible ' / ' rendering ' of the itemNode in the Menu xml.

    Please let me know is a good way to do it or is there another solution better?

    See you soon

    AJ

    So, maybe this can help:

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/48-sitemenu-protection-169190.PDF

  • Tabluar form hide/show items on the loading of the page

    Hi all

    Apex 4.1

    I use JS to display or hide fields, based on the values of other fields, cela in a tabular presentation. So it is used as a work-around as dynamic actions are not able to do out of the box on tabular forms (that I know of).
    The code I use is something like this:

    In the page header:

    function test (pThis) {}
    get the index of line curren on changes
    var currIndex = $('select[name="'+pThis.name+'"]').index ($x (pThis.id));
    If (pThis.value < 0) {}
    . style.display $('input[name="f06"]') [currIndex] = 'block ';
    }
    else {}
    . style.display $('input[name="f06"]') [currIndex] = 'none ';
    }
    }

    In the attributes of the item in the column 'source '.
    OnChange = "JavaScript:test (this); »

    This fires that when the source column is changed, but not working when you load at the start page when it is filled with already stored reports. So it works only when a field is changed to the hand.

    How can I force this action shot the loading of the page so the rule (hide fields) also gets applied to existing records?

    Concerning
    Bottom

    Down de Klerk wrote:
    Hi all

    Thanks for the comments.
    So far I m unable to make it work. Fire code (debug using alert messages, and these show upwards), but the suggested procedure does not work.

    I tried all kinds of entry points, as for example the test via dynamic when a button is clicked, tried action on loading the page, and also via the $(document) .ready (function
    The function is executed and nothing happends, no error does not code so should be ok.
    I'll investigate further and let you know what happends. Don't know if the class type of the associated field f06 might have something to do with it, but one is LOV/Select list type

    This code is looking for input i.e. text, checkbox etc and will not find a slelect list.

    You must change the jquery like this selector

     $(document).ready(function () {
          jQuery.each($('select[name="f06"]'), function () {
               hide_field(this);
          });
     alert("function executed");
     });
    
  • Master-detail-shape; Hide/show columns in the form of details according to the column

    Hello

    I have a form master detail. In the long form, I have the columns:
    ID, MASTER_ID_FK, PC_SOURCE, A_C1, A_C2, A_C3, B_C1, B_C2, B_C3

    The PC_SOURCE of the column must be a LOV with values
    NULL VALUE
    A
    B

    So if I choose or enter a master record the detailed form appears and I can enter one or more detail records.

    PC_SOURCE is the first column.
    If I choose one, the columns B_C1, B_C2, B_C3 should disappear as there should be no possible entry.
    If I have B, A_C1, A_C3, A_C2 columsn should disappear as there should be no possible entry.

    Is this possible?

    I tried a bit of my own, but without success. I tried to put in the first column (lov SOURCE PC) in the attributes of the element a javascript call like onChange = "do_Refresh('#PC_SOURCE#'); »

    The javascript funktion do_Refresh tries to grab the value of the column and the value of a hidden item P1_SOURCE as document.getElementById('P1_SOURCE').value = v_source;

    But this does not work, because there is not the value of the recovered column.
    And probably can´t work because of more lines of a detail.

    Thank you and best regards,
    Matthias

    Hello

    The html code of your detailed form will be an array of the elements of entry with names f01, f02, etc.. The columns of the key of the fields are normally hidden, so your PC_SOURCE column will probably use the name f03. A_C1 column name will be f04 etc.

    Once you have the input names for your columns, you can create a dynamic action (DA) to hide the items you want.

    You want the DA to fire when any element PC_SOURCE is changed if you want when to be:
    Event: change
    Selection type: jQuery Selector
    jQuery Selector: input [name = "f03"]
    Condition: no strings attached

    The action is to hide an element in the same line, if the changed item is a value. The action must therefore:
    Action: Run the JavaScript Code
    Fires when the event is: true
    Code: if(this.triggeringElement.value=="A") {$x_Hide ('f04_' + this.triggeringElement.id.split ('_') [1])}

    You then need a lot of real actions for each item that you want to hide.

    Rod West

  • How to hide a column in the report when there are only zeros.

    Hi Experts.,.

    Is it possible to hide a column in the report when there are only zeros.

    Thanks in advance
    Vincent

    Vincent Krishna wrote:
    Hi Experts.,.

    Is it possible to hide a column in the report when there are only zeros.

    Thanks in advance
    Vincent

    No out-of-the-box, but there are several workaround solutions if you want to continue an any of them:

    (1) use a view selector. A single report will be a pivot table with the column, the other will have the same report less column. Users can switch reports.

    (2) use a column selector. The two choices would be this column or an empty space. If white is chosen (because the user has no values), the column "will disappear" according to the report.

    (3) guided use NAV. This method involves the intervention of the user. Build a small report using the single column and put a filter "is not equal to" 0. Because there is only a single column, so all lines are 0, the report returns no rows.

    Use this report in the properties of guided navigation from one section of the dashboard. Assign to this "If the report returns lines" and put the report that contains the column in this section. Now add another article on your table edge and in the properties of guided navigation of this section, set on "If the report will return no rows" and it points to the small report as well. In this section, put a second version of your report without the column in it.

    When the column contains all zeros, the second section with column will not display in it; the first section is not displayed. When at least a line contains a value not zero, the first section is displayed with the column, and the second part will not be.

  • Show/hide an element with the click of a button - Script works does not in Firefox

    Hi all

    Basically, I'm looking for show/hide a DIV with the click of a button.

    The script works in IE but fail in FF.

    I am sure that I am the problem here.

    <script type="text/javascript">

    function toggle(box) {
         var el = document.getElementById('box');
         el.style.display = (el.style.display != 'none' ? 'none' : '' );
         
         
         value = document.getElementById('content').value;
         if(value=="Show Calendar"){
         document.getElementById('content').value="Hide Calendar";
         }
         else{
         document.getElementById('content').value="Show Calendar";     
    }
    }
    </script>


    <style type="text/css">
    #box{
         background-color: #C0C0C0;
         height: 100px;
         width: 100px;
    }
    </style>
    </head>

    <body>

    <div id="box">
    </div>

    <input id="content" value="Hide Calendar" type="button" onclick="toggle(box)" />
    </body>
    </html>

    WE

    He also worked if you had changed-

    
    

    on this subject.

    
    
  • The hide/show button with the AJAX selection list

    I have the button named "QUERY" and AJAX list selection page #2 'ID'. When my selection list value is 100, I would like to display the button, otherwise hide the button. I checked the session values are defined correctly for the selection list when I change the value, but the following code in one of the messages in the forum does not work. is it different for elements of AJAX?

    Added the following code to select the list - onchange = "disble_enable_button (); »

    function disble_enable_button() {}
    If x$ ('P2_ID') .value = '100'
    x True $('P2_QUERY') = true;
    for other x $('P2_QUERY') true = false;
    }

    Hello

    function disble_enable_button() {
    if ($v('P2_ID') == '100')
    $x_Show('P2_QUERY');
    else $x_Hide('P2_QUERY');
    }
    

    Mike

  • Retrieve the list of available control values IOName/IVILogicalName

    Is it possible to programmatically retrieve a list of all values of an IOName control (or more precisely IVILogicalName in this case)? I refer to the list of values that appears when you click the arrow on the menu drop-down control. For example, if I set the control to NO-SCOPE (IVI select class-> IviScope-> niScope) from the drop-down list shows only the names of the bodies that are present (for example, "PXI2Slot6"), including the sessions 'duplicate' (e.g. ' PXI2Slot6 (1) ").


    I can get the value currently selected control quite easily, but I would like to get a list of all available values. Is this possible? Values are just there in the control as surely there must be a way to access.

    My goal here is to find a way to recover all sessions IVI and then close them. If there is another way to do this, I'd be happy to hear it.

    Some related posts, I found:
    https://forums.NI.com/T5/instrument-control-GPIB-serial/close-all-open-IVI-sessions/TD-p/1752560
    https://forums.NI.com/T5/Digital-Multimeters-DMMs-and/what-is-the-proper-way-to-close-all-open-Sessi...

    DropDownList (with VI active scripting)

    I use it to find niDMM you can modify it to work with niSCOPE by changing the

    IVI of the results matrix class

    I use this for VISA

  • By programming the auto scroll value multi-column list boxes?

    I have a Multi column list box control that I put off (for indication only) which is used to show the progress.

    When a profile is loaded in the list box if this profile causes the scroll bar to become active it's obviously disabled and if the user cannot scroll

    That the control is disabled, the scroll bar is also disabled is there anyway that I can programmatically on the AutoScroll scroll bar?

    Hello

    You can use the property of the listbox multicoum ' cell upper left Visible.

    If your listbox multicoloum is disabled you can put vertical cursors or something on the front and give the value of the cursor to the line/Coloum (vertical scrollbar) and Coloum for the horizontal scroll bar to the "cell upper left Visible.

    Hope this helps

    Concerning

    David

  • How to get a program all the list of the names of the values in a registry key?

    Hello

    How to get a program all the list of the names of the values in a key of windows registry without having to configure the number of values in the key?

    Thank you & best regards

    Samuel J

    Hi Samuel,.

    you will get this info from "Query registry key Info.vi".

    Mike

  • Try to hide all traces of The SIMS 2, other users, especially in Indexing Options

    I tried to change the "Indexing Options" but that is the problem.  It seems that any program that has a place in the "start > all programs" cannot be hidden by the Vista Start button search engine, no matter what you do in the "Indexing Options".

    Is there maybe a way to remove programs from Sims of the ' Start > all programs "?  I would like to have in one place, preferably in a folder that I can give a name without a report and give the password.  And of course I need to hide all the search engine of the Start button.

    ... Any ideas?  Any chance this type of capability is available in a program that I could buy?

    Yes you can delete it. Just right click on the entry in the list of programs all and select "Delete" from the menu.

  • Display the values in a list in a certain way

    Hello

    I'm looking for a way to display the values in a list by the first value by a slash and the rest with an indentation.

    In other words in this way:

    /value

    Value1

    value2

    value3

    etc...

    Please see the attachment for a better reference where data are received and then filled to the window list.

    Thanks for your comments

    Thanks guys,.

    I endend up doing this:

    If (i == 0)
    {
    sprintf (current_log_view, "/ %s", cnfg_display_db [i] "");
    }
    on the other
    {
    sprintf (current_log_view, "%s", cnfg_display_db [i]);
    }
    SetCtrlVal (log_panel, LOG_LOG_TB, cnfg_display_db [i]);
                            
                            
    InsertListItem (dir_list_panel, DIR_LIST_RETR_LIST, current_log_view, i, 0);

    and it works very well!

    Thanks again

  • Hide a folder in the filesystem by BB10

    Hello!

    I would like to know if there is a way to hide a folder in the filesystem BB10. What I want is to be able to hide or display a specific folder of my application, being of this folder for example, in the folder of photos (or anywhere else).

    Is it possible to do?

    Thanks in advance!

    Seems if you rename a folder or a file with a name that begins with a period, you can hide it.

    I have not tested myself, I found it in the first reply in this thread:
    http://forums.CrackBerry.com/BlackBerry-Q10-F272/hiding-files-folders-Q10-BB10-817594/

    I'm having a time difficult to understand what exactly would the usecase, you still have the folder "data" inside your sandbox which is the perfect place to hide your files, otherwise, there is the /tmp/ folder that you can use without the permission of "Shared folder", but the files/folders copied it from your application will be visible from a file browser application , but will not read / write from another application.

Maybe you are looking for

  • problem with a detected error popup on safari

    When downloading from epolife.com that I could no longer connect to safari as found msg error.

  • movable control problems and onTouch event

    Hi guys In my last question, I posted about how can I make a movable control and it works fine, but now I have another question, when I drag a control and put on another control, which moves another control I guess that the elements are mixed with th

  • BlackBerry Smartphones BB 8830 Media/Music question

    I can't play all the multimedia files on my BB. I can see the example files on my BB and the files that I put on my media card (not encrypted and mode of mass communication is not not on) but when I choose to play nothing happens, that is. The cursor

  • Can I add subtitles to my multiple choice question in Captivate?

    I have a question multiple choice quiz that plays a sound file when the user selects the correct answer. Because the audio file is defined using a ' success' action, it is not placed on the timeline. Is there a way to add captioning in audio file eve

  • Loading of many operating systems in different spaces on Leopard?

    Hi allIs there an easy way to configure the merge to target a given space during the loading of a virtual machine?I have 4 spaces: are used for Mac OS I want to use for Windows XP and I want to Kubuntu, and all virtual machines are then performed in