LOV in paramter form

Hi All,
I have a parameter called FF_Code and have created a LOV
the values are 01A, 02B,03A...11B( database values)as option .
And my DATA_MODEL looks like this
SELECT
     FF_CODES.FF_CODE ,REQUEST_DATE
     EMPLOYEES.FIRST_NAME, EMPLOYEES.LAST_NAME
FROM
     EMPLOYEES EMPLOYEES,
     FF_CODES FF_CODES
WHERE
     FF_CODES.EMPLOYEE_ID = EMPLOYEES.EMPLOYEE_ID(+) AND
     FF_CODES.FF_CODE = :P_FF_CODE AND
     REQUEST_DATE >= TRUNC(TO_DATE (:STARTDATE , 'DD/MM/YYYY') ) AND
     REQUEST_DATE <= TRUNC(TO_DATE (:ENDDATE, 'DD/MM/YYYY'))
I am able to dispaly the output for just selecting one option for FF_CODE. I want to give user the option where he should be able to select all. Can I do this??
Can I have option something like "ALL" . if "ALL" is selected the output should dispaly the result for all the FF_CODES?
Please help

I got it guys,
all u need to do is
in the user parmeter wrie a select statement
select "ALL" from dual
union
select ff_code from ff_code
and in the modle's where condition check
decode (:ff_code,'ALL', ff_code,:ff_code)

