Using user parameter for

Hello,
I have created a report using an xml pds. I am using a servlet for the xml data stream source. Everything works great with the url to the servlet hard-coded between the <xml></xml> tags (ex. <xml>http://10.3.35.119:9004/ssapp/servlet/ScheduleDataServlet</xml>) but when I try using a user parameter between the tags (so I will be able to dynamically change the url to this servlet) it bombs. Please see my source code and error message below. Any help would be greatly appreciated, I've been stuck on this for days! Thanks!
<rw:report id="recoveryCenterScheduleReport" parameters="server=myreportserver&userid=ssstage/ssstage@DEVL&p_xmlDataURL=http://10.3.35.119:9004/ssapp/servlet/ScheduleDataServlet">
<rw:objects id="objects">
<?xml version="1.0" encoding="WINDOWS-1252" ?>
<report name="XMLscheduleReport" DTDVersion="9.0.2.0.0">
<xmlSettings xmlTag="XMLSCHEDULEREPORT" xmlPrologType="text">
<![CDATA[<?xml version="1.0" encoding="&Encoding"?>]]>
</xmlSettings>
<data>
<userParameter name="XML_HTTPS" datatype="character"
pluginClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
width="255" defaultWidth="0" defaultHeight="0" display="no"/>
<userParameter name="p_xmlDataURL" datatype="character" width="100"
precision="10" defaultWidth="0" defaultHeight="0"/>
<dataSource name="QP_1">
<plugin
factoryClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
majorVersionNumber="1" minorVersionNumber="2"
signOnParameter="XML_HTTPS">
<![CDATA[<xmlpds DTDVersion=" 1.0">
<dtd>null</dtd>
<schema>file:///C:/Practic Workspace/Practice/WEB-INF/xsd/scheduleReport.xsd</schema>
<XSQLschema>null</XSQLschema>
<XSQLWithDTD>false</XSQLWithDTD>
<type>false</type>
<xmlWritten>true</xmlWritten>
<validate>true</validate>
<xml>&<[b]p_xmlDataURL></xml>
<xsl>null</xsl>
javax.servlet.jsp.JspException: rwlib-1: REP-0002: Unable to retrieve a string from the report builder message file.
REP-0069: Internal error
XMLPDS-63004:Generic error while parsing the URL stream name instead of <.
REP-4111: Fail to create pluggable data source 'QP_1'
     at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:180)
     at jsp.reports._schedule._XMLscheduleReport._jspService(_XMLscheduleReport.java:87)
....

Never mind, I discovered the problem. I wasn't using the necessary xml escape characters for the user parameter embedded in the xml.

Similar Messages

  • Using a parameter for a table name?

    In SQL Server, can you use a parameter for a table name?  I'm working with Visual C# and want to do something like this:
    SELECT MAX(ItemID) FROM @TableName;
    Can this be done?
    (Basically, I have three separate methods within a class--one for each table I have; and each one will perform the above query but on different table names.  I'd like to see if there is a way that I can have just one method that will allow me to specify
    the table name.)

    As pointed out in other posts, you can. But a more relevant question is whether you should.
    A table in a relational database is supposed to model a unique entity, and each column in the table is supposed to model a unique attribute. This is not always how it is, but it is from this model a relational database is designed.
    From this angle, having a dynamic table name does not really make sense for application code. (Administrative actions is a different story.) Think of it this way: have you ever wanted to make the class name dynamic in C#?
    Admittedly, it is different in .NET, because everything inherits from System.Object, but in a relational database there is no inheritence.
    Anyway, if you are using stored procedures, you should have one stored procedure per table. Physically, in the plan cache, there will be one query plan per table, no matter how you do it.
    If you are submitting SQL statements from your application, it is a different matter. In this case, I find it difficult to object if you have a class that performs generic actions against tables. Then you build the SQL string in the client code.
    However, no matter how you do it, you need to be careful to avoid SQL injection. We had the example:
    DECLARE @TableName nvarchar(50),@sqlCommand nvarchar(max)
      SET @TableName = ' ItemInformation'
      SET @sqlCommand = 'SELECT MAX(ItemID) FROM ' + @TableName
    EXEC (@sqlCommand)
    But what if we have:
      SET @TableName = ' sys.objects; SHUTDOWN WITH NOWAIT; --'
    As long as we do it in T-SQL, we can (and we should do!) this to prevent SQL injection:
      SET @sqlCommand = 'SELECT MAX(ItemID) FROM ' + quotename(@TableName)
    If you build your SQL strings in C#, you will need to employ other checks. There is only an issue if the user can inject data somewhere, but your generic class will not have knowledge of this, and must assume the worst.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to create a user parameter for a report

    Hi,
    I am writing a report in ORACLE 6.0, and I need to create a user
    parameter for my report.
    My database includes fields: item_id, item_cost, and item_desc.
    What I want to do is: set up a user parameter for item_cost, and
    the report will prompt the user to enter number into this
    parameter, then the report will display item_id and item_desc
    depending the user-entered item_cost.
    thanks.
    Jun

    My SQL code is below:
    select item_id, item_invo, item_desc
    from tb_item
    where item_invo=:p_1
    but I got an error message:
    REP-0788:Warning: The value of restricted LOV parameter p_1 is
    not among the selectedble values.
    Would you help me again? Thanks.
    Jun

  • How to use User exit for MM_MATBEL

    Hi
    I want to exclude some material documents while archiving a range of material document through archive Object MM_MATBEL.
    Can you please suggest how to use user exit for this to exclude the material document while archiving.
    Please brief me details.
    Thanks,
    Debadatta

    Hi Debadatta,
    Welcome to SDN.
    Have you looked report program <b>RM07MAAU</b> (Report for Material Document Archiving)?
    Hope this will help.
    Regards,
    Ferry Lianto

  • Setting user parameter for system - save - list - options

    i want to set the user parameter for system > save > list > options so user dont need to select every time for any option.
    Moderator message - Title modified because the page renderer can't handle ">".
    Edited by: Rob Burbank on Nov 10, 2009 9:15 AM

    Not Answerd

  • How to  Use page parameter for 2 grids

    Hi All,
    I have 2 grids for 2 different DB's in a report.In this page view have business dim, user able to choose the
    business.So i'm using 2 prompts for 2 grids in business dim at page view.but user wants only once he gave the
    input.How to pass one grid page parameters to another grid?
    Plzzzz give any suggestions on this................
    Thanks

    Instead of using prompts and the page, you can put the selectable dimension onto the POV of both grids and set it to current user pov on both grids.
    This way it will work, but the drawback is that you cannot make user select multiple members for that dimension, which is possible with prompts.
    hope this helps
    Bulent

  • How to use User Exit for SD...

    Hi there,
    My client's requirement is to block the overall status of the Sales Order header under status tab to be blocked when user r-enters a new scheduled date in the "First Date" column in the SO.
    When they goto VA02, & put a new date it must automatically put a delivery block in the header as well as make the order header status to be blocked.
    I see the “First date” field in the SO is in a Structure “RV45A”, the field name is ETDAT.
    Can you let me know how to use User exit MV45AFZZ?
    When doing it, it must put the Delivery block in table VBAK – LIFSK.
    Rgds,
    Pri

    Hi Debadatta,
    Welcome to SDN.
    Have you looked report program <b>RM07MAAU</b> (Report for Material Document Archiving)?
    Hope this will help.
    Regards,
    Ferry Lianto

  • PPOME 'date and preview period'.  Is there a user parameter for settings?

    Hi
    The default setting for the 'date and preview period' in PPOME/PPOSE is sy-datum + 3 months.  Our users would like this to be sy-datum with time period 'Complete'.
    Is there a user parameter to set for this.
    Is there anywhere I can see the documentation for the values in parameter POK?
    Thanks in advance
    Kirsten

    Hi Kirsten,
    In PPOME, when you select end date 31.12.9999 from date & preview period, save and exit; the next time you login the system defaults this selection for you.
    There is a user parameter OM_DATE (format : YYYYMMDD) which defaults the start date in date and preview period window in PPOME.
    Best regards,
    Dilek

  • How do i filter the records in analytic view by using variable/parameter for a time range

    i have a analytic view which has a output column as date type. i want the user who use this view have the control to decided the output records based on a time range (from x to y).
    i tried to create 2 variables, 1 for start_time, 1 for end_time. Ideally, i should have a expression for filtering data like this:
    $$start_time <= date_column <= $$end_time
    However, the variable windows doesn't seem to be feasible for the expression as above.
    Does anyone has the same problem and get it solved?
    Thanks!

    just figured out by my own. So the answer is using "variable" with "range" option.
    Making a variable, then set the "selection type" to "range".
    When preview the data, the variable input window pops up with operator on default "equal", use dropdown list to swtich it to "between", then you can enter the start_time and end_time as a range filter.

  • Call stored procedure and use user parameter

    I am a new user of BIEE.
    1.     Can I call stored procedure from BIEE report? If yes then how can I call?
    2.     Can I use parameter in sql script of BIEE report? If yes then how can I take this value of parameter from front end user?

    urang oge keur neangan ..hese euy,,,,
    Message was edited by:
    user648680

  • Use one parameter for multiple markers in PreparedStatement?

    I have a prepared statement with a where clause of the following form:
    where x = ? or y = ?
    where the ? for x and y is the same literal value. Is there a more elegant way to handle this other than what I'm doing now (which I think is pretty clumsy):
    pstmt.setString(1, aValue);
    pstmt.setString(2, aValue);
    Obviously, I'd like to only set the value once, and have it used both places.

    No. If its transactions across multiple databases you should use different datasources.

  • Problem in filling Custom segment data using User Exit for ZORDERS05

    Hi,
    I am using Process Code SD10 to generate the custom Idoc ZORDERS05.
    The function module used is IDOC_OUTPUT_ORDRSP.
    I am able to succesfully generate the Custom Idoc (VA02->Extras->Header->Edit) but unable to populate the custom segments in the IDOC.
    I have tried to write the code in User Exit EXIT_SAPLVEDC_003 -> ZXVEDU15. But still I'm unable to populate the Z segments.
    Even though I place a break point in the FM or in the User Exit during the generation of Idoc the control doesn't stop in FM nor in the User Exit.
    I am unable to understand how to go about this.
    Can anybody please help me with this?
    Thanks in Adavance,
    Rohan.

    Okay I under what you are speaking about NACE.
    Yes that configuration has been done and I am sucessfully able to generate the IDOC.
    But even though I know that in FM IDOC_OUTPUT_ORDRSP, I have to write code in User Exit EXIT_SAPLVEDC_003 to populate the Z segments; I'm unable to understand y the control doesn't pick the FM and Exit.
    Right now I have code in the Exit to fill Z segments.
    Thanks
    Rohan.

  • Where can I find a useful user manual for the A1?

    I am so confused I don't know exactly where to begin. 
    I tried to download an EPUB format ebook from 2 different websites, and all i get is a worthless "download failed" message every time, with no explanation of the cause.
    The user manual included on the A1 has NO troubleshooting section, NO index, and apparently NO ability to search the manual.  Where can I go for more complete documentation, especially troubleshooting, although a tutorial would be nice, too.
    Thanks to anyone who can help me!!!
    Solved!
    Go to Solution.

    @bswords,
    Found this on our support site.
    See if it helps.
    http://download.lenovo.com/UserFiles/UserGuide/en/User%27s%20guides%20and%20manuals/A1-07/A1-07_EN_%...
    //JameZ
    Check out the Community Knowledge Base for hints and tips.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    X240 | 8GB RAM | 512GB Samsung SSD

  • Scenerios for using I_STEP parameter for creating customer exit variables.

    Hi All,
    I need to create a customer exit variable.
    Please explain the different scenerios for using each i_step parameters.
    For eg. in which practical scenerio i_step 3 is used?

    Hi Shobhit,
    You can find plenty of info on this in the forums, So i suggest you to do a small search with imp Key words. Anyways below is the std usage of I_STEP
    I_STEP = 1
    Call takes place directly before variable entry. Can be used to pre populate selection variables
    I_STEP = 2
    Call takes place directly after variable entry. This step is only started up when the same variable is not input ready and could not be filled at I_STEP=1.
    I_STEP = 3 In this call, you can check the values of the variables. Triggering an exception (RAISE) causes the variable screen to appear once more. Afterwards, I_STEP=2 is also called again.
    I_STEP = 0
    The enhancement is not called from the variable screen. The call can come from the authorization check or from the Monitor. This is where you want to put the mod for populating the authorization object.
    This is basic info from help.sap.com.
    regards,
    Gaurav
    Edited by: Gaurav Kothari on Aug 4, 2011 2:18 PM

  • Get logged in users name for email notification

    Hi all,
    I am using LC Update 1 with email notifications. In the notification email I would like to write:
    Hi "logged in users name"
    You have got a task in your to do-list...
    The thing is that I can not get the id of the user because the email is sent before he/she completes any step in the process. So I guess I need to look up the user in the same way as the notification-function makes the lookup... How is this done?
    Can you help me here?
    Sincerely
    Kim

    You can use a parameter for the user ID:
    http://livedocs.adobe.com/livecycle/8.2/wb_help/001330.html
    scott

Maybe you are looking for

  • IPAD restores applications but not data or files associated with applications

    1) Today Itunes prompted me to update the OS on the IPAD. 2) It warned me to back up IPAD before I did.  I did 3) I updated software. 4) It returned with an error saying it could not install software and I must restore to facotry settings 5) I resoto

  • Wish List For Improvements to Series 60

    Dear Nokia, I recently migrated from my Series 40 Nokia 6270 to my first Series 60 Nokia E65, and I'm extremely happy. However there are a few features which were available on my 6270 but which are unavailable on my E65 (and some other ideas), and I

  • After Upgrade Xserve not visible in Windows Workgroup

    Hello: I up-graded an Xserve/w/Xraid from 10.2.8 to 10.4.7 by installing 10.4 on a new blank drive. I copied all the settings down from the existing server and re-entered them including IP and Windows server settings. Everything went well except that

  • How to install CSM 4.7 on server 2012

    Hi, I want to install Cisco Security manager(CSM) on ucs blade server having window server 2012 installed on it. I am totally new to this. Can please someone share the steps to install CSM.  Thanks 

  • I cannot figure out how to Download a Youtube video. HELP

    I do not want to try some third party BS (Perian, iskysoft, etc...) However, I am seeing others on this site explain how to download a video from Youtube using either Safari or Firefox, but I really can't figure it out and I am very frustrated. I am