Passing comma "," to a report parameter using URL reporting
I have a simple report, which contains a string parameter. Everything work fine, except when I pass a string with "," in the parameter value.
I tryed the following url and both of them does not work, I also modify the report to display the pass-in prompt value and the string is cut off after the ","
Example 1:
http://.../crystalreportviewers115/viewrpt.aspx?id=42364&prompt0=ABC&apsauthtype=secEnterprise&apspassword=p1&apsuser=u1&viewer=actx
Output:
ABC shows up and the report run fine.
Example 2:
http://.../crystalreportviewers115/viewrpt.aspx?id=42364&prompt0=AB,C&apsauthtype=secEnterprise&apspassword=p1&apsuser=u1&viewer=actx
Output:
Only AB shows up and the report run with AB as the parameter's value.
Example 3:
http://.../crystalreportviewers115/viewrpt.aspx?id=42364&prompt0=AB%2CC&apsauthtype=secEnterprise&apspassword=p1&apsuser=u1&viewer=actx
Output:
Only AB shows up and the report run with AB as the parameter's value.
How do I pass the "," in the URL
Since you are using viewrpt.aspx (instead of opendocument), you would pass a comma using promptex instead of prompt
so an example url would be:
http://.../crystalreportviewers115/viewrpt.aspx?id=42364&promptex0="AB,C"&apsauthtype=secEnterprise&apspassword=p1&apsuser=u1&viewer=actx
Similar Messages
-
Passing variable values to a webtemplate using url
Hi all,
Is it possible to pass a variable value with a sign other than equal (i.e. variable value should exclude the entered value) via url.
thanks,
Tomer.Hi Yvanlathem,
Per my understanding that you want to use the expression above to conditional add the hyperlink to pass the value to the parameter of anpother rreport via the URL in the SharePoint integrated mode report server, right?
I have check the expression you have provided and the issue can be caused by the wrong way you have write the expression to pass the parameter, please check detais information below to make sure you have pass parameter in the URL correctly:
Please modify the expression to below structure :
=Iif( Parameters!PAR_LinksEnabled.Value="Enabled", "URL",Nothing)
I saw you have use expression like "&POS_ID=" & Parameters!CONNECTION_ID.Value & "" which is incorrect, we need to set a report parameter within a URL, use the following syntax:
parameter=value(not Value=Parameter)
If you are using the following syntax like "Parameter1=Parameter2", both parameters and from different report, if you have add the "Go to URL" action from report2 to Report1, please make sure Parameter1 is from the Report1
and Parameter2 is from Report2, change the order will not work
More detail information:
Pass a Report Parameter Within a URL
So, In your scenario, please make sure the value is from one report's field (POS_ID) and the the parameter(CONNECTION_ID) is from another report (e.g:"&CONNECTION_ID=" &Fields!POS_ID.Value &"")
Similar thread for your reference:
SSRS 2012 Drill Through report cascading Parameters not refreshing
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
How to pass value to select-option parameter using SET PARAMETER Command
Hi,
Am passing values to selection-screen fields in report RV13A004 ( used in VK11, VK12 and VK13). using below statement but material number is select-option in this report. am able to pass MATERIAL FROM using SET PARAMETER ID, can i know how to pass values MATERIAL TO range in select-options fields using SET PARAMETER Command ??
Passing values to parameter id
set parameter id 'VKS' field kschl.
set parameter id 'VKO' field vkorg.
set parameter id 'VTW' field vtweg.
set parameter id 'KDA' field erdat.
set parameter id 'MAT' field matnr_from.
Change condition price.
call transaction 'VK12' and skip first screen.
Thanks in advance.
Regards,
Balamurugan.Hi,
instead of using set parameters and dden call transaction use this..........
submit RV13A004 WITH SELECTION-TABLE rspar
Effect
If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
SELNAME (length 8),
KIND (length 1),
SIGN (length 1),
OPTION (length 2),
LOW (length 45),
HIGH (length 45).
To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.
Notes
In contrast to selection tables, the data types of the components LOW and HIGH in table rspar are always of type CHAR and are converted to the type of the parameter or selection criterion during transfer, if necessary.
When entering values, you must ensure that these are entered in the internal format of the ABAP values, and not in the output format of the screen display.
Cheers
Will. -
Passing parameter values to another report using URL actions (reportserver)
Hi guys,
I have two reports that I link with eachother. For report A - B everything works perfect. When I try to do the same for report B - A it works, but the parameter value is not filled in.
=Iif(
Parameters!PAR_LinksEnabled.Value,
Globals!ReportServerUrl & "?" & Replace(Globals!ReportServerUrl, "_vti_bin/ReportServer", "")
& "Reporting/POS Reporting/Reports/POS Report.rdl&POS_ID=" & Parameters!CONNECTION_ID.Value & "&POS_LANG=" & Parameters!POS_LANG.Value & "&PAR_Date=%5BDate invoice%5D.%5BBonus Calendar - Week%5D.%5BBonus
week of year%5D.%26%5B" & Left(Parameters!YEAR_WEEK.Label, 4) + "%5D%26%5B" & CInt(Right(Parameters!YEAR_WEEK.Label, 2)) & "%5D",
Nothing
Even tho I specify the parameter he has to pass through, the report opens with parameter period : <select a value>. Anyone has an idea why such behaviour happens?
Thanks!Hi Yvanlathem,
Per my understanding that you want to use the expression above to conditional add the hyperlink to pass the value to the parameter of anpother rreport via the URL in the SharePoint integrated mode report server, right?
I have check the expression you have provided and the issue can be caused by the wrong way you have write the expression to pass the parameter, please check detais information below to make sure you have pass parameter in the URL correctly:
Please modify the expression to below structure :
=Iif( Parameters!PAR_LinksEnabled.Value="Enabled", "URL",Nothing)
I saw you have use expression like "&POS_ID=" & Parameters!CONNECTION_ID.Value & "" which is incorrect, we need to set a report parameter within a URL, use the following syntax:
parameter=value(not Value=Parameter)
If you are using the following syntax like "Parameter1=Parameter2", both parameters and from different report, if you have add the "Go to URL" action from report2 to Report1, please make sure Parameter1 is from the Report1
and Parameter2 is from Report2, change the order will not work
More detail information:
Pass a Report Parameter Within a URL
So, In your scenario, please make sure the value is from one report's field (POS_ID) and the the parameter(CONNECTION_ID) is from another report (e.g:"&CONNECTION_ID=" &Fields!POS_ID.Value &"")
Similar thread for your reference:
SSRS 2012 Drill Through report cascading Parameters not refreshing
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
Passing parameter through url to report
Hi
I'm sorry if this question already exist anywhere in forum i didnt found it.
so my question is:
CAN I PASS PARAMETER VIA URL TO REPORT USING WEBFORM
i don have RAS(Because in beta version of 2008 is this not included)
I tried
http://localhost/CRWEB/Default.aspx?param0="value" ->here i'm prompt for value instead of showing report with set value
and
http://localhost/CRWEB/DocumentDoc.rpt?param0=krneki&init=html_page -> here i prompt to save rpt file
so But both doesnt work!
OR it is necessery to have RAS to pass parameters through url
thanks for quick answerURL reporting and RAS are not available with CR2008. To view reports over the web you will need to use the Crsytal Reports for .NET runtime engine inside a .NET app. This engine is licensed with CR 2008.
Rob Horne<br /><a href="/blog/10">Rob's blog - http://diamond.businessobjects.com/robhorne</a> -
How to pass the report parameters through java not by using URL
Hello...
I have an oracle App. Server 10g with report service
I can the report using the URL :
http://host:Port/rwservlet/report=....
and passing the report parameters ...
But is there any way to call the report by pdf format and passing the parameters from java without using the url ???thank you shahcsanjay for your reply
but I think that web.showDocument can not be used by ordinary java web application ..
I think it can be used only with with "oracle forms" Am I right ?
If no can you please tell me where can I find a useful document about how to use web.showDocument ...
thanks again
Saleem -
How to pass file name as parameter into url: or fo:external-graphic src
Hello gurus,
In my rtf I want to dynamically get the name of the image file and display the image in the report. If use hard coded image file name it works but if I try to get the name into a variable and pass that variable it is not working.
Basically my client is having different logos for each operating unit. in the OA_MEDIA directory there are separate logos for each OU. during run time based on OU name we need to display the corresponding image. If I can get this entire path($OA_MEDIA/logo.jpg') in XML field<?CF_OU_LOGO?> then I'm able to print the logo using url:{CF_OU_LOGO}
But I'm using seeded data source and I cant modify the data source, I need to handle this in RTF only. I could able to get the file name into a variable but not sure how to pass to url.
could some one help me on this. I tried the following options
<fo:external-graphic src="url($ln)" />
url:{$ln} in web etc...
here 'ln' is the variable which holds '$OA_MEDIA/logo.jpg'. ln is defined as <xsl:variable name="ln" select=".//CF_OPERATING_UNIT" />
later I set the values as <?xdoxslt:set_variable($_XDOCTX, 'ln',translate( concat('${OA_MEDIA}/','Logo',.//CF_OPERATING_UNIT,'.jpg'),' ',''))?><?xdoxslt:get_variable($_XDOCTX, 'ln')?>
thanks,
VijayVijay
What version of EBS is the customer running? I read somewhere that in R12 all of the concurrent parameters are passed to the XMLP template. I have not tried this but if true. You could create a conc program parameter that would hold the location of the image. You could either have the user pick the image or maybe derive it from the other parameter choices.
Lets assume the token name is DLOGO you can reference that in your template.
<?param:DLOGO?>
this needs to be at the top of the template. Then where you need to embed the image just reference the value using
$DLOGO
You can embed this in the external graphic field
As I mentioned I have not tested it yet, hopefully its there, if not there are ways around it. Try it first.
Tim -
How to pass date parameter in URL in system date format
Hi All,
I am working on a requirement where I need to pass the date parameter in URL. Where date format needs to be system default date format. How can we format date without providing specific date format.
Also, I got some post which had below example. Can you let me know what this format does.
'/analysis/report?queryGroupName=Custom-ProjectInfo&TimePeriodBeginning=', <%+%> FCI_CHARFMT(TIME_PERIOD_START_DATE),' <%+%>
'&TimePeriodBeginning_format=17&link_crumb=true'
Waiting for response.
Thanks,
SaloniHi,
If you're running this in SQL*Plus, you can use substitution variables.
If you have a file called my_query.sql, like this
select A.agent_no,
(a.first_name || A.agent_name) as agent_Name,
P.Policy_No,
D.Driver_No,
D.mvr_predict_score,
D.mvr_received
from policy P,
agent A,
Driver D
where D.request_mvr_hit = 'M'
AND D.mvr_predict_Score > 540
And D.request_mvr = 'D'
AND p.fullkey = d.fullkey
AND p.agent_no = a.agent_no
AND d.mvr_received >= TO_DATE ('&1', 'DD-Mon-YYYY') -- New
AND d.mvr_received < TO_DATE ('&2', 'DD-Mon-YYYY') + 1 -- New
order by a.agent_no,
CASE a.producer_type
when 'S' then 1
when 'C' then 2
when 'R' then 3
end
;Then you can run it from SQL*Plus by saying something like:
@my_query 1-Jan-2009 31-Dec-2009&1 in the script will be replace by the 1st argument (1-Jan-2009) and &2 will be replaced by the 2nd argument (31-Dec-2009).
Notice that the last condition adds 1 to the argument
AND d.mvr_received < TO_DATE ('&2', 'DD-Mon-YYYY') + 1 -- Newbut uses the < operator (not <=). The result is that if mvr_received is any time on the last day (e.g. 31-Dec-2009 11:59 pm) will be included. -
Post Author: ckwizard77
CA Forum: Crystal Reports
HELP!!
I have been knocking my head against a wall trying to figure out how to pass multiple values to 1 parameter and how to add it to the parameter collection. I have code so if I pass single values for each parameter it works fine. I am passing the parmeters and values in a pipe delimited string through a url where it gets parsed and pass in here.
Any help would be greatly appreciated.
Here is the single param code:
Public Sub SetParamValues(ReportName, strParamName, ParamValue) Dim i,reportInterface, ParamName,strSubReprotName,CurrentValues Set reportInterface = reportObject.PluginInterface("") Set reportParameters = result.Item(1).PluginInterface("Report").ReportParameters For i=1 to reportParameters.Count if ReportName <>"" then strSubReprotName=reportInterface.ReportParameters.Item(i).ReportName if strSubReprotName=ReportName then ParamName = reportInterface.ReportParameters.Item(i).ParameterName if ucase(ParamName)=Ucase(strParamName) then Set CurrentValues = reportInterface.ReportParameters.Item(i).CurrentValues CurrentValues.Clear() Dim newSingleParameter Set newSingleParameter = ReportInterface.ReportParameters.Item(i).CreateSingleValue newSingleParameter.Value = ParamValue reportInterface.ReportParameters.Item(i).CurrentValues.Add newSingleParameter reportInterface.ReportParameters.Item(i).PromptOnDemandViewing=false iStore.Commit result End if End if Else ParamName = reportInterface.ReportParameters.Item(i).ParameterName Set param1 = reportInterface.ReportParameters.Item(i) if Ucase(ParamName)=UCase(strParamName) then Set CurrentValues = reportInterface.ReportParameters.Item(i).CurrentValues CurrentValues.Clear() Set newSingleParameter = ReportInterface.ReportParameters.Item(i).CreateSingleValue newSingleParameter.Value = ParamValue reportInterface.ReportParameters.Item(i).CurrentValues.Add newSingleParameter reportInterface.ReportParameters.Item(i).PromptOnDemandViewing=false iStore.Commit result End if End if NextEnd SubThat Makes sense.
thanks a lot !
Well now are at it, mind if I ask you another quick question:
If I make an option in the multiselect list called ALL which should return all the results:
as should act like this
select * from dept;
you solution was:
select * from dept
where INSTR(':'||:P1_EMPNO||':', ':'||empno ||':') > 0
Can I modify this to return all the rows ? -
Passing Value from Crystal Report (special function) to Business View parameter
Friends,
Í have a scenario where i need to pass value from Crystal Report to a Business view's parameter.
Eg : CurrentCEUsername (func in crystal report)-- gives login user which i should pass to parameter in a Business view (used in the same report).
Will be able to explain more if required.
Thanks in Advance,
BharathI guess you got the picture wrong. User_id is not a report_level parameter .
In Data Foundation, below query is used..
select Acc_Number, Account_Group,User_id from Accounts where user_id={?User_id}
where in {?User_id} is the BV parameter...
The Filter was a solution. But it takes long time to Query all the data from DB and then filter at BV level.
How do i pass the CurrentCEUsername to {?User_id}
Value should ve CurrentCEusername always. so that query will be
select Acc_Number, Account_Group,User_id from Accounts where user_id=CurrentCEusername
It will restrict the data pulled from DB to BV .. right? -
Open BI Publisher report using URL View activity
Hi,
i need to call BI Publisher report and I want to use URL View activity (i followed instruction on http://oraclebizint.wordpress.com/2007/07/30/customizing-obi-ee-%e2%80%93-go-url-parameters/ but i can't have HTML Form inside af:form)
But parameters on URL View activity are visible and i have to send username and pass..
Is there another way?
Tnx.
AndrejaYes, I can put HTML form at top or bottom of page but i wanted to put in panelCollection (because of page design)....
but I will think out something to look nicely too :)
Tnx -
Passing rendering format and report parameters in the URL to call a report - SSRS 2012
Hi,
I've a SSRS 2012 with the integer and multivalue Creation_Years parameter that I need to call directly to export data in the Excel format.
I've tried to use this URL:
http://reportserv/Reports/Pages/Report.aspx?ItemPath=%2fInsurance%2fInstallations_Excel&rs:Format=excel&Creation_Years=2014 but the parameter is required in an interactive manner.
I've tried to set the hidden property for the parameter, I've tried to invert the position of the "rs:Format=excel" string with the "Creation_Years=2014", but the error message doesn't change. Also if I specify the 2015 year, the parameter
isn't overwritten with the 2015 value.
Any helps to me, please? ThanksOk, thanks, I note that you have added "rs:Command=Render": looking to the official documentation this string seems optional.
Your url functions but the parameter cannot be a multivalue one. Do you confirm this?
Thanks
If you want to sent value for multi valued parameter through URL you need to repeat it
ie like this
http://reportserv/ReportServer/Pages/ReportViewer.aspx?%2fInsurance2fInstallations_Excel&rs:Command=Render&rs:Format=excel&Creation_Years=2014&Creation_Years=2015&Creation_Years=2016...
also see
https://msdn.microsoft.com/en-us/library/ms155391.aspx
If parameter value itself has characetrs like & in it you need to escape them first using javascript
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
How to passing multiple values for a parameter of discoverer(url parameters
Hi All,
I am trying to pass multiple values for a parameter of disco report. I am trying to include my url for discoverer viewer report. the values has the following
'jeff,mark'
'sfophiee,angela'
Thanks and Regards
VenkatHello Venkat,
I know there are some problems with 10.1.2.0.2, maybe if you haven't done yet you can try with 10.1.2.2, assuming this version should be working for multiple parameter values :
OracleAS Discoverer 10.1.2.2 is installed with the following patch :
Patch 4960210 PLACEHOLDER BUG FOR AS/DS 10G R2 PATCH SET 2 10.1.2.2
So, once installed you can try adding your parameter as param_<parameter_name>='sfophiee,angela'
Hope this helps, otherwise feel free to log a Service Request to Support.
Best Regards,
Gianluca -
Pass tablespace(s) as a parameter to RMAN using batch file (windows2000)
I want to make a backup of one or more than one tablespaces.
For Example:
Backup tablespace USERS,TOOLS;
Backup tablespace USERS;
In this regards I am using windows batch file. Below you find the code of batch file which I am using to perform this operation (windows 2000)
Batch file (c:\rman.cmd)
set tbs1=%1
set tbs2=,%2
if exist tbs1 == goto usage
if exist tbs2 == goto usage
echo BACKUP tablespace %tbs1% %tbs2% ; > c:\temp\tbs.rman
rman TARGET / @ c:\temp\tbs.rman
Problem
I run this batch file on command line .
When I issue this command its ok and backed up both the tablespaces.
Host @c:\rman.cmd USERS,TOOLS
But when I want to backup only one tablespace and issue the command like that:
Host @c:\rman.cmd USERS
It gave the following error
BACKUP tablespace users , ;
Found comma after first tablespace.
Point of focus
How to get rid of the comma after first tablespace on run time, when I want to backup only one tablespace.
BACKUP tablespace users , ;
How to avoid that comma on run time when I only want to make a backup of single tablespace.
Please check this matter it is only the batch file side problem.
With Best Regards
Fawad AhmedI am not expert is DOS but I think you can fix this with
a simple programming logic elements in the script.
You have 2 cases:
1 case ) When you have only one parameter
2 case ) When you have more or equal than two parameters
if exist tbs1 == goto mark1
if exist tbs2 == goto mark2
mark2:
echo BACKUP tablespace %tbs1% %tbs2% ; > c:\temp\tbs.rman
goto end
mark1:
echo BACKUP tablespace %tbs1% ; > c:\temp\tbs.rman
goto end
end:
rman TARGET / @ c:\temp\tbs.rman
This can be one the case for 1 or 2 parameters . If
you think to pass more parameters you have to use
another logic.
I hope this can help you!
Joel P�rez -
How to pass presentation variable in column Fx using GO URL
Hi All,
I want to show a download link directly using go url .
In my dashboard prompt i am using some presentation variable .
those variables i am using in the report's column formula .
When i am applyning the prompt that it is not applying in the column Fx. so when i download the excell it shows same data for all the option choosen.
If anybody knows the syntax please help.
Thanks ...Hi,
Like this you can pass presentation variables to the columns using Go URL
'<a href=saw.dll?Dashboard&PortalPath=/shared/Test/_portal/Test%20KPIs&Page=Page1&Action=Navigate&col1="Dim%20Country"."Country%20Name"&val1='||'@{PV_Contry'||'>'||'Country'||'<\a>'
Please use backslash in anchor tag end. Since here it is not accepting I am using forward slash.
Thanks
Vino
Maybe you are looking for
-
Java 1.4.2 hang on intel-Solaris
We are using several machines to build and for some reason, javac 1.4.2 is hanging today (I'm not aware of any changes that would affect this) on intel-Sol. 1.5 seems to work ok (but a little slow). Here's the truss... 1408/1: lwp_cond_wait(0x0807124
-
No more audio out on my Mac Pro!
Abruptly, my Mac's line out jack (and internal speaker) has stopped making sound! An external Firewire audio interface works just fine. Things I've tried: *Restarting the computer *Unplugging the jack that I had permanently connected from the line ou
-
Hi I want to find count of each vowel in a string using SQL query. Not using Pl/Sql. Cheers Ram Kanala
-
Why does my replacement iPod nano 7th gen not sync?
I've just got a replacement iPod nano 7th gen after my last one was faulty (suddenly having white screens etc) - exact same model type. I've charged it, and when I put the new replacement iPod in the computer it makes the regular sound to let me know
-
I have just got an iPad and I want the music to be transferred through my iPod touch using iCloud but I didn't get the music from iTunes so I don't think it will let me do it. Do you have any tips that could help me?