Get the row index in a dynamic Table

Hello gurus,

How can I get the index of a line when it is added dynamically.

Capture.PNG

When the user clicks on the "-" he should get the index of the row on which he clicked the button.

I tried using the code

var var1 = (data. Design_page1. Working_times_subform. Working_Table.Row1.instanceManager.Count - 1);

But it gives me the total number of lines. I want that the index of the particular line.

Thank you.

Kind regards

Nikhil

On the "-" button use this.parent.parent.index to get the index of the line, the button is in. the mention of 'parent' is used to back up the hierarchy so if you had say a subform around the button in the cell, you have to add another parent to learn Row1.

In order to remove the line try: _Row1.removeInstance (this.parent.parent.index);

Or it should work too: _Row1.removeInstance (Row1.index);

The underscore character is a shortcut for the management authority. You can not use it in the object names, I'm sure it caused me problems in the past, I only use case for object names now (to avoid too many dashes).

You don't need to specify the full path to the object that you are trying to access. The '-' button be Row1 can see Row1.

Tags: Adobe LiveCycle

Similar Questions

  • ListField Get focused on the row Index

    Hello

    I implemented a custom ListField.

    I'm looking for a way that I can get the index of the target line.

    For example, if my ListField contains 10 line and line 2 number concentrates (marked in blue), I want to receive the row index.

    Thank you!

    I'm sorry, I'm mixed messages here.  In your last post, you said this:

    "... and then try to scroll down once more, the last item is projected to"separate ":

    Maybe I'm just stupid, but I have no idea what it means.  And it sounded like it's your problem.

    Nevertheless, my logic goes like this.  There should be no problem to find a ListField index.  So if you have problems, then the question is in your code.  You tried to explain it and I'm sorry, I don't get it.  So instead of you trying to explain it, I suggest that you give us a piece of code that we can test, which illustrates the problem.  Who will save trying to explain it and means that if we find a solution we can actually give you the code to fix it.  To me, that seems the best way to solve this problem for all parties involved.

    If you create a sample screen with a single ListField on it and allows you to demonstrate your problem?  Then validate the code here so that we can try ourselves?

  • How to identify the last instance of a dynamic table row

    Hi all

    I'm trying to figure out how to create an action for my form in Livecycle Designer ES2, which will affect the last instance of a dynamic table row. I have a table with a repeatable row where the user will enter information about a part purchased and I have buttons that allow the user to add and remove the lines. I need to create a line extra addition button which will add a new instance of the repeatable table line (this is not a problem) and disable and change the background color of the first cell in the row added. The problem I have is how to have an action that affects the last instance of a line.

    If anyone knows how to do this in Javascript, I would appreciate some advice/help.

    Hello

    I think that it is beyond providing an action. You will have a need to write JavaScript directly.  When you call the addInstance method it returns the new line, if you can do something like;

    var line = Table1._Row1.addInstance ();

    line. TextField1.border.fill.color.value = "255,0,0";

    line. TextField1.access = 'protected ';

    To find the last line and do the same thing, you can do something like;

    var line = Table1.resolveNode ("Row1 [" + (Table1._Row1.count - 1) + "" "]" ");

    line. TextField1.border.fill.color.value = "255,0,0";

    line. TextField1.access = 'protected ';

    Concerning

    Bruce

  • Get the maximum index of a vector of growth

    Hello

    I'm having a very strange problem. I simulate data with an sine function in a while loop and I keep the values< 0.7="" into="" a="" vector.="" when="" the="" sinus="" values="" are="" over="" 0.7,="" i="" remove="" the="" vector.="">

    I would like to get the maximum index of the vector at each iteration of the loop. However, I get a zero index while the vector has a size > 0.

    It's really strange, because if I put the values of the iteration instead of the values of the sine, the index created is correct (the only difference is that the iteration number is an integer, while the sine is a decimal number).

    To make someone understand something?

    Thanks for your help

    Andrew

    Instead of "delete table", just leave the REAL empty case and 'use default if unwired' on the output of the table tunnel.

    Once the sinuses is once again<0.7, you="" are="" on="" the="" descending="" branch,="" so="" the="" first="" element="" is="" always="" the="" largest="" for="" a="" while.="" nothing="" wrong="" with="">

    I would also put indicators after the case structure so they update in all conditions.

    Table min & Max will give you the index of the element with the highest value. If you want to know the size of the array, use the function "size of array".

  • Get the current index value of the table control

    I have a table control 1 d on a panel that contains a value of temperature curve that I send to a temperature controller. The values in the table are not unique, because for example 40.5 degrees in the table could represent 40.5 degrees on the cycles of cooling or heating. I could have severat heating/cooling cycles programmed into the table. I would like a way to read the array index of the currently displayed item in the array in the up/down control of index on the left of the table control. I could then run curves partial temperature easily by neutrophilia a starting point on the curve in the table control.

    I don't see a property that I can use to get this index value. Anyone have any ideas?

    Thank you

    J

    Use the property 'index values. It will be the first item of the output of a 1-d array.

  • How to get the row of Table data in the pop up window

    Hello world

    I'm working on Jdeveloper 11.1.1.4 and I got a requirement when there is a delete as a column in a Table in the ADF. When the user clicks on delete button that I need to display a confirmation message "You want to remove from the Table" OK CANCEL.

    If the user clicks the OK button, then I need to update the value of last_update_by to the one who connects and then deletes the line from the user interface but at the level of the table of database, that line will be there.

    Do I want to get the line given in the confirmation message pop-up and to add rowdata.setAttribute(last_update_by,'') in the class of the action of the OK button.

    I could get the rowdata table in class action OK button but when I do rowdata.setAttribute(last_update_by,'') that class action it gives me null pointer exception.

    Can someone help me with valuable suggestions?

    Thank you

    You may need to check {: identifier of the thread = 2223878} thread

  • How to view the last element in a dynamic table 1 d

    Hello..

    I want to display the value of the last element in a dynamic array 1 d... / I mean... If I stop the vi race, I need to display the last element of the array... How can I do this?

    and is it possible to use a button to start the vi... instead of using the Run button on the face before of the vi?

    An array of index!.  Size of table allows to determine the size of your array, subtract 1, that feed into the terminal array of Index index.

    You start the VI running somehow.  It can be assigned to run when opening.  Assuming that what you want is a way to type values in a front panel, press a GO button you created on the front panel, then have the real part of the VI to run.  You can use a structure of the event.  Or put a while loop at the beginning with a small wait next statement which basically just asks the GO button.  When you press this button, the Boolean value true stops the whole loop and allows the program to move on the main body of your program.

  • Get the current Index of the Ring System

    I need to know the index of the ring box that is currently displayed on the front panel during execution.

    The ring box values do not necessarily correspond to their clues so I can just wire the ring box itself to property [] DisabledItems.

    The way I'm going to get the index of the item "displayed" the control of the ring is as follows:

    A reading in the strings [] property returns an array of strings of the 'Elements' of the order of the ring.

    A reading in the RingtText.Text that returns the string value of the current item displayed in the control of the ring.

    I use the search function to search in the array of strings to the current text, and it gives me the index of the current item displayed in the control of the ring.

    Is there a way to get the index of the currently displayed index of the ring directly control?

    In a Word, no.

    the method that you use is the easiest.  If the srtings are very long, you could unbudle [channels] and property values and this table just to save a few (very minor) research paper.  Keep in mind, control system properties depend on the operating system

  • How to get the horizontal scroll bar of a Table?

    Hi all

    According to my requirement, I display multiple records in a form in a tabular Format. But here I must show 21 columns in this table that is too high. I am able to view it, but because it I get a scroll bar horizontal to the screen as all columns not in the normal window screen space. But its weird since the research once I am to right scrolling columns, but bar header and Global buttons above are not displayed, they are related to the normal screen space.

    Is it possible to have a horizontal scroll bar only for this table instead of the whole screen so that on the slider, only the rows in the table will be beshifted ant had displayed?

    With our thanks
    Gerber

    try this approach.
    include an element of plain text before and an array element.
    include HTML tags in the raw text element to allow horizontal scrolling

    Prasanna-

  • Can not access the rows of an item of table no-netsed in execution of the embedded R

    Hi all

    I am running a script R (R running embedded) oracle database

    I use under request

    Select *.
    table (rqEval (cursor (select 'divider' 50, 500 "numDots" of the double),))
    "select 1 id, 1 double val,"
    'myRandomRedDots2'));


    I want to save the result in a variable. So under anonymous block has written


    declare

    ID number (10);

    Val number (10);

    Start

    SELECT id, val in id, val

    table (rqEval (cursor (select 'divider' 50, 500 "numDots" of the double),))

    "select 1 id, 1 double val,"

    'myRandomRedDots2'));

    end;

    /

    But I get the error "can not access an element of no nested table lines.

    The one you suggest please how to fix this.

    Thank you

    Billa


    Billa,.

    You see the error "can not access the lines of a no nested table element" of PL/SQL, because rqEval (..., ' select 1 id, 1 double val ',')

  • How to get the diagram ER or master child tables details

    Hi team,

    I would like to get the details of the child Master Table Details (ER Diagram). I use the PLSQL developer.

    Could you please suggest how to get this tool or by using the query.

    Thank you

    Vincent

    Hi mohamed,.

    Please use TOAD. You ask to go to the link below: -.

    Toad Data Modeling - Diagram ER to create and generate the Script DDL/SQL - videos - Toad Data Modeling - Toad World

    Thank you

    Jihane Narain Sylca

  • Get the number of lines to different tables on the same line

    How can I get the number of lines for the different tables in a single line:

    SELECT count (A), count (B), count (C) table tb_a A, tb_b B, tb_c C;

    Thank you!

    Maybe if you want a little sophisticated look ;)

    select *
      from (select 'a' tbl_name,count(*) cnt
              from table_a
            union all
            select 'b' tbl_name,count(*) cnt
              from table_b
            union all
            select 'c' tbl_name,count(*) cnt
              from table_c
           )
     pivot (max(cnt) kount for tbl_name in ('a' as tbl_a,'b' as tbl_b,'c' as tbl_c))
    

    Concerning

    Etbin

  • What is the best way to get the minimum or maximum of a table of numbers value?

    Let's say I have a table of numbers: [2,3,3,4,2,2,5,6,7,2]

    What is the best way to find the minimum or maximum value in the table?

    Now, just get the maximum, I'm a loop in the table and reset a variable to the value if it is greater than the existing value:

    What I ended up doing was sorting table (descending to MAX) upward for MIN and then grabbing the first element of the array. Works like a charm in very few lines of code.

    Thank you.

  • How can I get the Flight Simulator 6 channel dynam to run on windows 7

    rc USB Flight Simulator does not work with windows 7 Why is this and how do I run

    Hello

    ·         Did you do changes on the computer before the show?

    ·         He has already worked?

    ·         What happens when you try to play the game?

    ·         You get the error message?

    Follow these methods.

    Method 1: Uninstall and reinstall the game.

    Method 2: Perform a clean boot to see if there is a conflict of software like the clean boot helps eliminate software conflicts.

    Note: After completing the steps in the clean boot troubleshooting, follow step 7 the link to start the computer to a Normal startupmode.

    Method 3: Follow the steps in the article.

    The problems of the game performance

    Method 4: Updated the latest drivers graphics.

  • How could I possible get the row height of the tableview.

    I need to know the line height or the height of the cell in a tableview. I have searched the forum and google, lifted the api again and again. It seems there are no way to get the height of a line. It made me very frustrated. Sort of, I hope there is a way and you happen to know, please help me.

    There are of course. You must get an instance of the Tablerow in question, so it depends on where you try to get one in your code... You try to get one that currently has the focus? the selected? Or another in particular?

    Inside my own custom tablecell - I get (and link) the height of tablerow associated (another component) in the updateItem method. Use

    TableRow tr = this.getTableRow()
    tr.getHeight();
    

    to get it back...

    Note: You can always "walk" the scene graph seeking to retrieve an instance of the TableRow. Or take all the TableRow in existence, to say, adjust the height of the TableRow.

    Not sure if that helps... Otherwise, you can post your code and mark that it contains a comment in the box your trying to get an instance of the Tablerow.

    Published by: jkaufmann on November 7, 2011 06:39

Maybe you are looking for

  • How do I uninstall Awesome screenshots for Firefox

    I installed Awesome screenshots for Firefox. How to uninstall it?

  • Are the graphics in the mac mini 2014 mobile or desktop?

    Are the graphics of the iris in the mac mini, the mobile version or the desktop version? A website that I use frequently says they have the mobile version, but I have since the mac mini is a desktop computer, I would like confirmation on what version

  • wink triggered camera

    Dear Sir. I did a small medical application to acquire an image after an external trigger (from the light source with pulse generator) and after a short delay (control value) using labview 2013. I use the Point of the camera gray grasshopper3 gs3-u3-

  • Error when sending a shared calendar calendar invitation.

    Hello The situation is like this. Unable to send the invitation to a shared calendar calendar. Error message "Cannot display the form required to view this message." The user is user A wizard and has access to her calendars. Generally, she is able to

  • I can't turn on my samsung galaxy tab model GT-P3100 2.

    I can't turn on my samsung galaxy tab model GT-P3100 2. Even when connected to the charger, it is still dead (blank screen). Please let me know what to do...