Visual JSf: textField hide or disable, when selecting dropDown list

Hello everyone,
I am new to this forum, I am working on Visaul JSF, I have a question,
When i select a value dropDown List, i want to disable or hide textField depending on the selected item in the list.
I have put javascript for dropDown list. I am not able to do this. Can any one help me please...
<webuijsf:script>
                    function fun(sel){
                        var state = sel.options[sel.selectedIndex].value;
                        alert(state);
                        if(state == 2){ alert("if");  document.getElementById('form1:textField2').disabled='true' }else{ alert("else"); document.getElementById('form1:textField2').disabled='false'}
                </webuijsf:script>for downdown, i have added this..
onChange="fun(this)"In dropdon list
name value
One 1
Two 2
Three 3
Jsp code:
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <webuijsf:page id="page1">
            <webuijsf:html id="html1">
                <webuijsf:script/>
                <webuijsf:script>
                    function fun(sel){
                        var state = sel.options[sel.selectedIndex].value * 1;
                        alert(state);
                        if(state == 2){ alert("if");  document.getElementById('form1:textField2').disabled='true' }else{ alert("else"); document.getElementById('form1:textField2').disabled='false'}
                </webuijsf:script>
                <webuijsf:head id="head1">
                    <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
                </webuijsf:head>
                <webuijsf:body id="body1" style="-rave-layout: grid">
                    <webuijsf:form id="form1">
                        <webuijsf:textField id="textField2" onChange="" style="height: 18px; left: 174px; top: 258px; position: absolute; width: 216px"/>
                        <webuijsf:button id="button1" onClick="return fun()" style="position: absolute; left: 228px; top: 324px" text="Button"/>
                        <webuijsf:dropDown id="dropDown1" items="#{Page3.dropDown1DefaultOptions.options}" style="position: absolute; left: 312px; top: 90px" onChange="fun(this)"/>
                    </webuijsf:form>
                </webuijsf:body>
            </webuijsf:html>
        </webuijsf:page>
    </f:view>
</jsp:root>Thanks in advance
Neha
Edited by: Neha_540 on Apr 5, 2009 11:02 PM
Edited by: Neha_540 on Apr 5, 2009 11:05 PM

Hi Neha,
Hope this helps.
function changeMarital()
                            var marital = document.getElementById('form1:drpMarital_list').value;
                            if(marital == "Others")
                                document.getElementById('form1:lblOtherMarital').style.display='';
                                document.getElementById('form1:txtOtherMarital').style.display='';
                            else
                                document.getElementById('form1:lblOtherMarital').style.display='none';
                                document.getElementById('form1:txtOtherMarital').style.display='none';
                        }

Similar Messages

  • Set text in Visual JSF textfield from javascript

    HI,
    I want to pass a variable from a javascript to put into a visual jsf textfield that is connected to a Bean variable like this:
    <webuijsf:textField id="myLat" style="left: 96px; top: 336px; position: absolute" text="#{CreateNewPage.latitude}"/>
    I use this library: xmlns:webuijsf="http://www.sun.com/webui/webuijsf"
    I found a guide for this using regular jsf-tags, but that doesn't work for the visual jsf tags. Link: http://balusc.blogspot.com/2009/05/javajspjsf-and-javascript.html
    I managed though to change the field to some sort of text by using:
    var lat = 'text';
    document.getElementById("form1:myLat").textContent = lat;
    in my javascript. But this just replaces the textfield to some stand alone text, and the variable in my Bean isn't changed at all. I tried using .value and .text instead of .textContent but it doesn't work. What am I doing wrong here? I'm new to JSF by the way. Thankful for any help.

    I've now read the article and understand everything better. Also funny that I got a reply from the author of it here :)
    Sadly I have to use javascript I believe since I'm using a google maps api that uses it.
    Anyway, I still can't get it to work properly.
    now my jsp look like:
    <webuijsf:form id="myForm">
    <webuijsf:textField id="my2" style="left: 528px; top: 0px; position: absolute" text="#{EditPage.latFromMap}"/>
    </webuijsf:form>
    and in my JS:
    document.getElementById("myForm:my2").text = 'text';
    document.getElementById("myForm").submit();
    I now get to the setLatFromMap() setter Method for my variable in my EditPage bean, but when I do a print out of it it's null. Also the textfield on my page becomes blank after the refreshing of the page. of Am I still missing some of the concepts? thx

  • SSRS report - A single selection dropdown list converted to text box

    Hello everyone,
    We created a single selection dropdown parameter (City parameter) on a report. The data in this parameter is populated using MDX query. Also, it is filtered based on selection of another single selection dropdown list (Country parameter) of a report.
    The problem is when there is no cities for the selected country the dropdown list is gets converted to free type text box and user can insert city data in it. Why SSRS is not keeping it as empty dropdown list with no data?
    Any help would be much appreciated.
    Thanks, Ankit Shah
    Inkey Solutions, India.
    Microsoft Certified Business Management Solutions Professionals
    http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html

    Hello Charlie,
    We developed a fresh report only with two parameters but still the dropdown control gets converted to text box in our case. We have two single selection parameters, Location and Customers. Based on selected Location the customer
    dropdown gets populated.
    Location Parameter Query
    WITH MEMBER [Measures].[ParameterCaption] AS [Location].[Location Name].CURRENTMEMBER.MEMBER_CAPTION MEMBER [Measures].[ParameterValue] AS [Location].[Location Name].CURRENTMEMBER.UNIQUENAME MEMBER
    [Measures].[ParameterLevel] AS [Location].[Location Name].CURRENTMEMBER.LEVEL.ORDINAL
    SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS , [Location].[Location Name].ALLMEMBERS ON ROWS FROM [Model]
    Customer Query
    WITH MEMBER [Measures].[ParameterCaption] AS
    [Customer].[Customer Name].CURRENTMEMBER.MEMBER_CAPTION
    MEMBER [Measures].[ParameterValue] AS
    [Customer].[Customer Name].CURRENTMEMBER.UNIQUENAME
    MEMBER [Measures].[ParameterLevel] AS [Customer].[Customer Name].CURRENTMEMBER.LEVEL.ORDINAL
    SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel],[Measures].[Amt]} ON COLUMNS,
    nonempty([Customer].[Customer Name].ALLMEMBERS,[Measures].[Amt]) ON ROWS FROM ( SELECT ( STRTOSET(@LocationName, CONSTRAINED) ) ON COLUMNS FROM [Model])
    Regarding parameter settings on General tab for both the above parameters we did not select any of the following values, all these checkboxes are empty:
    Allow Blank Value ("") , Allow null value, Allow multiple values.
    I think it has something related to [Measures].[Amt] that we used in customer parameter. We are now trying to take other two parameters where we would be not using the [Measures].[Amt] to filter the data. Will update you soon.
    Thanks, Ankit Shah
    Inkey Solutions, India.
    Microsoft Certified Business Management Solutions Professionals
    http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html

  • Change image when form dropdown list value is selected

    I really thought this would be simpler but I just can't get it working.
    I have a submit from from paypal with a dropdown list. The list allows you to select color. I want to change an image on the page to display the appropriate color when the color is selected from the drop down list. So a black image shows up when black is selected, a red when red - etc...
    I would be very grateful if someone can share some succinct, browser compatible code. Thank you so much for any help you can provide.
    Bill

    Thanks so much.  I used your info from above and am in the process of creating a product configurator for our products.  Do you see any problems/issues etc or ways to make this script better?  I don't have most of the images there yet, but if you choose big boy chair and then choose navy/powder/black fabric and most accent colors you should see it working (in FireFox anyway).  Not sure why it isn't working in IE.  Any ideas?
    Here's the link:
    http://logochairs.com/j25cms/index.php/customform/test-form
    And here's my code:
    <script type="text/javascript">
    <!--
    function logo_prodImgBySel(objId,theValue) {
    var cobaseimages=["/j25cms/images/customimages/blank.jpg","/j25cms/images/customimages/11/base.jpg", "/j25cms/images/customimages/12/base.jpg", "/j25cms/images/customimages/13/base.jpg", "/j25cms/images/customimages/15/base.jpg", "/j25cms/images/customimages/20/base.jpg", "/j25cms/images/customimages/23/base.jpg", "/j25cms/images/customimages/24/base.jpg", "/j25cms/images/customimages/25/base.jpg", "/j25cms/images/customimages/27/base.jpg", "/j25cms/images/customimages/32/base.jpg", "/j25cms/images/customimages/35/base.jpg", "/j25cms/images/customimages/39/base.jpg", "/j25cms/images/customimages/41/base.jpg", "/j25cms/images/customimages/42/base.jpg", "/j25cms/images/customimages/48/base.jpg", "/j25cms/images/customimages/50/base.jpg", "/j25cms/images/customimages/51/base.jpg", "/j25cms/images/customimages/52/base.jpg", "/j25cms/images/customimages/54/base.jpg", "/j25cms/images/customimages/56/base.jpg", "/j25cms/images/customimages/57/base.jpg", "/j25cms/images/customimages/58/base.jpg", "/j25cms/images/customimages/60/base.jpg", "/j25cms/images/customimages/62/base.jpg", "/j25cms/images/customimages/64/base.jpg", "/j25cms/images/customimages/65/base.jpg", "/j25cms/images/customimages/68/base.jpg", "/j25cms/images/customimages/69/base.jpg", "/j25cms/images/customimages/71/base.jpg", "/j25cms/images/customimages/72/base.jpg", "/j25cms/images/customimages/74/base.jpg", "/j25cms/images/customimages/77/base.jpg", "/j25cms/images/customimages/78/base.jpg", "/j25cms/images/customimages/79/base.jpg", "/j25cms/images/customimages/80/base.jpg", "/j25cms/images/customimages/82/base.jpg", "/j25cms/images/customimages/83/base.jpg", "/j25cms/images/customimages/84/base.jpg", "/j25cms/images/customimages/90/base.jpg", "/j25cms/images/customimages/94/base.jpg"];
        var d=document;
        theValue=cobaseimages[theValue];
        if (!theValue || !d.getElementById ) return;
        var obj = d.getElementById(objId);
        if (obj) obj.src=theValue;  
    <!--
    function logo_prodImgPrim(objId,theValue) {
      var coimageprimary1='/j25cms/images/customimages/';
    var coimageprimary25= document.getElementById('ff_elem368');
    var coimageprimary2= coimageprimary25.options[coimageprimary25.selectedIndex].value; 
    var coimageprimary3='/primary/';
    var ttt='Powder.png';
    var mypath=(coimageprimary1 + coimageprimary2 + coimageprimary3);
      var coPrimaryimages=['/j25cms/images/customimages/blank.png',(mypath + 'White.png'),
    (mypath + 'Black.png'),
    (mypath + 'Lemon.png'),
    (mypath + 'Yellow.png'),
    (mypath + 'Gold.png'),
    (mypath + 'Tangerine.png'),
    (mypath + 'Rust.png'),
    (mypath + 'Orange.png'),
    (mypath + 'Carrot.png'),
    (mypath + 'Red.png'),
    (mypath + 'Cardinal.png'),
    (mypath + 'Garnet.png'),
    (mypath + 'Maroon.png'),
    (mypath + 'Purple.png'),
    (mypath + 'Powder.png'),
    (mypath + 'Navy.png'),
    (mypath + 'Royal.png'),
    (mypath + 'Hunter.png'),
    (mypath + 'Gray.png'),
    (mypath + 'Charcoal.png'),
    (mypath + 'Khaki.png'),
    (mypath + 'Vegas.png'),
    (mypath + 'Kelly.png'),
    (mypath + 'Pink.png'),
        var d=document;
        theValue=coPrimaryimages[theValue];
        if (!theValue || !d.getElementById ) return;
        var obj = d.getElementById(objId);
        if (obj) obj.src=theValue;  
      <!--
    function logo_prodImgSec(objId,theValue) {
      var coimagesecondary1='/j25cms/images/customimages/';
    var coimagesecondary25= document.getElementById('ff_elem368');
    var coimagesecondary2= coimagesecondary25.options[coimagesecondary25.selectedIndex].value; 
    var coimagesecondary3='/accent/';
    var ttt='Powder.png';
    var mypathz=(coimagesecondary1 + coimagesecondary2 + coimagesecondary3);
      var coSecondaryimages=['/j25cms/images/customimages/blank.png',(mypathz + 'White.png'),
    (mypathz + 'Black.png'),
    (mypathz + 'Lemon.png'),
    (mypathz + 'Yellow.png'),
    (mypathz + 'Gold.png'),
    (mypathz + 'Tangerine.png'),
    (mypathz + 'Rust.png'),
    (mypathz + 'Orange.png'),
    (mypathz + 'Carrot.png'),
    (mypathz + 'Red.png'),
    (mypathz + 'Cardinal.png'),
    (mypathz + 'Garnet.png'),
    (mypathz + 'Maroon.png'),
    (mypathz + 'Purple.png'),
    (mypathz + 'Powder.png'),
    (mypathz + 'Navy.png'),
    (mypathz + 'Royal.png'),
    (mypathz + 'Hunter.png'),
    (mypathz + 'Gray.png'),
    (mypathz + 'Charcoal.png'),
    (mypathz + 'Khaki.png'),
    (mypathz + 'Vegas.png'),
    (mypathz + 'Kelly.png'),
    (mypathz + 'Pink.png'),
        var d=document;
        theValue=coSecondaryimages[theValue];
        if (!theValue || !d.getElementById ) return;
        var obj = d.getElementById(objId);
        if (obj) obj.src=theValue;  
    function clear_OnChange()
    var combo = document.getElementById('ff_elemPriColor');
    combo.selectedIndex = "0";
    var combo2 = document.getElementById('ff_elemSecColor');
    combo2.selectedIndex = "0";
    </script>
    <div id="product1image_a" style="position: relative; float: right; top: -20px; right: 0px; width: 250px; height: 250px; border: 2px solid darkgray; box-shadow: 5px 5px 5px rgb(136, 136, 136);">
      <img width="250" height="250" style="position:absolute;bottom:0px;right:0px;" id="theImg" src="images/customimages/blank.jpg" alt="" />
      <img id="thePrimary" style="position:absolute; bottom:0px; right:0px; width:250px;" src="images/customimages/blank.png">
      <img id="theAccent" style="position:absolute; top:0px; left:0px; width:250px;" src="images/customimages/blank.png">
    </div>
    <span id="bfElemWrap368" class="bfElemWrap bfLabelLeft">
    <label id="bfLabel368" for="ff_elem358">Product Line</label>
    <select id="ff_elem368" name="ff_nm_prod1[]" onchange="logo_prodImgBySel('theImg',this.selectedIndex);clear_OnChange();logo_prodImgPrim('thePrim ary',this.selectedIndex);logo_prodImgSec('theAccent',this.selectedIndex);" class="ff_elem">
    <option value="" selected="selected"></option>
    <option value="11">Big Boy Chair</option>
    <option value="12">Deluxe Chair</option>
    <option value="13">Canvas Chair</option>
    <option value="15">Sphere Chair</option>
    <option value="20">Toddler Chair</option>
    <option value="23">Classic Fleece</option>
    <option value="24">Sherpa Throw</option>
    <option value="25">Fleece Throw</option>
    <option value="27">UltraSoft Blanket</option>
    <option value="32">Tailgate Table</option>
    <option value="35">Trashcan Cooler</option>
    <option value="39">Economy Tent</option>
    <option value="41">Color Tent</option>
    <option value="42">Checkerboard Tent</option>
    <option value="48">Side Panel</option>
    <option value="50">12 Pack Cooler</option>
    <option value="51">Luggage Set</option>
    <option value="52">Rolling Duffel</option>
    <option value="54">Sport Duffel</option>
    <option value="56">Lunch Pail</option>
    <option value="57">Rolling Cooler</option>
    <option value="58">Party Bucket</option>
    <option value="60">Picnic Cooler</option>
    <option value="62">Backpack</option>
    <option value="64">String Pack</option>
    <option value="65">Reversible Tote</option>
    <option value="68">Seat Blanket Combo</option>
    <option value="69">Stadium Seat with Arms</option>
    <option value="71">Stadium Cushion</option>
    <option value="72">Gym Bag</option>
    <option value="74">Sweatshirt Blanket</option>
    <option value="77">Round Coozie</option>
    <option value="78">Flat Coozie</option>
    <option value="79">Bottle Coozie</option>
    <option value="80">Stadium Seat</option>
    <option value="82">8-Can Cooler Tote</option>
    <option value="83">16-Can Cooler Tote</option>
    <option value="84">30-Can Cooler Tote</option>
    <option value="90">Camping Stool</option>
    <option value="94">Hardback Seat</option>
      </span>
    </select>
    <span id="bfElemWrapPriColor" class="bfElemWrap bfLabelLeft">
    <label id="bfLabelPriColor" for="ff_elemPriColor">Primary Fabric</label>
    <select id="ff_elemPriColor" name="ff_nm_prodcolor[]" onchange="logo_prodImgPrim('thePrimary',this.selectedIndex)" class="ff_elem">
    <option value="" selected="selected"></option>
    <option value="White">White</option>
    <option value="Black">Black</option>
    <option value="Lemon">Lemon</option>
    <option value="Yellow">Yellow</option>
    <option value="Gold">Gold</option>
    <option value="Tangerine">Tangerine</option>
    <option value="Rust">Rust</option>
    <option value="Orange">Orange</option>
    <option value="Carrot">Carrot</option>
    <option value="Red">Red</option>
    <option value="Cardinal">Cardinal</option>
    <option value="Garnet">Garnet</option>
    <option value="Maroon">Maroon</option>
    <option value="Purple">Purple</option>
    <option value="Powder">Powder</option>
    <option value="Navy">Navy</option>
    <option value="Royal">Royal</option>
    <option value="Hunter">Hunter</option>
    <option value="Gray">Gray</option>
    <option value="Charcoal">Charcoal</option>
    <option value="Khaki">Khaki</option>
    <option value="Vegas">Vegas</option>
    <option value="Kelly">Kelly</option>
    <option value=

  • Auto Submit when changing Dropdown list

    I have a Dropdown list which reloads the page with other values after a change.
    How can i achieve that the option i selected in the dropdown list is preselected again after the reload of the page?
    Thanks

    I have a Dropdown list which reloads the page with other values after a change.
    How can i achieve that the option i selected in the dropdown list is preselected again after the reload of the page?
    Thanks

  • How do I create radio buttons which hide certain fields when selected?

    I have a set of two radio buttons, "Yes" and "No"
    When the "Yes" radio button is selected, I would like the "Bank Name", "Branch Number", "Institution Number" and the "Account Number" field to all be blocked from entering content into them.
    When the "No" button is selected, I would like for all of these fields to be available to be written in.
    I can do this currently with check boxes, but the problem with those is that both boxes can be checked at the same time, which is problematic.
    How can I make it so that the radio buttons control whether or not the fields can be written in!
    Thanks very much!

    Yes, I have done this. The buttons are mutually exclusive. The are in the group "Vendor EFT" - one is named "Yes", one is named "No".
    When the "Yes" radio button is selected, I would like the "Bank Name", "Branch Number", "Institution Number" and the "Account Number" field to all be blocked from entering content into them.
    When the "No" button is selected, I would like for all of these fields to be available to be written in.
    Not sure what code needs to be written for this.

  • Todo tab: Routes displayed when selecting the List View

    Hi,
    I have a question about the routes that appear on the workspace's  "To do" list view, and how to perform validations when they are  clicked.
    I've created a process that starts with a form being created by a  user. Then, it's validated by a sequence of other users. Each one sees a  different set of routes. On one of the steps of the process, one of the  routes requires the user to input a text.
    The condition is checked on the click  event of the AWS_SUBMIT button, where I've also put the text request. If the user is using the  card view on the "To do" tab and clicks on the item, the form opens and,  when the user submits it, all works as expected. However, if he has the  list view and clicks once on the item, the route names appear on the  bottom right of the workspace, and he's able to select them. As the form  hasn't been opened, there's no control on the selected route, and the  user is never asked to input the text. On the next step of the process,  which depends on this text, the process gets stalled.
    Is it possible to hide these routes on the workspace, disable the  list view, or stop the submit if it hasn't been started without opening  the form? I know you can customize the workspace, would this allow me  to remove the route buttons?
    The version we are using is LiveCycle ES 8.2.1.3.
    Thank you

    Is there any way to hide the submit button(green check mark) that appears on the task card when a user saves a form in their draft folder.
    Users are bypassing the form validation by submitting a form this way.  For instance, a user will fill out the form with values that do not pass validation.  They will save the form in their drafts folder.  The user will then close the form and navigate to their draft folder.  Without opening the form again, they will click the green check box submit button and a form with invalid data will be submitted to the process.
    This is LC 8.2.1.3.

  • Microsoft Visual C++Runtime Library Runtime Error when refreshing plugin list

    when i refresh the effects list, i get this runtime error:
    Microsoft Visual C++Runtime Library
    Runtime Errror
    Program: C:Program Files\Adobe\Adobe Audition 3.0\Audition.exe
    R6025
    -pure virtual function call
    what do i do about this. if anyone has any ideas to suggest dont be afraid to let me know. thnx in advance

    Point audition at another folder into which you put your plugins one at a time until you find the one that gives the problem. Or you can do a hashing thing (copy half in, see if it's ok, if not, delete half, try again, etc etc).

  • Ajax tabs not working when asp dropdown list in the tab

    I am using asp.net 3.5 framework. My page has modelpopup in that ajax tab controls used. one of the tab has asp:dropdownlist, this dropdown list is binding data from dataset. the tab which has dropdown lists is not working. it is working fine in IE9.0.
    Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

    changed to enableEventValidation="false", then it is working fine.

  • Immediate Submit From Dropdown List Selection

    In JSF what is the best way to get the form to submit immediately when a dropdown list item is selected? I know I can use a JavaScript onchange="..." but just wondering if there is a more standard/cool way of doing this in JSF.
    Thanks!
    Vaughn

    No. Simply creating a ValueChangeListener won't do what he wants. When he used the term "immediately" he meant "as soon as the value changes" and not "immediate" in the sense of bypassing Faces lifecycles. This can be seen from his reference to "onchange=".
    The suggestion I am about to make solves one problem but creates another.
    In addition to valueChangeListener= "#{...}" and immediate="true", put onchange="submit()". This will execute your event as soon as the value changes BUT...
    Faces navigation doesn't work any more when you return a navigation target.
    How do we get Faces Navigation to keep working when we use "onchange" ?

  • Customizing MSS reporting selection period dropdown list

    We have diffrent ABAP programs that uses the PNP logical database and we want to customize the period selection dropdown list on the MSS reporting iview. In same scenarios we want to display only 'Today'. In these scenarios we use the report together with a variant.
    When the user execute the report, the selection period on the variant is used and that is 100% correct. The problem is that the user change the selection period on the frontend (on the Iview) and this is not what is reflected on the output of the report, becasue the report uses a variant.
    Therefore we want to customize the period selection dropdown list on the Iviewin the scenarios where a report uses a variant.
    I know that we cannot customize the perido selction on the Iview, beacue we cannot set the properties on the Iview.
    Is anybody familiar with how we can accomplish this.
    Regards
    Margariet
    << moved by moderator - check out the list of other forums on top of portal forum >>
    http://forums.sdn.sap.com/thread.jspa?threadID=1239838&tstart=0
    Edited by: Anja Engelhardt on Feb 9, 2012 11:42 AM

    Hi Darren,
    We do have a property in the iview for which you can set the period. You need to know the name of the property. Give us the iview name so that we can have a look.
    Cheers,
    Sathya

  • OBIEE - How to selectively hide or disable columns on a dashboard prompt?

    Hello! I need some help with OBIEE dashboard Prompts. Any help will be highly appreciated!
    Question 1. How to selectively hide or disable columns on a dashboard prompt or the entire prompt? There seems to be no "hide" or "dsable" options on
    prompts.
    Question 2. How to synchronize 2 different prompts on the same dashboard?
    The application is this: There are total of 2 tabs on a dashboard ("tab_1" and "tab_2"). Each tab uses different prompts ("pr_1" and "pr_2"), having just one first drop down column in common ("Product_id").
    The desired functionality is this: user selects "Product_id" on the first tab's prompt, which filters its reports (on "Go") and also propagates to the second tab. When user clicks on the second tab, the reports there are already filtered (or begin filtering) by "product_id", selected on the first tab.
    Question 3. How to prevent the reports from retrieving when switching to a different tab on a dshboard? Specifying dummy default values in the prompt does
    not seem to preven reports from retrieving, which still takes time.
    Thank you very much!
    Roger

    Regarding Question 2:
    What you need to have is a Dashboard scope dashboard prompt for Product_ID (i.e., Don't use the column prompt from the prompt tab within the Request.)
    1) Create the dashboard prompt, put it on tab1 and save the prompt to a presentation variable, say prmtProdID. Set the scope to "dashboard." (This is the default, by the way.) If you create a dashboard prompt and set the scope to "dashboard," then the prompt values selected will hold true across dashboard pages.
    2) On tab2, go to your report and in Criteria mode, apply a filter to the Product_ID column making it equal to the PV. (Click the filter icon, Add>Variable>Presentation Variable and type prmtProdID. Save.)
    When the user selects a Product_ID on tab1 of your dashboard and hits "Go," not only will it filter your report on tab1, when you go to tab2 the report here will be filtered with the same value selected in the prompt on tab2.
    Regarding Question 3:
    If you implement 2, you cannot implement 3. You can't have it both ways. Not for the same scenario. But if you want to know how to do it in general, read this:
    http://obieeone.com/2009/08/24/how-to-stop-queries-to-automatically-fire-off-once-entering-dashboarddashboard-page/

  • Disable extra control points when selecting objects

    The new control points that Illustrator has when selecting an object (in addition to the regular handles), how do I disable or hide them? I am working on artwork with many small pieces and these are REALLY getting in the way of moving and adjusting them. Looked through preferences and don't see a way to do it (for that matter, what are these annoying things called?)

    View > Hide corner widgets

  • Enable a textfield(disabled) when another textfield modified

    Hello friends,
    I think its simple for you.
    I have a textfield which is disabled by default. I want to enable it if some other textfield is modified.
    I tried using processValueChange() but no success.
    I hope you have something for me.
    Thank you

    hi
    implement processValueChangedtextField1()_ *method for ur component , and enable autosubmit-OnChange<property and set it to true.
    hope this will help
    Good Luck
    Mohammed

  • How to use javascript in visual jsf

    I have a web project and I am using visual jsf in netbeans. My problem is I cannot with javasciprt.
    When I clicked to a button I want to make some check with javascipt and then run server side java code. With jsp I used to add onclick javascipt and if it is ok, I just submit to servlet and run the java code in servlet. How can I do this with visual jsf

    If you are trying to display total number of pages in a report, Add the below formula in the column of the report and hide that column in the report.
    FX = sum(count(1))/25
    You can then reference the column in the narrative view like this: "Total pages in the report are @5" and out put may be "Total Pages in the report are 30".
    Or
    You can also use something like the below:
    To calculate them use fi:
    CEILING(CAST(RCOUNT("FactColumn In the Report (Sum All)") as DOUBLE)/ 25) for the page number
    CEILING(CAST(COUNT("FactColumn In the Report (Sum All)") as DOUBLE)/ 25) for the total pages
    Put the above formula in the column and reference it in the narrative view like I mentioned in the previous example.
    If you are report view is pivot, then please refer to this link: http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-pagination-in-pivot-tables/
    Hope this helps.
    Thanks,
    -Amith.

Maybe you are looking for

  • Mac Mini Marantz SR6007: Samsung TV keeps blinking

    Hello, I have looked all over for this and I'm on my last rope. I have a mini bought in 2011 which worked flawlessly with my Marantz SR7002 and my Samsung LED TV. The marantz just died and I've just replaced it by an SR6007. On the mini (and on the m

  • Different Languages in URL-iView in EP7 SPS11

    Hi there, we create some URL-iViews and want to implement some other URL´s for different languages. But there is a problem: SAPPortal knows only English, German, French , Internet Explorer 6 and 7 knows different languages for German, English etc. En

  • How to optimize my Aperture/iPhoto shared Library configurations?

    Hi, Dear All: I just got a new Aperture 1.5 installed on my Mac Pro two days ago, and I decided to use the iPhoto Library as my Aperture's defualt vault, however, I also relocated my iPhoto Library from primary HD (Macintosh HD) to 2nd HD (Media HD).

  • IMovie on the iPhone

    I have been trying to use iMovie on my iPhone 4, however many of my videos that I have on my iPhone (via iPhoto) are not available to be imported into to iMovie. I am wondering if this is based on a specific codec or the fact that these were not shot

  • Scanned Images not working with iphoto6

    All my hundreds and hundreds of scanned photos will not work in iPhoto6. My digital photos taken with a digital camera work just fine. I use an Epson 2480 Photo scanner. All the photos I have scanned over the years and even my recent scanned photos w