Urgent******how can i get the number of rows enterd by the user in a table

Hi Frndz..
As per my requirement i need to do the validations for the multipple rows in a table that was enterd by the user,
               T
          The prob is how can i get that number of rows that enterd by user,
       WDMessageManager msg = wdComponentAPI.getMessageManager();
     String col1= "";
     String col2= "";
     double col3= 0;
     double col4= 0;
     double amount= 0;
     int nodesize = wdContext.nodeTest().size();
     try
     for(int i=0; i<=2 ; i++)
               col1 = wdContext.nodeTest().getTestElementAt(i).getCol1();
             //msg.reportSuccess("col1 size is :"+col1);
               col2 = wdContext.nodeTest().getTestElementAt(i).getCol2();
               col3 = wdContext.nodeTest().getTestElementAt(i).getCol3();
               col4 = wdContext.nodeTest().getTestElementAt(i).getCol4();
                amount = wdContext.nodeTest().getTestElementAt(i).getAmount();
          if(col1 == "" )
                    msg.reportException("Plz fil the col1 for line:",true);
               break;
          else
          if(col2 == "" )
                              msg.reportException("Plz fil the col2 for line:",true);
                         break;
                    else
          if(col3 <= 0)
               msg.reportException("Plz fil the col3:",true);
               break;
          else
               if(col4 <= 0)
               msg.reportException("Plz fil the col4:",true);
               break;
          msg.reportSuccess("skvgjhdfgasdfgsjkafguisafisenvtvyeriy");
                                                   wdThis.test();
     catch (Exception e)
               msg.reportException("strMessage in catch block",true);
     this is the code am going
Regards
Rajesh

Hi,
   You can try this:
