Questions LOV

Hi all
I have a customized page of the FPÖ having two fields LOV.
My requirement is to add two values hard-coded list of values for the fields.

Example: LOV Field1: 1
2
3

Now, I want to
1
2
3
"hhhh".
"kkk".

I tried a hard-code these two values in the query of the VO, but it does not work, please help me with that.

Thank you

Hello

You can use the following query:

SELECT

ABCEO. DATA_ID,
ABCEOEO. ORDER,
ABCEOEO. QUANTITY,
ABCEOEO. PRICE,
ABCEO XXX
Union of all the
Select
NULL, null, null, null, "ABC" of the double
Union of all the
NULL, null, null, null, 'XYZ' from dual

Make sure you have the matching data type in the union query.

Concerning
Mary K Saha

Tags: Oracle Applications

Similar Questions

  • Question LOV cascading with the plugin Select2

    Version 4.1.1.00.23

    Hello

    I have a plugin Select2 Setup like a multiple-selection list.

    I have a second Select list that is configured as a page item list select Standard.

    I try to have the second element of the page list select Standard like a waterfall LOV based on the plugin Select2, so when one or the values are selected in the plugin Select2 I want the list item select Standard to hold the values based on the plugin Select2.

    The Standard selection list has the Parent article (s) as the plugin Select2 LOV waterfall and the query made reference to the plugin Select2.

    Since the plugin Select2 likes the selection list Standard may not Submit/redirection is why my list select Standard is not get the values. I tried to put a dynamic Action to requery the list select Standard when the plugin Select2 is changed, but looks like there is no case of "onchange" of the plug-in.

    Can someone help me to get this set up?

    Can what additional information I predict or explain?

    Thank you

    Joe

    Joe,

    I faked your question on an instance of APEX 4.1 and I managed to make it work as follows:

    Remove the dynamic action of one of my previous posts. Use the following dynamic action:

    -Event: Change [Select2]

    -Selection Type: Item (s)

    -Article (s): P6_DEP

    Add two real actions:

    -Action: Execute the PL/SQL Code

    -PL/SQL Code: apex_util.set_session_state ('P6_DEP',: P6_DEP);

    -Items to submit: P6_DEP

    -Elements of return:

    -Action: update

    Items affected

    -Selection Type: Item (s)

    -Article (s): P6_EMP

    The definition of LOV's P6_EMP is based on a PL/SQL function that returns a query as a string.

    List of values definition: return get_emp_query(:P6_DEP);

    Below the get_emp_query function:

    create or replace function get_emp_query(in_teams in varchar2)
    return varchar2 is
      l_teams varchar2(32767);
      l_emp_query varchar2(32767);
    begin
      l_teams := replace(in_teams, ':', ','); 
    
      l_emp_query := 'SELECT ename, empno
                      FROM emp';
    
      if (l_teams is not null) then
        l_emp_query := l_emp_query || ' WHERE deptno IN (' || l_teams || ')';
      end if;
    
      l_emp_query := l_emp_query || ' ORDER BY 1';
    
      return l_emp_query;
    end get_emp_query;
    

    You have to be able to use an element of selection mode multiple select2 to dynamically filter the values in your resource item.

    BR,

    Nick

  • Question LOV.

    How do I get two return value of LOV.
    Suppose I have a table XYZ (CODE, DESCRIPTION)
    I've created two elements on my page P1_CODE (popup LOV) and P1_DESCRIPTION (text field). If I select the LOV code then the Code and the Description should be updated.

    Please help me on this issue.

    Thank you.

    Hello

    I have not try Super LOV plugin, but if I understand well there should be a function to do
    http://www.apex-plugin.com/Oracle-Apex-plugins/item-plugin/skillbuilders-Super-lov_75.html

    Kind regards
    Jari

    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

  • Question LOV for date range

    Hi people,

    I'm trying to set a LOV in Apex to a drop down menu that will give me dates of January of the current year to 12 months prior to the current month. So after trying a few options in SQL Studio, I managed to get the following to work:

    Select to_char (add_months (to_date (SYSDATE, ' DD/MM/RRRR'), r-(m + 1)), 'MON - YY') as month_descr, to_char (add_months (to_date (SYSDATE, ' DD/MM/RRRR'), r-(m + 1)), 'MMRRRR') as month_ind
    from (select l dual connect by level level < = ((select round (months_between (sysdate, '01 - JAN'-| to_char (sysdate, 'YYYY') | ")) of the double) + 13)) r, (select round (months_between (sysdate, '01 - JAN'-| to_char (sysdate, 'YYYY') |")) double m)
    where to_date (to_char (add_months (to_date (SYSDATE, ' DD/MM/RRRR'), r - 1), "MON - YY"), "MON - YY") > = to_date (to_char (SYSDATE, 'MON - YY'), 'MON - YY');

    It's a bit complicated I admit, but it does what I need it to do.

    However, as soon as I try to set it as a LOV, I get the following error message:
    "LOV query is not valid, a display and a return value is needed, the column names must be different. If your query contains a query online, the first CLAUSE in the SQL statement must not belong to the query online. »

    Can someone tell me what I'm doing wrong here?

    Thank you

    Just remove the ';' at the end of the statement and that's... going to work...

  • Modal Enkitec LOV research question

    Hello

    I installed Enkitec modal LOV research question and added the following query

    Select DEPTNO, DNAME from DEPT

    with

    Entrable - limited to setting LOV

    When I run the page, I get the LOV, but when get a partial text in the edit field and research, keeps him LOV loading forever.

    Looks like a problem with my setup?

    Here's my app

    http://Apex.Oracle.com/pls/Apex/f?p=77970:5

    My account information for apex, if someone needs to have a look

    Workspace: VIG_WS

    Username: [email protected]

    Password: VIG_WS

    apex.oracle.com/pls/ http://apex/f? p = 4550:1:F4550_P1_COMPANY:VIG_WS

    Thank you

    Vignesh

    It seems that you lacked only the necessary point Application EK_ML_SEARCH

    I added it and the LOV is fine.

    Try it now.

    Thank you

    -Jorge

  • Probably a simple question about Popup LOV formatting in all areas

    I have a Popup LOV on my page and set the Input field property: entrable, show and return value of the store.  I want users to be able to enter this field on their own, but it shows grayed out, even if they can manually enter data to him.  It is not intuitive for the user.  I tried to find out how to change it, but I came empty.

    I tried to add to the item page under the Form element HTML attributes, style = "opacity: 100;  -It works but only for this element of the page in question.  I want to know how to change it in all areas for all applications in my case (but only when the LOV entrable - I want him to stay grayed if Enterable option is not selected).

    Thank you

    In fact, OP wants to set opacity for elements without disabilities also, if you use jQuery, it is also unnecessary to use this 'each' - construction because it is totally useless. You can simply connect the part "css" in the returned array, like this

    $('input.popup_lov:not(:disabled)').css('opacity','100');
    

    I don't think you should use jQuery here though. You can use css to replace the default style using this selector and adapt to your theme or major addition to the rule.

    Eggsample:

    In theme 24 opacity is set to 0.75 through this rule (Note: formlayout for the model of the region):

    table.formlayout td.lov input.popup_lov
    

    To override this style you need a selector that has more specificity ('weight') than this switch. For example

    table.formlayout td.lov input.popup_lov:not(:disabled)
    

    Or in this case, I would say that the use! important may be feasible as who will address the use of the lov popup everywhere.

    input.popup_lov:not(:disabled){
    opacity: 1 !important;
    }
    
  • Conditional question of LOV

    Hello world

    in a display object, I have a based transient attribute on which, the LOV target is enabled on another attribute.

    JDeveloper: 11.1.1.5.0

    MyViewObj
    --------------
    TransientTypeSelector = string
    valid values: t1, t2, t3



    MyLookup: int
    The list of values Switcher: TransientTypeSelector
    LOV_t1: default
    LOV_t2
    LOV_t3


    My question is, how do I disable "MyLookup" where nothing is selected in "TransientTypeSelector"?
    because its not make sense to have a search with no 'TransientTypeSelector' type selected in my company.

    Please notify
    Thank you

    Shahab

    Hello

    not sure if you can do it on the layer model. However, you can on the UI layer. Just the autosubmit on TransientTypeSelector field and PPR MyLookup field game. Have a managed bean that is referenced from the TransientTypeSelector disabled property, which returns true or false based on the value of line TransientTypeSelector

    Frank

  • Very simple question... would love some help!

    Noob... check!

    Panadol... Check!

    I'm trying to 'stop' on an image a scenario the main timeline, nested

    but can't seem to find the right way to write with her "parents" etc...

    This is how I tried that makes sense to me (have tried other ways too) but without success.

    Stop (parent. ("" frameName ");

    would absolutely love to help, have been watching this too long now!

    Thank you

    You need to specify your simple question as it is a little confusing to interpret.

    "'Stop' on an image a scenario nested on the main timeline.

    That tells me you have a movieclip and you want the main timeline to tell him to Stop in a certain range... While the solution would be...

    mcInstanceName.gotoAndStop ("framename");

    But when you transfer the mention of a parent in the history/code, then that makes me think you want the movieclip to tell the main timeline to Stop...

    MovieClip (parent) .gotoAndStop ("framename");

  • Question about popup lov extracted first set of lines

    I use lov popup extractions first set of rows for a single field in my application, question is how to do it select only the choices in the list box and does not allow the user to enter in the text box, what they want. In other words
    only what they choose to the lov?

    Hello

    You may need to search in the creation of a custom context menu page - take a look on: http://www.oracle.com/technology/products/database/application_express/howtos/how_to_create_custom_popups.html (it's an old document, but the principles are there)

    Andy

  • Question of the ADF - LOV based on parameter appears not

    Hi all

    I get the error message like "AttibuteManagerID" in my page

    Technical description:

    Application module: EOMUIModelAMImpl.java

    Display object:

    View1: EOMVO

    View2: NameOfNomineeVO - has a criterion of Requestor_PersonId =: ManagerId (view criteria have a 'required' for the Requestor_PersonId attribute type validation)

    View1 one of the attributes is NomineePersonId (Long) is a LOV that uses View2. View2 has a criterion with bind variable requestorPersonId (Long) =: ManagerId (Long), who, we are using the criteria in the EOMUIModelAMImpl.java file:

    These are the 2 methods used to define criteria in the EOMUIModelAMImpl.java class.

    SetManagerIdUsingCriteria method will define ManagerId to display subordinate to the Manager.

    {} public Long setRequestorPersonId()

    Long requestorPersonId = 0L;

    try {}

    EmployeeOfTheMonthRequestModelAMImpl employeeOfTheMonthRequestModelAM = (EmployeeOfTheMonthRequestModelAMImpl) getEmployeeOfTheMonthRequestModelAM ();

    ViewObjectImpl employeeOfTheMonthVO = getEmployeeOfTheMonth();

    System.out.println ("- before calling fetchRequestorPersonId in EmployeeOfTheMonthRequestUIModelAMImpl-");

    requestorPersonId = employeeOfTheMonthRequestModelAM.fetchRequestorPersonId () .longValue ();

    System.out.println ("- after the call to fetchRequestorPersonId in EmployeeOfTheMonthRequestUIModelAMImpl-" + requestorPersonId);

    employeeOfTheMonthVO.setApplyViewCriteriaName ("EmployeeOfTheMonthVOCriteria");

    employeeOfTheMonthVO.setNamedWhereClauseParam ("requestorPersonId", requestorPersonId);

    System.out.println ("- end of the setRequestorPersonId in EmployeeOfTheMonthRequestUIModelAMImpl-");

    } catch (Exception e) {}

    e.printStackTrace ();

    }

    Return requestorPersonId;

    }

    /**

    * This method is used to set the value of the variable binding ManagerId

    */

    public void setManagerIdUsingCriteria() {}

    Long requestorPersonId = 0L;

    EmployeeOfTheMonthRequestModelAMImpl employeeOfTheMonthRequestModelAM = (EmployeeOfTheMonthRequestModelAMImpl) getEmployeeOfTheMonthRequestModelAM ();

    requestorPersonId = employeeOfTheMonthRequestModelAM.fetchRequestorPersonId () .longValue ();

    System.out.println ("- after the call to fetchRequestorPersonId to setManagerIdUsingCriteria-" + requestorPersonId);

    ViewObjectImpl fetchManagerId = getNameOfNominee();

    fetchManagerId.setApplyViewCriteriaName ("NameOfNomineeVOCriteria");

    requestorPersonId = 300000001130413L;

    fetchManagerId.setNamedWhereClauseParam ("Requestor_PersonId", requestorPersonId);

    fetchManagerId.executeQuery ();

    System.out.println ("- End of setManagerId in EmployeeOfTheMonthRequestUIModelAMImpl-");

    }

    SetManagerIdUsingCriteria() method is able to reach a value of 'requestorPersonId', but is not able to define the criteria after execution of the query.


    Please share your ideas.


    Thank you


    Problem is solved after mapping binding parameter variable to the db attribute in view accessor.

  • Question of Blocksize LOV

    Hello

    I have a LOV customized for the names of the approver. Whenever the user clicks on the light from the flash of the LOV to search for approvers, the LOV comes out well.

    But, despite the LOV extract multilpe lines, only the first record is displayed by default, when you the LOV appears. (even though it shows SHOWING records 1-10)

    If the user clicks on the button GO again or click 'Next 10 Records', then everything is fine, and the records are displayed in blocks of 10.

    Pointers, what went wrong?

    I tried to explicitly set the blocksize property in the LOVRN at 10 and 15, but it doesn't seem to work.

    Thank you

    Stéphane arnaud Germain

    Germain,

    Its possible that when you dynamically defining the whereclause and making executequery, LOV get the query and only retrieve data that results. Please, remove the executeQuery LOV CO statement and share your observation.

    Concerning

  • ADF Table: LOV iterator question

    I have a modifiable ADF table, with a column that contains a LOV (select only one). This LOV gets its data from another object from view. We have a LOV maintenance screen that fills view object of the LOV with data.

    My problem is when you insert new data into the view of the LOV object, then go to the ADF editable Table that contains the column LOV LOV new data does not appear in the choice of a Select. However, if I open a new browser window and open the app, I see new data LOV. New data of LOV shows also in the database. It's telling me that iterator of the LOV does not update correctly.

    However, since I have a Table of the ADF, the LOV and all other columns are concentrated in a tree of liaison and, respectively, iterator of the Table of the ADF (in links to the page). So I don't know how I can directly access iterator of the LOV and refresh it.

    How to refresh the iterator LOV?

    We're currently on ADF 11.1.1.3.

    Another Edit:

    Well, I have this workaround works properly... It was a combination of settings that need to happen. I'm not crazy about it because it seems ineffective - but it works.

    (1.) I have exposed the view line class my ADF Table Imp edit object from view (and accessors included). Accessors included so I had programmatic access to view my LOV accessors. I had two Accesors for I can have a LOV switching on my LOV attribute.

    2.) then in class RowImpl, I went on the Get Accessor LOV accessor methods, I've done below, then refresh us the view accessor.

    /**

    * Gets the view accessor RowSet ActiveSmsModules.

    */

    public getActiveSmsModules() {} lines

    All lines rs = (RowSet) getAttributeInternal (ACTIVESMSMODULES);

    rs.executeQuery ();

    return of rs;

    return (RowSet) getAttributeInternal (ACTIVESMSMODULES);

    }

    /**

    * Gets the view accessor RowSet AllSmsModules.

    */

    public getAllSmsModules() {} lines

    All lines rs = (RowSet) getAttributeInternal (ALLSMSMODULES);

    rs.executeQuery ();

    return of rs;

    return (RowSet) getAttributeInternal (ALLSMSMODULES);

    }

    3.): after that, I go to the iterator of my Table ADF Edit (in bonds), the Always value. I don't know why, but it did not work without this parameter.

    4.) then in my ADF Page Backing Bean, who holds the editable ADF table, I had to run this code once when rendering the Table of the ADF gets. Basically, re - run query to the ADF Edit Table iterator. Then refresh the interface component user LOV. The LOV object was bound with a get and set accessor in my grain of support.

    BindingContainer links = getBindings();

    Iterator DCIteratorBinding = (DCIteratorBinding) bindings.get ("UnvPracSmtView1Iterator");

    iterator.executeQuery ();

    AdfFacesContext.getCurrentInstance () .addPartialTarget (getSmtSmsCode ());

    It would be easier to be able to access just iterator of the LOV through tree of the ADF Table bindings, but it doesn't seem to be a simple way to do this. If someone has another solution to this, please let me know!

  • Question of LOV cascading

    Hi all

    I have a table that contains the data of students, with columns for the dorm, sports, racing section, floor living room and advise among others. I've implemented a LOV this list each of these columns, so the LOV is defined as:

    Display return value of value
    Advisor 1
    Section 2 of the FYE
    University residence 3
    University residence floor 4
    5 sport

    Now I want to set up a second LOV that lists the different values depending on which value is selected in the first LOV. So if counsel is selected, each Member of the faculty who is a counselor would be listed in the second LOV. If the Sport is selected in the first LOV, a list of all sports (Football, Baseball, Volleyball, etc.) would be listed in the second LOV.

    I tried the following to the second LOV, but it gives an error:

    IF: P8_GROUP = "1" THEN
    RETURN
    "select distinct sect of wlwrap where the sect is not null order by 1';
    ELSIF: P8_GROUP = "2" THEN
    RETURN
    "select distinct sport of wlwrap where the sport is not null order by 1';
    END IF;

    The error is: error during rendering of the element on the page P8_SUB_GROUP. ORA-20001: the query must begin with SELECT or WITH (P8_SUB_GROUP is the name of the element that uses the second LOV)

    Thoughts?

    Thank you

    Bob

    Published by: wisers on 17 April 2013 15:43

    Hi, wisers

    What version do you use? If it is 4 or higher, you can set the Cascading LOV article Parent (s) with: P8_GROUP in your second LOV and put in place of Page to submit items with the same value. After that, you must create a query like this:
    code here
    Select a separate sect
    of wlwrap
    When the sect is not null
    and: P8_GROUP = 1
    Union
    Select distinct sport
    of wlwrap
    where the sport is not null
    and: P8_GROUP = 2
    order by 1;

    I'm sorry if I do not use the tag for the code properly: P...

  • LOV selection and save the question

    Hello

    I have a request.

    In my form there is a LOV for one of the column displayed in the form. User can see 3 columns in the LOV, while the form has only 1 of these 3 display columns
    Now, the user selects a value from the LOV and this value is selected (or rather displayed) in the form.

    How can ensure me that all 3 values are copied in in the database table (datablock is based on this table).
    I write the code in which key trigger of the Save button in the form.

    Thanks in advance.

    Hello

    During the creation of LOV, you can assign all of the fields that you want to capture in return for value (you can find it at the lov Wizard help > view column tab) so that when the user selects a value all fields return value will get related data.

    Now, you can save as usual, all values will be stored in the database. If your block is based on this table, you do not have to write additional code to save, save forms button will do the work for you.

    Concerning
    SANAE

    Published by: Annick on 12 October 2012 05:44

  • Question of LOV

    I'm new in the ADF (11.1.2) and need help with the list of values. I will try to explain my problem to example of the employee and the Department.
    I create a page for the query and change the employees. One of the attributes of the employee's Department and I want to build a LOV to see all departments.
    VO used to display and edit the employee data is built on employee and department EOs, concerning employees, the attributes are editable, and others are not.
    What I want is to display a LOV on behalf of the Department, not deptno. In fact, I won't display at all on my jsf page deptno (because it is hostile to users), but still be able to use a name of Department LOV to fill deptno.
    How can I solve this problem?
    Thank you

    See if this helps:
    http://blogs.Oracle.com/Shay/entry/finding_a_code_by_typing

