List of values

I use Jdev 11.1.1.6
How can I create a list of values in the table. I drag and dropped a VO as the ADF table.
I want to convert one of the column in the list of values with the value coming from another b of VO. It is not sorting master-detail tables.
I want to show several attribute (attribtes 1,3,4,5 and VO B 6) values when I select a value in the values list.
Thank you. -Neau

You can have a transition attribute vo B and add an expression like attr1 value + "-" + attr2... then in the main t add a transitional attr. and when you build the lov, select the transitional attr. to view attr., select vo B transitional attr. for the attr list.

Tags: Java

Similar Questions

  • strange behavior of a list of values in a table

    Hello

    I have a jsf page, which is a region in a jsf page.

    This page has jsff header item identifier of the image carousel of documents (which are in the table) and in the center of a table. Some attributes of table are a list of values. So far I have no problems, everything works normally.

    However, jsff page is "inserted" as a region in a pop-up a JSF page. And that changes the behavior of the lists of values. Let's get select with the mouse. I wear the selectOneChoice of the arrow and the component opens and closes. Always has this behavior. If I want to choose some options have select the component and choose with the arrow keys. And it's not supposed to.

    Is it justified to do so? In jsff page doesn't have this problem.

    screen.png

    Tell me something please.

    Thank you.

    PS: mi jdev version is 11.2.4.0

    I solve this problem, change my skin.

    In selectOneChoice---> property resize: no

  • The list of values in the table of the ADF is not other cela rather single attribute yourself.

    Dear all,

    I have a list of the values on the view object and and created a table by dragging the drop to the page.

    Problem is that LOV is advising no other attributes I mentioned as other attributes in the list of values. only the LOV element becomes selected ID.

    The following table properties

    -------------------------------------

    < af:table value = "#{bindings." XxIncidentRptInjuredPersonsEOView1.collectionModel}.

    var = "row".

    lines = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1.rangeSize}.

    emptyText = "#{bindings." XxIncidentRptInjuredPersonsEOView1.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." XxIncidentRptInjuredPersonsEOView1.rangeSize}.

    rowBandingInterval = '0 '.

    filterModel = "#{bindings." XxIncidentRptInjuredPersonsEOView1Query.queryDescriptor}.

    queryListener = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1Query.processQuery}.

    filterVisible = "true" varStatus = "vs."

    selectedRowKeys = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1.collectionModel.selectedRow}.

    selectionListener = "#{bindings." XxIncidentRptInjuredPersonsEOView1.collectionModel.makeCurrent}.

    rowSelection = "single" id = "t1".

    "partialTriggers =": cb2.

    Binding = "#{CreateReportManageBean.injurdemptable} '"

    Width = "100%" >

    - ComboboxListOfValues - Tags

    < af:inputComboboxListOfValues id = "empIdId".

    popupTitle = "search and select: #{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.label}.

    value = "#{row." Bindings.EmpID.inputValue}.

    Model = "#{row." Bindings.EmpID.listOfValuesModel}.

    required = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.mandatory}.

    columns = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.displayWidth}.

    shortDesc = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.tooltip}.

    autoSubmit = "true" >

    < f: validator binding="#{row.bindings.EmpId.validator}"/ >

    < / af:inputComboboxListOfValues >

    ---------------------------------------------------------------

    Take the af: inputComboboxListOfValues Id (for example, "empIdId") and put it in the partialTriggers of other attributes.

    or

    You can go to pageDef. --> select iterator table--> properties--> Advanced--> ChangeEventPolicy set for ppr

  • Problem creating list of values query

    Hi all

    I am facing some problem with a simple list of Apex selection list item values query which is:

    RETURN 'select distinct dd_type as d, dd_type as r
    from portal_02.WAVE_'||:P86_WAVE_ID||' @ DATABASE_LINK1 
    order by 1';
    

    And I get this error during the execution of the page:

    ORA-06550: line 2, column 99: PL/SQL: ORA-00942: there is no ORA-00942 table or view: table or view is no ORA-02063: preceding the line of DATABASE_LINK1 ORA-06550: line 1, column 13: PL/SQL: SQL statement ignored ORA-00942: table or view is no ORA-02063: preceding the line of DATABASE_LINK1


    I placed also p86_wave_id cascading of parent elements.

    Anyone has an idea why this is happening and how can I fix this problem?

    Use: Apex 4.2.6 & Database 11g.

    Concerning

    Nabila

    I was wrong.

    You are positive that a value exists in the session state for P86_WAVE_ID? For your first attempt, one might think it was empty when loading the page, when he made everything that uses the list?

    Ahh, there you get this when you try to save the definition of LOV, it is probably just trying to validate the request, made with a null value.

    Not sure if you can get it to analyze at run time, but you could workaround with a wave_ object definition?

  • FRM-41830: list of values contains no entry in the value name of game

    Dear friends,

    I am trying to query 'Operations company' value and I'm not able to query this set of values.

    I could see the defined value is available, but when I ask the application->-> Set Validation.

    But I'm not able to interrogate all of the value and add greater value to the value of Application-> Validation-> value (as a sysadmin in the responsibility of the system administrator).


    Actually the upward gaze displays all the values, cloud a guide me, is there a profile that I need the installation .


    EbS - EBS VM model 12.2.3

    Attached to the screenshot for your reference.

    Value_set_values_notdisplaying_lookup.jpg

    Flexfield value games appear not in the list of values (LOV) in Oracle E-Business Suite Release 12.2 as Segment FNDFFMSV values (Doc ID 1612727.1)

    Unable to query Descriptive Flexfield value values (Doc ID 1642035.1)

  • How to create multi level (dependent) cascading list of values using ADF

    Hello

    In my project dependent Lov is necessary. I mean, for example, if two fields COUNTRY and STATE are there.

    Requirment is like this:- The field of all countries be lov. On the other hand, all by selecting the country of country lov, any State should display corresponding to this company in the area of the STATE.

    Kindly help.

    Thanks in advance!

    Janet,

    Is not what you want?

    https://blogs.Oracle.com/aramamoo/entry/how_to_create_multi_level

    https://oralublog.WordPress.com/2013/08/05/ADF-tutorial-how-to-implement-dependent-list-of-values/

    See you soon

    AJ

  • Cannot change PopUp LOV width and height in version 4.2.5.00.08. I change the values of 450 400 in the Popup list template values (Section of the window), but my function genList0_f07_$ _row (), retains the same settings. Is this a bug?

    Hello

    I use APEX 4.2.5.00.08 to my app.

    I have a region of reports, where I display a column set. A column is the column attribute "display as" the value 'Popup LOV (LOV based query).

    I press the button to retrieve the LOV, I get a popup of 450 x 400 pixels.

    I go to the side of the model and navigate to "Popup list of values of model", where I can see in the section 'Window' attributes 'Width' and 'Height' value 450 and 400. I edit them and save them and there is nothing going on. I'm sure that the template belongs to my selected theme.

    I saw in the HTML source code that is the called function:

    <!--


    function genList0_f07_$ _row)
    {
    w = open ("wwv_flow_utilities.gen_popup_list" +)
    « ? p_filter ="+
    "& p_name = ' + escape ('f07') +.
    ' & p_element_index = ' + escape ('0') +.
    ' & p_elem_id = ' + escape ('f07_0000').
    ' & p_form_index = ' + escape ('0') +.
    ' & p_max_elements = ' + escape ("") +.
    ' & p_escape_html = ' + escape ("") +.
    ' & p_ok_to_query = ' + escape ('YES').
    ' & p_flow_id = ' + escape ('114') +.
    ' & p_page_id = ' + escape ('100201') +.
    ' & p_session_id = ' + escape ('16021544706004').
    ' & p_eval_value = ' + escape ("") +.
    ' & p_translation = ' + escape ('NO') +.
    ' & p_lov = ' +.
    ' & p_lov_checksum = ' +.
    ' & p_item_id = ' + escape('-683997768') +.
    ' & p_column_id = ' + escape ('25022622060292812'),
    "winLov,"
    "Scrollbars = 1, resizable = 1, width =400, height =450"); "
    If (w.opener is nothing)
    w.opener = auto;
    w.Focus ();
    }
    ->

    I see that the values has not changed. I also connected and disconnected. I am inclined to believe that it is a bug of the APEX.

    The only solution I think is to replace this function, which is NOT ideal.

    Thank you

    Digital

    The parameters are generated only, nothing you can do about it because it does not use the model for these properties of the couple. Other things work fine for example the names of button or title window etc. I guess that, Yes, it is a bug. It's still there in the apex 5 too, I checked. The default values of the template do not match, the value in the generated code is always 400/450. So I guess it's pretty much a wait on 5.1.

    Here's a fun hack to make it work well on your page (works in apex 5 too, because the code is always the same). Put this in the execute on loading of the page section:

    (function(){
      var _open = window.open;
      window.open = function(){
        if ( arguments[1] === "winLov" ) {
          arguments[2] = "Scrollbars=1,resizable=1,width=500,height=700";
        };
        return _open.apply(window, arguments);
      };
    })();
    

    Change the settings to your liking. This will replace the existing window.open call, which is what the popup lov use and replace it with our own code. It does not interfere with other things. As the name of the new window is always "winLov" for the popup lov, it is the argument that is checked.

    During the call to window.open to open a new window with the name "winLov", parameters are replaced with your own version of it. The window is called as usual, using the stored reference.

    Edit:

    Yes, do not use the trick of resizing. My hack can be a bit tedious, but it's much less invasive for the end user (see open, bam, resize. "Even gets funky on multiple monitors). Also, this thing in the popup lov template will affect each lov popup that you use in the application, which is much less interesting than my specific page code.

    Edit2:

    I did a little digging in the source code, and I don't know why it does not work. Popup lovs are actually equipped to deal with it. My guess is that the parameters are recovered only after that the lists were generated, causing the package variables global to use their default values instead of model parameters.

  • validation error message is not displayed for an attribute as a list of value of the entry

    Hello world

    I use jdev 11.1.1.7.0

    In my application, I created an entity Obj and Obj employees base table.

    for the attribute JobId , I took the actions listed below:

    1. in the EO staff, I created a validation for this attribute and in some cases the error message returns (the error message is "the salary is not high"):

        /**
         * Validation method for JobId.
         */
        public boolean validateJobId(String jobid) {
    
    
            if (...) {
                return false;
            }
    
    
            if (...) {
                return false;
            }
    
    
            if (...) {
                return false;
            }
    
    
         
            return true;
        }
    

    2. employees Vo, I created a LOV for this attribute (the view accessor is JobsViewObj) and I display the attribute entry of text with a list of values.

    in the jspx page, I drag / drop this attribute as below:

              <af:inputListOfValues id="jobIdId"
                                    popupTitle="Search and Select: #{bindings.JobId.hints.label}"
                                    value="#{bindings.JobId.inputValue}"
                                    label="#{bindings.JobId.hints.label}"
                                    model="#{bindings.JobId.listOfValuesModel}"
                                    required="#{bindings.JobId.hints.mandatory}"
                                    columns="#{bindings.JobId.hints.displayWidth}"
                                    shortDesc="#{bindings.JobId.hints.tooltip}"
                                    autoSubmit="true">
                <f:validator binding="#{bindings.JobId.validator}"/>
              </af:inputListOfValues>
    

    I opened the popup and I select a line in the list and then I click Ok. After that, if the validation method (validateJobId) returns false, the error message ("the salary is not high") must be show to the user. but the error message does not appear. I don't understand why this is happening.

    Can anyone guide me on this problem?

    Concerning

    Habib

    Hello Dario,

    I just found this post: http://andrejusb.blogspot.nl/2013/12/workaround-for-infamous-bug-13626875.html that apply ExceptionMode = immediate adjustment to control the use of data in DataBindings.cpx, then the error message is displayed as I hope.

    Concerning

    Habib

  • Common list of values for any Application

    Hello all, I am fairly new to Apex and I am working on a project where I need to be able to select from a list of values and have set a value of session for the entire application. What makes this more complicated is that I need the list of values on almost every page of the application. Here's the basic scenario, a user connects to the first report chooses a reporting period in a drop-down list, and then when the user goes to another page in the application of the reporting period is still the same. This reporting period must be available for binding to the SQL statement for each report and I would like the list of the values on each page to show the same value as well.

    Thank you

    Shawn

    put the drop down list on page 0.

  • List of values of VO

    I use jdev 11.1.1.6.0 I want to create a list of values that will be conducted 5 joins of tables and there are 3 entrances. In my VO attribute how define this lov? Thank you.

    There are two options

    Option 1:

    1 create 5 entities based on tables

    2. create a unique VO based on 6 entities created

    3. with the creation of the original Version, there is an option to specify the type of join between entities

    Option 2:

    Create a VO based on query here, you can write your own custom with all necessary gaskets query

    Create a view of criteria adding the required fields.

    Map the VO as a LOV for the required field

    Run the view criteria prior to the loading of the page.

    Thank you

    Morgan

  • The list of values with contains criteria

    Hello

    I use Jdev 11.1.2.0.

    I created a template driven Input text with a list of values and display the page and works very well. (List of values to an attribute in a VO and display of this attribute as LOV)

    My requirement here, is when the user enter something in the inputtext LOV and clicks, then pop LOV should open with result of defined values.

    These defined values of result should be extracted from the operator 'Contains'.

    How to get there?

    I created a viewcriteia using the ' contains ' operator, but its giving the result set with the operator 'starts by .

    No solution to achieve this?

    I was unable to try it, because criteriaItems list contains nothing other than '{} '.

    We obviously do not understand each other.

    As I said in the previous answer, you can't check if criteriaItems contains 'something' with System.out.println ("criteriaItem" + criteriaItem);

    With this declaration, you can see that criteriaItems is not null.

    Thus, code comments, replace "=" with JboCompOper.OPER_CONTAINS (or with another operator) and try it.

    Dario

  • From the list of values in the procedure and trying to validate values

    Hello

    I create a procedure that will allow to validate data entered by the user.  Users can add values in a text box on my web page and I need to pass to an oracle procedure and check the table if these values exist.  I need to return a list of values that do not exist.  That's what I have so far

    CREATE OR REPLACE PROCEDURE VALIDATE 
    (
      P_VLIST IN VARCHAR2 ,
      P_RECORDS OUT SYS_REFCURSOR
    )
    AS
      V_SQL VARCHAR2(4000) := '' ;
    BEGIN
    V_SQL :=          'SELECT VAL '||CHR(10) ;
    V_SQL := V_SQL || 'FROM DVALUES '||CHR(10) ;
    V_SQL := V_SQL || 'WHERE VAL NOT IN (' || P_VLIST || ')'||CHR(10) ;
    V_SQL := V_SQL || ' ORDER BY VAL' ||CHR(10) ;
    OPEN P_RECORDS FOR V_SQL;
    END VALIDATE ;
    /
    

    My problem is that it will return all the values of DVALUES.  Can I put my list into a temporary table and do a left join to DVALUES and where the values of the two tables I can create a bool column that has a 1 or 0 indicating whether or not the value is good then select on the table and return the list of bad values?

    Thank you

    SQL > CREATE OR REPLACE
    PROCEDURE (2) P_VALIDATE
    3 P_VLIST IN VARCHAR2,
    4 P_RECORDS OF THE SYS_REFCURSOR
    5                        )
    6 AS
    V_STMT 7 VARCHAR2 (4000);
    BEGIN 8
    9 V_STMT: = ' SELECT ELEMENT FROM (SELECT ";)
    10 V_STMT: = V_STMT | REPLACE (P_VLIST, ',', 'ELEMENT OF DOUBLE UNION ALL SELECT');
    11 V_STMT: = V_STMT | FROM DUAL) WHERE THERE IS NO (SELECT 1 FROM DVALUES WHERE VAL = ELEMENT)';
    12. OPEN P_RECORDS TO V_STMT;
    13 END P_VALIDATE;
    14.

    Created procedure.

    SQL > EXEC P_VALIDATE('10,15,20,25,30,35,40',:V_CUR)

    PL/SQL procedure successfully completed.

    SQL > V_CUR PRINT

    ELEMENT
    ----------
    15
    25
    35

    SQL >

    SY.

  • Cascading list of values with a many-to-many relationship

    Hi all

    I have three paintings; semester, subject and half of subject. Each semester has a lot of topics and a subject can be taught in several semesters.

    create table semester(
         id number not null,
         name varchar2(50) not null,
         primary key(id)
    );
    create table subject(
         id number not null,
         name varchar2(50) not not null,
         primary key(id)
    );
    create table semester_subject(
         id number not null,
         semester_id number not null,
         subject_id number not null,
         primary key(id),
         foreign key(semester_id) references semester(id),
         foreign key(subject_id) references subject(id),
         constraint semester_subject_uq unique(semester_id, subject_id)
    );
    
    

    EDIT: I have a page with a report that shows all students who are currently enrolled in the selected for the selected session object.

    There are two selection lists at the top of the report, one for the half and the other for the subject.

    What I try to do is when you select a semester in the half selection list, the topic selection list should contain only the subjects for the half of some (not all) in the subject of the painting.

    h

    If the relationship was of 1 to many that I could write to see half of value

    select name, id
    from semester
    order by 1
    
    

    and for the purpose of value list

    select name, id
    from subject
    where semester_id = :PX_SEMESTER
    
    

    But now that the relationship depends on the table of semester_subject, I can't find a way to achieve this and Googling has not helped.

    Thanks in advance for any help.

    I believe that this issue has also been implemented on stack overflow plsql - list of values cascading with many-to-many relationship - stack overflow and received a very wide response. If the OP has not yet verified, he may want to.

    (FYI: I'm not the person who answered there.)

  • Create a list of values (Lov) programmatically

    I need to dynamically create the ListOfValues during execution.

    For this, I found a few links, in which it is explained how to create the ViewAccesor and the ListBindingDef which defined the Lov in the model project.

    Andrejus Baranovskis Blog: The ADF for BC and dynamic ADF ADF UI generator

    Binary: Activation for dynamic attributes ViewObject LOVs

    This kind of list of values can be rendered with the component, af:dynamicComponent, but I want to use them with the original component.

    The main problem is that: a dynamic list of values attributes do not have listOfValuesModel in the exposed binding.

    <af:inputListOfValues id="comunidadAutonomaId"
                                  popupTitle="Search and Select: #{bindings.ComunidadAutonoma.hints.label}"
                                  value="#{bindings.ComunidadAutonoma.inputValue}"
                                  label="#{bindings.ComunidadAutonoma.hints.label}"
                                  model="#{bindings.ComunidadAutonoma.listOfValuesModel}"
                                  required="#{bindings.ComunidadAutonoma.hints.mandatory}"
                                  columns="#{bindings.ComunidadAutonoma.hints.displayWidth}"
                                  shortDesc="#{bindings.ComunidadAutonoma.hints.tooltip}">
                <f:validator binding="#{bindings.ComunidadAutonoma.validator}"/>
            </af:inputListOfValues>
    

    Model = "#{Bindings.ComunidadAutonoma.listOfValuesModel}"-> This property is empty in an attribute with a dynamic lov, at the same time, it exists in a standard attribute with lovs. "

    I could check bindings exposed during this attributes are different too.

     <attributeValues IterBinding="ProvinciasIterator" id="ComunidadAutonoma">
          <AttrNames>
            <Item Value="ComunidadAutonoma"/>
          </AttrNames>
        </attributeValues>
        <listOfValues IterBinding="ProvinciasIterator" StaticList="false" Uses="LOV_Nombre" id="Nombre"/>
    

    To solve it, I thought that I could create the ListOfValuesModel of the ListBindingDef and the ViewAccesor dynamically exposed in a managed Bean, but I don't know how he.

    public class MyBean {
    
    
      public MyBean() {
        initListOfValuesModel();
      }
    
    
      private ListOfValuesModel listOfValuesModel;
    
    
      public ListOfValuesModel getListOfValuesModel() {
        return listOfValuesModel;
      }
    
    
      private void initListOfValuesModel() {    
        DCBindingContainer bindings = getBindings();
        JUCtrlValueBinding attrBinding = (JUCtrlValueBinding)bindings.get("myAttrib");
        ViewAttributeDefImpl attr = (ViewAttributeDefImpl) attrBinding.getAttributeDef();
        ViewDefImpl viewDef = attr.getViewDef();
        ArrayList<ListBindingDef> listBindings = viewDef.getListBindingDefs();
        ListBindingDef lbLov = null;
        for (ListBindingDef listBinding : listBindings) {
          if (listBinding.getListVOName().equals(attr.getLOVName())) {
            lbLov = listBinding;
            break;
          }
        } 
        ...
        //listOfValuesModel = ;
      }
    
    
    
    
    
    
    
    
    

    Another solution would be resolved in the code of the ad: dynamicComponent, because it could render the ListOfValues I programmatically add.

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Code for adding programmatically to a lov

        private void buildLovVO(String voName, String voPath, String sql, Set<DataBindVar> bindVars, List<String> labels) {
            ViewDefImpl lovDef = new ViewDefImpl(voPath);
            lovDef.setBindingStyle(SQLBuilder.BINDING_STYLE_ORACLE_NAME);
            
            lovDef.setQuery(sql);
              
            lovDef.resolveDefObject();
            lovDef.registerDefObject();
            
            if (bindVars != null && bindVars.size() > 0) {
                VariableValueManager vvm = lovDef.ensureVariableManager();            
                for (DataBindVar bindVar : bindVars) {
                    VariableImpl lovBindVar = (VariableImpl)vvm.addVariable(bindVar.getBindVarName());
                    lovBindVar.setJavaType(bindVar.getBindVarType());
                    lovBindVar.setVariableKind(VariableImpl.VAR_KIND_WHERE_CLAUSE_PARAM);
                    lovBindVar.setProperty(AttributeHints.ATTRIBUTE_DISPLAY_HINT, AttributeHints.ATTRIBUTE_DISPLAY_HINT_HIDE);   
                }
            }
            
            if (labels != null && labels.size() > 0) {
                ViewObjectImpl lovVO = (ViewObjectImpl)app.createViewObject(voName, lovDef);
                for (int i = 0; i < labels.size(); i++) {
                    ((AttributeDefImpl)lovVO.getAttributeDefs()[i]).setProperty(AttributeHints.ATTRIBUTE_LABEL, labels.get(i));   
                }
            }
        }    
        
        
        private void buildListDef(ViewDefImpl dViewDefImpl, String viewAccessorName, String lovName, 
                                String listDataSourceViewDefName, Set<DataBindVar> bindVars, List<String> attribNames,
                                List<String> listAttribNames, List<String> listDisplayAttribNames) {
            ViewAccessorDef vdef = new ViewAccessorDef();
            vdef.setName(viewAccessorName); 
            vdef.setViewDefFullName(listDataSourceViewDefName);
            vdef.setRowLevelBinds(true);
            
            if (bindVars != null && bindVars.size() > 0) {
                for (DataBindVar bindVar : bindVars) {
                    vdef.getBoundParameters().addBoundParameter(bindVar.getBindVarName(), bindVar.getBindVarValue());
                }
            }
            dViewDefImpl.addViewAccessorDef(vdef);
            
            //---------PREPARAR STRING ARRAYS PARA LA FUNCION buildListBindingDef ------------//
            String[] strAttribNames = attribNames.toArray(new String[attribNames.size()]);
            String[] strListAttribNames = listAttribNames.toArray(new String[listAttribNames.size()]);
            String[] strListDisplayAttribNames = listDisplayAttribNames.toArray(new String[listDisplayAttribNames.size()]);
            
            ListBindingDef listBindingDef = buildListBindingDef(dViewDefImpl.getDefManager(), viewAccessorName, lovName,
                strAttribNames,
                strListAttribNames,
                strListDisplayAttribNames);
            dViewDefImpl.addListBindingDef(listBindingDef);  
        }
        
        private static ListBindingDef buildListBindingDef(DefinitionManager defMgr,
                                                         String listVOName,
                                                         String listBindingName,
                                                         String[] attribNames,
                                                         String[] listAttribNames,
                                                         String[] listDisplayAttribNames) {
            ListBindingDef lstbindingDef = new ListBindingDef(defMgr, DefinitionObject.DEF_SCOPE_PERS);
            lstbindingDef.setListVOName(listVOName);
            lstbindingDef.setName(listBindingName);
            lstbindingDef.setListRangeSize(-1);
            lstbindingDef.setNullValueFlag(AbstractListBinding.LIST_ADD_NULL_NOWHERE);
            lstbindingDef.setNullValueId("");
            lstbindingDef.setAttrNames(attribNames);
            lstbindingDef.setListDisplayAttrNames(listDisplayAttribNames);
            lstbindingDef.setListAttrNames(listAttribNames);
            
            return lstbindingDef;
        }
    

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    JDeveloper 12 c (12.1.2.0.0)

    You can download code for ADF Rich Client Demo application (ADF Faces Rich Client Demos ) and see what the code is behind the af:inputListOfValues example (LOV in this example is populated by managed bean).

    If you need create liaison for lov programmatically, and then read this blog post: ADF practice: dynamic linking LOV

    Dario

  • narrows the list of values

    Hello guys, I want to put something like where clause to the list of values. lets say I have an employees VO and VO of countries with ID and ID of country area in the attributes tab in the VO used, I can add a LOV of a specific attribute, I want to put a LOV on the employee name attribute. the source is the ID of country where the area ID =? I would like to declare the area ID grammatically. I know that this example doesn't do not any sense: P is it possible to make the VO.xml? Thanks in advance. Saidi

    Hi Saidi,

    Yes, you must first go to your country and create a view of criteria based on the zone ID. Next, you need to go to your EmployeeVO and create a LOV for countryId. Then in the tab to your EmployeeVo accessor, you must change the accessors for countries and criteria for views that you have created a shuttle. Oh, one thing is missing, since you want to add the country code grammatically you can create a transitional employee VO attribute and that attribute is that you select in the application of the criteria to view in your view accessors.

    Concerning

  • hierarchical list of values - 3 levels

    Hello

    I need to create a hierarchical list of values over 3 levels

    1 level: (called P13_STUFE_1)

    Select d, deptno r loc

    of the Department

    order by 1

    2 level (called P13_STUFE_2)

    Select column_name column_name user_tab_columns r d

    where table_name = 'EMP '.

    parent LOV cascading point P13_STUFE_1

    Page items to submit P13_STUFE_1

    3 level (called P13_STUFE_3)

    According to the results of LOV 1and 2 LOV, there should be a LOV shwing the content of the selected column and the Department as

    P13_STUFE1 = 10

    P13_STUFE_2 = ENAME

    P13_STUFE_3 =

    CLARK

    KING

    MILLER

    RETURN ' select nvl('||:P13_STUFE_2||',job) d, nvl('||:P13_STUFE_2||',job) r emp WHERE deptno = nvl ("' |: P13_STUFE_1 |") (', deptno)';

    parent LOV cascading point P13_STUFE_2

    Page to submit items

    Result:

    http://localhost: 8080/apex/f? p = 101:13:9704449646773:

    Error during rendering of the element on the page P13_STUFE_3. ORA-06550: line 1, column 24: PL/SQL: ORA-00936: lack of expression ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: SQL statement ignored ORA-00936: lack of expression

    http://localhost:8080/i/htmldb/builder/rollup_minus_dgray.gif Technical information (only visible to developers)

    • is_internal_error: true
    • apex_error_code: WWV_FLOW_FORM. UNHANDLED_ERROR
    • ora_sqlcode :-6550
    • ora_sqlerrm: ORA-06550: line 1, column 24: PL/SQL: ORA-00936: lack of expression ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: SQL statement ignored ORA-00936: lack of expression
    • Component.type: APEX_APPLICATION_PAGE_ITEMS
    • Component.ID: 2521712617507612
    • Component.Name: P13_STUFE_3
    • error_backtrace: ORA-06512: at "SYS." DBMS_SYS_SQL", line 1325 ORA-06512: at"SYS." WWV_DBMS_SQL', line 1022 ORA-06512: to the 'APEX_040200.WWV_FLOW_PLUGIN_UTIL', line 1246 ORA-06512: to the 'APEX_040200.WWV_FLOW_NATIVE_ITEM', line 1741 ORA-06512: at the "APEX_040200.WWV_FLOW_NATIVE_ITEM", line 4242 ORA-06512: to the 'APEX_040200.WWV_FLOW_PLUGIN', line 1251 ORA-06512: to the 'APEX_040200.WWV_FLOW_FORMS', line 999 ORA-06512: at the "APEX_040200.WWV_FLOW_FORMS", line 1428

    Please help me to filnd the error

    Concerning

    Siegwin

    siegwin.port wrote:

    RETURN ' select nvl('||:P13_STUFE_2||',job) d, nvl('||:P13_STUFE_2||',job) r emp WHERE deptno = nvl ("' |: P13_STUFE_1 |") (', deptno)';

    parent LOV cascading point P13_STUFE_2

    Page to submit items

    Result:

    http://localhost: 8080/apex/f? p = 101:13:9704449646773:

    Error during rendering of the element on the page P13_STUFE_3. ORA-06550: line 1, column 24: PL/SQL: ORA-00936: lack of expression ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: SQL statement ignored ORA-00936: lack of expression

    Technical information (only visible to developers)

    • is_internal_error: true
    • apex_error_code: WWV_FLOW_FORM. UNHANDLED_ERROR
    • ora_sqlcode :-6550
    • ora_sqlerrm: ORA-06550: line 1, column 24: PL/SQL: ORA-00936: lack of expression ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: SQL statement ignored ORA-00936: lack of expression
    • Component.type: APEX_APPLICATION_PAGE_ITEMS
    • Component.ID: 2521712617507612
    • Component.Name: P13_STUFE_3
    • error_backtrace: ORA-06512: at "SYS." DBMS_SYS_SQL", line 1325 ORA-06512: at"SYS." WWV_DBMS_SQL', line 1022 ORA-06512: to the 'APEX_040200.WWV_FLOW_PLUGIN_UTIL', line 1246 ORA-06512: to the 'APEX_040200.WWV_FLOW_NATIVE_ITEM', line 1741 ORA-06512: at the "APEX_040200.WWV_FLOW_NATIVE_ITEM", line 4242 ORA-06512: to the 'APEX_040200.WWV_FLOW_PLUGIN', line 1251 ORA-06512: to the 'APEX_040200.WWV_FLOW_FORMS', line 999 ORA-06512: at the "APEX_040200.WWV_FLOW_FORMS", line 1428

    Please help me to filnd the error

    When generating dynamic SQL statements, it is always advisable to connect the instructions generated before you run the diagnostics/debugging. Change the body of the LOV function to:

    declare
      l_lov_sql varchar2(4000);
    begin
      l_lov_sql := 'select nvl('||:P13_STUFE_2||',job) d,nvl('||:P13_STUFE_2||',job) r from emp WHERE deptno=nvl('''||:P13_STUFE_1||''',deptno)';
      apex_debug.message('P13_STUFE_2 SQL: ' || l_lov_sql);
      return l_lov_sql;
    end;
    

    That said, the problem seems to be positioning the NVLs. When P13_STUFE_2 has no value, then the generated statement clearly causes a missing expression error:

    select nvl(,job) d,nvl(,job) r from emp WHERE deptno=nvl('',dept no)

    When P13_STUFE_2 is set to null, a valid column name must appear in the generated LOV query:

    l_lov_sql := 'select ' || nvl(:P13_STUFE_2, 'job') || ' d, ' || nvl(:P13_STUFE_2, 'job') || ' r from emp WHERE deptno=nvl(:P13_STUFE_1, deptno)';

    You must also check/clean up the value of P13_STUFE_2 to avoid the risk of alteration of the value leading to code SQL injection.

Maybe you are looking for

  • Strava and series 2 Watch without iphone

    Series 2 Watch, save and upload to Strava just like a Garmin watch? Don't want to carry the phone and wear shows.

  • Ethernet port does not

    We have 2 iMac and today ports Ethernet on every one of them stopped working.  The cable into each of them works (tested with a Macbook Pro) and I still can not work for every iMac with a USB Ethernet adapter ethernet cable.  How diagnose or reset th

  • Tecra 8100 cannot establish a DSL connection

    Tecra 8100 can't do DSL connection. On win98se, all parameters are the way the manual of my provider tells me.The material indicate a problem with the network card.I tested the DSL connection on no prob. 2 different pc if the signal is good. I think

  • slow after windows update

    HelloAfter windows update:my PC slowing significantlyWindows search sometimes opens spontaneouslypages (explorer) sometimes becomes white and the icons disappear and takes a long time to be closed  I have ms security essential and it is updated, so I

  • Backup error message 0 x 8007002

    I get the above error message everytime I try a backup. I tried many things: restart Volume Shadow Copy, clean the system starts, and I checked the regedit for profile image paths. I think that this may be the cause of the problem. I couldn't find th