Iteration problem. Please GUIDE.

i am facing a tricky problem
I have a predefined RowsetIterator tag which iterates over a datasource
So if a datasource has 20 rows,the iterator will go over each row.
displayPositions.jsp
<pd:RowsetIterator   datasource="ViewObject" >
    <mytag:DetailRowsIterate>
</pd:RowsetIterator>The above code displays all 20 rows.Thats fine.
There is a slight change in the functionality.
I need to display the next row after the current row.
ie,display the next row after current record.
So i wrote by own tag called 'DetailRowsIterate' as a nested tag.
This tag looks at the datasource and displays the next record
after the current record.(So i can view 10 records only.right?)
The problem is that i can i can see the 10 records on the system.out.println
but not on my JSP page.
I can view the 10 records on my System.out.println and then the 20 records
gets displayed in the JSP Page.I dont want that.I want the 10 records only
to be displayed by the page.
I tried using 'DetailRowsIterate' as a nested tag but still,its displays the
10 records first on the System,out.println() and then the 20 records
on the JSP Page.
I tried this
<jbo:RowsetIterate datasource="<%=dsParam%>" changecurrentrow="false" userange="true">
      <imjbo:DetailRowsIterate >
             <imjbo:DisplayValue />  
       </imjbo:DetailRowsIterate />
    </jbo:RowsetIterate>No luck.
iS THERE A FAULT IN MY DetailRowsIterate tag?
This is the code
public class CheckDetailRowsIterate extends TagSupport
     public int doStartTag() throws JspException
       /* Just for Seeing data values. */
       StatusLog log = StatusLog.getLogger();
       String ClassName = this.getClass().getName();
       Row currentRow = null;
       Row nextRow = null;
       ViewObject vo = null;
       DataSource dataSource = null;
       /* Get the Current Row data */
       String c_CmpyCode;
       /* Get the Next Row data */
       String n_CmpyCode;
       /* Find the current row and get Data out of it */
       RowsetIterateTag detailIterator = (RowsetIterateTag)TagSupport.findAncestorWithClass(this, RowsetIterateTag.class);
       if (detailIterator != null)
          currentRow = detailIterator.getRow();
          dataSource =  detailIterator.getDataSource();
       else
           // No row iterator
       if(currentRow != null)
         String[] attrNames = currentRow.getAttributeNames();
         Object[] obj = currentRow.getAttributeValues();
         // Get the attribute Values of the Current Row.
         c_CmpyCode = obj[currentRow.getAttributeIndexOf("CmpyCode")].toString();
         // Obtain an ApplicationModule.
         ApplicationModule am  = dataSource.getApplicationModule();
         // Get the DataSourceName.
         String dataSourceName = detailIterator.getDataSourceName();
         // Obtain a View Object by passing the dataSourceName.
         vo = am.findViewObject(dataSourceName);  
         // Go the current record.
         nextRow = vo.next();
         if(vo.hasNext())
           nextRow = vo.next();  // Go to the record after the 'current record',
                                 // this is the next row after the current row.
           attrNames = nextRow.getAttributeNames();
           obj = nextRow.getAttributeValues();
           // Get the attribute Values for the NEXT RECORD.
           n_CmpyCode = obj[nextRow.getAttributeIndexOf("CmpyCode")].toString();
          System.out.println(NEW NEXT ROW Values ARE : " + n_CmpyCode);
           // Extremely Important.
           nextRow = vo.previous();                                                              
         }  // End if(vo.hasNext())
        }  // End if(currentRow !=null)
        //return Tag.SKIP_BODY;
        return EVAL_BODY_INCLUDE;
     } // End of doStartTag()
}  // End class.

How do you know it is not working?

