Helps to remove the current instance of Row1 of a Table.

I have a table in which I have a line of Row1, header and footer line.  I have a button in the header which adds new instances of Row1.  There is a button in Row1 which is supposed to remove the current instance.  However, when I click the button to delete an instance, it always removes the first instance of Row1.  I used the wizard in Action to get the code for the button:

this.resolveNode('Table9._Row1').removeInstance (this.parent.index);

If (xfa. Host.version < 8) {}

XFA. Form.Recalculate (1);

}

Any help would be greatly appreciated.

Thank you

J

Hi, the code looks ok to me, but if your button is in a subform with a table cell, then you would have to use this.parent.parent.index in the removeInstance. Regards Bruce

Tags: Adobe LiveCycle

Similar Questions

  • Cannot get removeInstance to remove the current instance

    I have a form that contains a table inside a subform that I added a button to add additional instances of the subform that contains the table. Add instance works fine, however, I have also a button to remove the current of the subform that contains instance the table, and it does not work well. Keep remove the first instance of the subform rather than the current instance. For example, lets say the first table is to order product A, then the user can add another instance of the table to order product B and then add a third table to the product C command. Then, let the user didn't need the second table (product B) for a reason, so they click on the button on delete in the second table, but instead of removing the second table containing product B, it deletes the first table that contains produced.

    I have the subform (OrderMain) defined to repeat with a minimum number of 1. The button to add an instance of the OrderMain subform contains the following code:

    this.resolveNode('MasterSubform._OrderMain').addInstance (1);

    If (xfa.host.version & lt; 8) {}

    XFA. Form.Recalculate (1);

    }

    The button to remove the current instance of the subform has the following code:

    this.resolveNode('MasterSubform._OrderMain').removeInstance (this.parent.index);

    If (xfa.host.version & lt; 8) {}

    XFA. Form.Recalculate (1);

    }

    I tried to adjust the parent index, but that did not work. I also put the code in the button Delete of table to view a message that contains the current index of parent and each instance returns an index of parent of 0. I use Adobe Acrobat XI to test the form. What I'm doing wrong here?

    I have it. Finish by checking the relative path of the Remove button to the OrderMain subform. While the button Delete in a subform that is different, I have taken into account in the determination of the index of the OrderMain subform repeatable. Given that each "parent" refers to an another subform, I changed the code of the delete button for the following:

    this.resolveNode('MasterSubform._OrderMain').removeInstance (this. parent.parent.parent.parent.index);

    If (xfa.host.version< 8)="">

    XFA. Form.Recalculate (1);

    }

  • Remove the current instance of a line in a table with formcalc using removeinstance

    I'm new on this and to find most of my answers with the help of Adobe or some other resources I have but this one left me speechless.  I have a table and a button to add lines.  After the lines are added and filled I need users to be able to delete some of them.  I have a delete button added to the last column of the table and the button strives to remove an instance of the table, the problem is that the instance that is being removed is evil, is always the first step on the line that the button is in.  If anyone can help, here's what I have:

    Table1._Row1.removeInstance (1)

    I know that 1 is not fair, but what I do to delete the current line that the button is.

    Thank you!

    Hello

    The setting for the done removeInstance() refers to the index of the repeat line you want to delete. This is a base zero index.

    If you replace the 1 in media with:

    This.parent.index

    It shoul work.

    See an example here: http://assure.ly/gk8Q7a

    Niall

  • Button to remove the CURRENT row in a table

    This test document has a table that works for most as I want, but the buttons Remove line always delete the second line , regardless of the button remove a row is clicked. The code is:

    Table1.Row1.instanceManager.removeInstance (1);

    How can I change this so that if you click on the button Delete line 5 (for example), it removes the 5 line, not of rank 2. It always clears rank 2, regardless of the button is clicked.

    Also, after I line is deleted, how can I get the lines of re - number automatically? The code for the automatic numbering is:

    this.rawValue = this.parent.index + 1;

    I tried to use this code:

    var number = detail.instanceManager.count;

    Detail.index + 1;

    numbers for automatic (by this blog entry by BR001), but I could never work on my table, although it works very well in his example. In the example of BR001, there a button Delete by rank and it always removes the line it is and it always automatically renumbers. I would use his method, but I spent hours trying to figure out where I am not to follow his example.

    Hello

    OK, your script will always clear the 2. instance as the removeInstance (1) simply means to delete the instance 1.

    You must keep in mind that all nodes have numbers index starting at 0.

    So the first instance of Row1 is addressed with Row [0], the second with the row [1]... the tenth line [9].

    To remove the current instance, you can use the button Delete as point of reference.

    This point of reference you're going upward in the tree of nodes to find the line desired.

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

    It = object current i.e. Button2

    parent = parent of Button2 which is Subform1

    parent = parent Subform1 which is Row1

    index = the number of the line pending

    OK, to keep the number of rows to update, you must use your line indexChange event (just add it after you existing script shading line).

    simple2.rawValue = this.index + 1;
    
  • Remove the same instance of two separate tables online

    Hi all

    I have two tables that each repeatable lines. Both tables must display almost the same information in each case of the line (I managed to code to link the values in specific cases of the lines). However, I added a button in the repeatable row, which allows the user to remove from the current instance of the line, so will they look back and realize that they do not need a line, they can take directly from the table. However, I can't seem to get the deletion affects the same instance of row of the second table. Is it possible to do this? I'm not terribly familiar with the instance Manager.

    Any help would be greatly appreciated. I just can't understand how to identify a specific instance of the repeatable row in table 2.

    Hello

    Removing instances in the event of an object that is inside the instance, you must ensure that you remove this particular instance at the end of the event.

    For example:

    If you delete the instance that the button is on the inside before finishing the entire event, the program will not recognize what event is to finish because you have removed it from the object that is triggered...

    You try here at the end of the code that no longer exists...

    I suggest that you still need to delete the instance (this) object at the end of any event to make sure to complete all your actions before deleting the object.

    I hope this helps!

  • Access the current instance of request module in a java class in the model

    Hi all
    I'm trying to implement the custom story types in our application, (ModifiedById), I can read the user name of the security context, but not the username.
    I have a view object, say UserInfoVO which contains the logged in users info.
    I know, I can create a new instance of the application at the bean module and using security context information, I can go get the user ID.
                ApplicationModule am =
                      Configuration.createRootApplicationModule(amDef, config);
                    ViewObject vo = am.findViewObject("UserInfoVO1"); // view criteria applied by default
                    vo.setNamedWhereClauseParam("bUserName", user); // user from security context
                    vo.executeQuery();
    I'm trying to access the current instance of the Application module in my java class customized, that is used to return the attribute history ModifiedById.
    //referring the blog
    
    http://jobinesh.blogspot.in/2011/02/creating-custom-history-types.html
    It is, how do I access the current instance of ApplicationModule in a class as * "HistoryAwareEntityImpl" * located in project template. ?

    any help will be appreciated.

    Kind regards
    Rognard

    OK, in this case, you get the transaction of db of the base class object and this object allows you to search the module of the application

    public final DBTransaction getDBTransaction();
    ...
    DBTransaction:
    public ApplicationModule findApplicationModule(java.lang.String amName)
    

    or if you get the application root module

    public ApplicationModule getRootApplicationModule()
    

    Timo

  • HELPS to remove the movieclip when loading another.

    Dear users of the forum,

    I have buttons randomly on the scene that I have implemented so each of them, when you click on it, will load different movieclip.

    These movieclips load directly on top of the other in the same exact place.

    The problem I have is the previous movieclip not clearly end the scene when the user clicks on the next button.

    Someone please help me understand this? I need to set up a condition that will remove the current movieclip when another button is selected to load the next movieclip.

    Here's the part of my code that needs editing. I did research on switch, else and other conditional statements, but cannot find a way to get there.

    Thank you for helping,
    Sincerely,
    Steve C.

    I have the FLA or swf for display, please let me know.


    Event listeners
    hempelbtn.addEventListener (MouseEvent.CLICK, btnActions);
    fourtyonebtn.addEventListener (MouseEvent.CLICK, btnActions);
    draycottbtn.addEventListener (MouseEvent.CLICK, btnActions);
    egertonbtn.addEventListener (MouseEvent.CLICK, btnActions);

    Tween declared out of service
    var HemMCTween:Tween;
    var FourMCTween:Tween;
    var DrayMCTween:Tween;
    var EgerMCTween:Tween;

    Function
    function btnActions(evt:MouseEvent):void {}
    If {(evt.target is hempelbtn)
    HemMCTween = new Tween(HemMC,"x",Strong.easeInOut,1050,623,2,true);
    }
    If {(evt.target is fourtyonebtn)
    FourMCTween = new Tween(FourOneMC,"x",Strong.easeInOut,1050,623,2,true);
    }
    If {(evt.target is draycottbtn)
    DrayMCTween = new Tween(DrayMC,"x",Strong.easeInOut,1050,623,2,true);
    }
    If {(evt.target is egertonbtn)
    EgerMCTween = new Tween(EgerMC,"x",Strong.easeInOut,1050,623,2,true);
    }
    }

    I used the following code to show a menu, creating a similar code for each button.

    addEventListener ("forecasterClicked", gotoforecaster);
    function gotoforecaster(e:Event):void {}
    mc_forecaster. Visible = true;
    mc_igd_test. Visible = false;
    mc_user_test. Visible = false;
    mc_task_test. Visible = false;
    mc_apps_test. Visible = false;
    mc_help_test. Visible = false;
    }

  • HP Pavilion g6: Please help me remove the Power On password or administrator password

    Please help me remove the administrator password or power on password. The stop code is: 68478111

    Hello:

    Please see the info on the link below which should solve your dilemma.

    http://h30434.www3.HP.com/T5/notebook-operating-systems-and-software/system-halt-error-message-or-BIOS-password-reset-generator/m-p/5010033

  • Hoax call on notifications about a virus tries to hijack your computer and ask for help to remove the files?

    OT: security.

    Dear community,

    Did anyone out there contacted by "windows" say you they receive notifications about a virus tries to hijack your computer and ask for help to remove the files? Initially, it was an area code 855, but now the number is unavailable. I get a lot of calls.

    any help would be appreciated

    Thank you

    Hello

    It's a scam.

    Here are the tips that we regularly give the posters who receive these types of calls:

    We have all the errors and warnings in our Event Viewer

    Either these so-called "Microsoft" Tech companies want to sell you a worthless software, or remote access to your computer to try to steal your credit card and bank information and also achieve an identity theft on you.

    You are the only person who knows if you gave them remote access.

    If you gave them remote access and you do Internet banking, contact your bank, to explain, and change passwords.

    If you use your online credit card, cancel and get a new one issued to you.

    And the only way that willl you know that you are free to them is to backup your data and do a clean install of your operating system.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    And Microsoft does not contact you unless YOU have made prior arrangements with them to do.

    There is an article in the link I'm you provide at the end of this one

    Read this Information from Microsoft:

    "Avoid scams to phone for tech support.

    http://www.Microsoft.com/security/online-privacy/avoid-phone-scams.aspx

    Don't be fooled of unsolicited calls. Don't provide personal information.

    Here are some of the organizations that cyber criminals claim to come:

    • Helpdesk Windows

    • Windows repair center

    • Microsoft technical support

    • Microsoft technical support

    • Windows Support Group Technical Department

    • Microsoft Research and Development Team (team of Microsoft R & D)

    See you soon.

  • Remove the current read help page!

    Hi, I've created a form that adds a new instance when I click on a button with the click script

    "Mysubform.addinstanceManger.addInstance (1);

    This copy of my complete form to a new page which is what I want.

    However, when read in on the web, I want to create a delete button that deletes the current page, the user is veiwing if they decide they want to.

    example, if the first form is completed and they click on the add new page and fill out the second form and click again if they need to fill another.

    Now, if for example they have created 4 pages and decide they want to delete say, page 2 or maybe 3. but keeping other pages with the information already entered. How to create a button that deletes the current page, they choose to remove it.

    Detaiiled any help would be greatly appreciated! as I am new to scripting and LC.

    Very strange. I think I have it right this time.

  • How to remove the current firefox download icon

    I want to just the Home icon, nothing else. For some reason the current icon download is in place and I have no idea of what drove to view it, but I hope that I can remove it from the screen.

    Move this icon in the Palette to customize.

    https://support.Mozilla.org/en-us/KB/customize-Firefox-controls-buttons-and-toolbars

  • Helps to remove the name of Troj/DocDl-Princeling

    cursor to the iMac began randomly blinking, not allowing the cursor to stay where I clicked and cycling through and menu bars.  I have installed sophos and it has detected a threat that he labeled as 'Troj/DocDl-AUL', sphos has not removed the threat - and the problems continue at random.  F-Secure, Panda or found Malware threat when I ran drive scan using these different programs.  Don't know what else to do.  Any help would be appreciated. OS X El Capitan 10.11.3 running

    According to this:

    Roj https://www.Sophos.com/en-US/Threat-Center/Threat-analyses/viruses-and-Spyware/T ~ DocDl - D.aspx

    It affects Windows. Do you run Windows? If this isn't the case, it is likely contained in / attachment sent by a Windows user. It shouldn't cause any problems on Mac.

    May I suggest that get rid you of all AV software you have installed.

  • HP 110 min: pls, am havin problem abt to remove the current password hp 110 min

    Hello
    am having problem remove current password in hp 110 min

    princytex wrote:
    Hello
    am having problem remove current password in hp 110 min

    Hello

    remove the BONES ' password or BIOS password?

  • Need help to remove the protection of the family off account of girls

    I deleted my daughter from my laptop Microsoft account. I had the protection of the family there. How can I get the protection of the family out of his account because she has another account set up and know it required a code to get on his google account?  So I would like to remove the protection of the family so that it doesn't keep needing a code. If anyone can help me please and thank you.
     
    * This thread has been changed so that they the title is a little clearer. It will be also moved to a more appropriate forum hoping to teach you to someone who can answer your question correctly.  Thank you!

    Hello

    What operating system is installed on the computer?

    In the meantime, you can visit the link provided below to remove a parental control account.

    How can I remove parental control?

    Hope the information helps you resolve the issue.

  • Need help to remove the parental permission on hotmail acct. my child

    I configured a hotmail account for my daughter with the security setting for the family and I would like to delete the setting and the restriction that I have previous game on his hotmail account if she can add contacts freely without the permission of the parents.

    I've done an update on my setting under authorization parental permission/manage / my child in which account I deleted my child account but she did not reflect change of hotmail account of my child which again shows his account restricted with parental consent.  I even changed the year of birth of my child and see if it would be useful, and it did not work.

    We would really like to keep his email address, but it becomes so unpleasant to use with the parental permission setting.  Help, please.  Thank you.

    Hello

    We apologize for the confusion, in order to remove the restriction for the child's account, you must configure it on the web using the parent account. To do this, please follow these steps:

    1. connect to http://fss.live.com using the parent account.
    2. click Edit settings under the name of the child you want to remove the restriction.
    3. click on Contact Management, it is located on the left side of the web page.
    4. under management of Contact for the child's name , check the radio button next to the child manages their own contact list.
    5. click on the button Save to update the settings.

    If you want to remove the parental control completely on your child's account, please follow these steps:

    1. connect to http://fss.live.com using the parent account.
    2. click Edit settings under the name of the child you want to delete in Windows Live Family Safety.
    3. in respect of the accounts for the name of the child , click Remove the link next to the e-mail address of the child's account. It is located on the right-hand side of the bottom of the page.
    4. new instant message will appear for box and then click Delete the ID to remove completely the relationship on the account.

    Let us know the result later.

    Thank you.

Maybe you are looking for