Drop List-Visible/Invisible Drop List

Here is my senario.
I have a drop-down list with two items:ITEM_A,ITEM_B
Also I have two others Drop-down lists:ListItem_A,ListItem_B
The presence for these two drop list is invisible.
This that I like to achive is when a user select ITEM_A for example,Drop list(ListItem_A)to become visible or if they select ITEM_B for example,Drop list(ListItem_B)to become visible.
Thank and HAPPY NEW YEAR

Dear Thomas, Thank you very much for your help, this problem works now. As you can tell, I have no idea of JavaScript. What do I have to add to the code for the following:
My drop Down List (DD0) has 3 options (Values 0,1,2) If I select 0 (which is the Default value), it should leave the 2 other DD-Lists (DD1 and DD2) invisible.
If I select 1, it should only show DD1 and if I select 2, it should only show DD2.
Here is the code that I entered under the change event of the first list (DD0), but it doesn't work:
if (form1.Main.Vessel.Table1.Row2.DD0.rawValue == 1)
form1.Main.Vessel.Table1.Row2.DD1.presence = "visible";
else if (form1.Main.Vessel.Table1.Row2.DD0.rawValue == 2)
form1.Main.Vessel.Table1.Row2.DD2.presence = "visible";
else
form1.Main.Vessel.Table1.Row2.DD1.presence = "hidden"; form1.Main.Vessel.Table1.Row2.DD2.presence = "hidden";
What do I need to change? And Thank you very much for the quick help! If you'd like to, I can also send you the form.

