Looping through results of a Select through a DB adapter

I am selecting an unknown number of rows from a database through the DB adapter into my process. When I get these results I need to loop through them, but the examples I have seen require an attribute to define each row for the loop to work . My result set is not giving me an attribute and I do not see how to define one in the wizard used to define the adapter.
Is there a way to assign an attribute to each row automatically as it comes out or after the fact? Or is there another way to attack this problem that I do not see?
Thank you in advance for the help.
--Mike                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

you can take the results payload and loop thru with the while statement, then you can iterate thru each result and doing whatever you need to. Just make a counter variable of type int and count the number of records in the payload, then initialize a iterator varible on int and set to 0.
then just loops thru the payload and add +1 to iterator until it reaches the count number. This allows you to hit each records one by one, and do any kind of analysis on the current record set.

Similar Messages

  • Cannot select through transparency in .png

    Hi,
    I'm new to Edge Animate, coming from a Flash background.
    While working on a simple (rough) image gallery to try out Edge. I noticed an issue of not being able to select through the  transparency of a png image.
    My gallery has the buttons under the knockouts of the Nav Bar frames. I noticed the png was the issue after I checked all the code and tested the gallery with the Nav Bar temporally deleted and the buttons worked.
    My work around will be to Photoshop the button images to fit over the Nav Bar openings.
    Just wanted to bring up this issue because I'm not sure if it's a bug or normal for Edge.
    Best regards,
    Darren
    UPDATE:
    Buttons have to be top level items within EDGE.

    Hi Darren,
    You're not doing anything wrong - PNGs by nature don't allow you to click through the transparent spots. The whole image is considered an element. This isn't a limitation of Animate, it's just how HTML works.
    There is one thing you can try to have the cursor ignore the entire image. Enter this in your compositionReady event for the stage:
    sym.$("pictureName").css("pointer-events","none");
    ...and change pictureName to the name of your element as it appears in the elements panel.
    Caveat emptor, this technique doesn't work in IE.
    Sarah

  • InfoPackage-Request Selection Through Routine (To Delete)

    Hello,
    I have come across a situation where I don't want to delete a request from an infocube. 
    Our current process always deletes requests that have the "Same or More Comprehensive" Selections (using the standard options).  However we have one request that we do not want to delete.
    In the area of the infopackage that you can specify the details for "Deleting Request from InfoCube after update",  I would like to use the "Request Selection Through Routine" option available under "Exceptions" to implement a routine.
    I believe i could then code a way to exclude the particular request from the deletion process.
    The problem is that i cannot find any resources with examples or code samples to help me figure out how to code this.
    Any help would be great!
    Thanks,
    Nick

    Hello Nick,
    You receive a table l_t_request_to_delete with all the requests in the cube you are able to delete. Now you simply need to delete your request number from the table, e.g.
    DELETE l_t_request_to_delete WHERE sid = '12345'.
    Best regards
    Dirk
    P.S.: You could also do the same by deleting all the requests except the one you want to keep, compress the cube and then continue data loading.

  • Have a classic 5th gen. have restored, relaoded itunes, gone through the troubleshooting tips and I still can't sync my latest 3 albums to my ipod. It will sync all but those. Also, when go through ipod trblshoot and select check, says can't see it sync.

    Have a classic 5th gen. have restored, relaoded itunes, gone through the troubleshooting tips and I still can't sync my latest 3 albums to my ipod. It will sync all but those. Also, when go through ipod trblshoot and select check for sync, says can't see my ipod. pls help

    Thanks for the reply. The Itunes trouble shooting in Itunes help. I don't get an error message, it just states can't see ipod like if it wasn't plugged in. I do get an error message on a few of the songs when sync that say error 50, and state that they can't be loaded to ipod. The weird thing is that I can load all of my libary except the latest 3 albums. They are in my libary but they won't load. I'm not sure but it seems like it started when the cloud came about from amazon which is where I buy most of my music.

  • Revenue Recognition Functionality through Result Analysis (RA) key

    Hi all,
    We have a requirement for Revenue recognition, Can anyone guide me Revenue recognition functionality through Result Analysis (RA) key  and functions of RA Key .
    Regards,
    Lal Maheswararao

    Hi Makrand,
    Thank you for your Valuable reply. Actually I am looking Specifically for the Revenue Recognition functionality in Cloud computing Business Scenarios. Like the income has to be recognized over the period of time on the basis of service provided. And it should calculate Percentage of completion for calculating revenues and Cost and how much profit it has to be recognised over the period.
    These functions will possible through Result Analysis method. but i have very limited knowledge about RA method.
    Can you please explain in general how Result analysis method will work and if possible with necessary configuration.
    Regards,
    Lal Maheswararao

  • Getting sound to play through computer during import/selecting to import

    HI,
    Complete newbie question as I've never done video before...
    I plug the camera (Sony DCR- HC48) through Firewire into iMovie '08.
    The camera is recognised, the import window opens and I can play the video, choose the bit I want and import it as a clip - cool! No problems there.
    The problem is, when I am selecting the video to import the sound plays through the camera and not through the Mac. Ideally I'd like it to play sound through the Mac so I can use headphones while I select video to import. So my question is...
    Is there no way to get the sound to play through the Mac as I am selecting the video to import?
    Thanks for any help.
    Pat

    So what would be the "standard" way of working? Would you import the whole DV tape onto the hard drive and then cut it down to size on there or bring in bits from the camera and use the camera's audio to select the chunks you want?

  • Need multiple 'MAIL' Icons.   Have two mail accounts and i want to keep them separate but want to EASILY switch back and forth from the main screen instead of going through, Settings, Mail, and selecting account. Major pain

    Have two mail accounts and i want to keep them separate but want to EASILY switch back and forth from the main screen instead of going through, Settings, Mail, and selecting account. Major pain the butt.  This has been a request from Apple users for many years.    it's great you can now combine all emails into one, but some people want them kept separate and have separate icons on the main page.   They could easily do this by having one "MAIL" account as white and another red.  Or put MAIL 1 and MAIL 2.    Or an actual label that the mail accounts are called on the ICONS!!  
    Help!

    eshghoolak wrote:
    ...I could switch back and forth between accounts while in the mailbox, with one button.  I think that is what you are referring to?  Whoever said it's just a simple switching - you obviously haven't had the pleasure of using an Android device.  It's not that quick to go back and forth - definitely not efficient...
    Not that it matters a lot, Android vs iPhone interface is largely a matter of personal preference and what you know... I'm not sure which one you're saying is not efficient...
    In any event...
    I currently have two email accounts setup.  My iPhone main page Mailbox settings reads:
    Mailboxes
    Inboxes
    All Inboxes
    Gmail
    [email protected]
    Accounts
    Gmail
    [email protected]
    I wish there an efficient way to move back and forth while in the "Inbox" between accounts.  Also, Why does one gmail account show as "Gmail" and another as the actually address?
    The names are based on the names you gave the accounts when you set them up.
    Settings>Mail, Contacts, Calendars.
    Tap the account you want to re-name. Go to the "Description" field and put in what ever you want.
    Second, there is no way to quickly choose a bunch of emails to delete. I have to manually go into each one and move it to the Trash folder.
    If you tap the edit button in the upper right while in mail, you can select multiple items to move, delete or mark (flag).
    I don't want any of the condescending remarks, that I've read here and in other forums.  I'm honestly looking for a solution, which I think you are too!  One thing I realized is that iPhone users in these forums are really defensive and quick to say "that's how it is, live with it, if you don't like it go away"  Um...the only thing that tells me is you are pretty bitter and have kept telling yourself that, to force yourself to like your device.  I prefer to express my issues, and find solutions.  There is ALWAYS a solution...
    I think what you will find is that many people here, myself included, tend to get a bit short with people who start off with attacks or whining about how something has been asked for for years and should be easy, rant about things that have already been beaten to death multiple times in the forums, talk about how much better Android or BB are at something (really... if it's that much better, why did they buy an iPhone to begin with?), etc., or continue to ask questions that could easily be answered with a simple search, or even just by looking back at the last dozen posts to the forum, half of which probably asked the EXACT SAME question.
    I don't think any of us go out of our way to be rude or uncivil.  That said, attacking the people who are attempting to help you is much more likely to generate a response of 'if you don't like it, go away', than it is to generate something that will be truly helpful.

  • ABAP routine - looping a result set from table.

    I am trying to access a table and pass the resulting rows to an internal table.
    However, before passing, I need to do some data manipulation on one of the columns of the table and then pass it.
    If I didn't have to do this, I could have just said
    INTO CORRESPONDING FIELDS OF TABLE
    But since I have do data manipulation, I cannot do this. This is what I am doing now.
    SELECT * FROM /BI0/QEMPLOYEE WHERE JOB = '1234' AND DATETO = '99991231'.
    MOVE /BI0/QEMPLOYEE-EMPLOYEE TO INT_EMP-EMPN.
    MOVE /BI0/QEMPLOYEE-JOB TO STR1.
    STR2 = STR1 + 0(4)
    SEARCH STR2 FOR ' ' STARTING AT 1 ENDING AT 1.
    IF SY-SUBRC EQ 0.
    REPLACE ' ' WITH '0' INTO STR2.
    ENDIF.
    MOVE STR2 TO INT_EMP-FAC.
    But this will move only one row. How can I move all the rows? Is there a loop that I can use? I can see a loop for internal tables but I need to loop the result set and then send it. I posted this question twice but haven't gotten the right answer.
    Thanks.

    Hi,
    Are you trying to write the code in Update Routine or a Start Routine.?
    If you want to update all the records, you can use the start routine.
    So you need to use a loop for doing all the records.
    If you are using a Update routine then you dont have to use the loop.
    But here I recommend the Start Routine is the best choice.
    Here is a document which can be helpful for you:
    http://bluestonestep.com/component/option,com_docman/task,doc_download/gid,13/
    Happy Tony

  • I did a full system restore to my phone along with the new 7.0 update. Now I went to restore my phone setting back through Itunes and it goes through all the steps but when it is completed it wont get past the "Connect to Itunes" screen

    I did a full system restore to my phone along with the new 7.0 update. Now I went to restore my phone setting back through Itunes and it goes through all the steps but when it is completed it wont get past the "Connect to Itunes" screen

    So what happens when you connect to iTunes?

  • Oracle 11g SUM function on the result of inner Select

    The inner Select returns rows with the values. The outer select running on tthe result of inner select SUM the result of the inner select.
    Although there are valid rows of the inner select the SUM in the outer SELECT return NVL. As a comment any aggregate function on the outer select returns NVL.
    The query is below.
    select a.yil,
    a.ay,
    sum(brut_prim),
    sum(kom),
    from (SELECT oid_pol_kesilen_acente,
    to_char(pp.zeyil_tanzim_tar, 'yyyy') yil,
    to_char(pp.zeyil_tanzim_tar, 'mm') ay,
    sum(decode(substr(pp.no, 1, 1),
    'T',
    pp.zeyil_brut_prim_fark / 2,
    pp.zeyil_brut_prim_fark)) -
    sum(pp.zeyil_gv_fark) brut_prim,
    sum(pp.zeyil_acente_kom_fark) kom
    from pol_police pp, org_acente oa
    WHERE SUBSTR(PP.NO, 1, 1) != 'D')
    group by oid_pol_kesilen_acente,
    to_char(pp.zeyil_tanzim_tar, 'yyyy'),
    to_char(pp.zeyil_tanzim_tar, 'mm')) a
    group by a.yil, a.ay, oid_pol_kesilen_acente
    Edited by: [email protected] on May 7, 2010 2:09 AM
    Edited by: [email protected] on May 7, 2010 2:31 AM

    Hi,
    please try the below sql:
    select a.yil, a.ay, sum(brut_prim), sum(kom),
    from (SELECT oid_pol_kesilen_acente,to_char(pp.zeyil_tanzim_tar, 'yyyy') yil, to_char(pp.zeyil_tanzim_tar, 'mm') ay,
    sum(decode(substr(pp.no, 1, 1), 'T',nvl(pp.zeyil_brut_prim_fark,0) / 2,nvl(pp.zeyil_brut_prim_fark,0))) - sum(nvl(pp.zeyil_gv_fark,0)) brut_prim,
    sum(nvl(pp.zeyil_acente_kom_fark,0)) kom
    from pol_police pp, org_acente oa
    WHERE SUBSTR(PP.NO, 1, 1) != 'D'
    group by oid_pol_kesilen_acente,
    to_char(pp.zeyil_tanzim_tar, 'yyyy'),
    to_char(pp.zeyil_tanzim_tar, 'mm')
    ) a
    group by a.yil, a.ay, oid_pol_kesilen_acente ;
    Thanks,
    Siva

  • Count the number of rows resulting from a select statement

    Hi,
    Is there any way of counting the number of rows resulting from a select statement. i.e I have a select distinct statement and I then want to perform an IF statement on the number of rows resulting from the select statement.
    Any help appreciated
    Thanks
    Gary

    Declare
    var1 number;
    Begin
    select count(distinct column_name) into
    var1 from table_name;
    If var1 > x Then
    End IF;
    End;
    Hope I understood the problem correctly
    null

  • Project Server 2010 permissions granted through RBS are not flowing through to Project Sites.

    Hi,
    I have configured RBS as "The Project Owner is a descendant of the user via RBS"  its working fine for Projects.
    But users are  facing access denied issue when working with project sites RBS is not working for project sites.
    Can any  one Help me How can i grant permissions Automatically for project sites also as same like projects is it possible ?
    The Members in  Executives group can see all projects in organization but same like can they see all project sites ? 
    I have found one blog of
    RaymondRis he is recommending to do it manually as its not possible to grant Project site permissions Automatically.
    http://blogs.technet.com/b/raymond_ris/archive/2013/05/09/project-server-2010-permissions-granted-through-rbs-are-not-flowing-through-to-project-sites.aspx
    Thank You, Kumar KSV

    Kumar,
    The permissions to project sites is not cotrolled by the RBS, as you have discovered. It is controlled by the Security Category permisisons, and the settings if the permssions are auto synced. The permissions work like this:
    Project managers who have published a project or who have Save Project permissions on a project are added to the Project Managers (Microsoft Project Server) site group.
    Team members with assignments in a project are added to the Team members (Microsoft Project Server) site group.
    Other Project Server users who have View Project Site permission on a project are added to the Readers (Microsoft Project Server) site group. 
    As long as you use the Auto Sync of permisisons for project sites, i do not think there is any work around.
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • Looping payroll results using pnpce ldb

    hii experts,
    Can anybody tell me how can v loop payroll results using pnpce ldb..plz provide me the syntax...or any reference report
    program.

    Hi First Using Get peras event read the RGDIR results as below
    CALL FUNCTION 'CU_READ_RGDIR'
        EXPORTING
          persnr          = p_pernr
        IMPORTING
          molga           = p_molga
        TABLES
          in_rgdir        = p_rgdir
        EXCEPTIONS
          no_record_found = 1
          OTHERS          = 2.
    Get the Cluster ID based on the molga value of the employee using T5001 table
    Then Based on the RGDIR results loop retrive the payroll results below
        LOOP AT gt_rgdir INTO wa_rgdir WHERE fpbeg LE wa_dates-endda AND fpend GE wa_dates-endda
                            AND srtza EQ c_a
                            AND payty EQ c_space.
      CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
            EXPORTING
              clusterid                    = wa_t500l-relid
              employeenumber               = pernr-pernr
              sequencenumber               = wa_rgdir-seqnr
              read_only_international      = 'X'
            CHANGING
              payroll_result               = gt_result
            EXCEPTIONS
              illegal_isocode_or_clusterid = 1
              error_generating_import      = 2
              import_mismatch_error        = 3
              subpool_dir_full             = 4
              no_read_authority            = 5
              no_record_found              = 6
              versions_do_not_match        = 7
              error_reading_archive        = 8
              error_reading_relid          = 9
              OTHERS                       = 10.

  • TS5150 With certain movies I have downloaded digitally through Itunes or certain movies through Netflix played through Apple TV, I am only getting partial sound.  I am missing one or more sound tracks.  Am I missing something in the settings for Apple TV?

    With certain movies I have downloaded digitally through Itunes or certain movies through Netflix played through Apple TV, I am only getting partial sound.  I am missing one or more sound tracks.  Am I missing something in the settings for Apple TV?

    Are you using a stereo receiver or surround sound system for the audio by chance.  What you are describing sounds like a receiver that is not setup correctly, or does not have the speakers connected to it correctly to support Dolby surround, 5.1 or 7.1.  Which is why it is only happening on some content.  It would only be on the ones that are encoded to support Dolby audio.

  • HP Pavilion 15-p027ne, Audio working through headphones/earphones but not through speakers

    HP Pavilion 15-p027ne:
    Audio working through headphones/earphones but not through speakers.
    I downgraded from windows 8.1 to Windows 7 (64-bit) and the problem is still not resolved. 
    Appreciate any troubleshooting tips.
    Thanks.
    - HP Pavilion User.

    Hi there @donimuha 
    Welcome to the HP Support Forums! It is a great place to find the help you need, both from other users, HP experts and other support personnel.
    I understand that you are getting sound from the headphones/earplugs but not from the system speakers. I am happy to assist you with this.
    As the sound is working through the audio jack, I will assume for now that the audio driver is fine. Please check through the following page, which is very comprehensive. If you are still having a problem it is possibly a hardware issue with the speakers.
    No Sound from the Speakers (Windows 7)
    Let me know if that works for you.
    Malygris1
    I work on behalf of HP
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

