I need JSP SCRIPLET report help!

Here's what we are doing.
We are using a JSP report built in report builder (10gR2,win xp pro), and modifying the layout in the web builder part of the tool that generates the JSP.
These reports that are run, end up being exported to EXCEL via the MS Windows export function in Internet Explorer.
I have managed to write the code I need into a Javascript - which works great - EXCEPT when we export to EXCEL, the MS process does not run JavaScript - so we do not get what is on the screen. So I need this code converted to a JSP scriplet, so it will work when exported to excel.
here is the javascript I came up with. Basically it says if the string length of the HTML code generated from the reports tag is > 51, then give me that same html inside of a <tr> <td> </td> </tr>, else do nothing (do not produce a table row).
<script type = "text/javascript" language="JavaScript">
if ( '<td <rw:id id="HFpltitlesname87" breakLevel="RGpltitlecode871" asArray="no"/> class="OraRowHeader"> <rw:field id="Fpltitlesname87" src="pl_title_sname" breakLevel="RGpltitlecode871" breakValue="" nullValue=""> F_pl_title_sname </rw:field> </td> '.length > 51 )
document.writeln ( '<tr>');
document.writeln ('<td <rw:id id="HFpltitlesname87" breakLevel="RGpltitlecode871" asArray="no"/> class="OraRowHeader"> <rw:field id="Fpltitlesname87" src="pl_title_sname" breakLevel="RGpltitlecode871" breakValue="" nullValue=""> F_pl_title_sname </rw:field> </td> ' );
document.writeln ( '</tr>' );
</script>
During JSP compile time, the <rw:id tag gets translated to the value as expected. I need to come up with something at compile time via a scriplet - so it will be pure HTML and will import into EXCEL.
This is cross posted in Reports.

I found a solution.
No JavaScript or scriplets needed.
I moved the report tag to act like a Group Above layout vs a Group Left.
We had chosen Group Left in the layout since it was the lesser of 2 evils for out column headers.

