How to use input box LOV in query panel (search region)

Hi,
We are having JDeveloper version 11.1.2.4.0
In one of the JSF page, we are showing some data (absences).
Requirement is to add search region at the top so that user can filter the data, based on search parameters like Business Group, Job etc.
The search parameters are inter-dependent e.g. Job is dependent on Business Group. So when user selects some particular Business Group, Job search field should show jobs for that Business Group only.
This works fine we use Choice List for both Business Group and Job.
However since there are huge number of jobs, Job choice list makes page rendering very slow.
So we tried to use Input box with LOV for Job.
But now when job is selected in the LOV popup and returned to main page, job search field shows job id instead of job name.
Please note that our base VO (AbsencesVO) contains JobId attribute. We have added List of Values on JobId, which fetches Job Name through JobVO1 view accessor.
How to make Job LOV field show selected Job Name instead of ID? Kindly advise.
Thanks,
Vivek

Thanks Timo/Bangaram, for prompt replies
Timo, the link mentioned by you talks about showing IDs (DepartmentId, ManagerId etc.) in the search region. I need to show names in the form of Input box LOV.
Bangaram, as per your suggestion I tried using transient JobName attribute. However now when I select any value in the Job LOV popup and return to main page, it shows first Job Name in the Job Name search field.
Also when I click 'Search' button in Search panel, it shows error - Attempt to set a parameter name that does not occur in the SQL: BindJobName
Please note that I have added both JobName and JobId in the List configuration as you suggested.
In View criteria, I have removed previous item (condition) on JobId and added condition on JobName.(This is required because JobId condition shows JobId search field)
I also tried making JobName dependent on JobId..still same behaviour.
Kindly advise.
Thanks,
Vivek

