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

Tags: Adobe LiveCycle

Similar Questions

  • 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

  • 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);

    }

  • 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

  • What do I have to remove the battery from my PC when I connect it with the cable?

    So that the battery do not damaged.
    What do I have to remove the battery from my PC when I connect it with the cable?
    Tell me what I need to do for that battery not damaged

    Hi mate,
    Don t worry, just use your machine and leave your battery in your machine, because an electronic load look at your battery, so no damage will be caused.

    You know, technology is in fact at a good level and I think it s ok to operate your machine with cables and battery SET. :

    Greetings

  • How to use the checkbox to select several lines of af: table

    Hi all
    I want to use the checkbox to select several lines of af: table

    Kind regards
    Tom

    Hello

    look at this link
    http://Sameh-Nassar.blogspot.com/2009/12/use-checkbox-for-selecting-multiple.html

    Kind regards
    Felix

  • a sql id have more than explain the plan so I'd like to come up with plan used at runtime.

    Hi all


    In a sql oracle11g having id several explain the plan so I'd like to come up with plan used at runtime.

    For example SQlID:-8yczg5zav14vt have 5 sql plan and I want to check that we execute at any time, please let me how I can check by sql queries


    Concerning

    Ranjeet

    RanjeetSohale wrote:

    I am ok for that but active only plans is right, but in accordance with the foregoing, two data line table in the table SQL V$ so both active and plan cost is high and the other is low.

    Yes that's right cost is different, he means here another effective plan for oracle will analyze the declaration again and stored as new slider of the child. Especially since I explained that.

  • 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

  • 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 to remove the current uninstalled update download its corrupt and re-download a new

    I know I can probably roll a restore point just do need help, Thnx

    Windows XP

    Remove the temporary WU downloads folder: -.

    Stop the automatic updates service

    Click Start, choose run.
    In the run box, type services.msc.
    Click OK.
    Right-click the automatic updates service.
    Click on stop.
    Stopping the service will take a moment.

    Delete the content of the download folder
    Click Start. Choose run.
    In the run box, type %windir%\SoftwareDistribution
    Click OK.
    Open the download folder.
    Delete all the contents of the download folder.
    Close the window.

    Start the automatic updates service
    Click Start. Choose run.
    In the run box, type services.msc.
    Click OK.
    Right-click the automatic updates service.
    Click Start.
    Starting the service will take a moment.

    By removing the contents of the download folder - you have removed the downloaded updates.

    TaurArian [MVP] 2005-2010 - Update Services

  • Can I remove the 10.6 and bootcamp or windows still work with previous 10.11 installation?

    I have an early 2009 mac mini, 10.6 installed bootcamp at the same time on the hard drive. Have windows 7 installed on bootcamp.

    Recently, I removed the CD - RW drive and put in an SSD. I then installed 10.11 on this drive and use it as the startup of the operating system. I noticed that I can run applications that has been installed to 10.6, Autocad 2013 being a.

    What I would do is make hard drive on the old hard drive space by removing the 10.6. I can do this without destroying the current installation of bootcamp and windows 7 install?

    Due to the limited space on the SSD drive, after removing 10.6 I want to update my old applications and install less 10.11 but actually during the installation, install the actual application on the old hard drive files. Of course I know that it works, as stated above and previous experience.

    Fundamental question needs to be able to always use bootcamp and windows 7 install I have now, even after the removal of 10.6. Is this possible?

    Once Windows is installed (W7 in your case), it is autonomous. But it is very sensitive to partitioning of the changes/resizing efforts.

    If you want to keep the old Applications (10.6) intact and on the old disk, but use the 10.11 on the SSD, the only space you get in return is at the heart of 10.6 OS. It is usually 16 to 32GB.

    If you have verified that each of your applications is fully functional under 10.11, backup Applications on an external drive and erase only 10.6 partition. Create a reader of 'Fusion' between the SSD and the old HARD drive 10.6 and then drag Applications from the external drive in the Fusion drive application. It will also give you performance SSD for your Applications, rather than leave it on the HARD drive part that will slow them down.

  • How to remove line before Panel table with databases?

    Hi friends,

    I created the table creation of database for the list of users. Which works very well. And I also recover data that is I've stored previously and I have displayed in table format on the front. Now, I want to delete a whole line, is not a wise order, for example, now, I have a table, there total 7 rows and 5 columns. Now, I want to delete the 3 rows using by selecting the line (i.e., click anywhere in this line and press the button) that day that the rank will be remove from the database. Then remaining will again store in the database.

    I want this way is it possible or not?

    Thanks

    Concerning

    Joel M

    India

    Note: I use the LabVIEW database connectivity toolkit

    Database: Ms access

    Sorry for my grammatical error

    arun575 wrote:

    Hi friends,

    [...] Now, I want to delete the 3 rows using by selecting the line (i.e., click anywhere in this line and press the button) that day that the rank will be remove from the database. Then remaining will again store in the database.

    Instead of storing data in the database, simply remove the record that you have removed from your FP indicator and recharge the light on the database.  (The first column in my database is named ID - autoindexed, the primary key)

    EDIT - only sub blue-vi is https://lavag.org/files/file/60-array-point-to-rowcol/

Maybe you are looking for

  • Can I add a remote appleTV w. fixed network app

    Hello Is it possible to connect the application remote Apple TV to my Apple TV, if my Apple TV is connected to my home network via an ethernet cable, rather than via WiFi? So far the app does not seem to find the Apple TV. [I use 10 IOS on iPhone 6 a

  • Satellite A100-499 - function for the WiFi button does not work

    Hello, I have a Toshiba Satellite A100 - 499 PSAA9E. I formatted my laptop and installed XP with SP3. I downloaded and installed the drivers (in the right order) for this OS of the toshiba - Europe.com and everything is going well except Fn + F8. It

  • Internal speakers work but no sound when the headphones are connected.

    Internal speakers work, but no sound when the headset is connected Mr. fix gives a clean and level flight controlpannel indicator report / sound show sounds present but no sound on 3.5 mm jack audio 6.0 vista Home Basic travel mate acer 2480 laptop.

  • DVD RW drive (D :) will not read or write DVDs)

    My computer can not read and write DVDs and CDs.  Please tell me how to solve the problems. Thank you very much! Sue

  • Burning discs DVD + RDL

    Video files can be burned to discs DVD + RDL using Windows Media Player? If this is not the case, what program can even accomplish?