creating a dynamic list of values

Hello

While I am trying to create a dynamic list of values on a table (table1) with h_id columns, the head_foot and the header. I gave the query to create the dynamic values as list

Select d, r header header
of g.fw_header_footer
order by 1

where d is the display value and r is the return value to get the error message

"1 error has occurred."

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 please suggest me if am wrong.


Thanks in advance

Hello

I suggest that you check the permissions of your application of the analysis of schema has on your g.fw_header_footer table.

It is a mistake to mislead, but I've just reproduced the same problem trying to select from a table that I didn't have SELECT permission.

Scott

Tags: Database

Similar Questions

  • Join the query in a dynamic list of values query

    I have a join query in a dynamic list of values query. The value does not return a value of text, but rather the value of the ID.

    Is it possible to use a join query in a dynamic list of values query?

    For example... in the query below, I expect to see ename in the drop-down list, but I see class_emp_id.

    Select b.ename d, a.class_emp_id r
    of class_emp a, b of the emp
    where a.class_cat_id =: CURR_CLASS_CAT_ID
    and a.emp_id = b.emp_id
    order by 1

    Thank you
    Reid

    Hey Reid,

    The structure of the pairings/value of the item is incorrect - it should be: item1, item2, etc.: value1, value2, etc, so:

    ' f ? p = & APP_ID.: 50: & SESSION. ": P50_LP_ID, P50_LP_NAME, CURR_CLASS_CAT_ID: #LP_ID #, #LP_NAME #, #CLASS_CAT_ID #"

    I guess that CURR_CLASS_CAT_ID does not use the prefix P50_?

    Andy

  • creating a dynamic list within a static list

    Hello

    I use 5 APEX with universal theme and so I have the static navigation on the left side menu.

    I have the following in the list:

    Orders

    Admin

    View profile

    It is a static so each link to a page of the list.

    However I want to have it so that when I click on the controls bind it then displays a dynamic list of the commands in the menu, then it should look like this,

    Orders

    Order 1

    Order 2

    Order 3

    Admin

    View profile

    So I have a dynamic list that creates the list commands. How can I "attach" it in the static so that the parent is the link of orders in the static list?

    Thanks for your help.

    Jeremy

    Jezzer says:

    I use 5 APEX with universal theme and so I have the static navigation on the left side menu.

    I have the following in the list:

    Orders

    Admin

    View profile

    It is a static so each link to a page of the list.

    However I want to have it so that when I click on the controls bind it then displays a dynamic list of the commands in the menu, then it should look like this,

    Orders

    Order 1

    Order 2

    Order 3

    Admin

    View profile

    So I have a dynamic list that creates the list commands. How can I "attach" it in the static so that the parent is the link of orders in the static list?

    If none of the entries in the list are dynamic, then the entire list must be dynamic. See using lists/Navigation Menu to universal theme APEX5 for a similar scenario.

  • How to create the dynamic list item in the designer of Site Studio?

    Hi all
    I installed the Site Studio Designer(10gR4). The dynamic list item that I added in the region of contributor runs a query to search and display all the files in a particular folder. In Contributor mode when I try to add/edit the dynamic list item, it gives an error saying:
    Cannot perform the action for the following reasons:
    [+] Failed to retrieve search results. Failed to retrieve search results. Failed to create the result set of query ' SELECT IdcColl2.dID, dDocName, dDocTitle, dDocType, dRevisionID, dSecurityGroup, dDocAuthor, dDocAccount, dRevLabel, dFormat, dOriginalName, venture, dWebExtension, dInDate, dOutDate, dCreateDate, dPublishType, dRendition1, dRendition2, VaultFileSize, WebFileSize, URL, dFullTextFormat, dFullTextCharset, DocMeta.* FROM IdcColl2, DocMeta WHERE IdcColl2.dID = DocMeta.dID AND (((xCollectionID > = 14 ET xCollectionID < = 14) AND NOT ((CONTAINS (xDontShowInListsForWebsites, '{DIPP_Sample}") > 0))) ORDER BY dDocTitle desc".) ORA-20000: Oracle text error: 10599-DRG: column is not indexed

    I activated the full text on the content server search and also included xWebsites and xWebsiteObjectType columns to be fully indexed in the fields Configuration.Is area it any other setting to do? Help, please.

    Thank you
    Nithya

    Hello

    Include the xDontShowInListsForWebsites also of the area filed and then update it. Then test it.

    It may be useful
    Srinath

  • Creating a dynamic list

    Need help. I am trying to create a drop-down menu that will fill up with all the dates between a start and end date
    I provided.

    For example:

    Start date is 01/10/06
    End date is 05/10/06

    The drop down menu should provide the following date options:

    01/10/06
    02/10/06
    03/10/06
    04/10/06
    05/10/06

    I can do this when you query a table, but I can't seem to use the function date to build dynamically. Note that I use
    CF 5 on the server so all the new features on CF7 version do not exist for me.

    Any help will be greatly appreciated. Work on the short timeline.

    Thank you.

    Dempster,

    Don't know how to use dateadd, but the conditional loop worked. It is now giving me the list of the days. The select part should be easy.

    Thanks for your help.

  • dynamic list of values

    Hello

    I need to create dynamic lov which must concatenate column name as first name and last name, but I am getting following error


    Select first_name. ' '|| last_name, 'name '.
    of oehr_Employees
    where name =: P8_FIRST_NAME
    order by 1

    error:

    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 you please help me?

    Try

    Select first_name. ' '|| display of last_name, first_name. ' '|| last_name return
    of oehr_Employees
    where name =: P8_FIRST_NAME
    order by 1

  • Dynamic lists of values - 2 different SQL query

    Hello

    I use dynamic values lists as mentioned below. This will return 2 different results depending on the conditions.
    This does not work, when I run the page, it gives a blank page to Popup when I click on the shortcut menu, it gives me error... * HTP 404 error *... web page not found

    P1_ITEM1 elements is of type - Popup LOV key (description of the poster, returns the key value)
    if :P1_ITEM1 = 'ABC' then
     return 'select ename d, empno r from emp';
    else
     return 'select dname d, deptno r from dept';
    end if;
    No idea why it does not work

    Thank you
    Deepak

    Published by: Deepak_J on January 27, 2010 19:31

    Published by: Deepak_J on January 27, 2010 19:32

    Published by: Deepak_J on January 27, 2010 19:32

    Hello

    I don't know why it does not work.

    But you can use this query LOV solution in this case

    SELECT ename d,
      empno r
    FROM emp
    WHERE :P1_ITEM1 = 'ABC'
    UNION
    SELECT dname d,
      deptno r
    FROM dept
    WHERE :P1_ITEM1 <> 'ABC' OR :P1_ITEM1 IS NULL
    

    BR, Jari

  • How to create a dynamic list

    Hi all,

    I create a third party apllication almost same as shown in the integrated application for Palm Pre named like youtube.

    My list contains a photo on the left side and the details of a particular image on his right side. The content of the list varies from 10 to 100. The data will be extracted using Json.

    I also visited this: http://developer.palm.com/index.php?option=com_content&view=article&id=1742 but has not helped.

    In Mojo.Widget.List
    
    this.model = {
    listTitle: $L('List Title'),
    items : [
    {data:$L("Item 1"), year:$L("1974")},
    {data:$L("Item 2"), year:$L("1975")},
    {data:$L("Item 3"), year:$L("1972")},
    {data:$L("Item 4"), year:$L("2003")},
    {data:$L("Item 5"), year:$L("1996")},
    {data:$L("Item 6"), year:$L("1969")},
    ]
    
    I want to add two more thing in a particular row for example:
    
    {data:$L("Item 1"), year:$L("1974"), name:$L("Robert"), id:$L("12")}
    
    I also want to load a picture on the left side of a particular row in a list using a url exp:http://Photo/3731753_0.jpgWhat should I do to implement both these things?
    

    So if anyone can help me on this part will be a great help for me.

    Thank you

    Isabelle

    Not sure if you have already visited here again. http://forums.precentral.NET/Web-OS-development/ But there is little active in this region with a lot of people who may be able to help.

  • Using a subquery with a keyword 'IN' to create a dynamic list

    Hello, everyone:

    I began to dream of out of the box. I have large column of the codes that I don't want to hardcode it by hand, so I thought that a simple test of what follows would be the way to go:
    Declare
    v_code varchar2(20) := 'ZZZ';
    
    Begin
    
    IF v_code in (select GURIDEN_IDEN_CODE from Guriden) Then
    DBMS_OUTPUT.PUT_LINE("This entry is good");
    else DBMS_OUTPUT.PUT_LINE("This is not in the list");
    End if;
    End;
    Well, I had a dirty little message that said I couldn't use the query sub in this way. So how can you create something similar?

    Thank you

    Preston@large

    Published by: Preston@Large on March 1st, 2010 07:42

    Maybe something like that?

    DECLARE
            V_CODE          GURIDEN.GURIDEN_IDEN_CODE%TYPE := 'ZZZ';
            V_CODE_CNT      NUMBER;
    BEGIN
            SELECT  COUNT(*) INTO V_CODE_CNT
            FROM    GURIDEN
            WHERE   GURIDEN_IDEN_CODE = V_CODE;
    
            IF V_CODE_CNT > 0 THEN
                    DBMS_OUTPUT.PUT_LINE('This is a valid code');
            ELSE
                    DBMS_OUTPUT.PUT_LINE('This is an invalid code');
            END IF;
    END IF;
    
  • How to create a dependent list of values based on the relationship master detail

    Hello

    I'm on jdev 11.1.2.4.

    1. I have a table main 'Reception' with the columns receipt_id and student_id (ReceiptVO)

    2. as well as an array of details 'Receipt_Detail' with the columns receipt_id, course_id (ReceiptDetailVO)

    (There are some othere columns in the two tables, but I've only mentioned those which is relevant to this example.)

    3. the two tables are related with receipt_id.

    I want to create a dependent class LOV that filter courses related to the student selected in the main table. (There is a student_course table that holds student_id, relationship of course_id, StudentCourseVO)

    to do this, I have

    1 created VO based on the student_course table

    2 Add a view that filters based on the id of the student

    3 assigned this VO to receipt_detail tables course_id

    It comes

    in the accessor receipt_details VO view, I do not show the ability to select the student_id of the main table (IE ReceiptVO). It only shows the columns in the ReceiptDetailVO.

    Please can you help me?

    Thank you

    What you need in your ReceiptDetailVO is the StudentId of master ReceiptVO attribute.

    To do this, you can:

    1. for your ViewLink (between ReceiptVO and ReceiptDetailVO), you must generate the Source accessor:

    In this way, in the VoRowImpl Java to ReceiptDetailVO class, you will get a way to access master ReceiptVO line (you can find a new method with the name that you gave the name of the accessor in the top of the dialog box)

    2. then, in the ReceiptDetailVO, create Transient attribute, say, MasterStudentId. Access Java's VORowImpl class, within the get for this new attribute accessor method, use the previous step name accessor method to get the line main and finally master StudentId.

    3. the rest is easy - use this new attribute transitional to filter LOV about the student teacher ID...

  • Display the list of values

    I created a page in a table with 3 elements. I wanted one of the items in a value list.

    Under the shared components, I created a dynamic list of value. I wanted now to fix the LOV on this element. For the page in question, I went to Page rendering-> items, but can not see all items created for this slot table form. Where did I select the item so that I can join the list of values.

    I read the day 2 + Application Express Developer's Guide and followed the example here.

    Thank you

    Hello

    On your page go to 'regions' and before the name you have given to this area, you can see a link that says "Report" click there and you can see all the items in the form of tables.

  • 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

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

  • Dynamic list - is current issue

    I created a dynamic list. This works except for the IS_CURRENT parameter.
    List : dyn wizard page 11
    Template:      Wizard Progress List, Horizontal Train
    
    Query Source Type: Function Returning SQL Query
    
    Query
    
    case
    when :APP_PAGE_ID = '11' THEN
      RETURN 
      'SELECT null, progress_name label, '||
      'case WHEN NVL(:APPL_TAB_NAME,''PROJECT'')=CURRENT_TAB_NAME THEN ''Y'' else ''N'' end 
     is_current_list_entry,'||
      'null,null,id ' ||
      'FROM csrsr_req_wizard_nav '||
      'WHERE form_number_id = 3 ORDER BY 6';
    when :APP_PAGE_ID = '8' THEN
      RETURN 
      'SELECT null, current_tab_name label '||
      'FROM csrsr_req_wizard_nav '||
      'WHERE form_number_id = 1 ORDER BY 1';
    when :APP_PAGE_ID = '10' THEN
      RETURN 
      'SELECT null, current_tab_name label '||
      'FROM csrsr_req_wizard_nav '||
      'WHERE form_number_id = 2 ORDER BY 1';
    else
      RETURN 
      'SELECT null, current_tab_name label '||
      'FROM csrsr_req_wizard_nav '||
      'WHERE form_number_id = 4 ORDER BY 1';
    END CASE;
    The page I access the dynamic list is on Page 11.

    Can someone please?

    Robert
    http://apexjscss.blogspot.com

    Applications of dynamic list you generate missing a column. Your questions have 6 columns:

    SELECT
        null
      , progress_name label
      , case
          WHEN NVL(:APPL_TAB_NAME,'PROJECT') = CURRENT_TAB_NAME THEN 'YES'
          else 'NO'
        end is_current
      ,null
      ,null
      ,id
    FROM
        csrsr_req_wizard_nav
    WHERE
        form_number_id = 3
    ORDER BY
        6
    

    The examples in the list wizard have 7:

    SELECT null,
           ENAME label,
           null target,
           'YES' is_current,
           '#APP_IMAGES#del.gif' image,
           'width="20" height="20"' image_attrib,
           ENAME image_alt
    FROM  emp
    ORDER BY ename
    

    Although the target column is not used in a list of courses standard Wizard because it is not clickable, the column must always be included or the values of the column will be compensated. APEX sees your is_current as the target value column and your null image is_currentcolumn. It is advisable to include all columns and alias them:

    select
        null level
      , progress_name label
      , null target
      , case
          nvl(:appl_tab_name, 'PROJECT') = current_tab_name then 'YES'
          else 'NO'
        end is_current
      , null image
      , null image_attrib
      , null image_alt
    from
        csrsr_req_wizard_nav
    where
        form_number_id = 3
    order by
        6
    

    Also note that there are no application APPL_TAB_NAME element in this application, which will have an impact on the results of this query: nvl (: appl_tab_name, 'PROJECT') assess so always at the "PROJECT".

  • Dynamic list of members for Dimension of accounts

    Does anyone know if there is a way to create a dynamic list of members for members of a particular parent account basis? I know it is possible for entities, but it seems that it is not for the accounts. Appreciate all the guidance that can be offered.

    If HS. Dimension = 'account' then
    If HS. MemberListID = 1 Then
    aLi HS =. Account.List("","")
    For i = Lbound (aLi) to Ubound (aLi)
    If UCASE (Left (Trim (aLi (i)), 2)) = "CF" then
    HS. AddMemberToList aLi (i)
    End If
    Next
    End If
    End If

    I use this code to create a list of dynamic members for all base level cash flow account (my account have a CF prefix), you can change it according to your needs. This is part of the EnumMembersInList subroutine.

Maybe you are looking for

  • Nero 7 on Qosmio F30?

    Hello world Does anyone has installed Nero 7 on a Qosmio (F30)? It interferes with the pre-installed software? Thank you

  • Configuration of the inputs/outputs of NI9401 in labview FPGA

    Hello I am very new to Labview FPGA. In fact, I'm implementing the very first example introduced by OR for learning Labview FPGA. I need to connect an entry of a NI9401 on one exit from the other. However, when I drag and drop the input/output units,

  • HP C4280 printer device error: print cartridges missing or not detected

    My printer has message 'Lack of cartridges print or not detected' sometimes it will print fine, sometimes msg appears. I cleaned the cartridges without result.   What should I do?

  • Vista SP1 Installation 936330 question

    Hello I bought a HP Desktop used with Vista Business on it. Vista SP1 (KB936330) shows (two) installed and cancelled in 'history of the Windows Update.  The last time I tried to install SP1 a message stating that "this will take a few hours and your

  • Intel X 25 - M 160 GB SSD won't fit in T510?

    Hello I bought the Intel X 25 - M 160 GB SSD retail disc and I wanted to replace the primary hard drive in my T510, but it does not. The black frame on top of the SSD seems to be a way for the hard drive to slip into the slot in the main hard drive?