Similar Messages

  • Not Able to put LOV in search form fields

    Hi
    I created the search form using Bindvariables.In my application i am using only JSF,ADF BC,trindad components(In Mobile apps,we have to use only trinidad comp's).
    I want search fields as LOv's .
    In AppModule,under view,ExecuteWithParams i have bindvariables.while dragging them i selected the selectonechoice ,in Edit List Binding Window,for base datasource i am giving one VO,and for list Data Source i am giving different VO .
    everithing is fine.but when i click 'ok' Button,it is giving th efollowing error.
    The selected target attribute has read-only access.please select an updateable attribute
    what is the Wrong i am doing?
    PLease anyone help me in figuring out my problem?
    I want to make the search fields as LOV in search form.so that user no need to enter the data in to them.simply can select the value from LOVand find out the results .
    Sailaja.

    what actulay is the problem.. i triied it , this is working fine.
    I guess just in the lov you have made make both the fields updatable
    Edited by: Rohit Hoon on Apr 23, 2009 2:13 AM

  • PopUp LOVs in tabular forms

    Hi,
    I've discovered a problem using Popup LOVs in tabular forms, whereby on selecting a value from the LOV the key value is displayed on the form instead of the display value.
    Having searched this forum it would appear I'm not the only one who has encountered this problem, but I've had no luck in finding an explanation for this behaviour or a solution / workaround.
    Can anyone help?
    Thanks
    Andrew.

    A Popup LOV is just a normal Input field with the option to popup another window, select a value and return that value to the field. On the popup window, the "display" value is shown to the user to make it easier to select the right value, but the "return" value is returned to the field as this is the value that needs to be stored on the database.
    As a normal input field, it can only hold and, therefore, display one value.
    Select Lists, on the other hand, store the "return" value but show the "display" value because that is how Select Lists are designed to operate.
    You can show the "display" value in a second field for data that is already on the database by using the "Display as Text (based on LOV, does not save state)", based on the same database column as for the Popup LOV field and using the same LOV table.
    However, the only way to get a "display" value for a new/edited record would be to either submit the page or design your own popup which can pass values back into two fields. Either way, you need two fields.
    Unless someone else has found a way around this?????
    Regards
    Andy

  • Before Paramter form trigger problem

    In Before Paramter form trigger
    function BeforePForm return boolean is
    w_cnt number;
    begin
    if user <> 'PF' then
                   select count(*)
                   into w_cnt
                   from tab
                   where tname = 'PFMAST';
                   if w_cnt > 0 then
                        srw.do_sql('drop table pfmast');
                        srw.do_sql('drop table pfloan');
                        srw.do_sql('drop table wspfcard1');
                        srw.do_sql('drop table wspfcard2');
                   end if;
                   srw.do_sql('create table pfmast as
                   select *
                   from pf.pfmast');
                   srw.do_sql('create table pfloan as
                   select *
                   from pf.pfloan');
                   srw.do_sql('create table wspfcard1 as
                   select *
                   from pf.wspfcard1');
                   srw.do_sql('create table wspfcard2 as
                   select *
                   from pf.wspfcard2');
         end if;
    return (TRUE);
    end;
    I am creating 4 temporary tables which are used in this report dynamically by adding the session id to this 4 table name.
    It works fine till the parameter form is displayed. I choose the parameter and run the report. When i do that it agian tries to execute before parameter form trigger (which i can't understand why it is going to before parameter form trigger).
    Kindly support
    Thanking All in anticipation.

    Hello,
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/plsql/triggers/tr_before_param_form.htm
    Usage Notes
    If the Parameter Form is used on the Web, the Before Parameter Form trigger fires twice: once when the Parameter Form is displayed, and a second time when the parameters are submitted. This is because Reports Builder executes in a stateless fashion. There is no session to return to, so the Before Parameter Form trigger has to fire the second time to ensure that the parameters selected on the Parameter Form and passed on the command line are valid.
    Regards

  • LOV & Query in Forms 10g not working

    Hi All,
    I have a strange problem with custom forms that i am developing using Dev Suite 10g (10.1.2) for Oracle AS 10g (10.1.2.0.2).
    When i test the form in DevSuite the LOVs in the form are working properly, but after i deploy the form on the server and use the default config the LOVs stop showing up.
    The same happens with Execute Query. There is no error message displayed either.
    Since the jiniitator was downloaded from the same server, so that cannot be the problem.
    The version of java used is also the same, 1.4.2.
    I have no idea why the forms are behaving like this on the server. Any help would be great.
    Thanks in advance,
    Arun

    I was able to get the trace file from the FRD.
    Please see below for the trace file of the form.
    trace.xml
    - <FORMSTRACE>
    <CollectionName>/u01/oracle/ias10g/bif/forms/trace/forms_23684.trc</CollectionName>
    ***TRACE STARTED BY EM***
    - <Form>
    <FormID>1</FormID>
    <Name>TPA_HEADER(1)</Name>
    </Form>
    - <Form.START Name="TPA_HEADER">
    <EventID>3</EventID>
    <EventNum>64</EventNum>
    <Timestamp>688001334</Timestamp>
    - <Details>
    <Name>TPA_HEADER</Name>
    <FormName>TPA_HEADER(1)</FormName>
    </Details>
    </Form.START>
    - <NETWORK.READ>
    <EventID>4</EventID>
    <EventNum>133</EventNum>
    <Timestamp>688014994</Timestamp>
    <EndEvent>7</EndEvent>
    <Duration>0</Duration>
    - <Details>
    <Packets>1</Packets>
    <Bytes>0</Bytes>
    </Details>
    </NETWORK.READ>
    - <MENU_SELECT Name="DEFAULT.Query.eXecute">
    <EventID>5</EventID>
    <EventNum>33</EventNum>
    <Timestamp>688014994</Timestamp>
    - <Details>
    <FormName>TPA_HEADER(1)</FormName>
    <Type>DEFAULT</Type>
    <Menu>Query</Menu>
    <Item>eXecute</Item>
    </Details>
    </MENU_SELECT>
    - <TRIGGER.START Name="TPA_HEADER(1).KEY-EXEQRY">
    <EventID>6</EventID>
    <EventNum>66</EventNum>
    <Timestamp>688014994</Timestamp>
    - <Details>
    <Block>TPA_HEADER</Block>
    <Item>(Null)</Item>
    <Name>KEY-EXEQRY</Name>
    <FormName>TPA_HEADER(1)</FormName>
    </Details>
    </TRIGGER.START>
    - <NETWORK.WRITE>
    <EventID>7</EventID>
    <EventNum>133</EventNum>
    <Timestamp>688014994</Timestamp>
    <StartEvent>4</StartEvent>
    <Duration>0</Duration>
    - <Details>
    <Packets>1</Packets>
    <Bytes>0</Bytes>
    </Details>
    </NETWORK.WRITE>
    - <NETWORK.READ>
    <EventID>8</EventID>
    <EventNum>133</EventNum>
    <Timestamp>688019034</Timestamp>
    <EndEvent>10</EndEvent>
    <Duration>0</Duration>
    - <Details>
    <Packets>16</Packets>
    <Bytes>0</Bytes>
    </Details>
    </NETWORK.READ>
    - <MENU_SELECT Name="DEFAULT.Help.display Error">
    <EventID>9</EventID>
    <EventNum>33</EventNum>
    <Timestamp>688019034</Timestamp>
    - <Details>
    <FormName>TPA_HEADER(1)</FormName>
    <Type>DEFAULT</Type>
    <Menu>Help</Menu>
    <Item>display Error</Item>
    </Details>
    </MENU_SELECT>
    - <NETWORK.WRITE>
    <EventID>10</EventID>
    <EventNum>133</EventNum>
    <Timestamp>688019034</Timestamp>
    <StartEvent>8</StartEvent>
    <Duration>0</Duration>
    - <Details>
    <Packets>1</Packets>
    <Bytes>0</Bytes>
    </Details>
    </NETWORK.WRITE>
    </FORMSTRACE>
    Message was edited by:
    arunm

  • Unable to view supplier list in LOV in PO Form

    Hi All,
    I have defined supplier, supplier site in supplier definition form but same values are not coming in LOV in PO form.
    I am working on CRP instance and done all steps correctly.
    If I open ASL screen suppliers are visiable but same LOV suppliers in PO screen.
    Kindly let me know causes for ASAP.
    Thanks
    Satish

    Dear Lee
    Yes it is a standard that you cannot view proformas in VF05.  The reason is that VF05 is to list all billing documents and in SAP proformas are not considered as billing documents.  If you want have a report, you can develop with tables VBRK and VBRP.
    thanks
    G. Lakshmipathi

  • How to implement a Date Picker (Calendar) as a LOV in Portal Form?

    I have a form, which will input date from user, and I also have javascript calender.
    How to implement a Date Picker (Calendar) as a LOV in Portal Form? Do I need to choose POPUP and LOV for Date?
    Instead of typing the Date within a Portal form, a popup Calender that will allow user to Pick a date.
    Please help anyone!!

    Once you have the JavaScript and have added it to your form, you need to the the following. First off, you need to be able to customize the HTML code for the form (i.e. choose custom for form type when creating the form). Once you do that go into the custom layout to customize your HTML code. Find the field you want to add the date picker to. It will be <#your_field_name.ITEM#>
    Paste this code after it:
    <a href="javascript:show_calendar('forms[0.elements[16');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src="the source of your image file" width=34 height=21 border=0></a></TD>
    You will have to play around with the forms[0].elements[16]. 16 is what date field is set to. However your will differ, so just play with it.
    Hope this helps.
    Martin

  • How can i populate records using LOV value in form 6i

    Create a form based on the following output use EMP Table
    Create a non Database Block i.e Control Block----> Dept No
    Create a Database Block -EMP
    Create an LOV for the Dept no from dept table.
    For the Current Dept No . Populate the Employee Records
    How can i populate records using LOV value????
    thanks

    How can i populate records using LOV value in form 6i Start by posting in the correct forum: {forum:id=82}
    (Seriously: after making all your previous posts in the Forms forum, how do you end up posting in this one? Is it because the Forms forum has changed category?)

  • Linking an LOV to a form in webDB 3.0 and getting the help files to work ?

    Hi All I can link an LOV to a form in webDB 2.2 I can link an LOV to a report in webDB 3.0 but I cannot seem to figure out how to link an LOV to a form in webDB 3.0 can anyone help me ?
    Also I can't get the help files to work I get the message : Database Log In Failed ?
    null

    quote:
    Originally posted by:
    kglad
    lol, flash was confused?
    Ok... maybe I caused some confusion? In my nested MC, first I
    added some animation and keyframes and THEN I went back to name the
    instances. This caused multiple instances with the same name along
    my timeline thus "cunfusing" flash.
    My bad!
    live and learn! (hehe)
    Pat

  • Can I subclass an LOV from another form?

    I'm not well-versed in Oracle forms. According to Forms documentation, a restriction of LOV's is "The LOV must exist in the active form module." But is there any way to define the LOV in a library form - (like, form1.fmb) - and have form2.fmb use the LOV without also creating it in form2.fmb?
    Subclass-ing sounds like the way, but I can't figure out how to do that. The objective is to add an LOV to 5 forms by changing only the library form that they all attach, and without changing the forms themselves. I've been able to add a text item to the library form and recompiling the other 5 forms, but so far have not been able to add the LOV item this way.

    Yes, I can drag and drop the item into the target form, but I'm trying to avoid that, if possible. Sorry if my description is confusing.
    I'm working with a purchased application, and we try to minimize modifications to the baseline forms. I was able to add a text item to a data block defined in a library form, and when the 5 forms that need to display that item are compiled, they pick up the text item from the library form. I didn't have to do anything to the 5 'front-end' forms except compile them.
    I don't know the mechanics of forms compiles, so I may not be using the right terminology. Bottom line is, my change to the library or template form was propagated to the other forms at compile time - having made no changes to the target forms.
    When the user requested that this new field be validated against a database table, I expected that I would be able to add the LOV and the record group to the library form, and when I recompiled the other forms, the new LOV/RG would propagate to them, just as the new text item had done. However, when i do that, I get an error: 'Can't find swvpsuf_lov'.
    If I go into one of the target forms and add the lov, it does work. If I go into a form and drag the lov from the library form, it also works - but I didn't have to do that with the text item so I'm preplexed as to why I have to do it with the LOV.
    I'm just trying to find out whether:
    a) the only way to do this is by adding or subclassing the lov into each target form, OR
    b) there is some way to accomplish it by just adding the lov/rg stuff in the library form and recompiling the target forms - and how to do it.
    Thanks!

  • I love the new form generation stuff in FB, but some problem here

    I love the new form generation stuff in FB and I've created a form from a create autogenerated service.
    When the user fills in the form I call the method I assign it to a token in a call responder
            createtbMysteryShopperResultsResult2.token = tbMysteryShopperResultsService.createtbMysteryShopperResults(tbMysteryShopperRe sults2);
    The service just a void one
    However if the users fills the form again and called the same service I get an error:
    Item with id 'tbMysteryShopperResultsRPCDataManager:#:0' already exists.  Error on destination 'tbMysteryShopperResultsRPCDataManager'
    The primary key column is auto incremented in the ms sql database so I do not understand this error?
    Any advice would be great, this problem has been bugging me for days now
    A lot of the code generated stuff I don't understand so I don't know where to look for errors

    Sorry for the late response, but I think I've found a workaround, I encounter exactly the same trouble in my application, very rare trouble but more often when the application runs on touch screen. I think It's like the user double-click on the button firing the action of create item twice, in my case it should not arised because i remove the button on click but ... sometimes  it seems it should :-/ By default the RemoteObject wrapps in the DataService is in multiple mode , see concurrency in RemoteObject source :
        [Inspectable(enumeration="multiple,single,last", defaultValue="multiple", category="General")]
        * Value that indicates how to handle multiple calls to the same service. The default
        * value is multiple. The following values are permitted:
        * <ul>
        * <li>multiple - Existing requests are not cancelled, and the developer is
        * responsible for ensuring the consistency of returned data by carefully
        * managing the event stream. This is the default.</li>
        * <li>single - Making only one request at a time is allowed on the method; additional requests made
        * while a request is outstanding are immediately faulted on the client and are not sent to the server.</li>
        * <li>last - Making a request causes the client to ignore a result or fault for any current outstanding request.
        * Only the result or fault for the most recent request will be dispatched on the client.
        * This may simplify event handling in the client application, but care should be taken to only use
        * this mode when results or faults for requests may be safely ignored.</li>
        * </ul>
    Then I add a test in my code and the problem seems to disappear  :
                                if ( createPersonResult.token == null )
                                    createPersonResult.token = personService.createPerson(person);
    HTH,
    Stephane

  • 2nd LOV in oracle forms

    I have an lov for dept_id, If the user is the not manager of that department, then I populate a message, you are not the supervisor and clear the dept_id field. If the user running the form is the manager, then after choosing the dept_id from the lov, or manually entering, I want another lov to populate, That lov is the list for all employees in that department under that supervisor. How can I populate that 2nd lov? Need help.

    I have a requirement to populate an LOV in a Form Which is taking LOT of TIME (PERFORMANCE ISSUE)
    the Record Group Query is as
    select segment1 INVENTORY_ITEM ,
    inventory_item_id,
    description,
    primary_uom_code,
    decode(service_item_flag, 'Y', service_duration, NULL) service_duration,
    service_duration_period_code,
    shippable_item_flag,
    Decode(bom_item_type ,
    1,'MDL',2,'OPT',3,'PLN',4,
    Decode( service_item_flag,'Y','SRV',
    Decode( serviceable_product_flag,'Y','SVA','STD'))) item_type_code
    from mtl_system_items_b --table name
    where organization_id = :QOTLNDET_LINES.ORGANIZATION_ID
    AND (bom_item_type = 1 or bom_item_type = 4)
    AND vendor_warranty_flag = 'N'
    AND primary_uom_code <> 'ENR'
    AND ((:QOTLNDET_LINES.LINE_CATEGORY_CODE = 'ORDER' and customer_order_enabled_flag = 'Y') OR
    (:LINE_CATEGORY_CODE = 'RETURN' and NVL(returnable_flag, 'Y') = 'Y'))
    AND segment1 like :QOTLNDET_LINES.INVENTORY_ITEM || '%'
    When ever i give :QOTLNDET_LINES.INVENTORY_ITEM from Front end This LOV need to be displayed.
    IT IS TAKING MORE THAT 3 MINUTES DEPENDING ON THE ITEM GIVEN.
    SUGGEST ME TO REDUCE THIS TIME.
    Thanks,
    Durga Srinivas

  • FRM-41830 :List of values contain  Lov After upgrade Form patch set to 19

    We are facing the below issue when click on menu,
    FRM-41830 :List of values contain Lov After upgrade Form patch set to 19
    Please let us know if someone has got similar type of issues.
    Regards,

    Hi,
    Please verify that you have completed all the steps in the Developer 6i upgrade doc. Also, please post the complete error message.
    Have you tried to regenerate the forms via adadmin and see if it helps?
    If none of the above helps, please obtain the FRD file as per (Note: 150168.1 - Obtaining Forms Runtime Diagnostics (FRD) In Oracle Applications 11i) and post the contents of the log file here.
    Thanks,
    Hussein

  • Theme 23 does not display popup LOV in tabular form

    I created new application using new Theme 23. In tabular form the popup LOV button does not show. While using this theme the column LOV button is soooooo small it is not visible. If I move the cursor on the side of the field eventually I cursor handle will change and I can click and popup LOV will show. When I switch to an older theme (e.g. 21) the LOV button shows just fine.
    Does anyone can offer a solution? Can I expect more this type of problems in the new theme 23?

    I examined exported application file. Indeed the problem is p_column_id parameter. It should be decimal number for translated application. Characters %2C in p_column_id value stands for comma. It should be dot instead. Parameter value should be p_column_id=30289208519476123679.915121.

  • How can we select more than one item from LOV in Query_Find form?

    Hi,
    I have a requirement i.e i want to select more than one customer number seperated by comma from the customer number lov field in the query_find form.How can we write the code for this requirement?
    and after clicking find it has to display notification form which contains the details of customer which you selected from Custome query_find form.
    Could you please help me out.
    Thanks in Advance,
    Dhana

    Found the "Search Entire Library" option - click on the small (VERY small for my eyesight) down arrow next to the magnifying glass. Also need to select "Filter by: Songs", and then the songs in the main window show the results.
    I'm going to leave this up on the board because 1) in case someone else has this question, and 2) I don't know how to delete it anyway.

Maybe you are looking for

  • I've had my IPAD 2 2 mosths and still can't get it to backup.

    Thought I'd do this upgrade in itunes. Then upgrade IPAD several hours later Itune updated now I can't get past the backup to do the software upgrade. I'm thinking I've bought a pieces of Junk for $800.00.  No Support!! No Customer service!. Thinking

  • Create

    how do I create a PDF from my scanner/printer

  • Can my motherboard be broken if only my screen light is dead?

    I just send my mobile to an other mobile service company telling that my motherboard is broken. But only the 'backlight' of my screen' was defect. It worked completely but I just didn't have any light on my screen. Can it be that my motherboard is de

  • What happened to relative scaling?

    I have had to go back to Indesign CS4 because CS5 doesn't let me click to specify a centre point for scaling objects or images without holding options (which brings up a dialog). Is this a bug or is there something I'm missing?

  • Rotate photos

    How to rotate photos that they are already in the phone? By the way they were in the right position in my iPhoto folder but when I transfered them to iPhone they flipped and I was not able to flip them back to their original position.... Is there a t