Maybe you are looking for

  • Satellite C660/C660D - shift key causes the screen to go black

    After purchasing the Satellite C660/c660D less than a month ago.I am disappointed to see the SHIFT key (left), as well as the CTRL pressed, causing the screen to go black intermittently when you type my blog... Course not blogger like tested also in

  • G7-2269wm: g7 2269wm hp drivers needed

    I replaced windows 8 with windows 7 64 bit on an HP g7 2269wm.  He repeated to me that there is no drivers available online for controller SM bus, usb, usb controller (listed twice) controller and PCI device.  I see others who have posted similar pro

  • How to save a binary image

    Hello everyone. How to save a binary image in a computer? If I right click on the image, then choose "Save Image... ', the saved image will appear empty. I understand that the image is in 0 and 1 but I do not know how to implement the code. Thank you

  • If I re - install Windows 7 Premium (Vista is the original) is very unusual that I have to watch it?

    Volumn Shadow Copy Service Componet error 0 X 80042302 (Windows 7) If I re - install Windows 7 Premium (Vista is the original) is very unusual that I have to watch it? If the reinstall is successful then can I re - install my files and photos of my c

  • WAP4400N "Wrong file Format" Solution 1.2.17

    I just bought a WAP4400N AP and through all of this again, like most of the posts is old so I thought I would put this to the top again incase anyone needs. There are 2 versions of the WAP4400N, one for the Canada / NA and the other for EU/UK/AP etc.