Split Rows and Store the selection

Hi all,
I have a table with a column where there is a numeric data and I developed a code that, if the user insert a number > 1 and he clicks on enter, he writes this row as many times as the number inserted.This table has not a ID that indentify the row, and if I select one or more rows and I click on Enter on numeric data I see that I lost my selection. I think because when I add new rows at my table, I make again the bind of the table, but... there is a method for to store my precedent selection (for ex. the rows that I don't want to split)?
Tks a lot.

hi,
Use this code to get the index of row in which Enter is pressed.
DATA: lv_index TYPE i.
lo_el_cn_node = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
lv_index = lo_el_cn_node->get_index( ).
Now you can store this index and later after you are done with binding of more rows to the table, Set the lead selection index to lv_index.
lo_nd->set_lead_selection_index( lv_index ).
I hope it would help.

Similar Messages

  • How to select and store the dynamically clicked values in the checkboxes?

    Hi Gurus
    How to select and store the dynamically clicked values in the checkboxes?
    Scenario:-
    I am having a tree structure but I am not getting that user has clicked the which nodes.
    So how to do it.
    Pls.

    Hi,
    Once again, this is dependent on what your implementation expects. It would seem that your implementation is expecting all of the API to be coded in Java Card so it would make sense that you would load these packages like any other package. Loading an applet is not a special case, it just has an extra step of installing instances of it (and can actually be installed). Any other Java package just needs to be loaded. As such, just load your CAP files for each package of the API before loading any code that depends on it.
    Cheers,
    Shane

  • How do I create a 1d array that takes a single calculation and insert the result into the first row and then the next calculation the next time the loop passes that point and puts the results in thsecond row and so on until the loop is exited.

    The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
    The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
    pear to be working or at least I am not getting any indication on the inidcator.
    Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
    Attachments:
    regulation_tester_7_loops.vi ‏244 KB

    I didn't really have time to dig in and understand your program in depth,
    but I have a few tips for you that might things a bit easier:
    - You use local variables excessively which really complicates things. Try
    not to use them and it will make your life easier.
    - If you flowchart the design (very similar to a dataflow diagram, keep in
    mind!) you want to gather data, calculate a value from that data, store the
    calculation in an array, and loop while the time is in a certain range. So
    theres really not much need for a sequence as long as you get rid of the
    local variables (sequences also complicate things)
    - You loop again if timepassed+1 is still less than some constant. Rather
    than messing with locals it seems so much easier to use a shiftregister (if
    absolutely necessary) or in this case base it upon the number of iterations
    of the loop. In this case it looks like "time passed" is the same thing as
    the number of loop iterations, but I didn't check closely. There's an i
    terminal in your whileloop to read for the number of iterations.
    - After having simplified your design by eliminating unnecessary sequence
    and local variables, you should be able to draw out the labview diagram.
    Don't try to use the "insert into array" vis since theres no need. Each
    iteration of your loop calculates a number which goes into the next position
    of the array right? Pass your result outside the loop, and enable indexing
    on the terminal so Labview automatically generates the array for you. If
    your calculation is a function of previous data, then use a shift register
    to keep previous values around.
    I wish you luck. Post again if you have any questions. Without a more
    detailed understanding of your task at hand it's kind of hard to post actual
    code suggestions for you.
    -joey
    "nelsons" wrote in message
    news:[email protected]...
    > how do I create a 1d array that takes a single calculation and insert
    > the result into the first row and then the next calculation the next
    > time the loop passes that point and puts the results in thsecond row
    > and so on until the loop is exited.
    >
    > The attached file is work inprogress, with some dummy data sp that I
    > can test it out without having to connect to equipment.
    > The second tab is the one that I am having the problem with. the
    > output array from the replace element appears to be starting at the
    > index position of 1 rather than 0 but that is ok it is still show that
    > the new data is placed in incrementing element locations. However the
    > main array that I am trying to build that is suppose to take each new
    > calculation and place it in the next index(row) does not appear to be
    > working or at least I am not getting any indication on the inidcator.
    >
    > Basically what I am attempting to do is is gather some pulses from
    > adevice for a minute, place the results for a calculation, so that it
    > displays then do the same again the next minute, but put these result
    > in the next row and so on until the specifiied time has expired and
    > the loop exits. I need to have all results displayed and keep building
    > the array(display until, the end of the test)Eventually I will have to
    > include a min max section that displays the min and max values
    > calculated, but that should be easy with the min max function.Actually
    > I thought this should have been easy but, I gues I can not see the
    > forest through the trees. Can any one help to slear this up for me.

  • How to execute unix command through odi and store the result in table

    I have to reconcile  if data is loaded in table from csv file or not . I have to create a oracle data integrator package/interface/procedure to execute unix command to count number of rows in the csv files and store the count result in a table then i have to query the loaded table and count number of rows there and store in the table and have to compare is counts are same or not,  Please assist me how to make package/interface/procedure to  execute unix command and store result in oracle table.
    Thanks in Advance

    Use ODI OS command tool in the ODI package.
    create an interface in ODI using LKM File to Sql and the output file generated with the csv file's row count as a source and the db table(where the count needs to be stored) as a target

  • Add dynamic buttons to each report row and bind the row data to buttons specific to that row

    I have a page with a form at the top and a report at the bottom which is tied to a table. I need to add a pair of buttons for each row of the table and add dynamic actions for these buttons. I need to submit the data corresponding to the row to a REST service and refresh the table/row. I know it is possible to add ajax call and refresh the table after the response is received. But I am not sure how I can dynamically include a pair of buttons on each row and have the access the data corresponding to the record when a particular button is clicked. I was not able to find such a feature using the help page. Can you please let me know if this is possible. Thanks in advance.
    Below is the representation of how I need the page to look like.
    Col 1
    Col 2
    Col 3
    data 1
    data 21
    data 31
    Button 1
    Button 2
    data 2
    data 22
    data 32
    Button 1
    Button 2
    data 3
    data 23
    data 33
    Button 1
    Button 2
    data 4
    data 24
    data 34
    Button 1
    Button 2
    I should be able to access data 1, data21, data 31 from button 11 and button21 etc.

    select data1,
              data2,
              data3,
              null button1,
              null button2,
              rowid r_id
    from .....
    If you edit the column for button1 and navigate to the Column Formatting region you can create your button here, several different ways.  You will need to play around with how you prefer.  See below:
    <input class="button1" type="button" id="#R_ID#" value="label for the button" /> or <button id="#R_ID#">label for button</button> or you could use <a> and apply css of your theme.
    You also create both buttons in a single column.  From here you can reference any of the columns from your select by using the #COLUNMNAME# format (as I did with R_ID).
    You will next need to something similar for all columns you want to be able to grab when you click the buttons.  See below:
    --- This would be for data1 column
    <span id="D1-#R_ID#">#DATA1#</span>
    You would do these for each column that you want access to when button clicked as mentioned above.  You could bypass this step and use jquery to traverse the DOM using .closest() and .find() and give each column a distinct class.  Is is your preference.
    You would then create a dynamic action triggered when .button1 is clicked.  Now that you have that object you can get the id of the triggering object which would be your r_id and from there you can access all your individual data points(all this done in a javascript in the dynamic action) and assign to hidden items on your page.  The next step of that dynamic action you could execute pl/sql and pass those in page items.
    Hope that all makes sense.
    David
    Message was edited by: DLittle
    Just as a bit of clarification:  the r_id column does not have to be rowid, but it does need to be unique for each row return.  You could use your primary key or rownum.  Whatever works for your scenario.

  • Export data in CSV and store the file in local drive

    Hi,
    Here is the requirements.
    Fetch the values from table (around 60000 records), and export them into CSV file and store the file in local drive.
    I have written servlet to to this and it is working fine expect saving the file in local drive. At the moment, it is asking to save as in local drive. i want to save the file automatically in particular path (/var/www/files/). Below is the code.
    String file = "CandidatesDetails" + sd + ".csv";
                        queryString = "select * from candidate where candidate.status='A'";
                        connection = ConnectionPoolHelper.getConnection();
                        response.setContentType("application/csv");
                        response.setHeader("content-disposition", "filename=" + file);
                        System.out.println("Query= " + queryString);
                        ps = connection.prepareStatement(queryString,
                                  ResultSet.TYPE_SCROLL_INSENSITIVE,
                                  ResultSet.CONCUR_READ_ONLY);
                        rs = ps.executeQuery();
                        datas = "CANDIDATE ID,CANDIDATE TITLE,FIRST NAME,LAST NAME,E-MAIL,NATIONALITY ID,NATIONALITY,COUNTRY ID,COUNTRY NAME,INDUSTRY ID,INDUSTRY DESCRIPTION,EXPERIENCE,DATE OF BIRTH,HEAR ABOUT US\n";
                        oout.write(datas);
                        String country = "";
                        String nationality = "";
                        String hearABtUs = "";
                        while (rs.next()) {
                             nationality = rs.getString(7);
                             if (nationality == null)
                                  nationality = "";
                             else if (nationality.equals("null"))
                                  nationality = "";
                             country = rs.getString(9);
                             if (country == null)
                                  country = "";
                             else if (country.equals("null"))
                                  country = "";
                             hearABtUs = rs.getString(14);
                             if (hearABtUs == null)
                                  hearABtUs = "";
                             else if (hearABtUs.equals("null"))
                                  hearABtUs = "";
                             else
                                  hearABtUs = hearABtUs.replaceAll(",", ";");
                             datas = rs.getInt(1) + "," + rs.getString(2) + ","
                                       + rs.getString(3) + "," + rs.getString(4) + ","
                                       + rs.getString(5) + "," + rs.getInt(6) + ","
                                       + nationality + "," + rs.getInt(8) + "," + country
                                       + "," + rs.getInt(10) + "," + rs.getString(11)
                                       + "," + rs.getString(12) + "," + rs.getString(13)
                                       + "," + hearABtUs + "\n";
                             oout.write(datas); Regards,
    Dongan.

    Here is the first few lines
    public void doGet(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
              HttpSession session = request.getSession(true);
              String datas = "";
              PreparedStatement ps = null;
              ResultSet rs = null;
              String queryString = "";
              Connection connection;
              PrintWriter oout = response.getWriter();
              java.util.Date d = new java.util.Date();
              SimpleDateFormat dateformat = new SimpleDateFormat("dd-MMM-yyyy");
              String sd = dateformat.format(d);
              tryAt the moment, when i run http://localhost:8080/project/CandidatesDetail, it will ask me to save the file somewhere. I should manually mention the path to save the file. what i want is, it should automatically save it in the location C:\projects\files\.
    thanks.
    Regards,
    Dongan
    Edited by: Dongan on Oct 26, 2007 5:22 AM

  • Menu Creation and Using the SELECT soft key

    Hi,
    I am trying to design a menu similar to the thumbnail menus available in most phone these days.what i want is a set of icons placed in a tabular format ie rows and colums. the joystick control can be used to navigate thru the icons and using the select soft key ie the middle button of the soft keys, the next set of forms can be displayed.
    so far, i have created a form, used a few image item and used the Item's layout directive to arrange the imageItem as i want on the display. I can get the joystick to navigate between the imageItems however the select button doesnt fire any event.
    I have added a command to each of the items and set an ItemCommandListener.
    That approach seems to be working fine but it defeats my purpose. the reason being i had problems with the mapping of the command keys. For each display i had an option of going to the main menu and to the next screen. On the emulator it maps perfectly with the left key having the main menu and the right key having the "next form" button. But while implementing on the phone, the left key has the main menu but the right key shows "more options", when u click more options you get the "next form" button. This is happening in every form on display and makes it more tideous to use.
    Thats why i was hoping to get the select button working if possible. Any help would be much appreciated.

    Try searching J2mepolish.org plenty of work is done
    with Regards
    Rizwan

  • I copy a row and then the next row as no actions

    I know this is easy.
    when I set up actions in a row and try to copy it and past a row below it is not there.
    can anyone help?

    Hi,
    One of the easiest ways to do this is simply select the row (discussion below about selecting) and hold the "Ctrl" + "D" ("D" is for "Duplicate"). This will duplicate the row and place it directly under it. Also, you can use "Duplicate" by clicking Edit>Duplicate
    Selecting rows can sometimes be tricky. If I use the mouse, I always try to confirm in the Object and/or Hierarchy Pallet.The mouse can select the row (arrow with an underscore) or all the objects in the row (arrow no underscore)
    Here are 3 ways:
    The mouse can select the row (arrow with an underscore) or all the objects in the row (arrow no underscore). You move the cursor just to the left of the table and the arrow appears.
    One of the best ways I find is selecting the row in the Hierarchy Pallet.
    Select an object in the row and on the tool bar click Table>Select>Row
    I avoid pasting anything if I can help it. If you use flowed forms and if you paste a lot, and If you aren't careful, you'll end up with a corrupt form. Designer is very unpredictable about where it will paste. If you have a large form, it can take a minute or two to track down a pasted object's location. Then you have to move it to where you want it.
    Better to use "Duplicate". That usually means it will be next to the item you're duplicating. If you copy and paste, paste, paste repeatedly too fast, You can really mess things up. Every Paste command takes longer than you think to execute. Wait at least 2 seconds before doing anything after pasting. Otherwise, you'll interpt Designer while it's busy writing the new XML. Yes, Designer is still busy doing work even after you see the new item appear. Be patient.
    Good luck!
    Stephen

  • Error in Adobe Captivate 4: "unable to decode and import the selected wav - mp3 file"

    Good day!
    I have a problem. When i want to import music file from standart Gallery, i see the mistake: unable to decode and import the selected wav - mp3 file.
    I can't import mp3,wav files...
    In Adobe Help site i have found this: http://help.adobe.com/en_US/Captivate/4.0/Using/WS5b3ccc516d4fbf351e63e3d119e9582190-7fd8. html
    But in my Adobe Captivate 4 directory i don't have file regsvr32 NSAudio.dll.
    Question: where i can download this file?
    Thanks!

    Hi there
    As I recall there were two different "fixes" for audio with Captivate 4. One involved replacing the dll and another had something to do with installation problems on Windows XP. So give the link below a try.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Begin learning Captivate 5 moments from now! $29.95
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • I have a dynamic table that calculates the sum of all rows, no issue.  I'm struggling with pulling out a subtotal though.  I would like to have a check box in each row  that flags those rows and gives the sum of their total.  Any help would be greatly app

    I have a dynamic table that calculates the sum of all rows, no issue.  I'm struggling with pulling out a subtotal though.  I would like to have a check box in each row  that flags those rows and gives the sum of their total.  Any help would be greatly appreciated.

    Here's something I threw together rq. The script is in the change event for the checkbox in the table. (Of course, you'll have to modify it to suit the names of your fields.)
    var rows = xfa.resolveNodes("tblAmounts.Row1[*]");
    var subtotal=0;
    for (i=0; i<rows.length; i++) if (rows.item(i).cbAdd.rawValue == 1) subtotal = subtotal + rows.item(i).nfAmount.rawValue;
    nfSubtotal.rawVlaue=subtotal;

  • Script for gather and store the log running queries details in a table?

    Hi All,
    Please suggest the best query that gather and store the long running queries details in a table.
    Thanks,
    rup

    The below links would help you...
    Ben Snaidero
    performance-dashboard

  • I am trying to sync a playlist to my Nano,  but when I click on the Music tab at the top, it will not allow me to select the option Selected Playlist, Artists, etc.  I cannot un-check the Entire Music library option and check the Selected Artist - on

    I am trying to sync a playlist to my Nano,  but when I click on the Music tab at the top,
    it will not allow me to select the option Selected Playlist, Artists, etc.  I cannot un-check the Entire Music library
    option and check the Selected Artist … one.
    I have changed the Sync option to Manually sync, but that does not help.
    How can I change this to the second option?
    Thanks.

    There is a checkbox above those two options for how to sync.  It says Sync Music; it enables automatic syncing.  That box needs to be checked before you can select from the two options for how automatic syncing is performed.
    NOTE:  If the iPod is current set up to Manually manage music [and videos], checking that Sync Music box replaces its current content with content from your iTunes library, based on how automatic syncing is set up on that screen.
    So, if your goal is to add ONE playlist to an iPod that is managed manually, you do not want to do this because iTunes will erase the iPod's current content and replace it with just that ONE selected playlist (and whatever else you select on that Music settings screen).
    Instead, if the iPod currently uses the manual setting, you need to add playlists manually to the iPod (not use the automatic syncing setting).  Please post back with more details about your situation. 

  • Unable to decode and import the select wav/mp3 file

    Hi,
    I've been TRYING to test the Text-to-speech feature in
    Captivate 4. Problem: "Unable to decode and import the select
    wav/mp3 file" each and every time I want to use it. Frustrating!
    I also tried importing sounds from the library, same problem.
    My system is Vista Business 64Bit, 4Gb RAM, Intel SSD hard
    drive, conexant high definition audio 221 on a Lenovo T400.
    How do I fit this? I want to try it out damnt :)

    I went through the "unable to decode and import the selected wav/mp3 file" error.  After talking with an Adobe Rep,  I quickly realized that I could NOT use the directions.  I have no experience in using Command Prompts.  I have written down the directions by key stroke for those people that are similar to me.  Enjoy!
    For Vista and Win7,
    Click on the circle start menu,
    In the search box, type in command and in the generated list, "right-click" on the comman link and change to "run as administrator".
    Go back to the search box, type in command and hit enter.  This will take you to the command prompt window (black window w/ white text) lol
    You have to get to the right directory first.
    Type: cd (space-bar) .. (hit enter)
    Type: cd (space-bar) .. (hit enter)
    If Captivate is installed on Program Files (x86) ---
    Type: cd (space-bar) progra~2 (hit enter)
    If Captivate is installed on Program Files
    Type: cd (space-bar) progra~1 (hit enter)
    Type: cd (space-bar) Adobe (hit enter)
    Type: cd (space-bar) Adobe (space-bar) Captivate (space-bar) 4 (hit enter)
    Type: regsvr32 (space-bar) NSAudio.dll (hit enter)
    If you get an error at any point, re-key that particular line.
    Once you see that the last line of command went through, open up Captivate and test the Text to Speech.  These instructions fixed both computers I was working on!!!!

  • CP4 unable to decode and import the selected wav/mp3 file

    I am trying to import a .wav file into a project and get an error message 'unable to decode and import the selected wav/mp3 file'.
    I have tried the solution huan_miguel posted a week ago for someone with the same problem.
    http://blogs.adobe.com/captivate/2009/03/adobe_captivate_4_installatio n.html
    executed all the steps described in this link.
    Unfortunately, the problem is still there.
    Any other solution?

    You're probably going to need to do both.
    Although Captivate can certainly accept a 10 meg audio file, you would need to add it to the movie and then synchronise the slides to the audio. Chopping the audio file up and adding the relevant bits to each slide has both advantages and disadvantages.  It's easier to control the playback synchronisation when you divide up the audio, but it's more work.
    Take a look at this graphic from SoundBooth when I export an audio file recorded in Captivate 5:
    Notice that it shows the bitrate of the Captivate WAV file as being 16 bit.  This is quite a low bitrate.  You can go as high as 32 bit in SoundBooth, however, in my experience, when you try to import a WAV into Captivate that is over 16 bit you will encounter issues.  Cp just doesn't seem to like it.
    If you want to learn more about bit rates in multimedia: http://en.wikipedia.org/wiki/Bit_rate
    Suffice to say, you need to find out what the current bit rate of the audio file is, and if necessary, save it as 16 bit for Captivate.  For this, you will require some kind of audio editing software.
    You can try using Audacity as someone else suggested: http://audacity.sourceforge.net/  and try exporting the file out as 16 bit.
    However, if you are going to be doing quite a bit of this type of work, I would suggest you invest in Adobe Soundbooth, or something of that ilk.  You'll enjoy the experience more.

  • Unable to decode and import the selected wav/mp3 file

    I am trying to import mp3's into a Captivate 3 presentation
    but keep getting this error "Unable to decode and import the
    selected wav/mp3 file." I am using the same mp3 files that I have
    used many times with projects in Cap1 and Cap2. I have converted
    the files to wav's and tried but I'm still getting the same
    message. I have a deadline and I'm stumped.
    Any ideas?

    Hi DianaUNC
    Interesting. I've seen it happen with WAV files but not MP3.
    Do you still have Captivate 2 around? If so, do these successfully
    import into Captivate 2? One thought was that you might pop them
    into something like Audacity and save them out again. Perhaps
    something is amiss with the encoding used.
    Or you might try the trick of opening them in Windows Sound
    Recorder and saving them out of that in a different format. I know
    that works with one particular WAV file I have.
    Cheers... Rick

Maybe you are looking for

  • Wireless card BCM4313 no connection at boot

    Hi, I have an HP Pavilion dv6 with a Broadcom BCM4313 wireless card. I use NETCFG and before the last kernel upgrade I was able to connect to my home wireless connection at boot without troubles. Now I have to do it manually and I need to try 2 or 3

  • HT4009 my in app purchase isn't working correctly

    I can't get my tweegram pro updated after paying for it through my phone

  • Importing Video for flash player 7

    Hi, im importing video for use on flash player 7. before importing i note that the audio and video quality is perfect. however after importing i notice the audio quality is not as good. i need to import with the audio embedded with the video in the t

  • Accessing BW in netweaver 2004s issue

    Accessing BW in netweaver 2004s issue Hi I logged into Sap (sneak preview installed locally) via client 001 ( in order to work on BW) & user= SAP* When I try to create a new class with transaction se24 I get the following message "No changes for user

  • Unable to create a Taxonomy

    Hello, I would like to create a Taxonomy. According to my knowledge, I should find a link called "Taxonomies" under every Index I create under "Index Administration". Well, I have few indexes there but when I edit them I don't see any "Taxonomies" li