How to hide objects in subsequent floating forms

Hello,
I have a subform which has an 'Add' button.  When user clicks on the add button, a new subform is added.  I, however, don't want to show this 'Add' button in the subsequent forms.  I want to show it in the 1st form only.  Also, the user can only add max 3 forms.  Thus, as the form number reaches 3, I want to disable/hide the 'Add' button.
Is there a way to do that?  Could someone show me how?
Thanks in advance for your help.

Hi,
For the first part, the easiest way would be to take the button out of the repeating subform. Maybe place it just above the subform. Then it will not appear in other instances. You could include script in the initialize event, but this would not be the preferred route. Se how you get on with the button out of the subform and if you end up needing the script come back to us.
To disable the button, you will need script in the layout:ready event of the button. This is not the most efficient, because the layout:ready event fires so often (see here http://assure.ly/nB0Bvz). If your form is not too lengthy then you mightn't notice too much of a performance hit.
So, if your repeating subform is called myRepeatingSubform, the following in the layout:ready event of the button should get you close:
if (_myRepeatingSubform.count >= 3) {
     this.presence = "invisible";
else {
     this.presence = "visible";
Hope that helps,
Niall

Similar Messages

  • How to hide 'SAVE' button in adobe form layout

    Hi  Friends,
    I have a requirement to hide 'SAVE' button in adobe form layout .They dont want to save the form .
    Is there any way to achieve this .I have gone through scn ,but couldnt find the proper solution
    Thanks and Regards,
    Subeesh Kannottil

    Hi Subeesh,
    Are you talking about restricting the User from Saving the Adobe Form Output. 
    Regards,
    Sivanand Ala

  • How to access objects in the Child Form from Parent form.

    I have a requirement in which I have to first open a Child Form from a Parent Form. Then I want to access objects in the Child Form from Parent form. For example, I want to insert a record into a block present in Child Form by executing statements from a trigger present in Parent Form.
    I cannot use object groups since I cannot write code into Child Form to first create object groups into Child Form.
    I have tried to achieved it using the following (working of my testcase) :
    1) Created two new Forms TESTFORM1.fmb (parent) and TESTFORM2.fmb (child).
    2) Created a block named BLK1 manually in TESTFORM1.
    3) Created two items in BLK1:
    1.PJC1 which is a text item.
    2.OPEN which is a push button.
    4) Created a new block using data block wizard for a table EMPLOYEE_S1. Created items corresponding to all columns present in EMPLOYEE_S1 table.
    5) In WHEN-NEW-FORM-INSTANCE trigger of TESTFORM1 set the first navigation block to BLK1. In BLK1 first navigable item is PJC1.
    6) In WHEN-NEW-ITEM-INSTANCE of PJC1, code has been written to automatically execute the WHEN-BUTTON-PRESSED trigger for the "Open" button.
    7) In WHEN-BUTTON-PRESSED trigger of OPEN item, TESTFORM2 is opened using the following statement :
    open_form(‘TESTFORM2',no_activate,no_session,SHARE_LIBRARY_DATA);
    Since its NO_ACTIVATE, the code flows without giving handle to TESTFORM2.
    8) After invoking OPEN_FORM, a GO_FORM(‘TESTFORM2’) is now called to set the focus to TESTFORM2
    PROBLEM AT HAND
    ===============
    After Step 8, I notice that it passes the focus to TESTFORM2, and statements after go_form (in Parent Form trigger) doesnot executes.
    I need go_form with no_activate, similar to open_form.
    Edited by: harishgupt on Oct 12, 2008 11:32 PM

    isn't it easier to find a solution without a second form? If you have a second window, then you can navigate and code whatever you want.
    If you must use a second form, then you can handle this with WHEN-WINDOW-ACTIVATED and meta-data, which you have to store in global variables... ( I can give you hints if the one-form-solution is no option for you )

  • How to hide objects in this array

    hi so i want to hide these object in this array
            var rdCounts:Array = [2,4 ,58 ,3,7,8 9]
            var NewPassenger:Array= new Array();
    im spawning movie clips to the numbers u see in rdCount, and i an using push to put then on NewPassenge i was wondering how can i make them all invisible uing .visible = false;
    thanks,
    hen

    What are those values in the rdCounts supposed to be doing for you?  5516/1000 = 5.516....  so...
    var theAmount:int = rdCounts[timeline_slider.value];
    doesn't make much sense, especially since most of the array values will result in the same int value of 5.
    One thing you have said, at leasnce... "i have a ratio buttion called original_rb everytime it is selected all the movieclips that is spawning from the code up there i want to be invisible, becuase i have a nother graph set to become visible when original_rb is selected.
    But the function you showed is not being called for clicking the original_rb, it is being called for clicking le_rb.  So maybe that's what you are missing... targeting the wrong rb for clicking.
    I am not intending this as an insult, but I think you might have homed in on the main problem when you said...
    "ive had alot of hep with this so it might not make sense"
    If you don't know if it makes sense and you don't understand it then you probably need to spend more time trying to.  If someone else did what you are showing for you, they might need some more experience as well.
    Radio buttons are usually used as a group, where one of the group is selected.  You seem to be using radio buttons where checkboxes or buttons would be more appropriate.
    The code that has answered you questions so far would work if your design supports it.  So chances are you design isn't what your code is aimed at... though I would expect error messages in that case.
    There have been quite a few questions asked that have not been answered yet.  Probably the most meaningful of them is whether or not you are getting error messages. If you are, including the entire error message(s) in your posting is key to getting help.

  • How to hide object name in tray of pages

    Hi everybody,
    I want to hide the object name in the tray of a page.
    I act as follows: open Page in VC --> Configure Page --> Look & Feel --> unselct "Show Object name in Tray"
    I thought that is the right way, but every time I want to deploy, the option is true again.
    Could anybody help me?

    Hi Robert,
    Unfortunately, evrytime you open the model, it shows default values for the fieds. The only field for which it shows the correct value in the dashboard is 'Show Help Option'. However, at runtime, it does reflect the changes you make. You can check that in PCD.
    e.g. If you uncheck the checkbox for 'Show object name' and deploy the first time. The page should reflect the change on the Portal in PCD, however in the model shows the default value i.e. the checked checkbox. If you deploy it again, it won't change the value on the portal. It will still retain the value(unchecked,) on the portal. In order to change the value back to what it was (checked) originally, you have to uncehck the checkbox and check it again and then deploy. The values will change on the portal.
    I don't know the reason behind this behaviour though.
    Regards,
    Ajay

  • AxAcroPDF ,how to hide navigation panel and float toolbar in 10 ?

    .....please use code with c#  in winform  not web

    There is no public API for hiding/showing the navigation panels other that menu item execution.

  • How to hide the fileds

    how to hide the fileds in a form for one activity and how to display the same fields to another activity? in the same process
    Edited by: jaya on Aug 9, 2010 10:07 PM
    Edited by: jaya on Aug 9, 2010 10:40 PM

    Inside of the screenflow, you can determine the name of the activity in an Autmatic task using logic like this:
    myObject.activityName = Activity.nameThe use of upper case "Activity" in the above logic is correct for logic inside of an automatic task inside a screenflow.
    This would let you use an if / elseif statement inside your presentation initialization method to hide or show the fields based on the activity's name. Note that this is actually the activity id. It is not the activity name you see in Studio that can be edited.
    Dan

  • Hide/Turn Off the Floating Action Buttons

    I just updated my OS to Android 5.0. Can any tell me how to hide/turn off the Floating Action Buttons (FABs)?

    No problem DavidNo. Try Long pressing the back button while the floating window is on your screen. This should disable it temporarily until you power phone off. You also be able to minimize the the Multi Window option. Let me know if this is helpful.
    KinquanaH_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the �Correct Answer� button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • How do I hide objects in all instances of a sub-form?

    I have a list of objects in a sub-form.  They are hidden or made visible depending on the selection of a drop-down menu outside the sub-form.  It works correctly for the first instance, but objects that are supposed to remain hidden become visible in all subsequent instances of the sub-form.
    How do I make the objects remain hidden in all instances of the sub-form?

    I think you want to move all the code from the change event of form1.EXP_Sample_Form.Identifier.Who.LOB_List.LOB_List to the calculate event of form1.EXP_Sample_Form.Bottom_of_Form. 
    Which would then look like;
    switch (Identifier.Who.LOB_List.LOB_List.rawValue)
        case "AmeriHealth Caritas":
            PCPInfo.Docs.SiteVisit.presence = "hidden";
            PCPInfo.Docs.Comments_SiteVisit.presence = "hidden";
            PCPInfo.Docs.SiteVisit_Received.presence = "hidden";
            PCPInfo.Docs.PanelAttestation.presence = "hidden";
            PCPInfo.Docs.Comments_PanelAttestation.presence = "hidden";
            PCPInfo.Docs.PanelAttestation_Received.presence = "hidden";
            break;
    Here is your form with this suggestion made, https://workspaces.acrobat.com/?d=koCEYxi-59F7n5iyIoMhGQ
    Bruce

  • How to hide navigation panel buttons of interactive form

    Hi Gurs,
    Can any one expalin how to hide the navigation panel buttons of interactivge form through coding in WD.
    Thanks
    Rao.
    Edited by: rahul raao on Apr 30, 2009 9:57 AM

    Hi,
    You can access the document Adobe XML Form Object Model Reference 
    http://www.adobe.com/devnet/livecycle/articles/Adobe_XML_Form_Object_Model_Reference.pdf
    and search for "presence" our "relevant".
    I think this is what you are looking for.
    Best regards,
    Ana Carolina.

  • How to hide Compounding object in report

    Hi friends
    We want to display region in our reports , But when I execute the query region is coming along with county (eg: US/TX , US/CA etc..) ...this is because of country is a compunding object of region...Can any body let me know how to hide country ...We just want to show TX,CA etc..
    regards

    Please search...this has been answered many times here.

  • How to call a COM object from an Oracle Form?

    Hi All,
    Pls advice. How to call a COM object from an Oracle Form?
    Thanks.

    try asking the "Form" forum

  • How to hide fields in UIX form

    Hi
    I need to update the table with last_updated_by and last_updated_date every time if any change to the record. But I do not want to show these 2 fields on the screen.
    Could you help me how to hide fields in UIX form/any procedure to insert the data to database with out placing them in the screen .
    Thanks in advance.
    NRK

    Now that you mention it ... the rendered flag will stop the field from being rendered. So it's not even in the page. Stupid me.
    Have a look at formValue. These are rendered, but invisible fields in a form. That should do it (hopefully).
    In prepareForDML() you could simply call the setter of your date attribute that stores the date of the last update. There you pass the current date, or you could fetch the sysdate from the database and pass that. If you go that way, then the EntityImpl could make these adjustments automatically when inserting or updating and you wouldn't even need these fields/bindings in your UIX page.
    Just check what the operation is, and if it's an update or insert then call the setters of the attributes you want to update. Then call super.prepareForDML(). Something like that.
    It all would happen in the middle-tier, client not involved.
    So formValue should work, and the prepareForDML() stuff should also work. Don't know which way you want to go.
    Sascha

  • With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?

    With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?
    I have developed a form with fields hidden by default, that become visible based on box ticked or radio button selections.
    My problem is that, when I close the form and re-open it, it comes back to it's default presentation, regardless of the information already recorded in the form (including in the now hidden fields.
    How to correct that
    Thanks in advance for any hint you can provide.

    I've had the same problem. This solved it...
    Go to the "Form properties..." in the File-menu. Select "Run-time" to the left and in the box "Scripting" Preserve scripting changes to form when saved: choose Automatically (Script-based state changes are saved locally in an insecure fashion. This option cannot be used for certified forms).
    Hope it works for you to...

  • How can I obtain an object-type variable in Forms 6i?

    i create an object-type in oracle 8i database like this:
    TYPE OBJ_TYPE_NUMBER AS OBJECT
    FIELD1 NUMBER,
    MEMBER PROCEDURE INIT, ...
    i create a variable of this object-type in a stored procedure in Oracle 8i:
    v_Number OBJ_TYPE_NUMBER(10);
    and then call it's method:
    v_Number.INIT;
    it work's!
    But when I try to compile a previous variable declaration
    (v_Number OBJ_TYPE_NUMBER;) in Oracle Forms 6i I see only an error message.
    So my question is How can I declare and use an object-type variable in Forms 6i?

    Hi,
    the release after Forms 6i is Forms9i. Forms9i does have the PLSQL engine of Oracle 9.0.0.2 database which means that it should knwo how to handle object types in PLSQL.
    Frank

Maybe you are looking for

  • Error when using MII with SAPUI5

    I get the following error - "Unable to get value of the property 'getElementsByTagName':object is null or undefined <!DOCTYPE HTML> <HTML> <HEAD> <meta name="description" content="UI5 table example with local JSON model" /> <meta http-equiv='X-UA-Com

  • HT4623 Hi I have an Ipad 2 and itunes needs to be updated but, in settings / General   there is not sign saying software where do I go from there. help?

    I need help with the settings, General to update my itunes, but there is no word saying software, for me to start the process.  Also, need help syncing my music to my Ipad.  help?

  • SONGS?!

    So, I have an 8G iPod nano, 3rd generation. But I have about 850 songs on it and it's telling me that it's full. I'm not sure that it's correct.

  • Stock transfer to EWM

    Hello how you doin:), After PGI we are doing transfer to EWM sys, but somehow stock stuck somewhere betwin systems and I cant find way to make it happens. Ive monitored the inb delivery in VL06 the message is: Delivery was distributed therefore displ

  • Healing brush vs. spot healing brush?

    they seem to do the same thing just slightly differently . are there some differences that make one more useful in some situations over the other? WHen hen trying to cover wrinkles, blemishes, etc, should the content aware option always be selected?