Similar Messages

  • Make region/Task-Flow visible/invisible inside the page created in composer mode.

    Environent_
    JDeveloper 11.1.1.6.0
    Webcenter Sites version : 11g R1.
    Problem statement_
    Below example is to demonstrate the usecase to make region visible/invisible inside the page created in composer mode.
    The problem with this case is the 'Show Component' property does not automatically evaluate its expression even after using the contextual event.
    We want the region to be refreshed at run-time just like it works with design time pages using Refresh, RefreshCondition attributes in pageDef.
    My Usecase_
    I have two task flows dragged in Webcenter Customized Page.
    First contains Employee list and Second  contains selected employee's manager name.
    By default when page loads second task-flow/Dragged-Box  should be hidden.
    When I select employee from first box, then immediately second box should be appeared with manager name.
    In the case when If Employee does not have manager, second box should be disappeared. Whole page should not be refreshed only the second box should be refreshed and hide.
    Regards,
    Niraj

    Hi Jiri,
    Thanks for your prompt reply..
    While referencing the taskflow in any page will create a region and makes entry in pageDef for that page.
    In the PageDef of that page I am using Refresh and RefreshCondition attributes of the taskflow tag in order to refresh the taskflow based on certain condition or parameter change.
    I want to achieve the same in run-time environment using composer mode. where I have the control over page but do not have pageDef (visually where I can go and add the attributes Refresh and RefreshCondition manually)
    I would be obliged if someone can help on this.
    Thanks
    Regards,
    Niraj

  • Access - Another Newbie Visible/Invisible Field Q

    With help from Maurice, I now have two fields and associated labels that become visible/invisible dependent on the selection/status of a checkbox.  The visibility is controlled in the AfterUpdate property of the check box.  See previous "field
    visibility" post.
    What I am now looking to do is have the visibility of those fields change as I navigate between records.  So if the checkbox is unchecked for a particular record, then the fields are not visible when this record is displayed in my form.
    Can someone tell me in which event this test should be applied?
    I'm thinking this should be a form event, but I don't see a change record event as such.
    Thanks
    Phil

    Hi Phil,
    You can accomplish this by using the 'on current' event of the form. That way when you navigate to another record you can trigger an event. Be aware though that this is a costly event because it will fire every time you go to another record.
    You can use the value of the checkbox as your trigger. Something like if me.checkbox=0 then me.label.visible=true or false.
    Let us know if that helps
    Maurice
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer. Thank You
    The Office Corner

  • Visible/invisible subform based on choices from 2 dropdowns

    Does anyone have an example of a form with subforms being visible/invisible based on the answers of 2 dropdowns.
    thanks for sharing

    Hi Jagan,
    It is probablly just how you set up the script.
    For starters, for Yes/No choices I think you would be better to use radio buttons instead of checkbox objects. So for example you would have four different radio button exclusion groups, each with a Yes and No radio button. Then in the Object > Binding palette, you would set the Yes value to 1 and the No value to 0.
    This way you can sum the four radio button exclusion groups and if the total value is >=1 then change the presence of the text field and highlighting to suit.
    There are some examples here that might help:
    Scoring options: http://assure.ly/uiKS6f.
    Tracking interaction (checkboxes): http://assure.ly/xDbtbx.
    Hope that helps,
    Niall

  • GUI elements visible/ invisible

    I need various different comboboxes to appear as the user steps through making choices.
    I am new to Swing and unsure whether I can make comboboxes visible, or whether I should have them on different JPanels and make these visible/invisible.
    Am a little confused 'cos I read in a book that only one element can be contained in a specific container region, so can I have several JPanels in the one region of the container at the same time?
    I am using border layout.
    If someone could please explain I'd sure appreciate it!

    There are many layouts availabled in Swing, BorderLayout, BoxLayout, GridBagLayout, CardLayout etc etc. Each of them have their own pros and cons. For instant, BorderLayout can only contain one element in a specific container region, like you said. It has 5 regions, North, West, East, West, and Center. Following link can give you more details about this layout.
    http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html
    Yes, you can make comboboxes visible or invisible.
    JComboBox.setVisible(true) or JComboBox.setVisible(false)
    You can do this to any other components as well, like JTextField, JLabel, JButton etc etc.
    cheers.

  • Making Subform Instances Visible/Invisible

    Hello,
          I am trying to loop through the Subform Instances of the form and trying to make them visible/invisible on the click of a Check Box. The script seem to run just fine but the values nothing happens to the subforms. The script is written on the CLICK event of check box and is as below:-
    ----- HAP_DOCUMENT.APR.HAP_DOCUMENT.Positions.DATA.CHECK_BOX::click: - (JavaScript, both) ----------
    var
    nCount = APR.HAP_DOCUMENT.T_ELEMENTS.DATA.instanceManager.count;
    //var plan_value = this.parent.PLANS.rawValue;
    var
    plan_value = this.parent.parent.parent.Storage_Form.PLANS.rawValue;
    for (var nItem = 0; nItem < nCount; nItem++) { // Begin Loop T_ELEMENTS after the Instance is created
    var sub_Tele = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"]";
    var tName = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"].T_COLL_CELL.DATA";
    var sCount = xfa.resolveNode(tName).instanceManager.count;
    for (var sItem = 0; sItem < sCount; sItem++) { // Second Loop on T_COLL_CELL
    var fName = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"].T_COLL_CELL.DATA["+ sItem +"].T_FIELD.DATA";
    var tCount = xfa.resolveNode(fName).instanceManager.count;
    for (aItem = 0; aItem < tCount; aItem++){ // Third Loop on T_FIELD
    var gName = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"].T_COLL_CELL.DATA["+ sItem +"].T_FIELD.DATA["+ aItem +"].simpleField.VALUE_STRING";
    var lName = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"].T_COLL_CELL.DATA["+ sItem +"].T_FIELD.DATA["+ aItem +"].simpleField.CAPTION";
    var subName = "HAP_DOCUMENT.T_ELEMENTS.DATA["+ nItem +"].T_COLL_CELL.DATA["+ sItem +"].T_FIELD.DATA["+ aItem +"]";
    var aVal = xfa.resolveNode(gName).rawValue;
    var bVal = xfa.resolveNode(lName).rawValue;
    var subVal = xfa.resolveNode(subName).presence;
    if (bVal == "Position Number"){
    if (aVal == plan_value) {
    if ( this.rawValue == 1) {xfa.resolveNode(subName).presence
    = "visible";}
    else {xfa.resolveNode(subName).presence
    = "hidden"; }
    Is there any other way of addressing the properties of the Subform Instances? Could any please help me as to why there is no effect on the subforms?
    Regards,
    Shishir.P

    Is the form saved as dynamic? Are you getting any errors in the javascript console?
    Paul

  • Make a Transparent container visible invisible

    helllo all,
    how can I make a Transparent container visible invisible depending to an attribute,
    can anyone lead me to resolve this ?
    thank you all?

    Hi,
    Create a attribute ( LV_VISIBLE ) type of boolean in context, then bind that attribute in the properties of the TC
    TC->properties->visble property, bind the attribute in visible property of the TC.
    Then when u want to visible that inside of on action write below code.
    Declare a node :data:  n_node type ref to if_wd_context_node.
    then node assign to that created ( LV_CISIBLE )attribute nade ( E/G : ln_node = wd_context->get_child_node( name = ' node' ) )
    ln_node->set_attribute( exporting name = `LV_VISIBLE` value = abap_true ). "for visible of the TC.
    ln_node->set_attribute( exporting name = `LV_VISIBLE` value = abap_false ). "for invisible of the TC.
    Regards
    Srini.

  • Using setInterval/clearInterval to cycle through visible-invisible

    I've got so confused with setInterval/clearInterval that fail
    to code a very
    basic effect.
    I need an object to become visible for, say 3 sec, then to
    become invisible
    for 2 sec and so far.
    I did three functions:
    function objOnAndOff(){
    int1=setInterval(objOff,3000);
    int2=setInterval(objOn,4998)
    function objOff(){obj._visible=false;clearInt(int1)}
    function objOn(){obj._visible=true;clearInt(int2)}
    obj._visible=true;
    var int1,int2,int3
    int3=setInterval(objOnAndOff,5000)
    I expected objOnAndOff be called every 3+2=5 sec, of which
    the object would
    stay visible for the first 3 sec, then on 3.001 objOff() sets
    it invisible,
    then on 4.999 objOn() sets it visible. Immediately after that
    objOnAndOff()
    is called again and the cycle repeats. Instead it behave
    erraticaly.
    Where does my logic fail?

    Thanks. Amaizingly, I used clearInterval() many times and yet
    wrote
    clearInt() looked at is many times and failed to notice.
    I works in general.
    However I have a timer counting down every second and I
    planted trace()
    into your two functions - the interval shown by the times is
    not stable. It
    is suppose to be 2 and 3 but timer sometimes shows 1 nd 2
    respectively -
    Iis is cvorrect to suggest that this is the result of an
    inacuracy
    accumulated over several cycles and we have this leap year
    regularly?
    Also is it important that you clearInterval for Off/On BEFORE
    setting the
    interval for On/Off
    In my first attempt I coded similar functions but
    clearInterval for Off/On
    AFTER setting the interval for On/Off and it did not work,
    though I do not
    see why this matters.
    "kglad" <[email protected]> wrote in message
    news:e3bqes$g1p$[email protected]..
    > you have a syntax error and an error in flash-logic. to
    correct the
    syntax
    > error use clearInterval() to clear your intervals
    (clearInt() is not a
    flash
    > function).
    >
    > your error in flash-logic is thinking setInterval()
    function calls are
    precise
    > to within 2 ms. they are not and you're likely to
    accumulate
    uncontrollable
    > calls to objOn().
    >
    > i don't think pwyon's code will do what you want. try:
    >
    >
    > function objOff(){
    > obj._visible=false;
    > clearInterval(offI);
    > onI=setInterval(objOn,2000);
    > }
    > function objOn(){
    > obj._visible=true;
    > clearInterval(onI);
    > offI=setInterval(objOff,3000);
    > }
    > objOn();
    >

  • Making Portal Content Visible/Invisible at Runtime

    Hi SDNers,
    I'm having a Portal Content Hierarchy which goes till 5 levels. The hierarchy includes roles, subroles, worksets, pages etc at different levels.
    Now, the scenario is, not all the subroles should be visible to every user. I would like to make some WorkSets, Pages invisible for some user according to the specified role.
    Means if a user doesnt have authorizations to do certain operations, those Pages, WorkSets should not be visible.
    A Solution would be to prepare multiple Hierarchies according to the specified role. But those combinations are so many that I'm not feeling comfortable with the approach of making all the hierarchies statically.
    I tried to find the solution with "Portal Content Permissions" but unfortunately couldnt come up with one.
    Please let me know if anyone has any ideas for the same.
    Thanks in advance,
    Mausam

    Hi,
    Use PCDFilter, which can be used to filter role and workset content depending on the users.
    Check this for more:
    How to restrict the Users at Page level
    Greetings,
    Praveen Gudapati

  • Workset Visible/Invisible during runtime

    Hi Experts,
    I have a requirement where Iview is assigned to Page, Page is assigned to workset, workset is assigned to Role. The Iview consists of  reports fetched from the backend . The end user has to see the workset if he has reports in the Iview if not the workset should be invisible.
    Is there a way where I can Visible/Invisble the workset during runtime  based on the content fetched from R/3 system in Iview.
    Regards,
    Madhan

    Hi Madhan,
    Visiblity of workset can't be changed at runtime in current exisitng features.
       In practical situatrions I dont think, bakcend report iViews change so much frequently that, you have to decide visibility of workset based on iView report availbility.
    So please check this.
    Regards,
    Ganga

  • Setting visible/invisible when menu item is contained/not contained

    Hello All,
    I have a vertical rectangle (the containerButtonsRect) that contains menu items (text). The items slide up and down when using up and down keys. When the items go out the container I want to make them invisible. When they come back in the containerButtonsRect I want to make them visible. The following code does not work:
    override public function create(): Node {
            for (i in [0..sizeof labelButtons - 1]) {
                def menuItem:MenuItem = MenuItem {
                            x: bind containerButtonsRect.x
                            y: bind (containerButtonsRect.y + (i+1)*ySpacing + i*maxButtonHeight)
                            width: bind containerButtonsRect.width
                            height: bind maxButtonHeight
                            content: labelButtons[i]
                            translateY: bind tracker*deltaY
                            visible: bind ((menuItem.y + translateY > containerButtonsRect.y) and ((menuItem.y + translateY + maxButtonHeight) < (containerButtonsRect.y + containerButtonsRect.height)))
                insert menuItem into menuItems;
                if (i == focusedIndexItem) {
                    menuItems[focusedIndexItem].selected = true;
                updateMaxSize(menuItem);
            return Group {
                content: bind [
                    containerButtonsRect,
                    selectionRect,
                    menuItems
        }It is strange that the following line:
    visible: bind ((menuItem.y + translateY > containerButtonsRect.y) and ((menuItem.y + translateY + maxButtonHeight) < (containerButtonsRect.y + containerButtonsRect.height)))does not do the job.
    Is there a better way to set the visible attribute based on the logic described above?
    Thanks.
    Edited by: sacchett88 on Jun 9, 2010 2:10 PM

    Thank for the response.
    The translateY is set to provide vertical motion. A time line is controlling the tracker variable. So when I move arrow up/down the items scroll up/down.
    I agree JavaFX have way complicated the different variables you can set to position components and retrieve width and height. This cause a lot of problems hard to debug.
    Interesting your ideas of setting the clip of the group. I am not to familiar with that attribute as well the description in the docs: http://java.sun.com/javafx/1.3/docs/api/javafx.scene/javafx.scene.Group.html is poor:
    "Specifies a Node to use to define the the clipping shape for this Node."
    Is there any example you could point me out to ?
    Thanks.

  • Cannot toggle field between visible & invisible

    There is a defect with Designer's scripting that prevents toggling a numberic calculated field between being visible and invisible. Here is a sample calculated field script that reproduces the problem:
    if (fieldOne.rawValue > 0)
    this.rawValue = fieldOne.rawValue * fieldTwo.rawValue;
    this.presence = "visible";
    else
    this.presence = "invisible";
    this.rawValue = 0;
    Note that the same defect is present when using an equivilent FormCalc script.

    I tried your script on a form in Designer 7.1 which I previewed as an Acrobat 7.0.5 Dynamic PDF. While I didn't have problems with the script toggling the presence of the field, the product field's value would always remain zero (0).
    Then I modified the script to be as follows (in JavaScript):
    if (fieldOne.rawValue > 0)
      if (this.presence != "visible")
        this.presence = "visible";
      this.rawValue = fieldOne.rawValue * fieldTwo.rawValue;
    else
      if (this.presence != "invisible")
        this.presence = "invisible";
      this.rawValue = 0;
    Using this script, everything worked fine: Both the toggling of the presence of the product field as well as its calculated number.
    This made me wonder if there was a timing issue when setting a field's presence immediately after changing its value so I tried a configuration where I had two numeric fields: One field receives a number entered by the user while the other has a Calculate script on it which hides itself if the first field's value is zero or less and shows itself along with the value of the field field multiplied by 10.
    This is the JavaScript I used on the "10 product" field:
    if (NumericField4.rawValue > 0)
    this.presence = "visible";
    this.rawValue = 10 * NumericField4.rawValue;
    else
    this.presence = "invisible";
    this.rawValue = 0;
    Once again, this worked as expected. But when I changed the order of the operations such that the presence was being changed
    after the value, while the presence was being set correctly, the value always remained zero (0).
    So I believe this proves that there's a bug with setting the presence after setting the value in a Calculate script where the value always remains zero (0) and this also shows that there's a simple work-around. If you're still having problems with the presence while using the suggested work-around, it's possible you're either using a version of Acrobat which is prior to 7.0.7 and has worst symptoms than this latest version or that you're either previewing or you've saved your form in a
    static PDF format.
    Thank you for pointing-out this problem. I'll report it to Acrobat. Bare in mind, however, that the Calculate event was never meant for anything more than affecting a field's value based on a calculation. Of course, I, personally, understand (and see the value in) the desire to affect much more than a field's value in the Calculate event since it runs every time the value of a field on the form changes. But since it wasn't designed for that, one should always be careful when writing complex calculation scripts such as the one you were using.
    Attached is my test form for you to try.
    Stefan
    Adobe Systems

  • Dynamical View - Visible / Invisible mode

    Hi,
    I've 5 table in a view of a Web Dynpro and 5 button for any table.
    I need to display only a table dipending the button pushed .
    I think to put 5 table on a view in invisible mode.
    I can't place on all the table each other.
    Have you an idea?
    Tnx a lot.
    Domenico.

    Hi,
    Adding to what Anil has said
    The table has property called Visibile bind this to a context attribute of type WDVisibility.
    The property Visible can take three values
    blank : The UI element is not visible on the screen but takes up space.
    none : The UI element is not visible on the screen and takes up no space.
    visible :The UI element is displayed on the screen.
    In the init method set all the tables visibility to none like
    wdContext.currentContextelement.set"Name of attribute"(WDVisibility.None);
    Then as and when you require to see a particular table set the context attribute to visible.
    Hope this helps.
    Regards,
    Vijith

  • Set border visible/invisible

    Hi there. Could You tell me how to switch visibility of border component?
    I set it  invisible in screenpainter as default. then I want to show border during program.
            LOOP AT SCREEN .
            IF ( SCREEN-GROUP3 EQ 'SEL' ) .
              SCREEN-active = 1 .
              " or
              SCREEN-invisible = 0 .
              MODIFY SCREEN .
            ENDIF .
          ENDLOOP .
    has no effect.
    Do You know which property should I change to control border's visibility?

    Hi,
    Check the code
    code
    selection-screen begin of block processing with frame title text-030.
    selection-screen begin of line.
    selection-screen position 1.
    parameters pa_xmanu like rm08mrbr-manu default 'X'
    radiobutton group val modif id id1.
    selection-screen comment 3(30) text-040 for field pa_xmanu modif id id1. "<--- Here
    selection-screen position 40.
    parameters pa_xauto like rm08mrbr-auto
    radiobutton group val modif id id1.
    selection-screen comment 43(30) text-050
    for field pa_xauto modif id id1. "<--- Here
    selection-screen end of line.
    selection-screen begin of line.
    parameters: pa_xskto like rm08mrbr-skto as checkbox modif id id1.
    selection-screen comment 3(30) text-055
    for field pa_xskto modif id id1. "<--- Here
    selection-screen end of line.
    selection-screen end of block processing.
    at selection-screen output.
    loop at screen.
    if screen-group1 = 'ID1'.
    screen-active = 0.
    modify screen.
    endif.
    endloop.
    [/code]
    Reward for useful answers.
    Regards,
    Raj.

  • Rendre visibles / invisibles des commandes ou interrupteurs

    Bonjour,
    Je souhaite créer une interface homme/machine via Labview et pour cela j'ai besoin de pouvoir avoir certaines commandes sur ma face avant afin d'ajuster les valeurs en temps réel.
    Selon le mode de fonctionnement choisi, toutes les commandes ne sont pas utiles, je voudrais que certaines ne s'affichent qu'à une certaine condition comme dans la pièce jointe pour "set value for P" mais lorsque que je lance le VI cette commande reste toujours éteinte même dans la seconde condition où elle doit être visible... (Je précise que dans le second mode la condition de visibilité est vraie pour cette commande).
    Pouvez vous m'aider?
    Merci d'avance pour vos réponses.
    Camille
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    Probleme Labview.png ‏84 KB

    Bonjour,
    Il faudrait voir "la seconde condition" dont vous parlez pour comprendre...
    Attention au flux de données, si les noeuds de propriétés ne sont pas connectés à un cluster d'erreur ou déposés dans une structure séquence ils s'exécutent dès que l'on rentre ds la boucle conditionnelle.
    Francis M | Voir mon profil
    Certified LabVIEW Developer

Maybe you are looking for