Similar Messages

  • How to use check box in SQL Query

    Hi
    I have a reagion with check boxes. Now I am creating another region which is
    PL/SQL function/block returning query.
    here' the block. When I save it give me error
    Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00900: invalid SQL statement
    Here is the code
    DECLARE
    p_str VARCHAR2(2000);
    p_col_name varchar2(100);
    p_flg char(1);
    BEGIN
    p_flg := 'N';
    for i in 1 .. htmldb_application.g_f01.count
    LOOP
    p_flg := 'Y';
    p_col_name := htmldb_application.g_f01(i);
    IF i = 1
    THEN
    p_str := 'SELECT ' || p_col_name;
    ELSE
    p_str := p_str || ', ' || p_col_name;
    END IF;
    END LOOP;
    p_str := p_str || ' FROM UALDBA_V';
    RETURN p_str;
    END;
    Please advice
    Sunil

    Sunil - The htmldb_application.g_fxx arrays are empty during page rendering. A query cannot be generated using them.
    Scott

  • How can I access the Attribute Values from the Search Region

    Hi all,
    I have a table which contains Company id, department id, and PositonId. For a particular Company and Department there may be multiple records.
    I have to pupulate a table which contains the position and other details that comes under a particular Department and Position based on the selection in the Three comboBoxes.
    Also I have to populate a select many Shuttle to add new postions and records under a particular Department.
    I created a query panel *(Search Region)* for the serch and a table to display the data. That is working fine.
    Now the issue is I am using a view criteria to populate the shuttle with two bind variables ie, DepartmentId and CompanyId.
    If the serach will return a resuktant set in the table it will also pupulate the correct records, otherwise ie, if the if the serch result is empty the corresponding iterator and the attribute is setting as null.
    SO I want to access the attribute values from the Search Region itsef to populate the shuttle.
    I don't know how can I access the data from the Search Region.
    Please Help.
    Regards,
    Ranjith

    you could access the parameters entered in search region by the user as follows:
    You can get handle to the value entered by the user using queryListener method in af:query.
    You can intercept the values entered as described
    public void onQueryList(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    List<Criterion> searchList = qdes.getConjunctionCriterion().getCriterionList();
    for ( Criterion c : searchList) {
    if (c instanceof AttributeCriterion ) {
    AttributeCriterion a = (AttributeCriterion) c;
    a.getValues();
    for ( Object o : a.getValues()){
    System.out.println(o.toString());
    //call default Query Event
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    public void onQueryTable(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    private void invokeQueryEventMethodExpression(String expression, QueryEvent queryEvent){
    FacesContext fctx = FacesContext.getCurrentInstance();
    ELContext elctx = fctx.getELContext();
    ExpressionFactory efactory = fctx.getApplication().getExpressionFactory();
    MethodExpression me = efactory.createMethodExpression(elctx,expression, Object.class, new Class[]{QueryEvent.class});
    me.invoke(elctx, new Object[]{queryEvent});
    Thanks,
    Navaneeth

  • How to use a cascading LOV as a Web Services Consumer?

    How to use a cascading LOV as a Web Services Consumer?
    We are trying to populate a prompt programmatically.
    Our program is a Web Services Consumer.
    As an example we use Island Resorts Marketing
    The cascading LOV for City is
    Country -> Region -> City
    The City object is key-aware to the customer table
    The query is
    Customer | Revenue
    (where) City = [prompt]
    In order to make the key-awareness work, we must select the value (rowIndex) from the LOV
    When we run our program below, the LOV for City is not populated, as expected since we must first select the Country, then the Region.
    The code snippet below shows that the LOV for Country is populated. We have no idea how to go from there.
    Any hint will be immensely appreciated.
    Let us know if anything is unclear in the code.
    Source       
    RetrieveMustFillInfo retrieveMustFillInfo = RetrieveMustFillInfo.Factory.newInstance();
            RetrievePromptsInfo retrievePromptInfo = RetrievePromptsInfo.Factory.newInstance();
            retrievePromptInfo.setPromptLOVRetrievalMode(PromptLOVRetrievalMode.ALL);
            retrievePromptInfo.setRefreshReturnedLOVs(true);
            retrievePromptInfo.setReturnLOVOnMustFillPrompts(true);
            retrieveMustFillInfo.setRetrievePromptsInfo(retrievePromptInfo);
            // *-- need the "Refresh" action to get the .promptToBeFilled
            Action[] boActions = new Action[1];
            boActions[0] = Refresh.Factory.newInstance();
            try {
                documentInformation = reportEngine.getDocumentInformation(Integer.toString(infoObject.getID()), retrieveMustFillInfo, boActions, null, null);
                m_Token = documentInformation.getDocumentReference();
            } catch (Exception ex) {
                System.out.println(GetWSError(ex));
                return;
            if (documentInformation.getMustFillPrompts()) {
                PromptInfo[] promptInfoS = documentInformation.getPromptInfoArray();
                for (PromptInfo promptInfo : promptInfoS) {
                    System.out.println(String.format("Prompt '%1$s', hasLOV=%2$s", promptInfo.getName(), (promptInfo.getHasLOV() ? "Yes" : "No")));
                    if (promptInfo.getHasLOV()) {
                        LOV boLOV = promptInfo.getLOV();
                        for (Value boLOVValue : boLOV.getValuesArray()) {
                            System.out.println(String.format(" LOV item '%1$s' RowIndex=%2$s", boLOVValue.getColumnsArray(0), (boLOV.getRowIndexed() ? boLOVValue.getRowIndex() : "")));
                    System.out.println("--End LOV");
                    PromptInfo[] promptInfoS2 = promptInfo.getPromptToBeFilledArray();
                    if (promptInfoS2.length > 0) {
                        PromptInfo promptInfo2 = promptInfoS2[0];
                        System.out.println(String.format(" linked to %1$s", promptInfo2.getName()));
                        if (promptInfo2.getHasLOV()) {
                            LOV boLOV2 = promptInfo2.getLOV();
                            for (Value boLOVValue : boLOV2.getValuesArray()) {
                                System.out.println(String.format(" LOV item '%1$s' RowIndex=%2$s", boLOVValue.getColumnsArray(0), (boLOV2.getRowIndexed() ? boLOVValue.getRowIndex() : "")));
                            System.out.println("--End LOV");
    Result
    Prompt 'Enter value(s) for City:', hasLOV=Yes
    --End LOV
    linked to Enter value for Country of origin
    LOV item 'Australia' RowIndex=6
    LOV item 'France' RowIndex=2
    LOV item 'Germany' RowIndex=4
    LOV item 'Holland' RowIndex=7
    LOV item 'Japan' RowIndex=5
    LOV item 'UK' RowIndex=3
    LOV item 'US' RowIndex=1
    --End LOV

    Hi,
    Refer SAP Note 1278947. You would require a Service Market Place logon to access this article.
    Let me know if this helps.
    Regards,
    Shreyans Surana

  • Show lov in query panel for an attribute using = = or between operators

    When we use between, greater than, less than, greater than or equal to , less than or equal to in the view criteria
    On an attribute which has lov
    in query panel of UI the lov does not show up for that particular attribute
    How to show lov for an attribute in query panel when i am using the above operators

    Does the LOV show up in basic query state?
    http://blogs.oracle.com/shay/2011/01/dependent_lovs_in_an_afquery_c.html

  • How to use check box in flash 8?

    How to use check box in flash 8?

    If you want it to happen when someone clicks the checkbox, then you need to add a listener for that event.
    var cbListener:Object = new Object();
    cbListener.click = function (evt:Object) {
        if (cb.selected) {
              gotoAndStop(2);
    cb.addEventListener("click", cbListener);
    (Note: "cb" and "cbListener" are names that were made up for this example.  They could be anything you want to name them)

  • Use Of LOV In Query Panel

    Hi All,
    I would like to have LOV in query panel one which is created using view critiria.
    Kindly let me know the best way to implement this one...............
    Regards
    Anandkumar S.M.

    Check this:
    http://blogs.oracle.com/shay/2009/12/adf_query_with_parameters_and_1.html
    Thanks,
    Navaneeth

  • How to use multi select in a query report

    I defined a lov. This lov retuns name and a id. I want to use the result of this multi select in my query.
    I always get invalid number when I choose two items of the select. When I debug I see that the return value of the multi select is 1:2. How can I change the seperator : in , I tried the following but this does't work.
    if :P26_PRODUCTTYPE IS NOT NULL then
    l_sql := l_sql ||' and producttype in
    (REPLACE(:p26_producttype,'':'','','' ))';
    end if;

    as you're finding, multiple values selected from html db multi-select list items (and checkboxes) are stored as a single, colon-delimited string. i explained an easy way to handle this via pl/sql in...
    Multiple select list
    ...that post shows you how to throw the selected values into a pl/sql table and step through them as needed. it also showed how to use an instr to parse through the string if you want to go that route. you could use that same instr logic right in your sql query. so let's say your lov for your multi-select item (P1_MY_MULTISELECT, we'll call it) was defined as...
    select ename, empno from emp order by 1
    ...and your user selected KING, FORD, and JONES. :P1_MY_MULTISELECT would store those values as...
    7839:7902:7566
    ...you could then write a query to return the selected enames with something like...
    select ename, job
    from emp
    where insrt (':'||:P1_MY_MULTISELECT||':',':'||empno||':') != 0
    ...hope this helps,
    raj

  • How to print input boxes

    I need to print a grant proposal that has several input boxes that are filled beyond the viewable area.  When I print the document, Not all the inputed text is printed.  I have tried using a smaller font but can't get it small enough to view all the text. So how does one print all the text with in an input box.
    Running Adobe Reaser 9.4.3 on a Vista Laptop

    Form your response, it seems that I will be unable to print the hidden text within the input boxes. But instead, have to print out seperate documents and include them with the printed Adobe Reader Document.

  • G6: Transformer Tags: how to shrink input box of -- pt:ptui.searchform

    Hello all! I'm working with header customization and would like to use the canned ptui.searchform but the input box is a little large for my taste. Currently it displays 16 characters on my screen and I'd like to reduce that down to about 10-12. Any idea how I could go about manipulating this size and still using the PT tags? or can/should this customized search be done with EDK instead of transformer tags?
    I'm on a G6 .NET install if that matters. Also I'm still learning the ropes with all of this so the more detailed an answer the better! Thanks!This is the code I was anticipating using:
    <pt:ptui.searchform pt:usespan="true"> <pt:ptui.basicsearchbutton pt:usespan="false" />
    <pt:ptui.advancedsearchbutton pt:showimage="false" pt:usespan="false">Advanced</pt:ptui.advancedsearchbutton> or <pt:ptui.federatedsearchbutton pt:showimage="false" pt:usespan="false">Search the Web</pt:ptui.federatedsearchbutton> </pt:ptui.searchform>
    Geoff Garcia
    Producer, Enterprise Portal
    March of Dimes National Office
    914 997.4275 (Office)
    [email protected]
    Improving the health of babies by preventing birth defects, premature birth, and infant mortality

    Unfortunately, the textbox size is not a configurable option from the tags.
    You would have to customize the code of SearchFormTag class in the taglibPTUI library.
    The code change is very simple, in the AddSearchTextboxToElement function, change the textBox.SetSize parameter to 12 instead of 20. Although setting up the development environment to edit the code and deploy it is a little trickier.
    Go to developer center and download the UI customization installer for the G6 portal. It has instructions and everything you need to get a dev environment up for .Net.

  • How to use check box & dropdownlist in smart forms

    can anybdy explain(any examples) how i can use check box or drop down list in smart forms.is ther any provision like that

    Hi Ranjith,
    To use Check box in smartform do the following:
    Change the editor to 'PC Editor' and take the menu.
    in text editor of TEXT ELEMENTS..
    Insert -> Characters -> SAP Symbols
    in print preview u can't see these changes..
    for more details check this link..
    How to create checkbox in smartforms??
    Ashven

  • How to use logical database "psj" for query?

    Hi, expert :
       use "PSJ" to make a query. but in queries, the title have two lines. and can't  correspond to the content.
       how to make the title correspond to the content?
    regards

    Hi
    Comments option nothing but where you can enter your description.While creating the SAP Query using SQVI enter your query name and click create one popup window will come in that you have comments field where you can enter your description.
    Thanks
    S.Murali

  • How to use input text

    Hi, I have searched the forums and haven't found what I am looking for.
    I want to have an input text box for the user to enter their name into. On the next frame I want it to say Welcome 'username'.
    Thanks

    You can access the text of an input box using the text propery of it. It will return a string
    var str:String = inputBox.text;

  • How to use Vision Box as PVR

    How do I use my Vision Box on another tv to view recordings without being connected to BT?
    When I power up it tries to search for a connection and goes no further.

    bds1958 wrote:
    How do I use my Vision Box on another tv to view recordings without being connected to BT?
    When I power up it tries to search for a connection and goes no further.
    Hi,
    Your Vision box needs to be connected to your BT BB to boot-up. If it's not connected, it wont.
    If you boot your box up whilst it is connected, then disconnect it from your BB, you WILL be able to view your recordings and use the box to watch Freeview. But you won't have an EPG. And you won't be able to record any further programmes on the box. It would basically be a makeshift doorstop.
    Hope that helps.
    Rank - Mostly Harmless.

  • How to use CreatePopUpId in LOV ?

    Hi experts,
    Please tell me how to use the createpopupId in LOV?
    I used the createpopupId attribute in InputListOfValues.
    I have passed the PopUp id as a parameter in createPopupId.. I am getting a small icon in LOV..
    I just tried it and i dont how to proceed after that, please tell how to do that..
    thanks & regards
    Gops

    The [url http://download.oracle.com/docs/cd/E14571_01/web.1111/b31973/af_lov.htm#CACGJIEE]documentation provides information about it. Basically, you create your own af:popup that handles creating a new record for the LOV; you provide the id of that popup as the createPopupId, and ADF will render a "create" button or link for you as described in the documentation. When the user clicks the "create" button or link, your popup will be shown.
    John

Maybe you are looking for