Similar Messages

  • Need JSP HELP

    I am trying to figure out a bunch of code in jsp, it is a html form with some textfield and two button, one is "ok" and another is "cancel", I want to make different response when client click on the buttons, if they choose ok, I want to insert the value of those text field into an arrylist, and return back to previous jsp page, if they choose cancel, I just want to return back to previous jsp page, and with nothing changed in the arrylist, I was wondering how can I deal with the button name with both method "submit" and action"./some.jsp".
    Please help! thx a lot!

    Make sure you name your submit button. Something like:
    <input type="submit" value="OK" name="foo">
    <input type="submit" value="CANCEL" name="foo">
    Then, when you submit the page (let's assume you're submitting the page to itself), add something like this at the very top of your code:
    <%
    String x = request.getParameter("foo");
    if (x != null) {
      if (x.equals("OK")) {
        // add OK handling code here
      } else if (x.equals("CANCEL")){
        // add CANCEL handling code here
    %>

  • Need JSP with CMR EJB  Help

    hi
    regarding my question
    i am not clear how to use two bean one has foreign key and another has primary key in the client side
    for that i make two beans and make cmr relationship between them fine
    but when i call another bean in the client side i have to use findByPrimaryKey method to map the beans
    fine
    Cnmas cnn = cnhome.findByPrimaryKey(dpwb_no);
    now my problem is i have multiple records corresponding to the dpwb_no which is my primary key
    so for that should i use the iterator method
    and if i will not use then i am using local as well as remote home interfaces so in that case my code will be:-
    in the local interface:-
    public DodAuthorisationLocal findByPrimaryKey(String authorisationNo) throws FinderException;
    in the remote interface:-
    public DodAuthorisation findByPrimaryKey(String authorisationNo) throws RemoteException, FinderException;
    now my problem is that client will interact with local interface and we are makeing remote's home interface.
    because i have to use that values in the create method as parameter
    the create method has local interface's value as parameter and we are calling remote interface so tell me how to solve it
    CnmasHome cnhome = (CnmasHome)PortableRemoteObject.narrow(ctx.lookup("Cnmas"), CnmasHome.class);
    Cnmas cnn = cnhome.findByPrimaryKey(dpwb_no);
    in this code we use the remote interface
    this is my create method which i try to call
    public DodAuthorisation create(CnmasLocal cnn ) with more parameter
    so how to interact the local interface in the create method with the remotehome refrence with the findByPrimaryKey method.
    Now i think u can able to understand my problem
    thanks alot

    Hi Veronika,
    The <jsp:usebean> is used for only javabeans not EJB (Enterprise javabean). You said that you have deployed SpellCheck.jar to the JRun server. So that must be an EJB. Where are you accessing this EJB from in your JSP? ARe you doing it inside the projsp.SpellCheck javabean? If yes, can you post some code from the javabean.
    Cheers
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <jsp:useBean id="help" scope="request" class="projsp.SpellCheck"/>
    <jsp:setProperty name="help" property="*"/>
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    You Entered the input,
    <b>
    <%= request.getParameter("word") %>
    </b>
    <br>
    The processed output is:<br>
    <%= integer.parseInt(request.getparameter("mode"))==1 ?help.reverse():""+help.check() %>
    </body>
    </html>

  • Error While Opening JSP in Report Builder converted from RDF

    Hi,
    I am using Oracle reports 9i to convert rdf into jsp and invoke this jsp using OC4J to get HTML report.
    The problem i am facing is that while converting RDF to JSP conversion went on successfull but when iam trying to open the JSP in Report builder it gives me error REP-2: Unable to retrieve string from message file.
    When i want to see the paper layout it is not present and datamodel is also corrupted. In the data model sources for some fileds become null and one addtional group is appearing with no column in it.
    Urgent help is needed.
    For any help Thanks in advance.
    Regards
    Sanjay Tripathi

    Hello Sanjay,
    There are some known issues in Reports 9i due to which XML/JSP reports do not open correctly in Builder, and throw the REP-0002 error. These bugs are currently being looked into, and will be addressed soon.
    1. If your report is using ref cursor queries, and you are hitting the above error, please ensure you connect to a database before you open the report.
    2. If your report has summary/formula columns, please try to create the JSP report without these columns and then try to open it in Builder.
    Thanks,
    The Oracle Reports Team.

  • Error Message: Information is needed before this report can be processed.

    Hi Experts,
    I am scheduling a Crystal Report from Infoview. Data Source for Report is BEx Query.
    While scheduling i am providing all  details like Parameters, Formats, Destination etc.
    But  Schedule is failing. The reason is parameter field is empty when i checked
    in failed status , as below.
    Parameters: [No Value]; [No Value]
    Error Message: Information is needed before this report can be processed.
    But when i am viewing the report with the same parameters, it is executing.
    Please help
    Regards,
    Ajay Singh
    Edited by: Ajay Singh on Sep 15, 2009 1:05 PM

    Hi,
    Try the below mentioned steps in addition to scheduling of your report.
    Method 1:  Following information might be helpful in resolving the issue.
    To check if the .rep file exists in the Output FRS
    1.Log on to the Central Management Console (CMC). Click Objects.
    2.Click the report object to view its properties.
    3.Click the History tab to view the list of instances.
    4.Click Success to view the latest instance. Scroll to Instance Location.
    5.Note the path name to the report.
    6.Check the file store under the Output directory for the report.
    If the report does not exist, delete the instance from the History tab in the CMC. Reschedule the report.
    Method 2: To verify the configuration of multiple FRS
    1.Log on to the CMC.
    2.Click Servers.
    3.Click the first Input file server. Note the home directory.
    4.Click Home > Servers.
    5.Click the second Input file server.
    6.Check the home directory path for the second Input FRS. It must point to the same directory as the first Input FRS.
    7.Repeat steps 2 through 6 to check the Output FRS.
    ====================
    NOTE:
    The Input and Output FRS physical machines must be able to connect to the file share for the file store. Also the Input and Output FRS are installed using the local administrator account. That account may not have rights to the network share for the file store. The security on the file store must be changed so the local administrator for each server can access it.
    ====================
    Above mentioned steps are for deski/webi reports.
    Cheers,
    Suresh ALuri.

  • Summary Report help

    Although my summary report indicates the total responses received for comments, it does not show the actual comments. I used a forms central template, perfect for what I need, however I really need the comments to be visable in the report. help please.

    Can you please send me screenshot with the problem ([email protected]) so i can understand the problem better.
    Currently the Summary Report tab only show fields added in the Design tab, so if you've added comments field directly in the Response tab you would not be able to display in the Report tab.
    But you should be to see all comments in the View Response tab.
    Thanks
    Roman

  • PO Report Help

    Hi Gurus
    Need to modify report:
    Printed Purchase Order Report(Portrait)
    POXPRPOP
    User want to print PO's greater then $2,500 only
    or can give option's ALL or > 2,500. Any help Thanks in advance
    [email protected]

    Dear Sam,
    You can pass a parameter (create a user parameter in the reports) from the forms, while calling the reports.
    Regards,
    Senthil .A. Perumal.

  • Currency type option needed for copa report

    Dear Experts,
    Currency type option needed for copa report.I have checked all the possibilities in ke35 as well.
    how to add curreny type in selection screen for COPA reports.
    regards
    RK

    If you want to create your own report with required currency,
    T CODE - KE35 - Click on "Report" (create), next window appears
    Give the name of the report and description
    The u see 2 options
    1. Basic report
    2. Report with Form
    Select which ever you want and press ENTER
    Here you need to prepare the report format and fields which are there in the right side box
    Hope it helps
    Thanks

  • Uregent Sales Report help

    hi Friends
          I hope I can find the solution to my problem.. Our cleint needs a backlog report and our BI developer
    has desiged a data model for backlog report with the DS :2lis_11_V_itm.  With this particular data source we are
    unable to get the intercomp orders in our backlog...so I got that intercomp data from 2lis_11_vakon and filter out
    other data in the start rotuine....Now our backlog is not showing lots of orders ,becauser they are not delivery relevant orders. As of I know
    DS:2lis_11_v_itm will get only delivery relevant orders...so as per my cleint need , I have removed the filter to get those
    del rel data from vakon (removed filter for those item catogiries)...But now when I run the report, Iam getting all the
    backlog data ...but its also showing completed orders...I dont have a status field to filter ..can any body help me how can I
    filter this completed orders in my backlog report
    Thanks...I will assign full points once I get the solution

    Hi Sam,
    Have you designed the backlog report based on the fields "Number of open order items -- ANZOAUP0" and "Open order quantity --- 0AUME" from 2LIS-11_V_ITM?
    Thanks
    Jp

  • NEED SAMPLE HR REPORTS

    HI TO ALL EXPERTS,
    IM NEW TO ABAP HR PROGRAMMING I NEED SAMPLE HR REPORTS FOR PRACTICE (ESPECIALLY PAYROLL REPORTS)
    plz send it on mail id mausam_8atyahoo.com

    hii,
    hr abap
    Go through the SAp doc for HR programming and start doing.
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    See:
    http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
    sites regarding hr-abap:
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf
    http://www.atomhr.com/training/Technical_Topics_in_HR.htm
    http://www.planetsap.com/hr_abap_main_page.htm
    You can see some Standard Program examples in this one ...
    http://www.sapdevelopment.co.uk/programs/programshr.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?Offer=SAlgwn12604#Certification
    http://www.erpgenie.com/faq/hr.htm.
    http://www.planetsap.com/hr_abap_main_page.htm
    http://www.sapbrain.com/TUTORIALS/FUNCTIONAL/HR_tutorial.html
    cheers,
    sharad

  • Need example BDC reports in HR ABAP

    hi all,
         I need example BDC reports in HR-ABAP .both download and upload reports..
    I was tried but I'm not getting it , so please, any one send sample reports .
    Rewarded for helpful answers.

    Hi,
    Check these links
    BDC for infotype 0008
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erphcm/employee%2bphoto%2bupload
    Search using "bdc" in this forum you will get lot of examples

  • SSRS adhoc (2005/2008) - Need to create Report Model (.smdl file) for adhoc using Stored procedure

    Hi All,
    I need to create Report Models using stored procedures. But whenever I am going to create data sources for same, I am just getting tables and views to use. Please see the screenshot below:
    Is there any way out to create data source based on stored procedure? Please help.
    Thanks in Advance
    Regards
    Kumud

    Hi Kumud,
    As per my understanding, it is not support to create a Datasource View (DSV) using stored procedures.
    In a DataSource View, only views, tables or named queries can be used. We can use stored procedures in a query. No parameterized queries, parameterized stored procedures or parameterized UDFs can be used in a DSV named query. You can try to using below approach
    to achieve what you are require:
    To build views in our relational source and add the views to the datasource view to proceed with modelling.
    There is a similar issue, you can refer to it.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/22207c21-03c7-4e5a-bb67-0372f29220a3/sql-server-reporting-services-2008-creating-report-models-using-stored-procedures
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Sccm 2007 need to pull report of advertisements whose success rate is less then 80%

    sccm 2007 need to pull report of all advertisements whose success rate is less then 80%

    Why not using default reports and filtering out the one less than 80%?
    107: Status of a specific advertisement
    108: All system resource advertisements with status
    Arnav Sharma | Facebook |
    Twitter Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members
    reading the thread.

  • Need ideas ! and help

    i need you guys to help me show the way. i mean i have no experience doing this kinda work beforea but i wanna do it so please if any of you can provide me with some source or any other help (where can i find the examples regarding development)....
    The project i have is :
    The initial scope of work is to allow a user to first sign on to web hosting company (our company) user account. Once logged in they have the ability to quickly create a few pages web site. We will provide some sample (html) templates etc to the user.
    The other feature of the tool will be to allow users to manage their website, add or delete pages, change format etcMicrosoft Access and MySQL databases will be used on respective systems (to save html templates).
    The project will be hosted on unix and windows 2000. What do you suggest? which technology shall i use . jsp/servlet or php ... consider the performance and cost of both technologies and then answer
    Thanks in advance....

    Hi
    Your question is probably a little too vague for this kind of forum. Try looking at the tutorials on www.java.sun.com. Also you might want to hire someone who knows what he is doing.
    Good luck
    Zeev Neumeier

  • Where to download the crdb_jdbc.dll file ??? - Needed for Crystal report ..

    Hi Friends ,
    Where to download the crdb_jdbc.dll file ??? - Needed for Crystal report ..which is missing for me ...
    i searched in many sites .. but this only dll file is missing ..
    can any one help me out ..

    itsdhanasaraa wrote:
    Hi Friends ,
    Where to download the crdb_jdbc.dll file ??? - Needed for Crystal report ..which is missing for me ...
    i searched in many sites .. but this only dll file is missing ..
    can any one help me out ..Ask at where ever you bought the software from.
    Let me guess, you didn't buy it, did you?

Maybe you are looking for

  • Download PDF file from Application Server in BSP

    Hello, We have a requirement on which we want to download a PDF file stored in Application server using BSP application. I have used function module  ARCHIVFILE_SERVER_TO_CLIENT but this FM will help only if i want to download file from GUI it won't

  • Oracle Database on Demand (DoD)

    Dear Oracle Guru's: What is Oracle Database on Demand (DoD)? My understanding is that, it is the lingo used for Oracle Database over cloud. Please correct my understanding In either case i have following question on Oracle DoD 1) IS there any limitat

  • Here Drive stuck on 'Looking for GPS"

    Running version 3.0.4087.0 on Samsung Ativ S (in Canada). Nokia Drive seems to find my location without any issues for a short period of time. Later when launching it just shows "Looking for GPS" in the status bar and cannot find my location at all.

  • Target JDK version?

    Hi, I'm trying to get a string out of a database via JDBC. When I compile my code with "1.3.0" as target JDK version in the project properties settings, the java.sql.ResultSetMetaData().getColumnType(int column) method says my string is of type OTHER

  • Trying to add CSS styles to the online editor

    I have some CSS styles I need to make available in the online editor, I have added the class names in the online editor settings and when my client goes to the create an email campaign the CSS styles I have listed are missing in the apply CSS class d