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

Similar Messages

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

  • Count the rows which differes a column value

    msg deleted
    Edited by: user11253970 on Jul 14, 2009 11:33 AM

    Perhaps this
    with a as (
         SELECT cert_no, count(distinct RACE_CODE) RACE_CODES   FROM subscriber
         group by cert_no having count(distinct RACE_CODE) > 0 )
    b as (  
         SELECT cert_no, count(distinct RACE_CODE) RACE_CODES FROM med_subscriber
         group by cert_no having count(distinct RACE_CODE) > 0 )
    c as (
         select cert_no, count(distinct RACE_CODE) RACE_CODES from den_subscriber
         group by cert_no having count(distinct RACE_CODE) > 0 )
    select  cert_no, a.race_codes + b.race_codes||' (in med_subscriber and subscriber tables)'
            ||' , '||  c.race_codes ||' (in den_subscriber table).'  col1
    from a , b ,  c
    where a.cert_no = b.cert_no
    and a.cert_no = c.cert_no
      note: not tested for your data.
    SS

  • 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 to findout rows which are not null ?

    Hi friends,
    Can anyone tell me how to find out the no of rows which is having full data in each column (not null) ?
    Ex:- TEST_TABLE having 1000 columns and lakes of rows.
    myQuestion:- I need to find the no of rows which are filled with 1000 columns filled with not null data.
    Thanks in Advacne.
    Kishore.

    Hello
    You're just going to have to write the query with IS NOT NULL on each column. This will help generate the predicates for the WHERE clause to save quite a bit of typing...
    SELECT
        ' AND '||column_name||' IS NOT NULL'
    FROM
        all_tab_columns
    WHERE
        table_name = 'TEST_TABLE'You can take the output and add that to
    SELECT COUNT(*) FROM test_table WHERE 1=1 HTH
    David

  • Distinct count of values which are displayed in two columns in SSAS

    Hi,
    How is it possible to get distinct count of two columns in fact table, meaning how many different appearances are in both columns.
    Please note I DO NOT mean distinct count on the concatenated fields.
    I’ll demonstrate with example:
    Fact table- deals with CustomerID and SupplierID and deals data.
    I need distinct count of companies which are either customer/ supplier in the fact table.
    (making a concatenated field and distinct count on that would not give what I need).
    Ex: fact :
    Deal1, Customer X, Supplier Y …
    Deal2, Customer X, Supplier Z …
    Distinct count of companies in the above should be 3.
    How can this be done?
    Thanks
    Namnami
    Anyone?? There must be a way to do this?!

    Are you trying to do this using the SSAS model, or just off the data using SQL?  If you were to just use SQL I would create two sub queries and union them to remove duplicates.
    ie.
    SELECT DISTINCT customer FROM table_1
    UNION
    SELECT DISTINCT supplier FROM table_1
    This will give you one unique master list.

  • Why am i getting rows which are equal?

    Hi All,
      why am I getting the values which are equal(highlighted in bold letters) even though I  have a greater than condition(bold letters) in the where clause of the below query?
         select name1, name2,
           length(ltrim(rtrim(name2))) length_unit,length(ltrim(rtrim(name1))) length_name1 from ucbprem
    where ltrim(rtrim(name1)) != ltrim(rtrim(name2))
      and length(ltrim(rtrim(name2))) > length(ltrim(rtrim(name1)))
      and instr(ltrim(rtrim(name2)),' ') !=0
      and substr(ltrim(rtrim(name2)),1,instr(name2,' ')-1) = ltrim(rtrim(name1)) OR substr(ltrim(rtrim(name2)),1,instr(name2,' ')-1) = substr(ltrim(rtrim(name1)),1,2)
    order by name1, name2;
    name1 name2   length_name2    length_name1
    BLDG   BLDG F           6               4
    BLDG   BLDG G           6               4
    BLDG   BLDG H           6               4
    BLDG   BLDG H           6               4
    BLDG   BLDG I           6               4
    BLDG   BLDG J           6               4
    BLDG   BLDG R           6               4
    BLDG   BLDG W           6               4
    FRNT FR 2 4 4
    FRNT FR A 4 4
    LOWR LO A 4 4
    REAR RE 2 4 4
    REAR RE 2 4 4
    REAR RE A 4 4
    REAR RE B 4 4
    REAR RE B 4 4
    REAR RE C 4 4
    REAR RE D 4 4
    UPPR   UP 2M            5               4
    Any idea?
    Thanks in advance
    R.R

    OR substr(ltrim(rtrim(name2)),1,instr(name2,' ')-1) = substr(ltrim(rtrim(name1)),1,2)
    SQL> conn scott/tiger
    Connected.
    SQL> create table trimm (name1 varchar2(4), name2 varchar2(4));
    Table created.
    SQL> insert into trimm values ('FRNT', 'FR 2');
    1 row created.
    SQL> select * from trimm
      2  where substr(ltrim(rtrim(name2)),1,instr(name2,' ')-1) = substr(ltrim(rtrim(name1)),1,2);
    NAME NAME
    FRNT FR 2Message was edited by:
    stevencallan

  • Not to display the document which are not due at the time of making the pay

    Hi,
    My user dont want to display the document which are not in due at the time of making the payment through F-53.
    For example:
    Vendor Code: 1001 has the open item as below:
    Due Date - 29.09.2009 Amount 50000
    Due Date - 30.09.2009 Amount 10000
    Due Date - 15.10.2009 Amount 40000 (due date is in future)
    Now my user want to make the payment for the above vendor through T-Code: F-53 / F-58, while clicking the process Open item the syste, shows all the document (which inclues the future due date document).
    My user dont want to display the document which is in future due date because by wrongly he should not make the payment for the future due dated document.
    Kindly provide me the solution how to disable the document which are not in due.
    Regards
    JS

    Hi,
    You can try the following -
    Execute transaction code O7F4, and maintain the field FAEDT. Then execute F-53 and check if the option to enter net due date appears in the additional selection or not.
    Please revert.
    Thanks and Regards,
    Anit

  • What is the name of the folders which are your backup of Itunes library? I am recovering from a virus, have no workable desktop in Win XP, but can search and find files and folders. I would like to move these backup files to a new computer

    what is the name of the folders which are the backup of Itunes library? I am recovering from a virus, have no workable desktop in Win XP, but can search and find files and folders. I would like to move these backup files to a new computer, authorize it and sync with Iphone 3Gs and Ipod 5th gen.
    I

    I second the whole iTunes folder approach.
    If for some reason you have split the media folder from the library files then the media folder needs to restored to the same path it used to have while the library files can be copied into the music folder of your new profile.
    If in dobut, backup up the entire Documents and Settings folder before wiping the infected drive, but be selective about what you restore as many viruses drop active components capable of reinfecting the compuer in the temp folders and internet caches. It is much easier to backup more than you need than to discover after the fact that you no longer have access to some vital project you'd been storing in a folder on the desktop.
    tt2

  • How can i restore the files which are important to me which i suddenly delete the files in download?

    i nid to restore the file which i suddenly delete in download.. i was about to delete the files which are not important but i suddenly delete the files which are important... how can i restore it??

    Check the Windows recycle bin, you may be able to recover the files from there. Right-click on the recycle bin icon on the desktop and select Open. This will open Explorer, if the files are listed there, right-click on them and choose Restore.
    If the files are not in the recycle bin, you can try a file recovery utility such as recuva - http://www.piriform.com/recuva

  • How to remove the buttons which are coming from a report?

    Hi All,
    I need to remove the buttons from an iview which is a sap transaction. when i execute the  report program which uses a ldb (PCH) shows a selection screen having all the buttons.
    We have created variants for this.Now i want to remove the buttons which are coming from the report program.how to do this ?
    Lakshmi.

    Hi,
    I think u r mentioning about the addition buttons that appear in the selection screen when using a logical database. for removing these buttons u can use a function module RS_SET_SELSCREEN_STATUS  for setting ur own pf-status
    do this in "at selection screen output" of the program..
    in the tables parameter, u have the option for giving the ok-codes that u want to remove. append all the ok-codes into this table.
    for getting the ok-codes u can use "tab" and go the button.. press F1. it will give the ok-code.
    Regards,
    Anoop

  • 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

  • Counting the rows

    Hi,
    I've a datamodel with BI Query. I want count the rows like a rownum function. How can I do this?
    Thanks R.
    Edited by: user12003776 on Jan 26, 2012 5:02 PM

    Do you want to get a count of rows in the query or do you want to find the count in the template? Rownum function returns the rows' position.
    If you want to find the count of rows within the template for some conditionally formatting, then you could use something similar to this:
    <?count(/XXTA_SHIP_LABEL/LIST_G_CUSTOMER/G_CUSTOMER)?> -- change the path to the field in your dataset
    Can you explain a bit more as to what you are trying to do?
    Thanks,
    Bipuser

  • How to set the link to the result which are executed my query from database

    Hi,
    i have successfully displayed the results which are available in the database by jdbc, query.
    Then, How to give the link like href to each & every result...
    note: The number of records may be change. depending upon the records availablity in the database. but every result have the link.
    Thanks in advance.
    Regards
    Kumar

    hai kumar..
    i post an example code ..
    <%
    ResultSet rs1=stmt.executeQuery("select fromu,subject,message,mdate,status,mesid from message where to='" + lname +"'" );
    while(rs1.next())
         l=rs1.getLong(6);
         out.println("<tr align='center'> <td> <a href='deletemessage.jsp?mesid="+ l + "'>Delete </a></td><td>" + rs1.getString(1) +"</td><td> <a href='viewmessage.jsp?mesid="+ l +"'>"+ rs1.getString(2) +"</a></td><td>"+ rs1.getString(4) +"</td><td>"+ rs1.getString(5) +"</td></tr>");
    %>

  • How can I fetch the deliveries which are PGIed but not invoiced.

    Hi
    I want to search for the deliveries for which post goods issue has been done but are not invoiced.
    Kindly guide with you valuable comments.
    Regards,
    Satish.

    Hi,
    Use the T.Code:VF04.
    Goto T.Code:VF04
    Enter the Sold-to-party.
    Select Delivery related tick mark and uncheck all.
    Execute.
    It will give all the deliveries which are PGIed but not invoice.
    Regards,
    Krishna.

Maybe you are looking for

  • ICal "all day events" separator bar

    Is it possible to adjust the "all day events" separator bar in iCal in the Daily or Weekly view.  When you have more than 6 all day events on one day a scroll bar appears, and it's not possible to view all of the all day events at once.  I know that

  • SD video on an HD monitor

    I am thinking about getting the 23" HD monitor. I use FCP and am still working in SD Video. Clients haven't moved up to HD yet. How crappy will the SD video I work with in my projects look on this monitor?

  • How can I copy a short video from iPad to DVD

    How can I copy a short video from Mini iPad to DVD via my laptop please?

  • SQL Servers's SCOPE_IDENTITY() function in Oracle???

    There is a query in SQL SERVER in my project SELECT SCOPE_IDENTITY() I would need to write equivalent query in Oracle. Could you pelase let me know what is the substitue for the function SCOPE_IDENTITY() in Oracle?

  • IPhone 4S screen is black

    My brother changed my cracked screen for me and it was all working perfectly fine until I dropped my phone again and now my iphone screen is black. It still works and I can hear message and email notifications coming through. If someone rings me it w