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')

Similar Messages

  • 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

  • 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

  • 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,
    gj

    gj / 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

  • How can I change LOV Font in a parameter form?

    Dear friends
    I made a report with reports 6i and in it's parameter form I placed an LOV based on a query and I want to change it's font, but it doesn't change anyway. I think it's default font is System.
    The problem is getting more serious when I use arabic windows, because it shows arabic characters as english extended characters and make the LOV unreadable. I would be so glad if someone could help me.
    Thanx.
    B. sadati

    Hi,
    I think changing the font in the Paramater form for the LOV is not possible. Long back there was
    an enhancement request filed for this , i don't think that is implemented yet.
    Prabably you have to have as a workaround is make a pramform out of Oracle Forms.
    cheers :-))
    Arun.

  • 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.

  • 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

  • Dynamic lovs in parameter forms ... Is this possible?

    Hi
    I am using report developer 10g on windows xp.
    I need a cascading prompt style dynamic LOVs in my report parameter form.
    The first LOV displays a set of values (say for eg. dept list). The second LOV will display another list, based on the value chosen by the user in the first LOV (Eg. List of employee names in that dept).
    My first LOV select statement may look like below for the user parameter say P_DEPT
    select deptno from dept;
    My sencod LOV select stmnt may look like below for the user parameter P_EMP
    select ename from emp where deptno = :P_DEPT
    Each time I try to set the second LOV, report developer complains "Bind variables not allowed in select statement"
    Same error msg comes if I reference the first user parameter(P_DEPT) as a lexical parmaeter.
    How do I acheive the above in report parameter form? Any help is appreciated greatly...
    Thanks
    Suma
    Message was edited by: suma
    user519129

    Hi Brad,
    Thanks for the reply. I had almost given up hope on receiving replies to this message.
    I do agree that it is simpler (and a lot striaght forward) to just use forms to develop dynamic LOVs of cascading prompt style, that is required in my app. But in our shop, we have integrated forms and reports in such a way, that all the report parameters are handled by report developer's own parameter form, rather than coding a separate logic on the forms side to handle the report parameters(as this has to be done on the forms side for every report that we generate, We thought it would be better to use the reports developer to handle the parameter input and then pass the .rdf to forms app). Currently in all our app, the parameter form generated by the report developer is rendered as HTML form on the browser (when the concerned rdf file is called within the forms app) and by submitting this we get the report output)
    Hence I am very keen to get this done somehow on the report developer side.
    I do hope I get some input on this. Also, its a little surprising that such a simple feature is not readily avalibale in the report parameter form. I hope oracle report developer team is reading this message...:)
    Thanks
    Suma

  • 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.0

    Hi 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

  • Multi value select LOV in report builder 10g parameter form.

    Hi All,
    I have a requirement to show a set of records by getting user input through the report parameter form.
    employee Table.
    emp_id emp_name
    1 A
    2 B
    3 C
    4 D
    5 E
    In the report i am getting emp_id input from the user through list of values (LOV query is "select emp_id from employee where emp_id =:emp_id").
    This condition is working for me. now user want to select multiple emp_id from the LOV. so that the sql query will get the related records from the employee table.
    so the LOV query will work like the following "select emp_id from employee where emp_id in (:emp_id)".
    can enybody help me to acheive the above.
    Thanks
    Leo.
    Edited by: user13359272 on Oct 24, 2012 5:25 AM

    By all means feel free to post your question as often as you like!
    In webforms DDE runs on the middle tier; it might do what you want against your local OC4J now, but it surely won't open a thing when you run it against an application server.
    Maybe you should enlighten us with your requirement, maybe there is a better solution for your problem.
    cheers

  • How to change default value of a parameter and LOV attached to a parameter

    Hi All
    I am new to discoverer reports and I need to accomplish the following tasks:
    1. Need to change the SQL query of a discoverer report
    2. Need to change the default value of parameter ( from constant to current month). In the discoverer plus responsibility when I open the report and go to tools>>parameter>>edit
    I can see the constant default value given there. On the right hand side there is a drop down which says 'Value'. I guess if i need to put a SQL as defaul value I need to change the drop down to sql or something and then put the SQL. Problem is the drop down is froezen and I cannot change it.
    Even if I try to create a new parameter/report.
    3. Need to change the LOV associated to the item on which the parameter is based.
    I have the discoverer plus responsibility attached to myself and do not have the discoverer administrator tool (desktop developer tool like forms 6i). My questions are:
    1. Can I change the SQL query by using discoverer plus responsibility or do I need discoverer administrator tool?
    2. Any help on how to get the default value from an SQL query? currently it is a constant value.
    3. Is there any way to figure out is the LOV is madeup of fixed constant values (like independednt value set) or they are fetched from some sql query(table validated value sets)?
    Any pointers/solutions will be highly appriciated!!!
    Thanks in advance.
    Thanks and Regards,
    Shashank

    HI,
    Need to change the SQL query of a discoverer reportThe discoverer generate the SQL according to the item, calculation and conditions designed in the worksheet.
    You cannot edit a specific worksheet SQL.
    In order to change the SQL you need to change the worksheet using the "Edit-> worksheet" from the menu.
    To change the SQL generated inside the folders you need to do that using the administrator.
    Need to change the default value of parameterYou cannot use SQL statements for the parameter default value. it is not supported. if you need default you can use only constant (as it was). otherwise you can set the parameter to be optional and then add to this condition an OR saying that <item>= NVL(:Parameter,<your default>)
    as <your default> you can use calculations so that if for example you want the current date you will create a calculation containing: SYSDATE.
    Is there any way to figure out is the LOV is madeup of fixed constant values (like independednt value set) or they are fetched from some sql query(table validated value sets)?They are based on SQL, even they are const then you will see it as
    select 'a','b'... from dual
    you can find the LOV (called item classes) in the administrator.
    Go to the item your condition is based on and see its properties.
    In the properties you should see the item class it uses.
    Close the properties and go to the item classes tab, search for this item class and figure the folder it came from.
    This is the folder you need to change in order to change the LOV.
    Hope it helped a bit, you sure asked several big questions...
    Tamir

  • Parameter form using LOV based on SQL  to pass param to Discoverer portlet

    Hi all
    I have a design issue:-
    I want to create a parameter form in Oracle Portal to allow users to select the department using searchable LOV (like the torch that is there in various oracle products) and pass the selected parameter to the Oracle Discoverer worksheet portlet. The LOV values is required to come from a SQL query which in turn is dependent on User_name varia ble from the session.
    I am looking for any out of the box portlet which can be configured to achieve the same. Any help or pointers in this regard would be greatly appreciated.
    Thanks
    Puneet

    Hi,
    Please refer to the answer in this question Re: OC4J Memory question
    It is similar to your requirement.
    Thanks,
    Sharmila

  • Values in one field based on another field in the paper parameter form.....

    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,
    Shri

    Hi 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

  • Parameter Form-How to use a user parameter to retrieve list of values for another par

    I am developing a report in Reports 6i. There are 2 parameters on parameter form namely year and month.
    LOV for Year is retrieved from database. After user selects a value from LOV for year, I want to retrieve another LOV for month parameter based on selected year. That is how can we use a user parameter's value to dynamically retrieve an LOV for another parameter on the same parameter form.
    Pl. guide.
    Thanks in anticipation.

    You can't restrict the "List of Values" of one parameter based on the value of another parameter within the Reports Builder/Runtime parameter form.
    The SQL select statements within LOV's are only executed once. They aren't re-calculated when you enter, leave or change other field values in the parameter form. This is mainly because there is no event model in the Reports parameter form and it only supports basic form functionality.
    To do what you're after in a client-server environment you need to create an Oracle Forms "parameter form" and use that to execute the Report using the run_product() call. Actually, you should probably use Oracle Forms for any more generic "form" functionality such as radio buttons or check boxes.
    If you're in a Web rather than Client-Server environment, it may be easier to create a JSP based parameter form. You can then use Reports 9i since it has JSP support to assist here.

  • Reports parameter form - LOV

    I have a report that was developed in version 6i, I am presenting this report on the web, with a parameter form. Both fields on the parameter form have list of values associated with them. When I run the report, the fields display okay - with the drop down box and values, but when i submit query I receive
    REP-0788: Warning: The value of restricted LOV parameter DATE2 (name of field) is not among the selectable values
    Any ideas??
    Thanks
    JLH

    You have to use lexical variable instead of bind variable

Maybe you are looking for