How to know Number of the Row which is selected in Advanced table

Hi All
I have a requirement where in an advanced table, when user clicks on copy icon against a row..a new row is created with copied values of the row against which copy action is performed.My issue is: assume in table i have got 5 rows..when user clicks on copy..my copied row gets created in the end..but i want tht row to be created directly under the row against which copy action is performed.I think somehow if i am able to know the position number of the row against which copy action is performed..i should be able to achieve it...can you please help me on this.
Thanks
Raj

hi raj,
create a fire action to the copy image.
and then copy this method in to u r AM,
public void copy action(String s)
PwrPosViewShipmentsVOImpl sVO = getPwrPosViewShipmentsVO();
RowSetIterator rowsetiterator;
OADBTransaction oadbtransaction;
     rowsetiterator = sVO.findRowSetIterator("ships");
int i;
     int j;
if(rowsetiterator == null)
rowsetiterator = sVO.createRowSetIterator("ships");
oadbtransaction = getOADBTransaction();
rowsetiterator.reset();
i = 0;
if(!sVO.isPreparedForExecution())
rowsetiterator.setRowValidation(false);
String s1;
PwrPosViewShipmentsVORowImpl sVORowImpl1;
PwrPosViewShipmentsVORowImpl sVORowImpl=null;
do
if(!rowsetiterator.hasNext() || i >= sVO.getFetchedRowCount())
break;
i++;
sVORowImpl = (PwrPosViewShipmentsVORowImpl)rowsetiterator.next();
s1 = copyServerUtil.replaceNull(sVORowImpl.getAttribute("view attribute of the referenced column"));
} while(!s.equals(s1));
j = sVO.getRangeIndexOf(sVORowImpl);
sVORowImpl1 = (PwrPosViewShipmentsVORowImpl)rowsetiterator.createRow();
sVO.insertRowAtRangeIndex(j + 1, sVORowImpl1);
rowsetiterator.closeRowSetIterator();
* create a new class file under the server folder and paste the below into that. and then import that class file into u r AM. and then try to run as a whole. u will get ur required work.
     public static final String replaceNull(Object obj)
if(obj == null || obj.equals("null"))
return "";
} else
return obj.toString();
}

