How to hide a control in jdeveloper adf

hi guys,
I am using jdeveloper 11 release 02
I would like to implement a control which is displayed based on the of the value of first control.
example
I have list choice control with options as
yes and no
if the user select yes
the input text appear
if the user select no
no input text appear
regards
steve kalenga

Other way could be this, without having to implement any managed bean method (just replace #{viewScope.socValue} for your af:selectOneChoice's value):
<af:selectOneChoice label="Show inputText" id="soc1"
                    value="#{viewScope.socValue}"
                    autoSubmit="true">
  <af:selectItem value="Y" label="Yes" id="si1"/>
  <af:selectItem value="N" label="No" id="si2"/>
</af:selectOneChoice>
<af:inputText label="Label 1" id="it1"
              visible="#{viewScope.socValue ne 'N'}"
              partialTriggers="soc1"/>AP

Similar Messages

  • How to hide table control in a screen

    Hi, Gems,
    I want to hide the table control.Using "loop at screen" I am able to hide all other components except table control.
    Can anyone tell me how to hide table control in a screen?
    Any help will be appreciated.
    -Thanks
    Surajit.

    Hi,
    In the PBO (in a module outside to the LOOP...ENDLOOP), use this
    MODULE status_0100 OUTPUT.
    IF sy-ucomm EQ space.   "Give the function code on which you want to make your table control go invisible
                                              "Give a space if you want your table control to remail invisible on display of the screen
        CLEAR: t_header[].
        LOOP AT tabcontrol1-cols[] INTO wa_control1.
          wa_control1-invisible = '1'.
          MODIFY tabcontrol1-cols[] FROM wa_control1 INDEX sy-tabix.
        ENDLOOP.
    ENDMODULE. 

  • How to hide video controls

    All-
    I have a video that i want to play automatically when a button is clicked.  I have it all figured out but the controls for the embedded video show up.  How do i hide the controls? 
    Here's my code on a triggered get element event
    var vid = sym.$("vidCon");
    vid.html('<video width="640" height="480" src="zoom.mp4" poster="black.jpg" type="video/mp4" autoplay="autoplay" controls="false"  </video>');
    I've read that an html 5 element must be ommitted if you don't want it to show but when i get rid of the controls attribute, the vid will not play. 
    Thx

    ok i figured it out
    here's the code i used on trigger if anyone's interested
    var vid = sym.$("vidCon");
       vid.html("<video width='640' height='480'  autoplay='autoplay' poster='black.jpg'>" + 
                "<source src='zoom1.mp4' type='video/mp4' >" +
                "<source src='zoom.webm' type='video/webm'  />" +
                "<source src='zoom.ogv' type='video/ogg'  />" +
       "</video>");
    i also had to convert my video to webm and ogg bc firefox has licensing issues with mp4
    ugh!  can't we all just get along!!!  :-)

  • How to hide committed data in the adf table

    Hi,
    I want to hide the existing data or committed data from the ADF Table when it loads.
    When I press the create button the new record only should show.
    How to do this?
    Any suggestions please.
    Thanks in advance,
    Sundar

    You can use VO.setQueryMode(ViewObjectImp.QUERY_MODE_SCAN_UNPOSTED_ENTITY_ROWS) followed by VO.executeQuery() in this case.
    http://docs.oracle.com/cd/E23549_01/apirefs.1111/e10653/oracle/jbo/ViewObject.html#QUERY_MODE_SCAN_UNPOSTED_ENTITY_ROWS
    alternatively you can also iterate over the rowset and check the entity state of the current row to be STATUS_NEW else remove the row from the collection.

  • How to hide tabstrip Control at runtime?

    hi to all.
    i used a tabstrip control in my screen.
    i want to make my tabstrip visible or invisible based on t-code
    for my screen.
    it will be total based on t-code.
    if i will enter t-code zins11 it will show me tabstrip for screen 100.
    if i will enter t-code zins12 it will hide me tabstrip for screen 100.
    Reply me.
    thanks.

    If you don't mind seeing the blank grey Tab Strip control box and simply hiding the tabs, this code will help.
      LOOP AT SCREEN.
        IF screen-name CP 'TS_TEST1_TAB*'.
          screen-active = 0.
          modify screen.
        ENDIF.
      ENDLOOP.
    where my Tab Strip name was 'TS_TEST1

  • How to make iframe work in Jdeveloper ADF

    We have a ADF JSF page made by Jdeveloper.
    The page has an input field and a go button, we need an iframe embedded in the same page and the iframe loads URL which is typed in the input field. For example, user typed in http:www.google.com, click go, the iframe loads google page.
    We are not able to make this work because iframe is not a ADF component whose src value can be set based on trigger.
    The only thing closer we did is use a golink which load URL to iframe, its destination can be changed based on input but the link has to be clicked.
    Is there any way to fire the golink without click on it?
    Is there any better way to do this?
    It will be very appreicated if someone can show me a working example.

    Hi,
    JSf pages are composed on the server and rendered on the client. Adding an IFrame will for sure lead to the content being added on the server. To add an IFrame, try teh <verbatim></verbatim> element to wrap the Iframe tag element.
    For the use case you describe for the iframe to handle, did you know that Google has a public API that you can access to obtain search results?
    Frank

  • How to hide Expand/ Collapse icon from ADF Query Panel.

    Hi Experts,
    I need to hide the expand collapse button from the ADF Query panel.
    is there any way to hide it.
    Please help me.
    Thanks in Advance.
    Balaji,

    Hi Balaji,
    Create a CSS file and the below code
    af|query.CustomQueryPanel::disclosure-icon-container { background-image: url("../img/minus.png"); display:none; height:0px; width:0px; }
    af|query.CustomQueryPanel::disclosed-icon { display:none; }
    af|query.CustomQueryPanel::undisclosed-icon { display:none; }
    Add styleClass="CustomQueryPanel" inside <af:query...>
    Now you can try...:)
    Thanks
    Prabhat

  • How to Hide JBO Exceptions in JSF Pages in ADF 10g

    Hi All,
    How to hide the JBO Exceptions in ADF 10g, for example JBO-27122: SQL error during statement preparation. I have been used the same customizing error handler which was specified in bcadfdevguide. But the method reportexception which will call disableappendcodes is not doing anything in my case.
    I want to show some decent errors instead of JBO errors to the user, appreciate if you help me on this.
    thank you.

    Hi Jobinesh,
    Thanks for the reply, actually i am looking to show the user our own customized error instead of JBO errors, i don't know whether the method skipexception will skip it or i can override it to show customized exceptions. and registering the customerrorhandler in databindings is different from registering the customphaselistener class in faces-config.xml which was usually done in 10g.
    But in my case, even though i followed everything what was specified in dev guide, i am not getting the result. Hence this post in forums :)
    Thanks.

  • XML validator in Jdeveloper/ADF

    Hi,
    I have xml in String variable and want to validate again xsd. Any input on how we can do this in Jdeveloper/ADF
    Thanks in advance.

    This bug has been fixed for the Production Release. There is no manual fix I can give you for the Preview Release. When you say this is a compile-time error, do you mean that this is preventing you from compiling your project in some way? The error should just appear in the editor when you have the Ant buildfile open, and you should be able to safely ignore it.
    -Matt Hawkins
    Oracle JDeveloper

  • ADF TreeTable - How to hide Disclose/Expand icon for leaf node

    We are using ADF Tree Table in our application.
    Whenever a node is expanded - all the child nodes have the disclose/expand icon along with it.
    But, we don't want to show the disclose/expand icon if it is a leaf node.
    How can this be done?
    JDeveloper Version: JDeveloper 11.1.1.3
    Thanks,
    Navaneeth

    I have a hierarchical tree based on single POJO based class exposed as data control.
    (i.e) a node can have many levels.
    Can you specify how we can use the folder icon for this - Can you please provide some detailed information?
    Thanks in advance,
    Navaneeth

  • How to hide or supress availability control screen in VA01

    Hi,
    I want to hide Availability Control Screen in VA01. Can you please help me how can i supress that screen.
    Regards
    Malik

    Hi Nabheet ,
    disabling the Button wont solve the problem , System automatically do availability check based on the stock and scheduled delivery date , if no sufficient stock then system will  propose new schedule line dates....
    so disabling the Button wont stop doing all these checks........it needs to be done thru config/E Spot which will skip all these validations...
    regards
    Prabhu

  • How to implement hierarchical structure of managers and reportees using jdeveloper adf

    I want to display hierarchical structure(which can be expanded and compressed) with 3 columns(Employeeid, fist Name,lastname) of managers and his reportees on selecting a top level manager.
    In this i'm going to use programmatic view objects.
    I have employees table.
    Here is my detailed requirement:
    On selecting a user from drop down list, i want to display the list of users reporting to him.
    From the displayed list on selecting a manager, list of users reporting to him has to be displayed in a tree format with the correspoding just being listed below the current selected manager
    Example :
    Top Manger  has been selected from dropdown and clicked submit.
    Output(a table as mentioned below):
    Manager1
    Manager2
    NonManager1
    Manger 3
    On clicking manager1,
    output:
    Manger 1
      Manger11
      Manasger12
      Nonmanager11
    Manger 2
    NonManger1
    Manger3
    on clicking manager1 again, tree has to be compressed and the output has to be just the same as first output.
    Please help me on this by sharing information or any references on how can i achieve this implementation using Jdeveloper adf concepts.
    Will be waiting for the inputs.
    Thank You,
    Dev

    Obviously, you can only display one picture.  So then the question becomes which picture to show.  Therefore, you will have to create some sort of preference of one pattern over another.
    I would use a FOR loop so that you can loop through your available patters and their possible results.  Use the Conditional Terminal on the FOR loop so that you can stop the loop on the first match.  Then you just wire up the selected value for the ring outside of the loop.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to hide reset button in af-query panel in ADF

    Hello All,
    i am using Jdeveloper version- 11.1.2.0.38.60.17 ,i am facing problem with hiding reset button in "af-Query panel".
    kindly suggest me how to hide it. it's urgent.
    Thanks & Regards
    AbhijeetPS
    Edited by: 967068 on Oct 23, 2012 12:39 PM

    Hello All
    I have solved this problem.
    Go to Query panel properties inspector and set Display mode = simple
    and drag an af- command button outside of the query panel.
    <af:commandButton text="Search" id="cb6" actionListener="#{bindings.Execute.execute}"/>
    Thanks
    AbhijeetPS
    Edited by: AbhijeetPS on Oct 23, 2012 6:38 PM

  • How To Hide the Record after Update from ADF Front End

    Hi Every One,
    I have done the Scenario of Database Table rows displayed in ADF front end. It is editing and updating also. My Query is after update the record, how to hide that record from adf front end.
    Could any one please help me.
    Thanks,
    Narasimhulu.S

    hi you can create transient field in view object indicate to visibility of row (boolean ) and create view criteria that show only rows that are able to be visible according to transient attribute and at the update process set the attribute to true inside entityImpl class

  • How to hide ribbon but show welcome control for all users using security trimmed control in sharepoint 2010

    Hi All,
    I have a requirement to hide ribbon in a document library for the read permission users. I have applied SPSecurityTrimmedControl, it is working for the read permission user but for the whole site it is hiding and also unable to see the welcome control,
    like user name, sign in as different user, etc.,
    <Sharepoint:SPSecurityTrimmedControl runat="server" ID="spTrimRibbon" PermissionMode="All" Permissions="ManageLists">
    I want to apply SPSecurityTrimmedControl to specific list/library with welcome control. Can someone please help me here.
    I Appreciate your assistance...
    MercuryMan

    Hello MercuryMan,
    I guess you have applied your code in master page that's why it is hidden from site. To hide specific list ribbon, go to your list-->and edit the page-->then add content editor webpart and apply below script.
    <SharePoint:SPSecurityTrimmedControl PermissionsString="ManagePermissions" runat="server">
    <div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle">
    </div>
    </SharePoint:SPSecurityTrimmedControl>
    http://blogs.msdn.com/b/sharepointdev/archive/2012/04/30/how-to-hide-the-ribbon-in-sharepoint-2010-rajeswari-mohandas.aspx
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for