Pass blank value to a parameter
Hello Experts
I am using Crystal Reports 2008 with SAP BW as a data source.
SAP query has a string parameter created in it, and I want to apply condition on that parameter.
If user enters a value which is not in that parameter (field) then report should display all the values.
I tried writing the formula in record selection however not getting desired results.
Any help would be highly appreciated.
Thanks
Sumit
Hi Sumit,
The problem is until CR runs the report it doesn't know what is in the database so it doesn't know it's not a valid value.
I don't know BW but I would think you have to do this Server side and test the value in it's SQL or what ever it uses and have the query do the "if not.. then... logic.
Another option may be a List Of Values, CR Parameter. It runs the SQL to populate a list for the user to select from so they can't select an invalid value. Then you may be able to link the CR Parameter to the BW parameter or you may have to remove the Parameter from your BW query and let CR filter client side or if the BW will accept a CR Parameter to filter server side.
You may want to post your question to the SAP Integration Kit forum also.
Thank you
Don
Similar Messages
-
Passing a value to a Parameter Field From a VB Form
Post Author: as1971
CA Forum: General
Hello everyone
I'm using Visual Basic 6.0 and Crystal Report 9.0
I built a report using Crystal Report and named it Player_Statement.rpt. I then included it to my VB project and named it Player_Statement.Dsr
In this report I have a Parameter Field called P_Player_ID which I'm using in Record Selection Formula.
I'm using the following code to pass a value to the parameter:
Dim Report As CRAXDRT.ReportSet Report = New Player_StatementReport.ParameterFields.GetItemByName("P_Player_ID").AddCurrentValue CLng(cmbPlayerNB.BoundText)
When I execute the application I get the error message "The value or range you are adding has already existed" at the last line of code (Where I'm assigning the parameter a value)
Could anybody help me pleasePost Author: VinoTinto
CA Forum: General
Dim Report As CRAXDRT.ReportSet Report = New Player_StatementReport.GetItemByName("P_Player_ID").ClearCurrentValueAndRange Report.ParameterFields.GetItemByName("P_Player_ID").AddCurrentValue = CLng(cmbPlayerNB.Boundtext) -
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 -
Passing a value for date parameter from Oracle Forms to BIP
Hi
I have created a report with the following SQL query:
select
d_tables.d_seq,
to_date(d_tables.d_created) creation_date,
d_tables.d_created_by created_by,
d_tables.d_pk,
d_tables.table_name,
d_tables.comments
from
d_tables, d_applications
where
d_tables.d_ppk = d_applications.d_pk
and to_date(d_tables.d_created) >= nvl(:P_CRE_DATE_FROM, to_date(d_tables.d_created))
and to_date(d_tables.d_created) <= nvl(:P_CRE_DATE_TO, to_date(d_tables.d_created))
The parameters P_CRE_DATE_FROM and P_CRE_DATE_TO have been set up as date in BI Publisher with format dd-MMM-yyyy
The report works fine when launched in BI Publisher.
I want to call this report from Oracle Forms and I'm trying to pass the values for both the parameters. However, the report does not generate output based on values passed.
Does it have to do with datatype? Does anyone know a solution for this?
Kind regards,
AparnaThanks for your suggestion. I am already referring to the whitepaper and have integrated Forms with BI Publisher. The parameter passing is working fine for a varchar2 type of parameter. However, for a date type, there seems to be some problem.
-
Passing multiple values to a parameter in report
Can anyone help me how to pass multiple parameters to a parameter in my report.
As user is able to select multiple values from list of values , can I pass the selected values to calling function.
Suppose if User selects Value1,Value2,Value3 from list of values of a parameter P_Org,
I need to pass all these values to parameter P_Org in my Before Trigger Function in Discoverer reproting tool.
Thanks in advanceI have a Before trigger Function to which the parameters will be passed.
Suppose if User selects multiple values for a parameter then how to pass these multiple Values to that parameter?
eg:In first Workbook Before Trigger is fired and the paramters for the trigger are
'par1','par2','par3' etc.
If User selects multiple values for a parameter 'par1' from the list of values displayed then how to pass all these values to 'par1' in Function?
After firing the trigger rows are inserted in a temp_table .My second Workbook will
fetch the rows inserted in this Temp Table.
I hope u understood what my requirement is...
Thanks in advance -
Passing multiple values in a parameter through IN operator
hello everyone,
i want to know wheather it is possible to pass multiple values to a report parameter and use the parameter in the query with the IN operator.
I feel this should be possible but dont know the way.
Pls helpi have also suffered from this problem. you can solve it by creating a table like
create table abc
id number,
value number;
then follow the steps.
1) insert all the values in this table by incrementing id and values
2) then pass lowest id and larget id to the report
3) now in report use the select statement like
SELECT * FROM AAA WHERE ABC IN (SELECT VALUE FROM ABC WHERE ID BETWEEN V_MAX AND V_MIN)
4) IN THE REPORT'S AFTER TRIGGER, YOU HAVE TO DELETE
THESE TEMPORARILY CREATED ROWS
LIKE
DELETE ABC
WHERE ID BETWEEN V_MAX AND V_MIN;
SO THIS WILL SOLVE YOUR PROBLEM. -
Passing range-value into a parameter of a subreport
Hello all
I've a problem with passing a formula into a parameter of the subreport.
I'm using a SAP BW query with a data range parameter. So I have to provide a range value first for executing this query.
I'd like to execute the query with a data range between the last two weeks. For this purpose if created a formula with following code:
[dateadd('d',-14,currentdate),currentdate]
This means, the result is an array. And exactly this is the problem. Because Crystal Reports doesn't support an array as a result of a formula.
Is there an other possibility for passing the array/data range to the parameter in the subreport?
I'm using Crystal Reports for enterprise (v.14.0.2).
Kind regards,
GregThanks, kglad. I was wondering about that. I thought that
putting a variable data type of :Number would have made it a
number, but I never got an error in the debugger so I thought it
was ok. I traced the data type and figured out it was actually a
string and changed the line like follows which turned the string to
an integer and made it work:
var image01ClosedPosition:Number =
parseInt(RootNode1.attributes.imageChangeX); -
SSRS How to pass a value for Hidden parameter ?
Hello,
I have a SSRS report deployed on the Report server. This report is having an "Hidden" parameter.
Could someone please guide me, how to pass the value to this internal parameter in each of the following case -
1. Report is accessed through a Desktop application/Web application in Report Viewer.
2. Report is accessed through the Url.
3. Report is accessed through the Report Manager.
Any quick help on this is highly appreciated.
Thanks!
-Vinay Pugalia
If a post answers your question, please click "Mark As Answer" on that post or
"Vote as Helpful".
Web : Inkey Solutions
Blog : My Blog
Email : Vinay PugaliaHi Vinay Pugalia,
Internal Parameters in SSRS are parameters that are not configurable by the end-user at run-time and values cannot be passed to this type of parameter (when present in the child report) in case of a drill-through report implementation. This
type of parameter is read-only and not accessible in parent report.
This varies from a Hidden Parameter, which the user is not prompted to provide, but can still be configured through the URL to the report server.
So no matter you access the report through report manager, URL or Report Viewer. The passing value to the internal parameter will not work.
As you have mentioned that I will also suggest you use the hidden parameter instead.
More details information in this blog for your reference:
SSRS – Understanding Report Parameter Visibility
How to pass value to hide parameter is the same as that of the visible parameter, similar thread for your reference:
Passing the value in action property of a text box
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
If you have any feedback on our support, please click
here.
Vicky Liu
TechNet Community Support -
How can I pass empty value in URL Parameter
Hi,
I am passing different URL parameters to one page, to filter
the recordset on that page. How can I pass an empty value in the
URL parameter so that the recordset in unfiltered?
The URL parameter is based on one field of the database:
ContentType. So, the link would be to
default.asp?ContentType=Event
and then all records that have the ContentType field in the
DB as Event are displayed. Is it possible to use this system to
pass an empty parameter so that all records are displayed?
Thanks
Ian?ContentType=All
<% if (ContentType == "All")
Build recordset w/o filtering
ASP is rusty, but those are the basics.
"iandobie" <[email protected]> wrote in
message
news:e8im80$q7m$[email protected]..
> Hi,
> I am passing different URL parameters to one page, to
filter the recordset
> on
> that page. How can I pass an empty value in the URL
parameter so that the
> recordset in unfiltered?
> The URL parameter is based on one field of the database:
ContentType. So,
> the
> link would be to
> default.asp?ContentType=Event
> and then all records that have the ContentType field in
the DB as Event
> are
> displayed. Is it possible to use this system to pass an
empty parameter so
> that
> all records are displayed?
> Thanks
> Ian
> -
Pass multiple values with IN parameter in stored procedure
CREATE TABLE VTEST_INSERT (
MY_ID NUMBER,
COLUMN1 VARCHAR2(50)
--SELECT * FROM VTEST_INSERT;
INSERT INTO VTEST_INSERT (MY_ID,COLUMN1) VALUES (1,'TEST1');
INSERT INTO VTEST_INSERT (MY_ID,COLUMN1) VALUES (2,'TEST2');
INSERT INTO VTEST_INSERT (MY_ID,COLUMN1) VALUES (3,'TEST3');
INSERT INTO VTEST_INSERT (MY_ID,COLUMN1) VALUES (4,'TEST4');
INSERT INTO VTEST_INSERT (MY_ID,COLUMN1) VALUES (5,'TEST5');
INSERT INTO VTEST_INSERT (MY_ID,COLUMN1) VALUES (1,'TEST6');
INSERT INTO VTEST_INSERT (MY_ID,COLUMN1) VALUES (2,'TEST7');
INSERT INTO VTEST_INSERT (MY_ID,COLUMN1) VALUES (3,'TEST8');
INSERT INTO VTEST_INSERT (MY_ID,COLUMN1) VALUES (4,'TEST9');
INSERT INTO VTEST_INSERT (MY_ID,COLUMN1) VALUES (5,'TEST10');
CREATE OR REPLACE
PROCEDURE VTEST_INSERT_SP(vid IN VARCHAR2,vname IN VARCHAR2)
AS
BEGIN
DELETE FROM VTEST_INSERT WHERE MY_ID IN (vid);
INSERT INTO VTEST_INSERT (MY_ID,COLUMN1) VALUES (vid,vname);
END;
EXEC VTEST_INSERT_SP(1,'TEST999');
This all works fine above. But I want to be able to pass in multiple vname values. so something like:
EXEC VTEST_INSERT_SP(1,'TEST999','TEST888','TEST777');
all help appreciated. thank you.
This would do multiple inserts each with the same vid and the different vname values.Try something like this
SET SQLBLANKLINES ON;
ALTER SESSION SET PLSQL_WARNINGS='ENABLE:ALL';
DROP TABLE vtest_insert;
CREATE TABLE vtest_insert(vid NUMBER, vname VARCHAR2(20));
INSERT ALL
INTO vtest_insert(vid, vname) VALUES(1, 'aaaa')
INTO vtest_insert(vid, vname) VALUES(1, 'bb')
INTO vtest_insert(vid, vname) VALUES(1, 'cccccc')
INTO vtest_insert(vid, vname) VALUES(2, 'ddd')
INTO vtest_insert(vid, vname) VALUES(2, 'ee')
SELECT * FROM "PUBLIC".dual;
SELECT * FROM vtest_insert;
CREATE OR REPLACE TYPE vnames_tab_ty IS TABLE OF VARCHAR2(20)
SHOW ERRORS;
CREATE OR REPLACE PROCEDURE vtest_insert_sp
p_vid IN vtest_insert.vid%TYPE,
p_vnames IN vnames_tab_ty
AUTHID DEFINER
IS
BEGIN
DELETE FROM vtest_insert WHERE vid = p_vid;
FORALL idx IN p_vnames.FIRST .. p_vnames.LAST
INSERT INTO vtest_insert(vid, vname) VALUES(p_vid, p_vnames(idx));
END vtest_insert_sp;
SHOW ERRORS;
<<bk>>
DECLARE
vnames vnames_tab_ty;
vid vtest_insert.vid%TYPE;
BEGIN
bk.vid := 1;
bk.vnames := vnames_tab_ty('vn-01', 'vn-02', 'vn-03');
vtest_insert_sp(p_vid=>bk.vid, p_vnames=>bk.vnames);
COMMIT;
bk.vid := 2;
bk.vnames := vnames_tab_ty('vn-04', 'vn-05', 'vn-06', 'vn-07');
vtest_insert_sp(p_vid=>bk.vid, p_vnames=>bk.vnames);
COMMIT;
END;
SELECT * FROM vtest_insert;
Which produces the following output
Table created.
5 rows created.
VID VNAME
1 aaaa
1 bb
1 cccccc
2 ddd
2 ee
Type created.
No errors.
Procedure created.
No errors.
PL/SQL procedure successfully completed.
VID VNAME
1 vn-01
1 vn-02
1 vn-03
2 vn-04
2 vn-05
2 vn-06
2 vn-07
7 rows selected.
SQL>
Regards,
Dariyoosh -
Need to pass field value as input parameter for a task
I have the following scenario:
User opens a task from UWL and sees a UI in which a Quote no. is generated, which is saved in the backend. Next time the user comes to this UI(from the same task in his UWL) he should see the Quote no. generated. Also, the data is fetched from backend by calling BAPI which takes the Quote no. as input, which was generated the first time user visited this UI.
My concern is how can I store this Quote no. in GP, which was generated the first time, so that user sees the data specific to quote no., as relevant for that task.
Please help.
Thanks and Regards
AanchalHi Srinivasan,
Thanks for ur quick response.
I am explaining my issue further.
User comes to this UI (first time), Quote no. is generated. User fills some other fields( but does not complete whatever he has to) and saves the data to backend. Now user closes the window (task remains in his UWL), but now when he opens the task, he should see the Quote no. which was generated earlier and also data which he saved(by calling BAPI). How can I get this quote no.?
Can you please explain what you mean by "expose the quote no. at process level"?
Thanks and Regards
Aanchal -
Passing blank parameter to stored procedures/function
Hi all,
When I pass blank value ('') to a VARCHAR2 parameter in a stored procedures/function it reads the parameter as NULL, I try to use DEFAULT keyword in the parameter declaration, but it does not work. How can I make the sp/func read the paramater as '' ?
Thanks in advance
SetyaThis is a fundamental quirk of Oracle - it treats '' (empty string) as if it were null:
SQL> SELECT case when '' is null then 'EMPTY STRING IS NULL' else 'EMPTY STRING IS NOT NULL' end
2 FROM dual;
CASEWHEN''ISNULLTHEN'EMP
EMPTY STRING IS NULL
SQL> So what is it you want to do that you can do with an empty string but not with a null?
Regards, APC -
Passing ALL values to a single parameter
In Bi Publisher Report, I need to pass 'ALL' values to a single parameter
Here is brief explanation about my requirement,
I have 3 parameters
Parameter A,
Parameter B,
Parameter C
I have to pass ALL values to last parameter i.e; Parameter C and the rest should pass only single value, how should I do that?
Any help would be greatly appreciated.
Thank youHi,
have a look here: http://www.oracle.com/global/de/community/bip/tipps/dynamische_queries/index_en.html
This might give you an idea how to work with multi-value parameters.
Regards
Rainer -
Capturing blank and non blank values in parameter
In one of the report there is only one parameter “BU VP Name”, now the business has added one more field “Director” to the application and they want this to be as a parameter. Now all the new records will have Director name
and old records will be blank for Director. How can I create a multi parameter with blank and relevant values for my report. Please note I am using sharepoint list to create the report.
SFHHi Syedfpl,
According to your description, you want to add a parameter which include a blank value.
In Reporting Service, we are allowed to use blank value for a multivalue parameter, but we are not allowed to use null values. So in this scenario, you should insert some blank values(‘’) into column “Director” so that we don’t need convert null values into
string at query level. Besides, in order to be allowed to use blank values in a parameter, we should choose the option "Allow blank value ("")". Also “Allow multiple values” option should be checked. As we tested in our environment, the
final result looks like below:
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu -
I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query
parameter to report parameter i need to pass distinct values. How can i resolve thisHi nancharaiah,
If I understand correctly, you want to pass distinct values to report parameter. In Reporting Service, there are only three methods for parameter's Available Values:
None
Specify values
Get values from a query
If we utilize the third option that get values from a dataset query, then the all available values are from the returns of the dataset. So if we want to pass distinct values from a dataset, we need to make the dataset returns distinct values. The following
sample is for your reference:
Select distinct field_name from table_name
If you have any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Maybe you are looking for
-
How do i find messages in trash back to 7/12/2014
I have checked save all messages on this computer I cannot go back past 7/21/2014 How do I go further in trash
-
Verizon Email accounts and Windows 8 Mail App
I will be upgrading to Windows 8 and will like to use the Windows desktop maill app for my Verizon.net account. However, in all of the preview editions of this app, including the one I upgraded to today, the app does not support POP3 mail accounts. I
-
Ipod touch is not syncing over wifi at home
Hi is there anyone out there that is having trouble with syncing there ipod touch with there home computer and receiving there email as well. But are able to go on the wifi outside of thier home in public domains and only able to partially receive th
-
App Store Update Page will not find or install 10.2.3
I am having trouble with the App Store recognizing and downloading the update to OS 10.2.3. It worked fine on my MacBook Air, but is giving the following problems on my Mac Pro and iMac, both of which are running 10.2.2: 1 Either the Updates page j
-
Blue Screen while starting windows
Hi, My laptop shows a blue screen when it is started and an error appears 0x0000007b (0xF7A19528, 0xC0000034, 0x00000000, 0x00000000). The windows do not boot, and neither can I get into the system through other means. What could be the cause of the