Similar Messages

  • Count the rows which are selected ?

    Hi Experts,
    I need help.My requirement is:
    I am having a table which can be multiple selected. But there are two buttons attached to it.Edit and Delete.For Delete I want the Multiple Selection not for EDit.So, If i will click the Edit after multiple selection of the rows.How i can give pop-up that multiple edit is not possible?Means I want to count the rows which are selected how to do that?
    Please guide me.
    Urgent need
    Regards
    Nutan

    Hi Nutan,
    Marcel is right about backend. However I might have an idea once I am developing a quiet similar solution. I would like to ask you to explain with more detail. It seems you have two requirements in one question.
    Regards,
    Gilson

  • Know the number of the row in a select

    Hi experts,
    I´m doing a select * ... such as:
    *      SELECT *
    *        FROM YPLM00 CLIENT SPECIFIED
    *        WHERE mandt = sy-mandt
    *        AND TIPOL = 'RS'
    *        AND PSPNR = yplm00_tree-pspnr
    *        AND TIPOP = yplm00_tree-tipop
    *        AND PROCE = yplm00_tree-proce
    *        AND ID_ED = yplm00_tree-id_ed
    *        AND TIPOE = yplm00_tree-tipoe
    *        AND ID_EN = yplm00_tree-id_en.
    Can i know the number of the row that is affected? I don´t want the total of rows... i want the number of each one...
    Thanks in advance,
    regards

    >
    Victor Capi wrote:
    > I have a table with
    >
    > Q   W   E   R
    > E   T    U    I
    > A   Q    E    T
    > A   W   R    F
    Hi Victor,
    I see what you mean.  The problem is still that there isn't actually a row number associated with each database row.  In your example, what is the primary key of the table?  If it is say A Q E for row 3 and A W R for row 4 then that is the only way you can identify them.
    It sounds like you have performance considerations so probably change the SELECT * to only SELECT the fields you need.  Also change it so that you are SELECTing into a table - so in your example you would get both rows 3 and 4.  Then if you want to process those rows, you will have to use their primary keys to identify them, say by LOOPing through the internal table you have just selected them into.
    Do you already have an internal table with values you wish to read from this table?  So say you have a table with 500 entries which all define the value in the first column of this table?  If so you could try chaning to using a FOR ALL ENTRIES in your select to get all rows for the table in one hit - you can then process them again in a LOOP.
    Hope this helps in some way.
    Gareth.

  • Random selection of rows from a 2D array then subset both the rows that were selected and those that were not. Please see message below.

    For example, I have a 2D array with 46 rows and 400 columns. I would like to randomly select 46 data rows from the 2D array. By doing the random selection it means that not all individual 46 rows will be selected some rows may appear more than once as there may be some duplicates or triplicates in the random selection. The importan thing is that we will have randomly selected 46 rows of data (no matter that some rows appear more than once). Then I would like to subset these randomly selected 46 data rows (some which will be duplicated, or triplicated, etc.) and then also find and subset the rows that were not selected. Does this make sense? Then i would like to do this say 10 times for this data set. So that then I will have 2 by 10 data sets: the first 10 each with 46 rows and the other 10 with n rows depending on how many WERE NOT randomly selected. i hope that my explanation is clear. I am relatively new to Labview. It is really great so I am getting better! If anyone can help me with this problems it will be great. RVR

    Start by generating randon #s between 0 and 45. Run a for loop X times and in it use the random function, multiply the result by X and round down (-infinity). You can make this into a subVI, which you can reuse later. In the same loop, or in a different one, use Index Array to extract the rows which were selected (wiring the result out of the loop with auto indexing causes it to be rebuilt into a 2D array).
    One possible solution for the second part would be to go over the array of randomly generated numbers in a for loop and use Search 1D Array to find each of the numbers (i). If you get -1, it means the row wasn't selected and you can extract it.
    I hope this puts you on the right path. If not, don't be afraid to ask more.
    To learn more about LV, I suggest you read the LabVIEW user manual. Also, try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide.
    Try to take over the world!

  • How can I download free apps while I have already given a card number at the past which is ineffective?

    how can I download free apps while I have already given a card number at the past which is ineffective?

    Create an iTunes App Store account without a credit card
    Any way to get free apps on the App Store without a credit card?
     

  • Alert about the loading time & Restrict the number of the rows retrieved

    Hi everybody, maybe the question is stupid, but I didn't find yet an answer...
    I'm using BIP 10.1.3.4.1
    Because I have many reports with a huge amount of data to display (in HTML format) and customers once clicked on "View" have to wait a lot of time, they asked me if there is the possibility to do the following things:
    1. restrict the number of the rows retrieved (this for each report); this request has to be dynamic (different rows' number for each report and for each user); so, I can't modify the query into the data template in order to retrieve a fixed number of rows;
    2. show an alert who says for example " The data loading will take 5 minutes. Do you want to proceed ? YES - NO" This to inform the users how much time they have to wait if they click on Yes.
    I checked under the Administrator TAB...but I didn't find nothing "native" about the two questions above.....
    So, I ask you if there is a way to activate these features (if they exist "native") or a workaround to implement what I described above.
    Any help will be appreciated.
    Thanks in advance
    Alex

    Hi Vetsrini, thanks for your answer.....but what does it mean ? There are no solutions for my requests ? I remember that Discoverer had the possibility to have an alert as I would like to have with BI Publisher and there was the possibility to choose how many rows it was required from the customer....Is it possible that with BIP is not applicable ?
    Have a good day
    Alex

  • How to know  Partikular Attribute belongs to which Characteristic

    Hi, I have a doubt about Attribute,
    For example I have a info object 0REJECTN_ST ( Rejection Status ) , my question is How to know this Attribute belongs to which Characteristic , I have to load the Master Data for 0REJECTN_ST, when I am SD master data Info sources this is not available in master data info source , when I am going to create master data info source for 0REJECTN_ST, system is giving the message
    <b>Characteristic 0REJECTN_ST cannot be a master data InfoSource,</b>
    If I want to load status related data , How to load ?

    Shaik,
    ooks like the IOBJ was created without texts or attributes. You would not be able to load any textx or attributes against the same.
    use the where used option and find out where the IOBJ has been used and then you can look at how best you can att the descriptions to the IOBJ.
    Arun
    Assign points if helpful

  • I have made with iweb a website on my macbook, now i want to change it, through my imac, how can I get in the program , which is on the mac book. On both computer I have Lion

    i have made with iweb a website on my macbook, now i want to change it, through my imac, how can I get in the program , which is on the mac book. On both computer I have Lion

    You need to transfer your domain.sites file from your MacBook to your iMac.  This is the file where iWeb stores all info and can be found under User/Library/Application Support/iWeb/domain.sites.
    Transfer this file from your MacBook to the same place on your iMac and double click the domain.sites file and iWeb will open it on your iMac and you can update your site from there too.

  • How can I turn-off the apps which I have opened once in ISO 7.0.2. In previous version of ISO it was easy to turn- the opened apps by double clicking on home button and then click and hold on respective apps then click on cross sign.

    How can I turn-off the apps which I have opened once in ISO 7.0.2. In previous version of ISO it was easy to turn-off the opened apps by double clicking on home button and then click and hold on respective apps then click on cross sign but in this version I could not do so and my iPad appears slower.

    Close inactive apps
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app's windows upwards to close
    3. The app will fly off the screen

  • Hi. I clicked some snaps from my iphone and post that without copying it i restored the iphone with all apps etc available from the backup taken. How do i get back the photos which were clicked earlier. Is there a way to get it back?? Please help

    Hi. I clicked some snaps from my iphone and post that without copying it i restored the iphone with all apps etc available from the backup taken. How do i get back the photos which were clicked earlier. Is there a way to get it back?? Please help

    Yes i had not taken back up before restoring it. However i was just going through some links on the net and there is a software available for MAC to retrieve such lost data. But the point is will the said software work on iphone as the OS is not MAC..
    Will have to give a try to this. If successful will share it with all. Anyone else has any idea about this please so share.

  • The number of the rows in a tabular style

    hello to all
    i have a problem creating a column that gives me the # of the row in tabular with form builder
    can anybody give me help with that please?

    The rownum pseudo-column hold the number of the row but it doesn't work like you expect. It is assigned before sorting for example and it is not absolute. SQL conceptually deals with sets and sets have no inherent order. See http://www.oracle.com/technology/oramag/oracle/06-sep/o56asktom.html
    If you want to have an absolute number in a row you will need to maintain it yourself with PLSQL code.

  • Where we can see Sale order Number in the project which is asigned to it.

    Hi,
    Where we can see Sale order Number in the project which is asigned to it.
    Regards,
    somiraghu

    Hi,
    Thank you for your reply.
    Here we can see in repot format.
    Mainly Iam looking for a feild type for making report.
    My expected report format is
    Production order     WBS Element         Sale Order
    12345                     PR-154534              8736444
    for the above report I can get details of production order and WBS element fron Prodction order table.But I also want Sale order number.
    Regards,
    somiraghu

  • How to know what are the privs for one custom schema?

    how to know what are the privs for one custom schema?
    please suggest me......

    Hi,
    Check this user_sys_privs
    Cheers
    Pavan Kumar N

  • How can we find out the disk which is used for a mount point

    How can we find out the disk which is used for a mount point?
    one of our mount point(/u03/oracle/prod) was using high I/O and this was causing slowness in the server.
    I can see a disk operation error in errpt at the same time as below. Wanted to check whether the mount point /u03/oracle/prod is using the disk hdisk31
    $errpt|more
    IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
    DXB78877 1125032114 T H hdisk31 DISK OPERATION ERROR
    OS version:AIX 6.1
    DB:11.2.0.2

    this is the output for cat /etc/filesystem
    /u02:
            dev             = /dev/fslv00
            vfs             = jfs2
            log             = /dev/loglv00
            mount           = true
            options         = rw
            account         = false
    /u01:
            dev             = /dev/fslv01
            vfs             = jfs2
            log             = /dev/loglv00
            mount           = true
            options         = rw
            account         = false

  • Find out the SQLs which are using a full table scan

    Hello all , how can i to find out the queries which are using a full table scan ? Any idea ?

    In general, though, why would you want to tune SQL statements that aren't causing problems? Statspack will tell you what the most resource-intensive SQL statements on your system are. A SQL*Net trace of sessions that are performing poorly will indicate which statements are the most resource-intensive for that session. If a statement is incorrectly doing a full-table scan, but it is not causing a problem, why spend time tuning it? If you're not focusing your tuning attention on identifying statements that are causing problems, you'll also miss out on 90% of tuning opportunities which involve rewriting (or eliminating) code to make it more efficient. I can simulate a join on two tables with nested cursor loops, which won't generate a single full table scan, but replacing that code with a real join, while it will cause at least one full table scan, will be orders of magnitude faster.
    As an aside, full table scans aren't necessarily a bad thing. If a statement needs to retrieve more than a couple percent of the rows of a table, full table scans are the most efficient way to go.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

Maybe you are looking for

  • Report Generation excel column size

      Dear, In the project, I save the data in Excel with Report Generation. I would like change just the column size of my Excel report. There is an explanation in the labview help but I have always an error when I run the VI. I work with labview 8.2 A

  • My phone unable to connect to mailbox

    Few days back I bought the nokia E63 and whenever i try to connect the mailbox it shows incoming mail server not found.Check mailbox setting... What i do?

  • Tax code update in info record?

    Hi, Gurus a question, somebody knows if it is posible to update the tax code in info record update indicator?. Info record was created automatically and the tax code was updated as in PO, by setting info update indicator in PO but every time when we

  • KE5T-- difference.

    Dear Experts, We have a difference in the month of Feb-2011 in tr.code KE5T for an Account XXXXX (B/s Account), upto Jan-2011 we dont find any difference CoCd Account  Crcy Year    Base ledger     CompLedger  Difference XXXX  XXXXX  XXX  2011  5,003,

  • No receiver found;

    Hi, Scenario : IDOC --> XI --> JMS Here i has configured the ReceiverCC properly, but when i trigger the IDOC am getting the error saying that, No receiver found; message stopped but has no errors Please give me any suggestions here and i cross check