* Let's say the table's datasource is a node called Table  and it has two attributes first & second.
* You want to check if any of these attributes has been changed by the user or not. If they have been
* changed then you want to do some validations against them.
  int sizeOfTable = wdContext.nodeTable().size();
  for(int i = 0; i < sizeOfTable; i++){
     IPrivate<view name>.ITableElement ele = wdContext.nodeTable().getTableElementAt(i);
     if(ele.isChangedByClient(ITableElement.<attribute name>)){
        //value has been changed, do some validation. You can get the row index using ele.index().
Regards,
Satyajit.

Similar Messages

  • Can i get a number of rows in the select list??

    Hello~
    I am studying the "oracle call interface". but i don't know much about oci.
    Anyway i want to know that how can i get a number of rows.
    for example, there is a source code of the number of colums in the select list.
    The following is a list of DB(example)
    /*DB table*/
    ID NAME CODE ID
    1 A 1 A
    2 B 2 B
    /*source*/
    err = OCIAttrGet ((dvoid *) stmhp, (ub4)OCI_HTYPE_STMT, (dvoid*)
    &parmcnt, (ub4 *) 0, (ub4)OCI_ATTR_PARAM_COUNT, errhp);
    /*result*/
    The Column is 4. (ID, NAME, CODE, ID)
    So, i think that the row is 3 (ID, 1, 2) in the DB table.
    Simply, Can i get a number of rows in the select list??
    for example,
    err = OCIAttrGet ((dvoid *) stmhp, (ub4)OCI_HTYPE_STMT, (dvoid*)
    &parmcnt, (ub4 *) 0, (ub4)OCI_ATTR_RAW_COUNT, errhp);
    I'm trying to get the number of row count. but i can't find.
    Please, could you let me know that how can i get the number of row count.
    Thank you.

    Thank you for your reply.
    we are tested the source code by reply.
    The following is the test source code.
    /*source code*/
    strcpy (szStatement, "SELECT * from DB_TABLE");
    OCIStmtPrepare(gpOCIReadStmHandle, gpOCIErrHandle, szStatement,
         strlen(szStatement), OCI_NTV_SYNTAX, OCI_DEFAULT);
    OCIStmtExecute(gpOCISvcHandle, gpOCIReadStmHandle, gpOCIErrHandle,
         0, 0, 0, 0, OCI_DEFAULT);
    /* get a number of rows count , Reply : prajithparan*/
    OCIAttrGet((dvoid *)gpOCIReadStmHandle, OCI_HTYPE_STMT, (dvoid *)&nRowCount, NULL, OCI_ATTR_ROW_COUNT, gpOCIErrHandle))
    But There is a problem of the result value.
    The result value is 0. It's mean that the row count is 0. and then we are using the all of fuction is succeed.(return value)
    I don't know what is problem. Please let me know about the problem and solution.
    Thank you.

  • I have an iphone4 and my husband merge his numbers with mine and i think it was deleted can you tell me how can he get his number back on his phone

    have an iphone4 and my husband merge his numbers with mine and i think it was deleted can you tell me how can he get his number back on his phone

    Do you possibly mean the contacts have been merged?
    If so, where are each of you syncing contacts?  A supported application on the computer? iCloud or another cloud service? An Exchange server?
    WIthout details, it's difficult to offer specific resolutions.

  • How can i get a number of working days in a month PL/SQL

    How can i get a number of working days in a month(excluding Saturday and Sunday) in a query in PL/SQL ?

    Please do a search before posting
    sql>
    select count(*)
    from(
    select trunc(sysdate,'month')+rownum-1 dy
    from all_objects
    where rownum <= last_day(sysdate) - trunc(sysdate,'month')+1)
    where to_char(dy,'fmday') not in ('sunday','saturday');
    COUNT(*) 
    23
    Message was edited by:
            jeneesh
    Please try yourself to change the query to one that doesn't use a subquery..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How can i get iban number in transaction FDTA

    Hi Abaper,
    How can i get iban number in transaction FDTA ?
    Thanks in advance.
    Regards,
    Sourav

    This is a bit past the last activity of the thread, but I just had an idea, that requires me to get the port number in the init.
    When this particular servlet shuts down, it generates an email. Since there is more than one instance running, I figured, I would put the HOST and PORT in the email.
    The problem with saving this information from a request, is say it gets shutdown before any requests are generated.
    The email then would have the HOST portion, but the port would be null.
    Ideally there would be a way to get the port(s) that the server is listening on.
    Thanks,
    Brent Parsons

  • How can I get all tracks from an album into the album in my library?

    When importing the albums from a folder, the tracks for some of the albums were split up.  How can I get them in one?

    Hello JudyD276
    The article below will give the steps to get the songs grouped together for you.
    Why aren't songs with the same album art grouped together?
    http://support.apple.com/kb/TS1468
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • My friend synced a video to my ipod but it erased all my data on my ipod,but i cant figure out how to load my old libray back without deleting the movie. my friend cant tell me the password. How can I get my old library back without deleting the movie?

    My friend synced a video to my ipod but it earased all my data on my ipod,but I can't figure out how to load my old library back without deleting the movie. My friend shares a family account so she can't tell me the password. How can i get my old library back without deleting the movie?

    Linnwarner wrote:
    She does have the right because she bought the movie.
    Not true at all.
    You only buy the right to your own personal use.
    You do NOT have the right to distribute to others.
    This is illegal.  There is no doubt about it

  • How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them

    How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them. They have a ton of books but I can only listen to them from my windows media player and I wouldlove to download to my I pod but I have tried everything I can think of it they won't go over.  Someone said all I had to do was copy them over and they would convert but I can't even get them to copy.  Thanks.

    Well it started happening AGAIN with my 2nd IPod. No matter what I did, it Itunes would NOT restore it!
    I finally installed Itunes on my hubby's PC at work and managed to get it restored there.
    Apparently, there must be some sort of compatibility issue with the windows version of Itunes and some other piece of software on my pc.
    And one more important thing! I had to follow the instructions in the other thread that talks about how to correctly uninstall itunes and quicktime, in order to completely eliminate ALL traces of my "first" ipod's existence so it wouldn't demand that I restore it.
    I think the software got "confused" and thought when I connected my 2nd ipod, that it was the 1st and that it still needed to be restored.
    Basically, this is just POORLY written and POORLY tested software!

  • How can I get a file to copy all of the files in a directory except itself and the source of the copy function will be the directory the final program is in?

    How can I get a file to copy all of the files in a directory except itself and the source of the copy function will be the directory the final program is in? This application must be in Lab View 8.

    you mean something like this (see below)?
    Now you may have to implement code to check if the destination folder exists and to create it, etc.  But if you use the Front Panel Control to select the destination folder, it should be okay.
    Not the best implementation, mind you but you'll get the idea..
    Message Edited by JoeLabView on 04-18-2007 03:43 PM
    Attachments:
    copy folder contents.PNG ‏10 KB

  • HT1338 How can I get my photo to work again? the app will not open on my desk top any more. I can not dave my photo on my desk top

    How can I get my photo to work again? the app will not open on my desk top any more. I can not dave my photo on my desk top

    Hello, Cubby21. 
    Thank you for using Apple Support Communities.
    Here are the best resources for troubleshooting issues with Message.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Cheers,
    Jason H.

  • How can I get a list of active savepoints for the current session?

    Hi,
    In Oracle Applications, we are getting the following error while performing ROLLBACK to a Savepoint.
    "Unexpected Error: ORA-01086: savepoint 'PTNR_BULK_CALC_TAX_PVT' never establishe d ORA-06510: PL/SQL: unhandled user-defined exception"
    So how can I get a list of active savepoints for the current session?
    Could you please also let me know if there is any better way to debug this issue.
    Appreciate any quick response as the issue is very critical.
    Thanks,
    Soma

    user776523 wrote:
    Hi,
    In Oracle Applications, we are getting the following error while performing ROLLBACK to a Savepoint.
    "Unexpected Error: ORA-01086: savepoint 'PTNR_BULK_CALC_TAX_PVT' never establishe d ORA-06510: PL/SQL: unhandled user-defined exception"It sounds like there's an execution path in the code where the SAVEPOINT is never issued.
    There is no way to get a list of active savepoints. Is this your code or a "canned" procedure? If it is your code you can go through the code looking for answers, possibly tracing execution using DBMS_OUTPUT.PUT_LINE or writing messages to a log table. If its a "canned" procedure you may need to open an SR with Oracle

  • When printing two-sided from my Mac on landscape A4 with 2 columns, how can I get my HP Photosmart 6520 to print the same way up?

    When printing two-sided from my Mac on landscape A4 with 2 columns, how can I get my HP Photosmart 6520 to print the same way up?

    Or, it is set the other way around (which makes more sense). Even though you are in Landscape mode, it is binding on the Long Side of the paper. Since you are in Landscape, you would want it to bind on the short side.
    Think of the Binding like a Book. How would you flip the finished pages to read the “book.” Where it would be bound in the imaginary book is how you want it to print.

  • My Mountain Lion app failed while downloading, and now I can't download it without repaying for it.  How can I get my access code to work/download the app?

    My Mountain Lion app failed while downloading, and now I can't download it without repaying for it.  How can I get my access code to work/download the app?

    Welcome to Apple Support Communities
    Open App Store, select Account in Quick Links and press Show hidden purchases. If OS X isn't there, http://www.apple.com/support/mac/app-store/contact

  • How can i get my keyboard to be recognized by the imac?

    how can i get my keyboard to be recognized by the desktop imac?

    Hello emanson805,
    Thanks for using Apple Support Communities.
    If you need to set up your Apple Wireless Keyboard with an iMac, then please follow the directions below.  Please note that if the keyboard was previously paired with another device, you will need to unpair it before being able to pair with your iMac.
    Bluetooth: How to set up your Apple Wireless Keyboard - Apple Support
    Have a good one,
    Alex H.

  • How can I get my safari to open after installing the new Mavericks operating system?

    How can I get my safari to open after installing the new Mavericks operating system?

    Thanks Carolyn. Unfortunately, this didn't work. It turned out to be in my display monitor as I have my computer wired to my tv for streaming. Once I changed the monitor display it worked fine. Go figure

Maybe you are looking for

  • Non working printer after installing Windows 8.1

    Please HELP my printer no longer works since I installed Windows 8.1  HELP

  • I have to register every time I open a CS6 program

    The just started last week. When ever I open CS6 the Adobe app manager opens and wants me to register it yet again. This often happens when I am not on the internet so have to pick the Trial button to work. What has changed and why do I have to keep

  • Javascript in java server faces

    Hi All, is it possible to use javascript in java server faces. If it is possible, How to get component (textbox, listbox, combo box) values in java script ?

  • Apple tv airplay

    i am having trouble with the sound on airplay with my apple tv through my macbook pro.  I can hear the audio beeps when i increase or decrease the volume but when i am playing a video, the sound does not transfer.  I had this happen before and i was

  • Proud Owners Of Nokia Lumia 1520 : Share Your Expe...

    Hello everyone  After getting fed up with Androd OS I Started using nokia Lumia 800 and now ended up with 1520, Trust me After getting 8.1 update this device has became unbeatable. Now i wonder what will happen when Official CYAN update gets rolled o