Passing parameters to a report via URL : using 'like' and '%' ?

Hi,
I have created a report by sql query, and I'm calling it by the means of a URL with a '.show' extension, and then I can specify as many parameters as I wish.
In my case I use a string as a bind variable ans I would like to pass it as a condition to render the report.
Thus I tried to use that :
"[call_url].show?p_arg_names=_[...]_cond&p_arg_values=like&p_arg_names=_[...]_[bind_variable]&p_arg_values=[xxx]"
To be able to use it I have to add a '%' at the end of it, so that I get all the rows beginning with the letters I specified, ie 'xxx' could be 'A%', so that I get all the rows beginning with an A.
The problem is that this character is not effective. I succeeded with the '_' character, but it brings a limitation to the length of the field, and it's not what I want. I also tried this : "...p_arg_values=A'&'%'", but I didn't manage to make it work !
Any idea appreciated !
Regards,
gael.

Hi Gael,
your URL is made up of :
[ProcedureName]?[parameter1]=[value1]&[parameter2]=[value2]
creating URLs like this can have problems especially with spaces and punctuation.
the answer is a FORM
the following will create a hidden form :
FORM ACTION="[ProcedureName]" METHOD="POST" name="F1"
INPUT type="HIDDEN" name="[parameter1]" value="[value1]"
INPUT type="HIDDEN" name="[parameter2]" value="[value2]"
/FORM
you can set the values in the form using:
document.F1.[parameter1].value="abc123%%&&$$!";
document.F1.submit();
will submit the form and the PL/SQL procedure should receive the text as it was contained in the form.
the only characters that can now cause problems are :
" as it delimits the field.
' as it may cause problems in PL/SQL.
\ as it is a special character.
Regards Michael

