How to hide a button based on zero a count of an independent subform?

I'm a newbie to this. Try different ways without success. I found the info in an old discussion group. There is no info to indicate that it worked.

It's not exactly what I need. I tried to adapt it without success.


"in the click event of the button remove should have something like this."

If (this.parent.instanceManager.count > 1) {}

this.parent.instanceManager.removeInstance (this.parent.index);

} else {}

xfa.resolveNode("Subform1[0].cmdRemove").presence = 'hidden ';

this.parent.instanceManager.removeInstance (this.parent.index);

}

And you should have an initialize event of the subform

If (this.instanceManager.count > 1) {}

xfa.resolveNode ("Subform1 [0]. ") cmdRemove') .its presence = 'visible ';

} else {}

xfa.resolveNode ("Subform1 [0]. ") cmdRemove') .its presence = 'hidden ';

}

Basically, I want to hide a button if the account of a subform get to zero. The subform has start from zero count. If somoene decides to remove all the subform said, I need the button target to be "hidden". Any help would be appreciated.

It works as you described. Thank you

Tags: Adobe LiveCycle

Similar Questions

  • How to hide the button only break on the toolbar at run time

    Hello

    I had to hide all the buttons as run, run streaming, vi and other abandoned by accessing the properties VI and by unchecking the corresponding options.

    When I run the vi, everything becomes hide except the pause button and I found no option to hide manually as well as programmatically.

    can someone tell me how to hide the pause button. I have an urgent need for same.

    Thank you best regards &,.

    Samriddh Sarbalhi

    Hello

    You need...

    Properties of VI--> execution

    Turn off "enable debugging".

    Rod.

  • How to hide a button with javascript in Captivate 8?

    I need to run javascript in my project and at the same time I want to hide a button, so I can't use advanced actions.

    Why? You can insert the "Execute JavaScript" command in a fast action without any problem. And the same event that triggers the JS can trigger this combined action.

  • How to hide my button?

    I try to hide my button once my MovieClip is invoked so that it does not appear behind the MovieClip?

    The code I wrote to get the MovieClip to play is:

    Stop();

    import the classes so we can make in our movie

    import flash.display. *;

    import flash.events. *;

    import flash.display.MovieClip;

    import flash.display.Sprite;

    button_mc.addEventListener (MouseEvent.CLICK, buttonCLICK);

    function buttonCLICK (event: MouseEvent): void {}

    faucet2_mc.gotoAndPlay (1);

    }

    What is the syntax I use hide my (button_mc) button when the MovieClip is playing and then reappear when the MovieClip is finished playing?
    The syntax appears before or after my end hook?

    Try:

    MovieClip (parent).button_mc.visible = true;

    the rest the same as in my first message

  • 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

  • How to hide and show based button if the line is selected in a table

    Hello

    IM pretty new to apex. I use version 4.1. I have a tabular form and I want to do is only have the button Show delete if I select a row in the column [line selector]. Is this possible using a dynamic action? I tried this way without success. Please help or let me know if you need more information.

    Thank you

    Do you mean if the box is checked in the line?

    Assign a static ID for the button Delete, for example MY_DEL_BTN. Search for 'Static ID' in the attributes of the button section.

    If so, do an advanced Click-based dynamic Action and a jQuery selector. Generally, this element is the name "f01" but, sure. Assuming that it is "f01" then your jquery selector would be:

    input[name="f01"]
    

    define the scope of the event live.

    Your dynamic action will trigger JavaScript. (BE SURE TO DESELECT FIRE ON PAGE LOAD). To make sure that you have the jQuery selector right, initially just to put a pop-up message in the JavaScript.

    alert('You Clicked the Row Selector!');
    

    Run the page. Click on the line selector. If you get the noise until you have specified the jQuery selector correctly. Yay!

    Then, assuming the above is correct. You can now determine if all have been selected.

    Now, set it to SELECT FIRE on PAGE LOAD (you want deleting DialogResult.Cancel when you open the page).

    Change your JavaScript like this:

    var checkedCnt = $("input:checked").length;
    
    if( checkedCnt > 0 )
    {
       $('#MY_DEL_BTN').show();
    }
    else
    {
       $('#MY_DEL_BTN').hide();
    };
    

    -Joe

  • How to hide the button "Start a conversation" using mozilla.cfg

    Hello

    I've just updated to FF 41.02 and my mozilla.cfg does not hide the smiley face icon (start a conversation). Anyone know how I can do this?

    Here's the line I use for my mozilla.cfg to show/hide icons

    lockPref("browser.uiCustomization.state", "{"placements":{"PanelUI-contents":["edit-controls","downloads-button","new-window-button","privatebrowsing-button","zoom-controls","developer-button","fullscreen-button","preferences-button","history-panelmenu","save-page-button","find-button","add-ons-button","loop-button"],"addon-bar":["addonbar-closebutton","status-bar"],"PersonalToolbar":[],"nav-bar":["urlbar-container","search-container","print-button","home-button"],"TabsToolbar":["tabbrowser-tabs","new-tab-button","alltabs-button"],"toolbar-menubar":["menubar-items"]},"seen":[],"dirtyAreaCache":["PersonalToolbar","nav-bar","TabsToolbar","toolbar-menubar","PanelUI-contents"],"currentVersion":4,"newElementCount":0}");

    Thank you

    Hello

    I managed to get out.

    lockPref ("loop.enabled", false);

  • [ADF, JDev 12.1.3] How to hide menu items based on the logged in user

    Hallo,

    When the user logs on successfully, the applitacions led him to the main.jspx page.

    The main.jspx page has a menu bar that contains all of the available menus, submenus and menu items.

    After the connection, when the main.jspx page loads I would hide all the menus, submenus and menu items that the user is not qualified to see/use (I read the database).

    You kindly tell me which is the way the cleaner to achieve?

    Thank you

    Federico

    user10709360 wrote:

    Hello rohanwalia,

    Sorry, but I need more help

    I guess that the solution is to create a method in the AM who - reading form the database - returns a structure that indicates for each menu item should be visible or hidden.

    • How can I use the data returned by this method?
    • I call in a managed bean specifically dedicated to the management of the menu? Can I also use the already existing media bean, I created for the page?
    • What scope should have the bean?
    • Don't you think that it is better to define a 'visible' variable Boolean (initilized depending on the result of the AM method) for each menu item and how to bind the Visible property of each menu item to the variable respective in the bean in the bean?
    • Or I can loop the result of the method AM setting the Visible property of the menu items? In this case, I guess that all the menu items must be mapped into the bean by user interface variable. Am I wrong?
    • Is it not possible to write a method which, of the AM directly, hide the menus not necessary on the page (so without using a bean)?
    • In general, which are the correct always to hide menu items:
      • (1) before the page is sent to the browser (as "I can do it with PHP);
      • (2) once the page is loaded in the browser (as I can do it with JavaScript)?

    If you could give me some more detailed advice... I would be very happy.

    Thank you

    Federico

    (1) its best to make the treatment inside the method. You can return the parameters as normal java method.

    (2) Yes, you can use bean already exists in the project. But better to create a separate bean for this task of menu.

    (3) scope should be request unless you need to persist the attributes between requests.

    (4) Yes it is possible. You can define and initialize a Boolean variable with the results you get from the table based on the menu items should be made visible.

    (5) If you use the approach to point 4, then also you have to loop through the table menu items and set Boolean variables of bean. Yes you are right for the second part.

    (6) I'm not sure about this approach. How will you map it to your menu mode. It takes research.

    (7) before the page is loaded. I share with you links in above post with which you can do this.

    I hope this helps.

    Thank you

  • Dynamic action - hide a button based on SQL

    Hello

    I have a button that I want to disable the SQL logic

    something like that

    dynamic action must check

    If P2_CUSTOMER_NAME in (select CUST_NAME FROM TABLE_A)

    If true, then hide from another BUTTON_1 does not hide BUTTON_1

    Please advice how


    Thanks in advance

    Just click the button to launch OBE. At the most, you may need to be a member of the RTO.

    André

  • How to hide a field based on the value of a field of a different subform - controls null does not work!

    I use Javascript to define actions. I need to hide a text field, if the value of a field in another subsidiary form is zero.

    -J' tried to check the value in the other field NULL - does not work

    -J' tried affecting a variable str2 where I know that the value in the other field is available, then checking this variable when I initialize the text field - does not work

    What Miss me?

    Hello.

    Try this in the form of native void, referring to the text field (X).

    If (this.rawValue = 1)

    {

    X.Presence = "visible";

    }

    ElseIf (this.rawValue = null)

    {

    X.Presence = 'hidden ';

    }

  • How to hide the buttons when no data found!

    Hi all

    I created two regions

    1 Serach region
    2 results region.

    Initially during the loading of the page with the help of hidden drive I'm Basel to hide 'areas of results' once that they clik this serach button I display area with teo translated region more buttons as buttons 'export' and 'print '.

    It shows very well when there is data in the region of Reulst.
    But when there is no return I displays the message "No data found" but at the same time it displays 'export' and buutons 'print '.
    This button should show only when data are available in the results area.

    Thank you
    David...

    abhishek8299 wrote:
    Use SQL statements (Exists) in the State and write an sql statement it.

    Use this

    SELECT
    1
    FROM form1 MF,bench1 BM,
    participant1 PP,key1 KT
    WHERE MF.ENGAGEMENT_ID=BM.ENGAGEMENT_ID
    AND BM.ENGAGEMENT_ID =PP.ENGAGEMENT_ID
    AND PP.ENGAGEMENT_ID =KT.ENGAGEMENT_ID
    
  • How to hide the buttons in the search bar

    http://i.imgur.com/62bsQ.PNG

    Summer play with it. and created default filters

    but I have no idea how I could get rid of these buttons...

    Hello

    Click report attributes, look for the region of the detail view and change the list item Detail View enabled on 'no '.

    Thnx
    MK

  • How to hide the button according to app_user

    Hi friends,
    I have a requirement where a 'create' button will be displayed (do not allow to the) only if the APP_USER, Y. How can I do this?

    Thanks and greetings
    Umer

    What do you mean by "do not allow to the?

    You can put this in the State of a toggle its appearance button

     :APP_USER = 'Y' 
    

    Are you a programmer ex-formes? I was wondering why you want to display a button without allowing it?

  • How to hide one calculated field if zero

    Hello.

    I am working on a form of column 5. I'm utilitzing the option product (X) to automatically calculate the price per unit quantity X

    Most of the time I'm only using a couple of lines.

    I want to keep the calcualations, but I don't want a ZERO to display when I print.

    Is this possible? I don't know javascript and anyone who can tell me how and possibly provide the solution, would be greatly appreciated.

    Thank you

    You can use the validation script custom following in the result field:

    If (event.value == 0) event.value = "";

    You will need to refresh, recalculate, or clear the form to get the code to be triggered.

  • How to hide the button cancel on LOV

    Hi all!

    I have a very strange requirement, so I want to consult you forms - the Experts for this:

    A LOV customer want to hide it from the button cancel user must choose only one value. Is this possible?

    My suggestion to change the object Type LOV to List Item (text-> list item element) want not customer...

    See you soon!


    Environment:
    Forms [32 bit] Version 10.1.2.0.2 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
    With partitioning, OLAP and Data Mining options
    Oracle Toolkit Version 10.1.2.0.2 (Production)
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle V10.1.2.0.2 - Production procedure generator
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Query Oracle 10.1.2.0.2 - Production Designer
    Oracle virtual graphics system Version 10.1.2.0.2 (Production)
    The GUI tools Oracle Utilities Version 10.1.2.0.2 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle tools integration Version 10.1.2.0.2 (Production)
    Common tools Oracle area Version 10.1.2.0.2
    Oracle 10.1.0.4.0 Production CORE

    I do ' t think you can disabled the button cancel on the LOV. This is the default functionality of forms.

    Concerning

    SUN

Maybe you are looking for