How to identify the last instance of a dynamic table row

Hi all,
I am trying to figure out how to create an action for my form in Livecycle Designer ES2 that will affect the most recent instance of a dynamic table row. I have a table with a repeatable row where the user will enter information about a purchased part and I have buttons that allow the user to add and remove rows. I need to create an additional add row button that will add a new instance of the repeatable table row (this is not an issue) and will disable and change the background color of the first cell in the added row. The problem I am having is how to have an action that affects the last instance of a row.
If anyone knows how to do this in Javascript I would appreciate some advice/help.

Hi,
I think this is beyond what an action will provide. You will a have to write some JavaScript directly.  When you call the addInstance method it returns the new row, so you can do something like;
var row = Table1._Row1.addInstance();
row.TextField1.border.fill.color.value = "255,0,0";
row.TextField1.access = "protected";
To find the last row and do the same thing you can do something like;
var row = Table1.resolveNode("Row1[" + (Table1._Row1.count - 1) + "]");
row.TextField1.border.fill.color.value = "255,0,0";
row.TextField1.access = "protected";
Regards
Bruce

Similar Messages

  • SD PRICING: How to identify the last call of a Condition Value Formula

    Hello  Experts.
    I'm working on a condition value formula, and because a Group Condition, I need to do a calculation in the last call of the formula. The formula is called 5 times and I couldn't identify any flag to diferentiate the last 3 calls.
    I could use a counter in a static variable per position, but I think there must be another way to identify the last call.
    Thanks in advance and best regards
    Matías

    Hi,
    Define a counter say w_ii type I in your routine.
    Whenever you enter the routine  use 'IMPORT' to get the last value of w_ii. If sy-subrc ne 0 its first time so increment the counter w_ii = w_ii + 1 & 'EXPORT' it. If sy-subrc = 0 check the value of w_ii to decide if it's the last time.If yes do whatever you want to do
    else increment w_ii i.e. w_ii = w_ii + 1 & 'EXPORT' it which in turn will be used during next 'IMPORT'.
    I hope this helps,
    Regards
    Raju chitale

  • How to identify the last changes made in the smartform ?

    Hi Form Experts,
    My smartform's General attribute shows that there is some change performed 2 months back, Which is not reflected in my production server.
    Could any one advice how to track the last performed changes in the system, I did not find version management for smartforms.
    Regards
    Prasath

    Hi,
    1.Go to smartforms->give formaneme>display>Utilities>Forminformation.
    2.Go to smartforms->give formaneme>display-->General attributes.
    Regards,
    If helpful reward with points(Don't forget).
    Edited by: shiva kumar on Apr 11, 2008 6:22 AM

  • How to get the last inserted record from a table ?

    :-) Hiee E'body
    I work on Oracle 8i and need to get the last
    record inserted in a table.
    I have tried using rownum and rowid pseudo-columns
    but that doesn't work.
    Can you please help me out ?
    :-) Have a nice time
    Vivek Kapoor.
    IT, Atul Ltd.,
    India.

    I'm not sure about 8i features.
    I assume here that you don't have 'Date-Time' stamp columns on the table which is the easiest way to determine the last inserted row in the table.
    If not try the following :-
    select address, piece, SQL_TEXT
    from V$SQLTEXT
    where upper(sql_text) like '%INSERT INTO TABLE_NAME%'
    Substiute the TABLE_NAME with the name of the actual table.
    Have fun.
    Regards,
    Shailender
    :-) Hiee E'body
    I work on Oracle 8i and need to get the last
    record inserted in a table.
    I have tried using rownum and rowid pseudo-columns
    but that doesn't work.
    Can you please help me out ?
    :-) Have a nice time
    Vivek Kapoor.
    IT, Atul Ltd.,
    India.

  • How to get the last record of an internall table ....

    Hi All..
    i want to get the last record of an internal table itab, and i want the the value of the last record.

    Hi,
         Use describe statment.
    data: lv_line type i.
        Describe table itab lines lv_line.
        read table itab into wa_itab index lv_line.
    regards,
    Santosh Thorat

  • How to identify the last usage of  8i database?

    Hi All,
    We are in process of decommissioning our old databases. I need to know the last usage of a 8i database.
    Is the any v$ views or DBA views to identify that?
    Thanks
    Aruna

    If you are on Unix , "ipcs -mt" should show the time of the last attach to the shared memory segment.
    When a user session connects to the SGA via a dedicated server process, it actually "attaches" to the shared memory segment.
    Check the man pages (with "man ipcs") for the command line options on your particular platform.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • How to get the last update time for a table ?

    I want to know the last change of the table data , for example, a record has been changed, how can i get that time?
    Regards,
    Lament

    Hello
    check the tables CDHDR & CDPOS
    But the condition when u r checking the these table.for a particular field the at data element level- futhur charactestictab level we have one check box called change document it as tick
    Thank u,
    santhosh

  • How to find the last string value in dynamic object?

    Hi All,
    I am trying to find the last string value in dyanamic objects,Any one have solution for this.
    Ex:
    my data :12347-ebjdone-525-ecgfjf-25236-defdafgdeg
    And i want to show the output is :defdafgdeg
    Any ideas:
    Thanks
    Srini

    For oracle try using oracle function.
    e.g.
    SELECT  reverse(substr(reverse('12347-ebjdone-525-ecgfjf-25236-defdafgdeg'),1,instr(reverse('12347-ebjdone-525-ecgfjf-25236-defdafgdeg'),'-','1'))) from dual
    Object definition might look like:
    reverse(substr(reverse({ObjectName}),1,instr(reverse({ObjectsName}),'-','1')))
    Regards,
    Kuldeep
    Edited by: Kuldeep Chitrakar on Feb 12, 2010 8:12 AM

  • How to change the display limits of a dynamic table?

    Hi folks,
    I'm using DW CS4 and PHP. I've got a php page with a dynamic table and repeating region that I built for my client. This table lists our entire active member list. Initially I built the dynamic table to show only 50 records at a time because 300+ records made an overly long page. Now my client wants all the records on a single page, because he doesn't like clicking through the recordset paging of First - Next - Previous - Last list to find who he is looking for. I tried changing the Repeating Region behavior to All Records (rather than 50) but it still displays only 50. I'm sure this is because initially when I set up the dynamic table, I limited it to 50 there. Is there an easy way to change the dynamic table from 50 to All Records, without rebuilding the entire page? I've looked in several places and can't find a way to edit this. Thanks for your help,
    Gail

    Gunter,
    Thanks for your continued help on this forum. You have made people's
    work a lot easier and stuck with them through some thorny issues.
    If I may redirect you to an issue I had a few months back - the initial
    posting was here at:
    http://forums.adobe.com/thread/767154?tstart=300
    I couldn't turn the answers I received into a workable solution. Would
    you be willing to take a look at this?
    Thanks again for your help,
    Gail

  • How to calcalate the maximum size occupied by a table/row

    Hi,
    I am using the below query to find the maximum size occupied by a table per a row of data.
    SQL> desc t2
    Name Null? Type
    NO NUMBER(1)
    CH VARCHAR2(10)
    SQL> select sum(data_length) from user_tab_columns where table_name='T2';
    SUM(DATA_LENGTH)
    32
    Is this correct? Does oracle takes 22 bytes of space to store a column of Number(1) per a row as it shows below !?
    1* select data_length from user_tab_columns where table_name='T2'
    SQL> /
    DATA_LENGTH
    22
    10
    Please give your comments/suggestions
    Thanks and Regards
    Srikanth

    If you are trying to do this for an existing table, you can get the actual number of bytes stored per column by:
    SELECT VSIZE(column_name)
    FROM tableSo, to get the largest row you could:
    SELECT MAX(VSIZE(col1) + VSIZE(col2) ... + VSIZE(coln))
    FROM tableIf you want to get the theoretical largest possible row size, then you can use something like:
    SELECT SUM(DECODE(data_type,'NUMBER', ROUND((data_precision/2)+.1,0) +1,
                                'DATE',   7,
                                'LONG',   2147483648,
                                'BLOB',   4000,
                                'CLOB',   4000,
                                data_length)) max_length
    FROM user_tab_columns
    WHERE table_name = 'MY_TABLE'This works because:
    For a number, Oracle stores two digits in each byte, and uses one byte for the mantissa. Note, if you are expecting negative numbers in your numeric columns then add one additional byte).
    For a date, Oracle always requires 7 bytes.
    A long is at most 2 GB in size.
    Both Blobs and Clobs will be stored out-of-line when they are larger than about 4,000 bytes.
    For other data types you specify bytes of storage when you define the column, and that is stored in data_length.
    I'm not sure at this point what sort of sizes you would get for object type columns or nested tables.
    HTH
    John

  • How to identify the bpel instance called by specific esb instance

    Hello expets,
    Greetings,
    Is there any way to find out the instance of BPEL process invoked by an esb process.
    In short i have a esb process invoking a bpel. I want to find out the Instance of Bpel process invoked by esb
    Are there any tables which store this information
    Thanks in advance
    Best Regards,
    naveen

    Hi Justin,
    Thanks for the response.
    indeed i have looked cube instance table.
    My scenario is esb picks message from AQ and calls a BPEL process.
    When i looked up the root_id and parent_id in cube instance table those are same as that of the BPEL process instance id. That is because this is the first process in the transaction at BPEL layer.
    Is there a way to find the instance of the process at one layer before
    Tehanks
    Naveen
    Edited by: user12044731 on Nov 10, 2010 10:26 PM

  • Identify the last data package in start routine

    Hi Everyone
    We have a start routine in transformations. We require to do some special processing in the start routine only when the last data package is executing. How can we determine in the start routine that current package is last one or not ? Any pointers in this direction are appreciated.

    Hi,
    You can get packet Id from datapackid in start routine and end routine. But I'm not so sure how to identify the last packet ID, alternatively you can store this packet id in some where else and read the same value in End routine if your logic(processing) permits to do this in End routine instead of Start routine.
    METHODS
          start_routine
            IMPORTING
              request                  type rsrequest
              datapackid               type rsdatapid
            EXPORTING
              monitor                  type rstr_ty_t_monitors
            CHANGING
              SOURCE_PACKAGE              type tyt_SC_1
            RAISING
              cx_rsrout_abort.
    hope it helps...
    regards.
    Raju

  • HR - How to identify the list of infotype populated for a pernr.

    Hi,
    When we go to pa30 tcode, and input a pernr and press enter, we can see the list of infotype populated for the particular pernr with a "tick" symbol.  I would like to know, how SAP identify the same.  Is there any table in which these information is stored.
    Please do let me know the detail asap.  This is urgent to me.
    Regards
    Gopalakrishnan S

    Hi,
    You can run a report named "RPLINFC0" to get list of infoypes which are used for a PERNR.
    I think its enough for you.
    Regards,
    Purnima

  • How to identify the data mismatch between inventory cube and tables?

    Hi experts,
    i have a scenario like how to identify the data mismatch between 0IC_C03 and tables,and what are the steps to follow for avoiding the data mismatch

    Hi
    U can use data reconcilation method to check the consistency of data between the r/3 and bw. Plz check the below link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0931642-1805-2e10-01ad-a4fbec8461da?QuickLink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d08ce5cd-3db7-2c10-ddaf-b13353ad3489
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7a5ee147-0501-0010-0a9d-f7abcba36b14?QuickLink=index&overridelayout=true
    Thanx & Regards,
    RaviChandra

  • Select the last saved records in a table

    I all
    I have this struct in a table
    create table INT_OBJ
    IDOBJ NUMBER(15) not null,
    IDERP NUMBER(15),
    IDE NUMBER(15),
    CPO VARCHAR2(20),
    VLR VARCHAR2(2500),
    VLRC VARCHAR2(2500)
    How to Select the last saved records in a table. I think usea a temp table for put the last row read and begin to read in the next row.
    The table is reading each four hours.

    Theoretically it can be done with ORA_ROWSCN and enabled ROWDEPENDENCIES, but there are so many nuances, so only adding column for ordering is right.
    Regards,
    Sayan Malakshinov

