How to get the number of the row added to tabular form by the AddRow()

using 4.0. User clicks an Add button which calls a javascript function that gets a couple page item values, inserts a row (addRow(), and updates columns in that newly inserted row with the values from the page items. This works fine if I hard code the row number (so it saves the page item values into the row I specify) but I don't know how to get the row number of the newly inserted row?
i.e html_GetElement('f12_0003').value = DocName; will set the element F12 at row 3 correctly, but I need to have the 0003 replaced with a variable that has its value set after addRow() but can't figure out how.

hi,
use the following code:
CALL METHOD OF gv_selection 'Information' = gv_curpage
    EXPORTING
    #1 = 3. " get current page number
  CALL METHOD OF gv_selection 'TypeText'
    EXPORTING
    #1 = gv_curpage. "show current page number
  CALL METHOD OF gv_selection 'TypeText'
    EXPORTING
    #1 = ' of '.
  CLEAR gv_endpage.
  CALL METHOD OF gv_selection 'Information' = gv_endpage
    EXPORTING
    #1 = 4. "get total page number
  CALL METHOD OF gv_selection 'TypeText'
    EXPORTING
    #1 = gv_endpage. " show total page number
Edited by: VoonHan on Oct 13, 2009 7:35 AM

Similar Messages

  • How to get physical number of selected row on the screen.

    Hi,
    We have block defined with Numbers of Records Displayed = 3. In the same time the data set contains 10 records. We would like to know how to get a number of row selected on the screen. i.e. in our case that the number will be always between 1 and 3 independent of the current row position in the data set.
    Best regards,
    Constantin.

    You can calculate that number by subtracting :SYSTEM.CURSOR_RECORD and GET_BLOCK_PROPERTY('BLOCK', TOPMOST_RECORD)

  • HOW CAN I HAVE THE NUMBER OF SELECTED ROWS IN ALV GRID?

    HI.
    HOW CAN I HAVE THE NUMBER OF SELECTED ROWS IN ALV GRID????
    GABRY =)

    You need to use
    data : grid1  type ref to cl_gui_alv_grid.
      call method grid1->get_selected_rows
        importing
          et_index_rows = i_sel_alvrows[].

  • How to get customer number and name from the SD document

    Hi All,
    Can you please let me know how to get Customer Number and Name from the SD Document?
    Thanks a lot....
    Anil

    Hi,
    It will be displayed in the SD (BIlling document) itself,  you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
    regards,
    radhika
    Edited by: kolipara radhika on Jul 10, 2009 5:32 AM

  • How to retrieve the number of "free" rows in a table?

    Hi,
    if in a client only environment (no sync to mobile server) rows are inserted and deleted into a table,
    is there a way to retrieve the number of "free" rows in a table? Number of "Free" rows stands for
    number of rows that can be inserted again, before the table extents in size.
    Is there a way in OLite 10.3.0.2.0 to retrieve the size of tables and indexes? ALL_TABLES is not
    a place that really works.
    Best regards and many thanks,
    Gerd

    Hi Gary,
    many thanks, the partner uses a Lite client db without sync. The db runs inside an laboratory device and collects measures. There must be a way to estimate the the number of "measures" rows, that stil can be stored in the db.
    Than we need to make the deleted space available for new rows. The partner tested defrag.exe and found that it
    needs very long time to run, especially if the db is bigger than 2GB. ... and that this run sometimes fails.
    Is there any recommendation the partner can follow on?
    Thanks,
    Gerd

  • OCI8 OCIStmtFetch() the number of processed rows

    Hello,
    Would someone help me, please.
    How may I get the number of returned rows at the end of the table after OCIStmtFetch() for multiple rows?
    The OCI7 function ofen() returns the number of processed rows.
    Thanks.
    null

    Simon
    For  deleting significant number of rows best practice is to delete rows in small batches of known size (e.g. 10 K) inside a while loop. 
    This keeps transaction log from filling up as well.
    Also between two iterations of delete you can give some wait to make sure that you do not monopolize the server. Sleep could be for a fixed number of seconds (e.g. 5) or for randomized number say from 1 to whatever makes sense.
    Typically "set rowcount " is used to set up the batch size and "waitfor delay" to sleep between iterations.
    Global variable @@rowcount gives yo actual rows deleted. For the last batch this may be lower than the batch size you set up.
    HTH
    Avinash

  • My 2 year old has deleted my 'apps store' icon and I cannot figure out how to get it back? Doesn't seem to be available in the on-line apps store, ironically enough

    My 2 year old has deleted my 'apps store' icon and I cannot figure out how to get it back? Doesn't seem to be available in the on-line apps store, ironically enough

    He dragged the icon out of the dock at the bottom and disappeared. That icon is merely a "shortcut" that opens the application when you click on it.
    You still have the app. Open your applications folder and look for the App Store app icon. Click and hold down on the App Store icon and drag the icon down into the dock to replace it. That puts the shortcut back into the dock.

  • How to get rid of a window which says: CalendarAgent wants to use the "login" keychain

    How to get rid of a window which says: CalendarAgent wants to use the "login" keychain

    I would get free EasyFind (Spotlight will be a total waste of time), and search for caremefile and caremefile.info. If it comes up with anything, right-click and select move to trash, or just destroy. Since you didn't install anything, shouldn't be necessary to authenticate with the admin password before it will move to trash. Could also click on reveal in finder, which will allow you to see the actual location. Set it up as per the screenshot below.

  • Restrict the number of output rows

    I'm using Crystal XI. 
    Is there a way to restrict the number of ouput rows comparable to a SQL "Set Rowcount" command?  If so, I would appreciate the instructions.
    Thanks.

    I don't think their is a way to do it through the select expert, but it's easy enough to suppress any records beyond a defined number through the section expert:
    recordnumber > 5
    Any records after 5 are suppressed.

  • How to get paragraph number of selected text in ID CS4

    Hi,
    Can anybody help me how to get paragraph number of selected text in Indesign cs4.
    Thanks,
    Gopal

    Ah, I see -- thanks. Turns out that there's no difference in speed between texts.itemByRange(), characters.itemByRange(),and insertionPoints.itemByRange(). In a document with 170 pages of text, and with the cursor in the last paragraph, the second and third lines, below (and your function), give exactly the same result:
    t = app.selection[0];
    t.parentStory.texts.itemByRange (t.parentStory.insertionPoints[0], t).paragraphs.length;
    t.parentStory.characters.itemByRange (t.parentStory.characters[0], t).paragraphs.length;
    Peter

  • How to get Maximum Number of Concurrent users for last few days?

    Hi,
    How I can get maximum number of concurrent users which were logged in to the system (ECC 5.0) I mean I want to check the hostory for last few weeks. Is there any way to get the same? I know that I can get Cumulative number of users in st03 under Expert mode but that is the number of users logged into the system during the day. Is there any place where SAP maintians the High Watermark of Number of concurrent users reached in the system?
    Thanks in advance...
    Regards,
    Pravin

    Sorry I really missed that I have posted a question here on sdn. I wanted to know this for planning the system hardware requirements. Activities like PM ( Performance Management ) happens once a year and during that activity we see heavy user loan on the system so if I have the exact stats of 1 or 2 years data I can size the system better next time. Fortunately last 2 years PM was very smooth for us. In that look for the improvement because each time we had little extra Harware. By doing the exact analysis we can save a Cost of ownership...
    I was looking for R/3 users. I could see the number in st07 but I want to know the exact number at particular time.. I believe that st07 stores only for few days.
    Thanks
    Pravin

  • How to get material number in smart form driver prog attached to MM01:NACE?

    Hi,
    I have attached driver program of smart form to MM01 usinfg nace.
    On save smart form should get generated.
    Can anybody guide me how to get material number from MM01 in driver program on saving MM01.
    as of now am not getting values in smart form.
    What additional lines to be coaded in driver program to get material number.
    Thanks.

    hi,
    use nast table in your import paramaters of smart forms.
    In the Nast table you can find a field with object key which holds the Material Number.
    Hope this helps.
    Thanks,
    subash

  • Need to know how to get serial number to ipod that i only have receipt on

    Need to know how to get serial number to ipod that i only have a receipt on

    How to find the serial number of your Apple hardware product

  • HT3702 Is there any limit to the number of itunes account that can be linked to the one credit card?

    Hi.  Does anyone know if there is a limit to the number of itunes accounts that can be linked to the one credit card? 
    Thanks,
    Nelliemay

    Craig,
    It was image.cpp line 2770.  I am told (by another person in the company that has seen this) that it has been seen on several machines, always PXI controllers, but not on all PXI controllers.  I am told that it is not always image.cpp that reports the error, but for me it was always the same line of code identified by the error message.  I did not have a chance to do any experimenting to find a particular threshold number of mnu files.  I may be able to find error logs.  I currently sent the controller to our IT department, doing a windows XP repair, just in case there was something corrupted in the system itself.
    The error was reproducible.  This installation at one time must have included real-time / FPGA, because on the opening screen I ge the drop-down ring for selecting a target.  If I click on this drop down ring, I get the crash on line 2770, every time.  If, instead I open an empty new VI, I am able to switch to the block diagram by selecting the window directly with the mouse, but if I try to pull down on the "window" menu to do "show block diagram", I get the crash on line 2770, every time.  Because the user-defined mnu files are now deleted, I would have to create them again, or find a way to reinstall them, to reproduce the error at this point.
    Vinny

  • TS3899 I have an iPhone 5 and it shows on the Mail Icon that I have over 3,000 emails to read but the number continues to increase even when I have read the email.  I thought  once you have read an email it drops off the count of "new emails"

    I have an iPhone 5 and it shows on the Mail Icon that I have over 3,000 emails to read but the number continues to increase even when I have read the email.  I thought  once you have read an email it drops off the count of "new emails"

    The received emails should show in two locations:
    1. In the All Inboxes tab of Mail.
    2. The Inbox for each mail account,
    If your emails are not showing in these locations try quitting the mail app and then reset your iPhone.
    Go to the Home screen and double click the Home button. That will reveal the row of recently used apps at the bottom of the screen. Tap and hold on the app in question until it wiggles and displays a minus sign. Tap the minus sign to actually quit the app. Then tap anywhere on the screen above that bottom row to return the screen to normal.
    To reset your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider should one appear until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.

Maybe you are looking for

  • Android App - works fine in Device Central but not in phone

    Greetings! Just looking for some general "you might try this" tips.  I've built a very basic game app for Android so I can start learning not only how to develop for Android, but also how to publish and distribute Android apps to users. My game works

  • How to Design an Adobe Interactive form

    Hi, I want to design a Adobe interactive form . I could not find different type of Layout for designing a page. can any one let me know the availability of such Layout in Interactive forms ? Also, i want to fill the values in the text fields of Inter

  • E71 shows "Installing" when it's turned on

    Hi *, I have a problem, please help me because it's annoying When I turn on the phone, after the main screen appears, it always says "Installing..." and, after some seconds, the screen says "Unable to install because it's not secure blabla"... The pr

  • How to change the font size in sap scripts?

    hi friends,     i had a query regarding to SAPSCRIPT.   how to change the font size of a text in sap script form in which it should change it  dynamically. is it possible to change the font size dynamically in scripts. one more query regarding to thi

  • Table in the popup  show data duplicates

    A VO is used to show a read only af:table. Table is with properties :        <af:table value="#{bindings.ActDeactSysService.collectionModel}"                               var="row"                               rows="#{bindings.ActDeactSysService.ra