Similar Messages

  • Repeating Frame Problem - please guide

    Dear Gurus,
    I am developing a report in reports 6i. The structure of report is something like this.
    M1
    R1
    f1
    f2
    R2
    M1 is a fixed frame containing all other elements. R1 is repeating frame containing
    2 fields and one repeating frame.
    Now while printing records of R2 overflow to next logical page. that's fine but space of f1 and f2 also get repeated on to next page.
    To give an analogy :-
    Purchase Order Report
    po number - f1
    supplier - f2
    po lines -r2
    next page
    empty space present ( equal to the required fields r1 and r2 )
    po_lines
    Now point is i want the Po lines to continue without the space for fileds for f1 and f2 repeating.
    and yes i kept vertical elasticity for M1,R1 and R2 as variable.
    How can i solve it.
    please guide.
    regards ravi

    Print Object on property it is "First Page". the structure is like
    <code>
    M1
    R1
    f1
    f2
    R2
    </code>
    Problem is when r2 overflows to next page, the space for f1 and f2 is also there on next page. What i want is content of r2 should come at the start of the page rather than at the location where its fixed when it's overflowing to next page.
    regards

  • I am having activation problem please guide me

    i am having activation problem and the error is repeating again and again

    Read https://discussions.apple.com/thread/4868797?start=0&tstart=
    Has your phone been jailbroken?

  • Problem in creating workspaces..Please guide

    Hello All,
    Am facing a problem in creating workspaces in DTR. Am working on EP7 SR2 (SP9)
    Have read mostly all related posts on SDN but cannot catch the missing link...Please guide me for the same:
    <u><b>setvars.bat</b></u>
    @echo off
    rem Default properties definition for the DTR Client Commandline Tool:
    rem -
    rem (1) Mandatory: DTR configuration folder:
    set DTR_HOME=C:\Documents and Settings\RHunjan
    set CFG_DIR=%DTR_HOME%\.dtr
    rem Remark: How to find DTR_HOME folder?
    rem - In Release 6.40:
    rem          The default location is C:\Documents and Settings\<user>\.sapnetweaver.
    rem - In Release 7.1:
    rem      Start Netweaver Developer Studio and login to the configuration / client
    rem      where you would like to work, then choose the menu: 'file' -> 'Switch workspace'.
    rem      The upcoming dialog shows the currently used Eclipse workspace.
    rem      The DTR configuration folder is <currently used eclipse workspace>.jdi
    rem (2) Optional: Folder with the definition of logging properties:
    set LOGGING=%DTR_HOME%\logging.properties
    rem (3) Default properties:
    rem set DEFAULT_PROPERTIES=-Dvfs.configfolder=%CFG_DIR% -Dvfs.logging=%LOGGING%
    <u><b>dtrshell.bat</b></u>
    @echo off
    rem Run DTR Commandline Shell:
    rem -
    rem (1) Get it running:
    rem -
    rem - Adapt configuration settings in setvars.bat.
    rem - Uncomment the settings for the used archives
    rem       that fit to the currently used Netweaver Developer Studio.
    call setvars.bat
    set CLASS_PATH=
    rem (2) Used Archives Settings:
    rem -
    rem Used Archives in 6.40 and 7.00 Netweaver Developer Studio installation:
    rem -
    set CLASS_PATH=%CLASS_PATH%;com_tssap_dtr_client_vfs.jar
    set CLASS_PATH=%CLASS_PATH%;httpclient.jar
    set CLASS_PATH=%CLASS_PATH%;httpclientext.jar
    set CLASS_PATH=%CLASS_PATH%;com_tssap_dtr_client_commandline.jar
    rem Archives from foreign Plugins:
    set CLASS_PATH=%CLASS_PATH%;..\com.tssap.sap.libs.xmltoolkit\lib\sapxmltoolkit.jar
    set CLASS_PATH=%CLASS_PATH%;..\com.tssap.sap.libs.logging\lib\logging.jar
    set CLASS_PATH=%CLASS_PATH%;..\com.sap.tc.jarm\lib\jARM.jar
    rem The recommended value for maximum heap size for the JVM to run DTR Commandline client is 256M or higher.
    rem You can change the settings based on system resources available.
    set VM_PARAMS=-Xmx256m
    rem (3) Run DTR Commandline Shell:
    rem -
    java %VM_PARAMS% -classpath %CLASS_PATH% %DEFAULT_PROPERTIES% com.tssap.dtr.client.commandline.DTRShell %*
    ===================
    I get an error saying:
    <i><b>Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/tc/logging/Lo
    cation
            at com.tssap.dtr.client.commandline.DTRShell.<clinit>(DTRShell.java:21)</b></i>
    Please guide......
    Awaiting Reply.
    Thanks & WArm Regards,
    Ritu
    Message was edited by:
            Ritu  Hunjan

    Hello Ritu,
    the problem is probably in these lines:
    rem Archives from foreign Plugins:
    set CLASS_PATH=%CLASS_PATH%;..com.tssap.sap.libs.xmltoolkitlibsapxmltoolkit.jar
    set CLASS_PATH=%CLASS_PATH%;..com.tssap.sap.libs.loggingliblogging.jar
    set CLASS_PATH=%CLASS_PATH%;..com.sap.tc.jarmlibjARM.jar
    For a NW04s studio these paths are not correct, the plugin directories have some version suffix.
    rem Archives from foreign Plugins:
    set CLASS_PATH=%CLASS_PATH%;..com.tssap.sap.libs.xmltoolkit_2.0.0libsapxmltoolkit.jar
    set CLASS_PATH=%CLASS_PATH%;..com.tssap.sap.libs.logging_2.0.0liblogging.jar
    set CLASS_PATH=%CLASS_PATH%;..com.sap.tc.jarm_2.0.0libjARM.jar
    Please check the folder names in the /eclipse/plugins/ directory to verify that this is correct for your installation.
    Regards,
    Marc

  • Problem in BW System in Portal..Its urgent.. Please guide

    Hello All,
    Scenario:
    Working in a load balancing landscape
    Requirement:
    Need to create a BW Report iView (which isnt working)
    Problem / Questions:
    1. Created a BW System in portal but since its load balancing, please confirm if this is all right:
    - Using Logon Tickets Name
    - Group = ?group?
    - Message Server = ?server?:?port?
    - SID = ?r3name?
    - Server Port = blank
    - SAP Client = blank
    - System Type = SAP_BW
    - WAS Host = ?server?:?port?
    - WAS Protocol = http
    - User Mapping Type = admin
    2. Tested the connection and the WAS & Connector Tests fail.
    3. When I preview the SAP BW Report iView, get a prompt error saying
    " session management will not work!
    Please check the DSM log file for details.
    you can turnoff this alert ..... "
    Now, Ive seen many posts which show how can I disable this prompt message but it would not solve the problem. On clicking on "ok" from the above mentioned prompt, I get an error saying "Page cannot be displayed"..
    Please guide.....
    Its kinda urgent....
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu

    Hi,
    Do the following:
    <b>1. Property Category : Connector</b>
    <b>Group</b> -> You can check this from the SAP Logon Pad. Click on groups and then click on generate list.
    <b>Logical System Name</b> -> <SID>CLNT<Client Number>
    <b>Message Server</b> -> You can also find the message server from the SAP Logon Pad or ask the BASIS team. On SAP Logon Pad, click on groups -> You can see the servers in the group.
    <b>Remote Host Type</b> -> 3
    <b>SAP Client</b> -> You can get this from SAP Logon Pad or contact the BASIS team. A system can have many clients to be particular.
    <b>SID</b> -> System ID of your BW system. This would also be available from SAP Logon Pad or contact the BASIS team for information
    <b>Server Port</b> = The server port would be 80<System Number> i.e. 8000 if the system number is 00 and 8001 if system number is 01
    <b>System Type</b> -> SAP_BW
    <b>2. Property Category : ITS</b>
    <b>ITS Host Name</b> -> If it's WAS6.40 and above, it would be an integrated ITS which means the ITS hostname is same as your BW System Host Name. i.e. xxxx.abc.com:80<system number>
    <b>ITS path</b> -> /sap/bc/gui/sap/its/webgui/
    <b>ITS Protocol</b> -> http
    <b>3. Property Category : User Management</b>
    <b>Logon Method</b> -> SAPLOGONTICKET
    <b>User Mapping Type</b> -> admin, user
    <b>4. Property Category : WAS</b>
    <b>WAS Host</b> = Fully Qualified Domain Name of BW System : 80<system number>
    <b>WAS Protocol</b> = http
    Check the connection then.
    Cheers,
    Sunil

  • Problem in SSO..Please guide

    Hello All,
    Am trying to establish a SSO connection between EP7 SR2 Sneak Preview Portal and ECC5.0 using Logon Tickets.
    Using this link for the same - http://help.sap.com/saphelp_nw2004s/helpdata/en/1c/22afe3b26011d5993800508b6b8b11/frameset.htm
    Have downloaded the verify.der certificate and added into R/3 using the STRUSTSSO2 T-code and have added to ACL too.
    Problem:
    I need to maintain table TWPSSO2ACL using sm30 which am not able to.
    When I enter the table name and press enter, then either I hit Display or Maintain, I get an error saying "<b>View/table TWPSSO2ACL can only be displayed and maintained with restrictions</b>".
    Am not into R/3...please guide me....
    Get the above error even when I select "No Restrictions or Enter condition" from the Restrict Data Range section.
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu

    But then the Connector test is failing. It gives an error as "Connection failed. Make sure user mapping is set correctly and all connection properties are correct"
    What needs to be done here?
    On the other hand, all this works fine using User-Mapping, the Connector test + the SAP Transaction iView.
    Pleae guide.
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu

  • Problem in Portal Anonymous Login..Please guide

    Hello All,
    Am trying Portal Anonymous Login using EP7 SP9 Sneak Preview.
    Using link for this - http://help.sap.com/saphelp_nw2004s/helpdata/en/1e/e19f58136e654d9709befa464314f2/frameset.htm
    1. Have added 2 users in the UME Property using configtool - anon1,anon2
    2. Created a simple PCD Role and assigned a URL iView to it. Changed it authenticationscheme property to Anonymous.
    3. Assigned this role to Anonymous Users Group.
    Problem:
    1. When I access URL http://rp1677:50100/irj/portal/anonymous, am asked for authentication? Why?
    2. The anonymous user group contains user Guest. When am trying to add users- anon1 & anon2 into this group, I get an error saying - <i>You are not authorized to assign one or more entities. Perform a new assigned entities search to see the correct status</i>
    Am doing this entite process using the administrator login.
    Please guide.
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu

    Hi,
    There is a step by step guide to implement external facing portal in
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5894">blog</a>
    Follow all above steps and if you still get error write here again.
    Regards
    Abdul.

  • HT1695 Sir, I have facing Problem in my Device Iphone 5 in Vodafone 2G plan. I have discuss issue with Vodafone Care. All settings from the Vodafone Side are perfect. Still Issues arise in this Device. Please guide me for resolve the issue.

    I am from Gujarat. I have Purchased Iphone 5. I have network of Vodafone Limited.
    I am facing problem of Network connection in Whats app, safari and other applications for the access. I had post query in service provider network and all setting from there side are perfect. Please guide me in such error.

    Please guide me in such error.
    What error?
    If you want  help then you need to provide details as to what's wrong.
    What troubleshooting steps have you done?

  • HT1222 Please Help.. When I update to 7.0.6 I remark a very low battery lifetime I does not complete 2 hours.. I update to 7.1 to get rid of this problem but unforeately the problem still.. Could you please guide what to do?

    Please Help.. When I update to 7.0.6 I remark a very low battery lifetime I does not complete 2 hours.. I update to 7.1 to get rid of this problem but unforeately the problem still.. Could you please guide what to do?

    Restore as New (no backup)... then Re-Sync your Content.
    Make sure you have the Latest Version of iTunes (v11.1.5) Installed on your computer
    iTunes free download from www.itunes.com/download

  • I am using windows 8. I have downloaded i tunes. but i can not find my i phone any where in i tunes menu. so I am having problem in syncing my phone. please guide me

    I am using windows 8. I have downloaded i tunes. but i can not find my i phone any where in i tunes menu. so I am having problem in syncing my phone. please guide me

    If the device doesn't appear as shown in the following instructions: http://support.apple.com/kb/HT1386
    then the following may help: http://support.apple.com/kb/TS1538

  • I can not connect to iswifter, some times it is connected and some time it shows " UNABLE TO CONNECT TO SERVER PLEASE CHECK THE INTERNET" but my internet connection is good and other wbe site i can open without any problem. Please guide  me..

    I can not connect to iswifter, some times it is connected and some time it is not connected and getting message " UNABLE TO CONNECT TO SERVER , CHECK YOUR INTERNET" but my internet connection is ok and I can open other web site with out any problem.  Please guide me how to solve this issue.

    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
     Cheers, Tom

  • Hi my name is Vajra from INDIA, i am using ipod shuffle 3rd generation but it is not working properly due to battery problem, i need to change the battery please guide me how to change the battery or any chance to replace the ipod shuffle 3rd generation ?

    Hi my name is Vajra from INDIA, i am using ipod shuffle 3rd generation but it is not working properly due to battery problem, i need to change the battery please guide me how to change the battery or any chance to replace the ipod shuffle 3rd generation ?

    Seems no one care about us .no one replied till no@!!!!@ strange

  • After downloading & installing application of adobe creative suite cs2 version 6,  screen of adobe photoshop cs2 is not opened by clicking icon . message is giving " ausba4.dll " was not present. Please guide me.?

    I have downloaded & installed adobe creative suit cs2 version 6 but when I click the icon of adobe photoshop in desktop it is not opened & giving message " this application has failed to start because " ausba4.dll " was not found. reinstalling of the application may fix the problem " I have reinstall & opened many times but even then it is not opened. Please guide me accordingly.

    I'd try disabling the Twain_32.8BA plugin in
    C:\Program Files\Adobe\Adobe Photoshop CS2\Plug-Ins\Import-Export
    You can disable the plugin by putting an ~ (tilde) in front of the name or moving the plugin to your desktop.
    Then try photoshop cs2 and see if you still get the error message.
    I suspect the error has to do with your scanner driver, since photoshop cs2 does not have an ausba4.dll

  • Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).

    Hi,
    Our Environment is Essbase 11.1.2.2 and working on Essbase EAS and Shared Services components.One of our user tried to run the Cal Script of one Application and faced this error.
    Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).
    I have done some Google and found that we need to add something in Essbase.cfg file like below.
    1012704 Dynamic Calc processor cannot lock more than number ESM blocks during the calculation, please increase CalcLockBlock setting and then retry (a small data cache setting could also cause this problem, please check the data cache size setting).
    Possible Problems
    Analytic Services could not lock enough blocks to perform the calculation.
    Possible Solutions
    Increase the number of blocks that Analytic Services can allocate for a calculation:
    Set the maximum number of blocks that Analytic Services can allocate to at least 500. 
    If you do not have an $ARBORPATH/bin/essbase.cfg file on the server computer, create one using a text editor.
    In the essbase.cfg file on the server computer, set CALCLOCKBLOCKHIGH to 500.
    Stop and restart Analytic Server.
    Add the SET LOCKBLOCK HIGH command to the beginning of the calculation script.
    Set the data cache large enough to hold all the blocks specified in the CALCLOCKBLOCKHIGH setting. 
    Determine the block size.
    Set the data catche size.
    Actually in our Server Config file(essbase.cfg) we dont have below data  added.
    CalcLockBlockHigh 2000
    CalcLockBlockDefault 200
    CalcLockBlocklow 50
    So my doubt is if we edit the Essbase.cfg file and add the above settings and restart the services will it work?  and if so why should we change the Server config file if the problem is with one application Cal Script. Please guide me how to proceed.
    Regards,
    Naveen

    Your calculation needs to hold more blocks in memory than your current set up allows.
    From the docs (quoting so I don't have to write it, not to be a smarta***:
    CALCLOCKBLOCK specifies the number of blocks that can be fixed at each level of the SET LOCKBLOCK HIGH | DEFAULT | LOW calculation script command.
    When a block is calculated, Essbase fixes (gets addressability to) the block along with the blocks containing its children. Essbase calculates the block and then releases it along with the blocks containing its children. By default, Essbase allows up to 100 blocks to be fixed concurrently when calculating a block. This is sufficient for most database calculations. However, you may want to set a number higher than 100 if you are consolidating very large numbers of children in a formula calculation. This ensures that Essbase can fix all the required blocks when calculating a data block and that performance will not be impaired.
    Example
    If the essbase.cfg file contains the following settings:
    CALCLOCKBLOCKHIGH 500  CALCLOCKBLOCKDEFAULT 200  CALCLOCKBLOCKLOW 50 
    then you can use the following SET LOCKBLOCK setting commands in a calculation script:
    SET LOCKBLOCK HIGH; 
    means that Essbase can fix up to 500 data blocks when calculating one block.
    Support doc is saying to change your config file so those settings can be made available for any calc script to use.
    On a side note, if this was working previously and now isn't then it is worth investigating if this is simply due to standard growth or a recent change that has made an unexpected significant impact.

  • HT5642 i want restore iphone ios from 6.1.2 to 6.0.1 , please guide me

    i want restore iphone ios from 6.1.2 to 6.0.1 , please guide me

    @RajaRani: "get home button fix " means. this is a hardware issue..... but one thing i want to ask that when i restore the phone the home button is start working for few minute and the the same problem occur...... i want to restore the ios of the ph is this possible or not.....

  • Please guide how to set the mask image

    Hi All,
    i want to set camera images as a background of greeting image( those already in .png formate with white color background ), so when i am trying with following code in my app it is showing the color image in black and white color .
    Please guide me how it is work.
    I am using following code
    -(UIImage)maskImage:(UIImage)image withMask:(UIImage*)mask {
    CGImageRef imgRef = image CGImage;
    CGImageRef maskRef = mask CGImage;
    CGImageRef actualMask = CGImageMaskCreate(CGImageGetWidth(maskRef),
    CGImageGetHeight(maskRef),
    CGImageGetBitsPerComponent(maskRef),
    CGImageGetBitsPerPixel(maskRef),
    CGImageGetBytesPerRow(maskRef),
    CGImageGetDataProvider(maskRef), NULL, false);
    CGImageRef masked = CGImageCreateWithMask(imgRef, actualMask);
    return UIImage imageWithCGImage:masked;
    }

    Hi,
    Thank you for the reply.
    My problem is related to Oracle Forms. So I go on Help ->Diagnostics ->custom code -> personalize. There I choose my field and PROMPT_TEXT property. But I do not know how to set it properly, so that it allows e.g. only numbers.
    Please help me to solve this issue.
    Thank you

Maybe you are looking for

  • Windows XP mode/ Windows virtual PC

    I have to support some LV7.1 programs (along with newer versions).  I just bought a new laptop with Windows 7 Home 64-bit.  LV7.1 loads and runs, but the drivers disk pukes on the 64-bit OS.  (This was not unexpected...) The new PC does have an Intel

  • Receiver File Channel is green but not working

    Hi, I have a service which receives the data form a sender channel and send the same data after content conversion to a reciever channel. In the communication channel monitoring I can see the log for the sender channel and the processing log is displ

  • IMac5,1 mirroring possible via minidisplay port?

    Hi there, I have an old iMac 5,1 2006 and a macBook pro 5,5. Can I mirror the macbook screen onto the iMac? The  thunderbolt cable I bought for this purpose doesn't fit the minidisplay port on the iMac. Any workarounds? Thanks

  • IOS 8.x Apple users and CISCO ISE native supplicant provisioning not working

    Hi there guys , I was wondering if anybody else have the following problem: Apple iOS 8.x users are not able to register their devices on the ISE portal (native supplicant provisioning). After they receive the redirection from the WLC, they freeze. A

  • Editing While Loop Conditions hangs JDeveloper 10.1.3

    Hi Guys, Having a strange problem when I tried to edit the condition in a while loop after it was created and set first time. The IDE just hanged when I tried to open the expression builder and after a while, nothing happened, the expression builder