Similar Messages

  • Can I pass parameters from a dashboard via a dashboard prompt and presentation variable to publisher report based on a data model with select statements in OBIEE 11g ?

    I have a publisher 11g (v 11.1.1.7)  report with a single parameter. The report is based on a data model not a subject area.  I created a dashboard put a dashboard prompt and link to the report in separate section on the same page.  The dashboard prompt sets a presentation variable named the same as the parameter in the report. 
    The problem was when I created the dashboard prompt, it forced me to select a subject area which I did (though did not want to) and then I created both a column and variable prompts. But clicking on the
    report link completely ignored the value that I thought would be passed in the presentation variable to the report.
    Side note :  My report uses a pdf template for its layout where I have mapped the columns names from my data model to the form fields on the pdf form.  I noticed that if I create a publisher report based on a subject area, then I do not have the choice to choose a PDF as a template type for my layout.  (I only see BI Publisher Template as a choice). 
    I see some documentation online that suggest it could be done in 10g.
    Thanks
    M. Jamal

    Ok,
    I just tried that and it still doesn't pass anything to the prompt.
    I changed the prompt to an edit field and I made the following weblink but when i click the link from an account it doesn't put anything in the prompt and all data for all accounts is shown.
    This is the URL maybe I messed something up...
    https://secure-ausomx###.crmondemand.com/OnDemand/user/Dashboard?OMTHD=ShowDashboard&OMTGT=ReportIFrame&SelDashboardFrm.Dashboard Type=%2fshared%2fCompany_########_Shared_Folder%2f_portal%2f360+Report&Option=rfd&Action=Navigate&P0=1&P1=eq&P2=Account."Account Name"&P3=%%%Name%%%
    thanks

  • How to pass a single quote in a URL using Javascript

    Can someone tell me how to pass a single quote in a URL using Javascript. I have created a Javascript funciton in which I pass several column values from an APEX report.
    The URL for the report link I am using is "JAVASCRIPT:passBack('#EMP_ID#','#Name#','#e-mail#')"
    The problem occurs with the Name and e-mail columns contain a single quote (i.e. James O'Brien)

    Thank you Saad, that worked.
    Since I built the report using type 'SQL Query (PL/SQL function fody returning SQL query)' I had to add some additional quotes to get it to work.
    i.e.
    replace(EMP_EMAIL_NAME,'''''''',''\'''''')
    or
    replace(EMP_EMAIL_NAME,chr(39),''\'''''')
    Thanks for the help,
    Jason

  • Run XML Publisher Report  via URL (like Oracle Reports)

    Hi All,
    Is it possible to run xml-publisher report via URL?
    In Oracle Reports works this fine:
    http://test:7777/reports/rwservlet?server=test_bihome1&report=test1.rdf&userid=test/testv@db&desformat=pdf&destype=cache
    We need this for public reports without user login.
    Thanks
    Thomas

    Thomas,
    I was waiting to get home before Tim replied... He got the better of me this time :-)
    You say you want to let your users run reports using XMLP just by clicking on an URL same way you do with reports and without having to login. If I got the question right and assuming that:
    1.Your company is not overly concerned on who runs what reports
    2.Who sees what data
    3.Your XMLP installation is on your intranet and firewalled from the outside
    What you can do is:
    On the main page of your XMLP Enterprise installation you should see a folder called "Guest". Any report you create under this folder is run as user "guest" which means you don't have to authenticate yourself as you would normally do.
    I have tested this on my home server and this is what I've done:
    1.Logged in as admin or any other user you've created with admin privileges created a report under the "Guest" folder.
    2.Copied the URL, on my server it is "http://samba.private.net:15101/xmlpserver/Guest/People/People.xdo"
    4.Logged off as admin and pasted the URL to a new browser window
    5.Hit return and Voila, my report runs without the need to login to XMLP.
    Hope this helps. Let us know how you got on.
    Cheers,
    Joao
    PS: If you want to see the report for yourself here's the URL from the outside: http://medeiros.homelinux.net:15101/xmlpserver/Guest/People/People.xdo
    I'll keep the link alive for a couple of days.

  • Printing a report via URL

    Hey,
    is there any chance to get a report printout via an url call? We can get our reports via url as pdf, html, rtf and so on. In my mind there is no chance for a printout or perhaps email via url?
    I tested the delivery API as second way without some good results.
    thanks for help and ideas

    Hi Gael,
    your URL is made up of :
    [ProcedureName]?[parameter1]=[value1]&[parameter2]=[value2]
    creating URLs like this can have problems especially with spaces and punctuation.
    the answer is a FORM
    the following will create a hidden form :
    FORM ACTION="[ProcedureName]" METHOD="POST" name="F1"
    INPUT type="HIDDEN" name="[parameter1]" value="[value1]"
    INPUT type="HIDDEN" name="[parameter2]" value="[value2]"
    /FORM
    you can set the values in the form using:
    document.F1.[parameter1].value="abc123%%&&$$!";
    document.F1.submit();
    will submit the form and the PL/SQL procedure should receive the text as it was contained in the form.
    the only characters that can now cause problems are :
    " as it delimits the field.
    ' as it may cause problems in PL/SQL.
    \ as it is a special character.
    Regards Michael

  • Pass parameters to a report

    Hi all,
    I would like to know how to pass parameters to a report to filter the data from an external application, for example a Oracle ADF app.
    Thanks,
    Jhon
    BI PUB 11.1.1.7

    hello arjhay,
    webelements 2.3 will not work seemlessly, unfortunately, with xir3.
    in xir3 the dhtml viewer has changes in it that are more web 2.0.
    things that will not work and are deprecated for webelements & xir3 are the functions in WEViewer. this is due to the toolbar in the new viewer being a widget as opposed to a set of divs. however, opendocument for xir3 will allow one to switch off the toolbar using an opendocument paramter and will also allow one to switch off the new style tab bar.
    the new dhtml viewer also does not encase report fields & functions etc. within a form tag. many webelements controls require a form so the new design for xir3 will be to put a new WEFormStart at the top of each report using webelements. what this does is basically start a form in the viewer and allow the controls to function properly.
    so in summary there are 2 changes for xir3:
    a) each report using webelements must have a WEFormStart function added to the beginning of the report
    b) references to WEViewer must be removed from reports that are used in xir3
    there will be a new 2.4 function suite out in several weeks and this will contain the new WEFormStart as well as other syntax changes to allow reports to work in xir3.
    jw

  • Passing parameters from portlet reports to portlet forms

    Hi,
    I'm tring to pass parameters between a Report displayed as a portlet in a page ( page 1) and a form displayed in other page ( page 2).
    The problem is i can't do this.
    I only can pass parameters from a report ( running as normal or in a portlet displayed in a page) to a form running "normal" by using application links. Can i do this between a report that show's me every employees of scott.emp table. Then when i click on each employee, it open's me another page with the portlet form of the specified employee.
    I'm not sure i made myself clear. Please send me some feedback.
    Pedro

    I have the same problem. Please let me know if this could be done.
    In particular my form is a type of "Form on Table/View."
    Thanks
    Henry

  • Passing Parameters to RDF Reports with Parameter_list in Forms9i

    Hi,
    I am trying the Oracle 9iDS, and I encounter a problem.
    When passing parameters to my reports, if my parameter contains the space or other special char, I cannot run the report. It give me the REP-56033.
    For example, it's my code:
    add_parameter(pl_id,TEXT_PARAMETER,' and deptno=56');
    Then, when I run the form. It cannot run the reports. In rwservlet/showjobs, I cannot see this job.
    And If I change the code to
    add_parameter(pl_id,TEXT_PARAMETER,'anddeptno=56');
    Of course I cannot get a correct output, but I use the rwservlet/showjobs to get this failed job.
    Any one can give me a hand. Thanks!

    Of course I use run_report_object. I can run my other report successfully.
    Just these report with special char parameter. I can not call them.
    And I can search out there are some questions about this problem in the forum. But they all arenot get the answer.
    Please help me.
    Anyone can try to run your report, or run the test.rdf, which is the demo given by oracle, with a paramters containing a space, such as ' aaa bbb'. You will find that the report cannot run. Even in the showjobs, u cannot find it!!!!
    Please!!!

  • Passing parameters to QBE Reports?

    I currently have an SQL Report that I filter dynamically with parameters from the page. I would like to be able to use this same functionality with a QBE Report that the client can more easily specify.
    Is it possible to pass parameters to QBE Reports? If so, how?
    Thanks,
    Mark

    As Chetan has correctly suggested, it will be better to use a table to store
    the emp no and their pin against their login session ids.
    You can have a table as :-
    create table emp_pin (
    session_id integer,
    emp_no integer,
    emp_pin integer,
    constraint emp_pin_fk1 foreign key (session_id) references <portal_schema>.wwctx_sso_session$(id) on delete cascade
    When a user logs into portal, a session_id is created and this session_id is
    deleted when the user logs out. The delete cascade rule will clean up your
    table entry when the user logs out.
    You can get this session_id using the <portal_schema>.wwctx_api.get_sessionid function.
    Now you need to create 2 functions that would return the emp_no and emp_pin.
    You can then use these functions in the sql query of your reports. This way you
    need not use bind variables at all.
    Example:-
    create or replace function get_empno(p_sess_id in integer)
    return varchar2
    is
    l_empno varchar2(2000);
    begin
    select emp_no
    into l_empno
    where session_id = p_sess_id;
    return l_empno;
    end;
    create or replace function get_emp_pin(p_sess_id in integer)
    return varchar2
    is
    l_emp_pin varchar2(2000);
    begin
    select emp_pin
    into l_emp_pin
    where session_id = p_sess_id;
    return l_emp_pin;
    end;
    Now, these functions can be used in SQL query of your reports as :-
    select <col1>, <col2>, <col3>
    from <table>
    where empno = get_empno(<portal_schema>.wwctx_api.get_sessionid)
    and emp_pin = get_emp_pin(<portal_schema>.wwctx_api.get_sessionid)
    and ....
    In a form, you can use these functions to set the default values of the empno,
    emp_pin fields.

  • PASSING PARAMETERS TO CRYSTAL REPORTS THRU FORMS!

    Hi! all,
    Is there someone who passed parameters to crystal reports from
    forms 5.0?
    The problem is when I call the report executable from the form,
    its giving a login prompt again which is not desirable as @ this
    stage the user has already logged in once. So is there a way to
    pass this as a parameter to crystal or may be any better way???
    Thanx for the solution,
    Hima
    null

    First make sure you are on SP 3:
    https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe
    SP 3 msi     
    https://smpdl.sap-ag.de/~sapidp/012002523100007123592010E/cr2008sp3_redist.zip
    SP 3 msm     
    https://smpdl.sap-ag.de/~sapidp/012002523100007123582010E/cr2008sp3_mm.zip
    Have a look at [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23]
    (The above does apply to your version of CR also)
    Have a look at the samples:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    And look at the Developer Help file:
    http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm
    And don't forget to use the search box at the top right corner of this web page. It will bring up KBases, blogs, wikis, articles and more. Searching these forums is also a good idea.
    - Ludek

  • OBIEE 11G - Issue passing parameters between two reports

    Hi folks,
    I am struggling to pass parameters between two reports in OBIEE 11G.
    My first report contains the following columns: Rolling Year Type (VCHAR), Year(VCHAR), Month(VCHAR), Cost(Double).
    My second report contains the following columns: Rolling Year Type(VCHAR), Year(VCHAR), Month(VCHAR), Category(VCHAR), Cost(Double).
    My requirement is to pass the Rolling Year Type, Year and Month values from report 1 to report 2.
    On the Month column properties of report 1, I have created an Action Link called 'Drill to Category'. I have clicked on 'Navigate to BI Content' and selected Report 2.
    Then on Report 2, I have included three filters: Rolling Year Type is prompted, Year is prompted, Month is promted.
    When I run the report I always get the following error:
    The specified criteria didn't result in any data. This is often caused by applying filters and/or selections that are too restrictive or that contain incorrect values. Please check your Analysis Filters and try again. The filters currently being applied are shown below.
    When I check the cursor cache, the filter values are correct. Does anybody have any idea why Report 2 does not display?
    When I remove the Month filter, the report works correctly.
    I have since changed the third filter to be Month No and although Report 2 does display, it does not pick up the filter on the Month No.
    I initially thought this may have been a caching issue and so I have disabled BI Server Cache but this does not fix my problem.
    This was never an issue on OBIEE 10G as I found it very easy to navigate between two requests.
    Has anyone else experienced problems with passing parameters between two request in 11G?
    Any help appreciated.
    Thanks
    Gavin

    Hi,
    I once tried this kind of requirement(with dashboard prompts though) and hit at similar issue. I later found out that the problem is with the space in the parameter values. Can you please let me know, if the same is the case with you?
    Suppose the parameter passed is "Jan 2010", but the report on the destination takes the value as "Jan" & "2010". Yes, it kind of split the parameter value to two based on space. I think we can notice the filters the destination report got, by enabling filter view.
    In this case, since you pass only value at a time, could you try placing the parameter value anyway in double quotes? I think the Server then will understand it as one value.
    Thank you,
    Dhar

  • How do I pass parameters to a report thru Report Viewer?

    hi,
    I am moving from Crystal Reports 8.5 to XI in VB6.
    How do I pass parameters to a report thru Report Viewer?
    Old VB code:
    crReport.ParameterFields(0) = "FrProp;" & Trim$(.FrProp) & ";TRUE"
    crReport.ParameterFields(1) = "ThProp;" & Trim$(.ThProp) & ";TRUE"
    crReport.ParameterFields(2) = "RunDate;date(" & Format(Cntl.Run_Date, "yyyy,mm,dd") & ");TRUE"
    crReport.ParameterFields(3) = "FrDate;date(" & Format(.FrDate, "yyyy,mm,dd") & ");TRUE"
    crReport.ParameterFields(4) = "ThDate;date(" & Format(.ThDate, "yyyy,mm,dd") & ");TRUE"
    Bill todd

    Hi Bill,
    Download sample code from the following link:[https://boc.sdn.sap.com/codesamples] 
    Hope this helps!!
    Regards,
    Shweta

  • I accidentally saved a URL using Chrome and I'd like to delete it from the iPad. I reset privacy settings in Chrome, but it shows up in Mail, Notes, etc. How do I get rid of this thing? Thanks.

    I accidentally saved a URL using Chrome and I'd like to delete it from the iPad. I reset privacy settings in Chrome, but it shows up in Mail, Notes, etc. How do I get rid of this thing? Thanks.

    it's only possible with pop3 type email accounts not with imap and exchange
    preference->account->click the account in question-Click advanced and set "remove copy from server after retreiving a message to what you wish it to be

  • USING A PASSING PARAMETERS IN A REPORT

    I don't know how to use a passing parameter in Reports.
    I have a form in which i have a button with the following trigger WHEN-BUTTON-PRESSED :
    DECLARE
    p1_id ParamList ;
    BEGIN
    p1_id:=Create_Parameter_List('tmpdata');
    Add_Parameter(p1_id,'LOCATIA',TEXT_PARAMETER,:VLOCATIA);
    Run_Product(REPORTS,'c:\arhiva\rapstoc\incercare.rdf',SYNCHRONOUS,RUNTIME,FILESYSTEM,p1_id,NULL);
    END;
    I don't know how to use this passing parameter in my report. This report have a trigger in which I have to use this parameter.

    hello,
    create a user-parameter in your report and use the name you used in the ADD_PARAMETER command in forms.
    you can then access the parameter from inside your PLSQL logic in reports using the bind syntax (e.g. :myParameter)
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Pass parameters to a report instance, or filter an instance of a report

    Hi,
      I am using Web Elements as linked reports with no problems for on demand reports but I need to run an instance of a report and then use a web elements/opendocument link to a subset of that data.
    Basically I have a report on a college that drills down to campus and then course level.  If I have an on demand subreport (via web elements link) to a course, linking course code then it brings up the 20 or so students on that report on the fly - taking < 30 seconds. 
    The problem is that I need this at Campus level as well.  If I do it on the fly by linking on Campus instead of course, it times-out due to the large numbers of student records in the detail level. 
    If I change the link from the main report to point to the instance of the report I get all records, not just the campus I need (I get all campuses). 
    I then put in parameters to just select the required campus within the Instance of the report that is run for all campuses.   The Instance is created with Parameters set to wildcard values, so that the parameters are available to pass values.  I have also tried running the subreport without parameters, but it just displays all records and ignores parameters passed in (unsurprisingly).
    I have had other reports working with linked parameters before, but only to the .rpt report - not to an instance.  
    The report works, but again all reports are displayed because when I checked the parameters they are shown as wildcards, as used when creating the instance, NOT the parameters I am trying to pass to the instance.
    If I change the link to go to the Param Instance instead of the last instance (sInstance=Param), then I get an error because the report instance was created with wildcard parameters but the link has campus set, so there is no matching instance as far as Crystal is concerned.
    An approximation of the link used is below:
    http://...opendocument.aspx?sType=rpt&NAII=N&iDocID=1234&sInstance=Last&lsSAcadPeriod=07/08&lsSparamCampus=E
    I cannot simply run an instance of the report for each Campus as there is are additional  layers I have left out of this example for clarity (School, CampusType etc).
    I need a solution that either allows parameters to work with instances of reports, or filter records in instances of reports. 
    I hope I have explained this clearly enough - please let me know if not, or if you have any other questions.
    Many thanks in advance for any and all help.
    Geoff Langdon.

    hello arjhay,
    webelements 2.3 will not work seemlessly, unfortunately, with xir3.
    in xir3 the dhtml viewer has changes in it that are more web 2.0.
    things that will not work and are deprecated for webelements & xir3 are the functions in WEViewer. this is due to the toolbar in the new viewer being a widget as opposed to a set of divs. however, opendocument for xir3 will allow one to switch off the toolbar using an opendocument paramter and will also allow one to switch off the new style tab bar.
    the new dhtml viewer also does not encase report fields & functions etc. within a form tag. many webelements controls require a form so the new design for xir3 will be to put a new WEFormStart at the top of each report using webelements. what this does is basically start a form in the viewer and allow the controls to function properly.
    so in summary there are 2 changes for xir3:
    a) each report using webelements must have a WEFormStart function added to the beginning of the report
    b) references to WEViewer must be removed from reports that are used in xir3
    there will be a new 2.4 function suite out in several weeks and this will contain the new WEFormStart as well as other syntax changes to allow reports to work in xir3.
    jw

Maybe you are looking for