Maybe you are looking for

  • Error in MCH1 table update for batch create with class assignment

    Hi Experts, I am looking for a BAPI which could help me to assign a class and in respectively assigns characteristics to th batch. and hence i cant update MCH1 table for the same. so please suggest me how could i achieve the same. Thank you in advanc

  • My ipod touch is not working anymore, the screen is totally white with no answer to the comand buttons, what should I do? Thank

    Dear Friend, My ipod touch stopped working since one week ago.  The screen is totally withe with no reaction of the butttons. I would like to know if somebody can help me to solve this? thank you,

  • Can't get iPod to sync with computer!

    Please can someone help as I'm at my wits end! Basically I've got a 2nd gen iPod, everything was working fine until a couple of days ago when I connected the iPod to my laptop and it didn't show up in iTunes. After about 10 minutes I get a message te

  • XSLT uniqueness function

    I have a large number of elements with equal-valued attributes, e.g. <Item page="1">. Is there a way within XSL to discover the unique values of @page?, e.g. 1,2,3 ignoring duplicates?

  • JDK seems to be missing.

    I downloaded the JDK pack from sun microsystems, but in trying to get it to work with JCreator I can't seem to find the JDK directory. It looks as though only the runtime environment, Java\jre6, installed from the jdk-6u10-windows-x64.exe, though I d