Null value in parameter form.
In parameter form I want to leave blank option in order to print a report for all the values in the parameter form. I am writing the query for the parameter LOV that it fetches the values and making a union with 'select to_char(null) from dual.
I am getting a blank and the required output when the report is run using the report builder but the this blank space or null value disappears when the report is run on application server 10g. It seems to be a small problem but I am not able to get a solution for this. Please, suggest something.
Hi,
Instead of a Null, why not use '-ALL-',
union all
select '-ALL-'
from dualthen in your query, you will have,
where column_1 = decode(:param1, '-ALL-', column_1, :param1) that way it will be more clearer for the users that if they picked '-ALL-' in the LOV that they will get all records and will eliminate the problem you are having with null when you deploy your report in application server.
-Marilyn
Similar Messages
-
LOV Initial value on Parameter form
Hi, I am new to Oracle Reports so I hope this is not a lame question.
I have a drop down list on my parameter form based on a select query. My problem arises when I run the report, I would like the list to display a blank value as the initial value rather than the first value returned by the select statement. Does anyone have any ideas?You could always do something like:
select ename from
(select null ename from dual
union
select ename from emp)
order by nvl(upper(ename), 'A') -
Passing multiple character values from parameter form to PL/SQL
Hi,
I am passing multiple character values from parametr form into
the report query and a PL/SQL procedure. It works fine with the
query, when I use &variable. But, it doesn't compile in PL/SQL,
so I just used the :variable, but not getting any records in the
PL/SQL procedure. Any suggestions?
sincerely,
gjgj / Fedro,
Only using the &referecne, you can pas a string / multiple character values and this would work for query only.
The bind parameter in PL/SQL wouls support only single value
Thanks
The Oracle Reports Team -
Filtering List of Values in Parameter form
1. I am calling reports from (web based) forms 6i and passing a parameter. Based on the parameter, i want to restrict the list of values in the parameter form of the report.
2. I have two items in parameter form. Based on value entered in item 1, i want to filter values in item 2 (depending List of values).
Is it possible to do the above?<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Srinivas KV:
1. I am calling reports from (web based) forms 6i and passing a parameter. Based on the parameter, i want to restrict the list of values in the parameter form of the report.
2. I have two items in parameter form. Based on value entered in item 1, i want to filter values in item 2 (depending List of values).
Is it possible to do the above? <HR></BLOCKQUOTE>
I don't think so.
We had to create a form with poplists to do the limitation of the second based on the first. By doing that we essentially bypassed the default parameter form and just passed the exact parameters we wanted. -
Parameter List displaying all the values on Parameter form
Dear All...If I uncheck the "Restrict List to predetermined values" option, then report parameter form displays all the values on web parameter form instead of displaying those values in the List Item. Is it the Default behaviour of Oracle Reports 10g or Can I control it anyway because if I've 1000 entries in a list, then displaying all those values openly on the form is an ugly thing and it increases the size of parameter form very much.
Hello,
A solution is provided in the Note :
Note.465886.1 How to Implement an Alternate Solution to Unrestricted List Of Values (LOV) in Parameter Form on the Web:
regards -
How i can transfer muliple values through parameter forms
FIRST
====
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no EMP_NO='||:V_EMP_NO);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no EMP_NAME='||:V_EMP_NAME);
OR
SECOND
=======
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no EMP_NO='||:V_EMP_NO||'EMP_NAME='||:V_EMP_NAME);
which one is correct ?
or any other syntax plz reply.Both the above are not correct. You can create 2 separate parameters and pass them.
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no EMP_NAME='||:V_EMP_NAME,EMP_NO||:V_EMP_NO);
If u want to pass multiple emp_nos then use EMP_NO='233,3232,3232' and then you need to extract these in reports
Rajesh ALex -
Report Parameter Form not displayed
When I ran a report using the following procedure code in web-enabled Oracle forms ,
PROCEDURE RUN_REPORT IS
pl_id ParamList;
BEGIN
pl_id := get_parameter_list('tmpdata');
if not id_null(pl_id) then
destroy_parameter_list(pl_id);
end if;
pl_id := create_parameter_list('tmpdata');
add_parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'YES');
run_product(REPORTS, 'D:\ORACLE\DIVISION', SYNCHRONOUS, runtime, FILESYSTEM, pl_id, NULL);
END;
No parameter form was displayed. What do you suspect? Or report parameter form cannot be used in web-enabled Oracle forms.
Hope some experts here broaden my mind!
Many thanks,
RichardRichard,
passing paramform=yes will do it. However, beside of that I wouldn't recommedn using run_product for reports on the Web, indeed paraneter forms are a bit tricky and don't work out of the box. There is a work around that i documented in a Forms/Reports integration Whitepaper available in teh Forms6i collateral section on otn.oracle.com/products/forms. This description uses run_report_object, addressing the Reports Server.
Frank -
Null values not displaying in the LOV on the parameter form.
My report works perfect while in Oracle Reports 10g, however when I move it to our menu (Oracle Forms 10g) it does not display the null in the LOV on the parameter form.
This report allows the the user to select by inspector or district or everyone for certain dates.
Ex: I have 4 parameter fields. The user must enter the start & end dates and either the Inspector or the district or leave the inspector or district null to run for everyone.
The district LOV is :
select dnr_section_code, description from dnr_section_code where dnr_section_code in ('29', '38','52')
UNION
select null, 'All' from dual
order by 2 asc ;
The inspector LOV is:
select null , 'All' from dual
UNION
select person_seq, first_name||' '||last_name inspector from vw_eng_inspectors
order by 2 asc
In my Data Model query I use the :
My select
from tables
where clause
+
----by inspector
and (prod_fac_inspections.person_seq_inspector =
nvl(:inspector,prod_fac_inspections.person_seq_inspector))
---by district
and
(d.dnr_section_code = nvl(:district,d.dnr_section_code)
and d.person_seq = prod_fac_inspections.person_seq_inspector)
Again, it works perfect in Reports! It eliminates having 3 reports on the menu. This one report gives the user the option of selecting dynamic parameters.
Also, I got so frustrated, that I went a different route of using a default where.
I am stuck with the error of ORA:00933 SQL command not ended properly
1=1
I set the initial value to 1=1 and it does not like it.
I am stuck!
DB = Oracle Database 10g Enterprise Edition Release 10.2.0.2.0Hi Krishna,
I'm not sure I understand the probelm.
A progress bar control only displays numeric values. When do you mean by "unassigned values"? What would you expect to be presented?
Best regards,
Udi -
Hi. I have a simple ssrs report with a parameter which is linked to a dataset. The parameter is a single selection dropdown list.
The records in the database are Cars, with a column for Car Color. My drop down list contains a distinct set of colors based on the existing records.
However - some Cars do not have a color set, they are Null. How do I configure my report to show a drop down list of colors and a Null/Not set option which would return records which have a Car Colour of Null?
ThanksMake the query for parameter as
SELECT 'Not Set' AS value,'Not Set' AS Label,0 AS Ord
UNION ALL
SELECT CarColor,CarColor,1
FROM carTable
ORDER BY Ord
Then use value as value of parameter and Label for prompt.
In the query behind for dataset used by report make where condition like
WHERE COALESCE(CarColor,'Not Set') = @ParameterName
AND ...
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Null values not allowed in object-parameter for esb proxy invocation
When I create a proxy service for my esb webservice and try to invoke this service from my ADF Application I was always getting the exception 'unexpected null value for literal data'.
I've figured out what went wrong through debugging the proxy-classes of the esb-service.
You need to define an input-value for each attribute of which your object is constituted. After I've initialized each variable in the object, which is the input-parameter of my esb proxy, everything works fine.When I create a proxy service for my esb webservice and try to invoke this service from my ADF Application I was always getting the exception 'unexpected null value for literal data'.
I've figured out what went wrong through debugging the proxy-classes of the esb-service.
You need to define an input-value for each attribute of which your object is constituted. After I've initialized each variable in the object, which is the input-parameter of my esb proxy, everything works fine. -
How does APEX check for null values in Text Fields on the forms?
Hello all,
How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
Declare
v_valid boolean;
Begin
IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
v_valid := TRUE;
ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
v_valid := TRUE;
ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
v_valid := FALSE;
ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
v_valid := FALSE;
END IF;
return v_valid;
END;
My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
ThanksSee SQL report for LIKE SEARCH I have just explained how Select list return value works..
Cheers,
Hari -
Report Parameter form not showing list of values in Report svr
I was using reports 6i where I used to have list box in report parameter form. I now converted recompiled my reports in 10g and when I run I am not geting the list of values. I get the values as a list below the field
ex.
ITEM :___________
box,book,pencil,rubber,
dvd,floppy...
previously it was coming as a list in the item field
thanks
MGHello,
http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwwhthow/howto/params/pmp_creating_list_of_values.htm?tp=true
If you run the report from a Web browser and the list of values is unrestricted, the HTML Parameter Form will display a text field instead of a combo box, and a list of static values that you can copy and paste into the text field.
Regards -
How can I pass parameter value into first form?
hello all
I have one form called logon.fmx
I have parameter in that form called "common_home".
when I run that form browser I need to trasfer the value for parameter "common_home".
how can I do this?
From
Chirag PatelHi all
1) I am used to config='myconfig' in my application to run the application from browser.
2) in formsweb.cfg I have add one more parameter like as follows
otherparams=common_home=c:\chirag\erp
3) you can add n number of user defined parameter here.
it is working fine.
From
Chirag Patel -
ADF BC: calling SDO : Value for parameter 'findCriteria' cannot be null
We have created a service interface from an application module. That service interface contains views that have view criteria. We have included those criteria in our services.
From my consuming application, i added a data control from webservices by providing the WSDL of the service interface. So far so good...
When i drop the result of a function that is bound to the view criteria to my page, i have to enter four parameters:
fincCriteria of the Object type
areaCode of the String type, this is a parameter we added in the view criteria using a bind variable.
languageCode of the String type, also a custom parameter of the view criteria
findControl of the Object type
In my bindings i can provide the value of areaCode and languaeCode but i don't have a clue what to do with findCriteria and findControl. I left them empty and then i get followign message from the server:
<SOAPProvider><setParameters> Value for parameter 'findCriteria' cannot be null
<SOAPProvider><setParameters> Value for parameter 'findControl' cannot be null
<WebServiceConnectionMessages><debugExecuteFailure> Failed to execute a SAAJ interaction.Found some documentation on how to use the service interface from business components and as it appears you can create entity objects based upon the wsdl from the service interface.
Does it mean that i can only use the service interface that way and that when i have for example a dot net application, it can not use that service interface? -
Hi All,
I have two fields in the parameter form. One named 'employee number' and the other named 'document number'. Now, there are multiple document numbers for every employee. I'd like the document numbers to be displayed automatically as an LOV or would like to give the user some help when the employee number is entered manually. Please let me know if this is possible in Oracle reports. I read somewhere that I'll have to call the values from the form. if that is the case. then please let me know how to go about it....
Regards,
ShriHi Hari,
Considering both Market Segment and Application fields are dropdown,
1) define an event for the first dropdown in the get_p method ie., Market Segment field
2) In the get_v method of the second dropdown get the value of hte 1st dropdown and filter your field accordingly
Note: The reason for defining an event in (1) is just to do a server submit.. its actually act as a dummy event if you dont want to handle your logic here
Hope this was helpful.
Best Regards,
Lakshminarayana
Maybe you are looking for
-
Time Machine on Mavericks: restore file doesn't work
I've successfully located a file I need to restore from Time Machine backup by doing a Finder search for the filename (something.graffle, an OmniGraffle document), and when 0 items are found, I "Enter Time Machine..." and use the back arrow or click
-
How do I access my iCloud from my android
I recently switched phones with my son he now uses the iPhone and I have an android. I need to know how to access my icloud from my android.
-
Hi can anyone help please I need a new charger for my iPad 2 as the original lead that came with it has broken can anyone tell me where I can get one from and what is it I'm looking for as I have tried loads and they not working thanks
-
Windows 8 - Can I upgrade BIOS without loosing embedded product-key?
On machines with Windows 8 pre-installed, the product-key is embedded in bios. So... what happens with the product-key if I upgrade Bios? Can I be sure I don't loose the product-key?
-
hi, I have installed solaris 10 on V880 box and have applied 10_Recommended.zip & 10_SunAlert_Patch_Cluster.zip and something strange happens to the server. After a couple of hours the server goes in a kind of screensaver or standby mode and it has s