Maybe you are looking for

  • Getting an error while exposing as grid service

    hii everyone, I need to expose kmeans algortihm as a grid service as part of my project. I attached java source code of kmeans algorithm and its wsdl file. I am getting the following error while building and deploying my Kmeansgrid project. It seems

  • How do I get COnfigurator to use my external Hard drive?

    I have a Macbook Air with a really dinky hard drive with which I am supervising 100+ iPods and other devices with Apple Configurator.  I filled up the hard drive after six months with Configurator stuff.  I bought a 2 Tb passport that I hooked up to

  • Error Writing Less Than Sign with FileAdapter

    Hello. Looking at the Flow Trace I can that the input variable of the FileAdapter is being populated correctly (XML tags). When looking at the file's contents though, the result of the less than sign is its character entity: '&lt';. Is there a way to

  • Error in Event manager(TermServDevices)(Event ID 1111.)

    Hi, I am getting this error every hour when ever i see the logs. i get the same error "TermServDevices" 1111. Under This its says 1) "Driver HP LaserJet P1008 required for printer HP LaserJet P1008 is unknown. Contact the administrator to install the

  • Login problems to m.flickr

    Previousle I have managed to login to m.flickr and upload images from my NOKIA 6233. Somehow along the way I've been disconnected and no longer auto-logged in at m.flickr, but still recognised with my Yahoo ID. But whenever I try to login to m.flickr