No dynamic LOV in a PopUP column?

Hi,
</br></br>
I've a named LOV-query for a column of the detail report on a master-detail-form.
</br></br>
the column is displayed as Popup LOV (named LOV) with that query:
</br></br></br>
IF :P306_KAT = 'KUNDE' THEN RETURN IF :P306_KAT = 'KUNDE' THEN RETURN
</br></br>
'SELECT name1 d, kunnr r FROM kunden_t ORDER BY 1';
</br></br>
ELSIF :P306_KAT = 'EXTWG' THEN RETURN
</br></br>
'SELECT ewbez d, extwg r FROM warengruppen_t order by 1';
</br></br>
ELSIF :P306_KAT = 'MATKL' THEN RETURN
</br></br>
'SELECT wgbez d, matkl r FROM matklassen_t order by 1';
</br></br>
ELSIF :P306_KAT = 'LAND' THEN RETURN
'SELECT land d, kz r FROM laender_t order by 1';
</br></br>
END IF;
</br></br>
I've no chance to get it work.
</br>
when I change display to select list (named LOV)
</br>
everything is fine. (the same query)
</br></br>
I'm rather confused about that and need help.
</br></br>
lothar

Hi Patrick,
</br></br>
I get the following error message:
</br></br>
ORA-06550: Zeile 11, Spalte 9: PLS-00103: Fand das Symbol ";" als eines
</br>
der folgenden erwartet wurde: begin case declare end exception exit for
</br>
goto if loop mod null pragma raise return select update while with
</br>
<< close current delete fetch lock insert open rollback savepoint
</br>
set sql execute commit forall merge pipe Das Symbol "exit" ersetzte ";", um fortzufahren.
</br>
Error ERR-1000 Unable to determine List of Values from "declare function x return varchar2
</br>
is begin IF :P306_KAT = 'KUNDE' THEN RETURN ' select distinct (k.name1 ||''---''||d.kndnr)
</br>
d, d.kndnr r ' ||' from db_t d join kunden_t k on (d.kndnr = k.kunnr) ' ||'
</br>
where to_number(d.vkorg) = 3 order by 1'; ELSIF :P306_KAT = 'EXTWG' THEN RETURN
</br>
'SELECT ewbez d, extwg r FROM warengruppen_t order by 1'; ELSIF :P306_KAT = 'MATKL'
</br>
THEN RETURN 'SELECT wgbez d, matkl r FROM matklassen_t order by 1'; ELSIF :P306_KAT = 'LAND'
</br>
THEN RETURN 'SELECT land d, kz r FROM laender_t order by 1'; END IF; return null; end;
</br>
begin wwv_flow_utilities.g_query := x; end;".
</br></br>
Error in init lov: ORA-00900: Ungültige SQL-Anweisung p_lov:IF :P306_KAT = 'KUNDE' THEN RETURN
</br>
' select distinct (k.name1 ||''---''||d.kndnr) d, d.kndnr r ' ||' from db_t d
</br>
join kunden_t k on (d.kndnr = k.kunnr) ' ||' where to_number(d.vkorg) = 3 order by 1';
</br>
ELSIF :P306_KAT = 'EXTWG' THEN RETURN 'SELECT ewbez d, extwg r FROM warengruppen_t order by 1';
</br>
ELSIF :P306_KAT = 'MATKL' THEN RETURN 'SELECT wgbez d, matkl r FROM matklassen_t order by 1';
</br>
ELSIF :P306_KAT = 'LAND' THEN RETURN 'SELECT land d, kz r FROM laender_t order by 1';
</br>
END IF; wwv_flow_security.g_security_group_id:725803405601837wwv_flow_security.g_curr_flow_security_group_id
</br>
:725803405601837 Unable to bind ":P306_KAT" Unable to initialize query.
</br>
RETURN ' select distinct (k.name1 ||''---''||d.kndnr) d, d.kndnr r ' ||' from db_t d
</br>
join kunden_t k on (d.kndnr = k.kunnr) ' ||' where to_number(d.vkorg) = 3 order by 1';
</br>
ELSIF :P306_KAT = 'EXTWG' THEN RETURN 'SELECT ewbez d, extwg r FROM warengruppen_t order by 1';
</br>
ELSIF :P306_KAT = 'MATKL' THEN RETURN 'SELECT wgbez d, matkl r FROM matklassen_t order by 1';
</br>
ELSIF :P306_KAT = 'LAND' THEN RETURN 'SELECT land d, kz r FROM laender_t order by 1'; END IF;
</br>
wwv_flow_security.g_security_group_id:725803405601837wwv_flow_security.g_curr_flow_security_group_id:725803405601837
</br>
Unable to bind ":P306_KAT" Unable to initialize query.
</br></br>
btw: I'm working with Apex-Version 2.0.0.00.49, database 10gR2
</br></br>
exact the same LOV works when I change from Popup to select list.
</br>
Unfortunately I need a popup window, because in production a result set
</br>
will have several hundred rows.
</br></br>
lothar

Similar Messages

  • Creating a dynamic lov based on a column

    Hi,
    I want to create a dynamic lov based on a column in a database-table.
    Eg. the query
    'select code, description from code_table'
    is the contents of the column 'lov_query' in the table 'parameters'.
    For every parameter there can be a different lov-query, but the result is always
    two columns (code and description, number and name, etc.), exactly what you need to use in a lov.
    I've written a (dbms_sql) function that takes the parameter-id and returns the lov_query.
    create or replace function "GET_PMR_LOV"
    (pmr_id in NUMBER)
    return VARCHAR2
    is
    cur INTEGER := DBMS_SQL.OPEN_CURSOR;
    fdbk INTEGER;
    l_pmr_id NUMBER(9) := pmr_id;
    l_stmnt VARCHAR2(2000);
    begin
    DBMS_SQL.PARSE
    (cur, 'select pmr.lov_query from parameters pmr where pmr.ID ' || ' = 'L_PMR_ID', DBMS_SQL.NATIVE);
    DBMS_SQL.BIND_VARIABLE (cur, 'L_PMR_ID', l_pmr_id);
    DBMS_SQL.DEFINE_COLUMN (cur, 1, l_stmnt, 2000);
    fdbk := DBMS_SQL.EXECUTE (cur);
    fdbk := DBMS_SQL.FETCH_ROWS (cur);
    IF fdbk > 0
    THEN
    DBMS_SQL.COLUMN_VALUE (cur, 1, l_stmnt);
    return (l_stmnt);
    ELSE     
    return null;
    END IF;
    DBMS_SQL.CLOSE_CURSOR (cur);
    END;
    But now I'm stuck on how to pass on this statement in HTMLDB
    as an dynamic lov, I don't seem to be able to execute this statement
    into the two display and return columns. Any ideas?

    Hello again,
    This lov is on an updatable report-column where the user has to make a choice from an non-named, popup and query-based lov. In the lov-query box I have just put:
    "return get_pmr_lov(:p41_param_id)" (without the quotes ;-)
    Here's my latest version plus an alternative, which both seem to work fine:
    create or replace function "GET_PMR_LOV"
    (pmr_id in NUMBER)
    return VARCHAR2
    is
    cur INTEGER := DBMS_SQL.OPEN_CURSOR;
    fdbk INTEGER;
    l_pmr_id NUMBER(9) := pmr_id;
    l_stmnt VARCHAR2(1000);
    begin
    DBMS_SQL.PARSE (cur, 'select pmr.lov_query from paramaters pmr where pmr.ID ' || '= :L_PMR_ID', DBMS_SQL.NATIVE);
    DBMS_SQL.BIND_VARIABLE (cur, 'L_PMR_ID', l_pmr_id);
    DBMS_SQL.DEFINE_COLUMN (cur, 1, l_stmnt, 1000);
    fdbk := DBMS_SQL.EXECUTE (cur);
    fdbk := DBMS_SQL.FETCH_ROWS (cur);
    IF fdbk > 0 THEN
    DBMS_SQL.COLUMN_VALUE (cur, 1, l_stmnt);
    return (l_stmnt);
    ELSE
    return null;
    END IF;
    DBMS_SQL.CLOSE_CURSOR (cur);
    END;
    create or replace function "GET_PMR_LOV2"
    (pmr_id in NUMBER)
    return VARCHAR2
    is
    l_pmr_id NUMBER(9) := pmr_id;
    l_stmnt VARCHAR2(1000);
    BEGIN
    EXECUTE IMMEDIATE 'select pmr.lov_query from parameters pmr where pmr.ID = :1'
    INTO l_stmnt USING l_pmr_id;
    return l_stmnt;
    END;
    The error-message remains the same, unable to bind :p41_param_id !

  • Dynamic LOV based on report column

    HI,
    I've a standard report with Two columns. Column1 is standard Report Column and Column 2 is a LOV based on an SQL Query.
    Now I need to filter the LOV (add a where clause) based on the value in the column1.
    For example, consider Column1 as "country" and column2 as "state". so the in column2(LOV), user should see only the list of states belongs to the corresponding country(Column1)
    Please note that the report is based on an SQL query
    Any clue on how to do this.
    I'm using APEX4.1.
    Thanks in advance
    Prasanth

    I think you are looking for this https://forums.oracle.com/forums/search.jspa?threadID=&q=tabular+form+cascade&objID=f137&dateRange=all&userID=&numResults=15&rankBy=10001
    please search the forum before posting a question
    Thanks

  • Popup list manager and dynamic LOV

    I'm stumped, stuck and thought I was doing something simple. Here's what I have:
    1) Checkbox dynamically built (P3_CHECKBOX)
    2) A hidden field to store the checkbox values (P3_CHECKED)
    3) A popup list manager based on the hidden field.
    I am using JavaScript to populate the P3_CHECKED whenever P3_CHECKBOX is changed. However, my dynamic LOV based on the hidden field always returns no rows. The SQL for the LOV is:
    select application_role, role
    from roles_view
    where '%'||application||'%' LIKE to_char(:P3_CHECKED) order by 1
    Am I missing something simple? I know the hidden field is getting populated because if I change to field to text, I see the data change. There is also data in the table because executing the query using the data in P3_CHECKED returns the expected rows.
    Any help would be appreciated.
    Mike

    Mike,
    The lov query accesses the value of P3_CHECKED from session state. That isn't stored in session state until the page is submitted.
    Scott

  • Problem with dynamic LOV and function

    Hello all!
    I'm having a problem with a dynamic lov in APEX 3.0.1.00.08. Hope you can help me!
    I have Report and Form application. On the Form page i have a Page Item (Popup Key LOV (Displays description, returns key value)).
    When i submit the sql code in the 'List of vaules defention' box. I get the following message;
    1 error has occurred
    LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.
    When i excecute the code below in TOAD or in the SQL Workshop it returns the values i want to see. But somehow APEX doesn't like the sql....
    SELECT REC_OMSCHRIJVING d, REC_DNS_ID r FROM
    TABLE(CAST(return_dns_lov_fn(:P2_DNS_ID) AS dns_table_type)) order by 1
    returns_dns_lov_fn is a function, code is below;
    CREATE OR REPLACE FUNCTION DRSSYS.return_dns_lov_fn (p2_dns_id number)
    RETURN dns_table_type
    AS
    v_data dns_table_type := dns_table_type ();
    BEGIN
    IF p2_dns_id = 2
    THEN
    FOR c IN (SELECT dns_id dns, omschrijving oms
    FROM d_status dst
    WHERE dst.dns_id IN (8, 10))
    LOOP
    v_data.EXTEND;
    v_data (v_data.COUNT) := dns_rectype (c.dns, c.oms);
    END LOOP;
    RETURN v_data;
    END IF;
    END;
    and the types;
    CREATE OR REPLACE TYPE DRSSYS.dns_rectype AS OBJECT (rec_dns_id NUMBER, rec_omschrijving VARCHAR2(255));
    CREATE OR REPLACE TYPE DRSSYS.dns_table_type AS TABLE OF dns_rectype;
    I tried some things i found on this forum, but they didn't work as well;
    SELECT REC_OMSCHRIJVING display_value, REC_DNS_ID result_display FROM
    TABLE(CAST(return_dns_lov_fn(:P2_DNS_ID) AS dns_table_type)) order by 1
    SELECT REC_OMSCHRIJVING display_value d, REC_DNS_ID result_display r FROM
    TABLE(CAST(return_dns_lov_fn(:P2_DNS_ID) AS dns_table_type)) order by 1
    SELECT a.REC_OMSCHRIJVING display_value, a.REC_DNS_ID result_display FROM
    TABLE(CAST(return_dns_lov_fn(:P2_DNS_ID) AS dns_table_type)) a order by 1
    Edited by: rajan.arkenbout on 8-mei-2009 14:41
    Edited by: rajan.arkenbout on 8-mei-2009 14:51

    I just had the same problem when I used a function in a where clause.
    I have a function that checks if the current user has acces or not (returning varchar 'Y' or 'N').
    In where clause I have this:
    where myFunction(:user, somePK) = 'Y'
    It seems that when APEX checked if my query was valid, my function triggered and exception.
    As Varad pointed out, check for exception that could be triggered by a null 'p2_dns_id'
    Hope that helped you out.
    Max

  • Dynamic LOV based on Current user

    How do i make a dynamic LOV based on the user id of the current user.
    Also how to insert values from a form into a database
    Can anyone please help me out.
    Thanks

    Use portal.wwctx_api.get_user to get the currently logged in userid.
    The simplest example of a form manipulating data is to create the form based on a table. All DML works automagically. You can base your form on a procedure with dummy columns and do your own DML if you wish. Lots more flexibility that way...

  • Item Selection on a dynamic LOV (SQL Query)

    Hi,
    I've a dynamic LOV with an SQL query who return a list of data (one column). When i select a data in this LOV to be use as an item (sql query) in the same page the data is always null. In debug mode substitution string is null.
    FYI : when the data is selected, a button is clik to perform an sql query for a report in another page.
    Thanks. Sorry Abasolute beginner
    Message was edited by:
    user581765

    Thanks for Your help.
    The date is in fact a CHAR display (not really a date) so that is not the error.
    For your information when i select a row in the list (format char YYYYMMDD_HHMM) it seems that Apex do not catch my select in the Session state.
    I've change the item name with P2_DATE_FLOW but the problem remain.
    This is the debug log if can help
    0.03: Application 114, Authentication: CUSTOM2, Page Template: 3644802034190382
    0.06: ...Session ID 1868105032215374 can be used
    0.06: ...Application session: 1868105032215374, user=Neop
    0.06: ...Determine if user "Neop" workspace "2859608277950243" can develop application "114" in workspace "2859608277950243"
    0.06: Session: Fetch session header information
    0.06: ...Metadata: Fetch page attributes for application 114, page 3
    0.06: Fetch session state from database
    0.06: Branch point: BEFORE_HEADER
    0.06: Fetch application meta data
    0.08: Computation point: BEFORE_HEADER
    0.08: Processing point: BEFORE_HEADER
    0.08: Show page template header
    0.08: Computation point: AFTER_HEADER
    0.08: Processing point: AFTER_HEADER
    0.08: Computation point: BEFORE_BOX_BODY
    0.08: Processing point: BEFORE_BOX_BODY
    0.08: Region: Report 1
    Report 1
    0.08: show report
    0.09: determine column headings
    0.09: parse query as: CFM_MDRE
    0.12: binding: ":P2_DATE_FLOW"="P2_DATE_FLOW" value="0"
    0.14: print column headings
    0.14: rows loop: 15 row(s)
    No data found.

  • Dynamic LOV in a Tabular Form

    Can somebody please tell me if there is a easy way to code a
    dynamic LOV in a Tabular Form?
    I need the ability to access a column value in the table row, to use in the WHERE clause of LOV query for another column in the row? Seems
    like that should be easy , but not finding an answer.
    Thanks for any help.
    Carol

    Hi Carol,
    You can add the select list's definition directly into your SQL statement using APEX_ITEM.SELECT_LIST_FROM_QUERY - see: [http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDIDGDA]
    If you first run your page with your existing select list on it, then do a View Source and look for the select list, you will see a "name" attribute of something like "f01" or "f02" etc. Make a note of the number part of this.
    Then update your SQL statement to include the above and using the number you noted as the Index value (say, 4):
    SELECT EMPNO,
    ENAME,
    DEPTNO,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(4,MGR,'SELECT ENAME d, EMPNO r FROM EMP WHERE DEPTNO = ' || DEPTNO || ' AND EMPNO &lt;&gt; ' || EMPNO) MGR
    FROM EMPThat would give you a select list of employees in the same department as the current employee (excluding that employee themself)
    Andy

  • Select item on a Tabular form with a different dynamic LOV on each row

    I would like to use a tabular form where one of the columns is a dynamic LOV based Select, and where that dynamic LOV refers to one of the column values on each row.
    So if the tabular form represented a list of teams and the LOV-based Select column was the current team leader, I would want that select list to be populated only with the members of that team (different for each row). Since the list of team members is in some other table (all_players or something) I would want to populate the LOV with a query with a where clause that selected only those players records with a team-membership equal to the current tabular form's team id. So, on each row that select list's contents would be different.
    -- Justin

    I'm beating a dead horse here but I did get something to work with "less" code. My current needs do not require me to cascade drop downs, I only want 1. You can use the query like the in the first reply (but I don't have a table with joins) I created a simple two column table dept_emp with 4 records 10,null 20,null .... I want to fill the nulls with an employee but ONLY an employee that matches the dept. (Same concept of team leader and members).
    Here's the query:
    select apex_item.display_and_save(1,dept) dept,
    apex_item.select_list_from_query(2, name, 'select ename from emp where deptno='||dept) name
    from dept_emp
    I removed the code that was there already (ApplyMRU) and just put in this code:
    BEGIN
    FOR i IN 1..HTMLDB_APPLICATION.G_F01.COUNT LOOP
    UPDATE dept_emp
    SET
    name=HTMLDB_APPLICATION.G_F02(i)
    WHERE dept=to_number(HTMLDB_APPLICATION.G_F01(i));
    END LOOP;
    END;
    The G_F01 matches the column 1 and so forth. There's more documentation but little explanation at:
    http://download.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25309/api.htm#sthref2171
    The thing I could not get to work was a dynamic message
    #MRU_COUNT# row(s) updated, #MRI_COUNT# row(s) inserted.
    Not sure when the MRU_COUNT gets populated (probably in the routine I removed ;))
    You're probably way past me by now but I like to have as little code as possible when it comes to maintaining an app. That's why I liked oracle forms so much. This kind of stuff was pretty easy to do.
    Thanks again everybody!

  • Problem - Creating a Dynamic LOV using duplicate value in select statement

    I am trying to create a Dynamic LOV by attempting to follow a pattern similar to the following:
    select shop_name d, shop_id r
    from shops
    order by 1
    However, I want to use the shop_name twice as in the following because I do not have any other unique identifier available such as a shop_id to associate with the shop name:
    select shop_name d, shop_name r
    from shops
    order by 1
    But I get an error where I am not allowed to duplicate the shop_name in the select statement. I read somewhere on this forum where it can be done but I can't find exactly how.
    Can someone tell or show me how to accomplish this?
    Thanks in anticipation for your answer.
    Thanks,
    Ric

    Ric,
    I just tried to do this on APEX 3.0, and it worked just fine with this SQL:
    select ename d, ename r from emp order by 1Perhaps you could put an example on apex.oracle.com or specify the error message that you're getting.
    So as long as you have uniquely aliased both columns, this should not present a problem.
    Thanks,
    - Scott -

  • Creating dynamic LOV in form builder 6i

    Hi All,
    I am new to form builder.
    I want to create dynamic lov, means
    Project type
    Client
    Work_type(thsi is also lov) ->> 1) Billable
    Reason (this is also lov) ->> 1) Billable
    Work_type(thsi is also lov) ->> 2) Non-Billable
    Reason (this is also lov) ->> 1) Fresher
    2) Project Manager
    As shown above, Suppose the project type is client then I will select either "Billable" or "Non-Billable" value.
    If I am selecting Work_type LOV as "Billable" then it should display "Billable" value in reason LOV
    or if I am selecting Non-Billable value from Work_type LOV then reason LOV will display the list of value as Fresher and Project Manager.
    Please help me, its very urgent.
    Thanks in advance.
    Regards,
    Bluetooth

    Bluetooth,
    This can be accomplished by creating two seperate record groups; one for Billable and one for Non-Billable. Then - in the WORK_TYPE When-Validate-Item (WVI)trigger - when the value is "Billable" you assign the Billable Record Group to your LOV or if the value is Non-Billable, then you assign the Non-Billable record group to your LOV. Your Record Group queries must return the same number of columns and the column names must match. If your record groups need to have a different number of columns and column names, then I would just use two seperate LOV's and assign them to the item accordingly. For example:
    /* Sample WVI trigger */
    DECLARE
      lov_id    LOV;
      item_id   ITEM;
    BEGIN
      lov_id := Find_LOV('YOUR_LOV_NAME');
      /* Option 1: Change Record Group of LOV */
      IF ( :YOUR_BLOCK.WORK_TYPE = 'BILLABLE' ) THEN
        IF ( Get_LOV_Property(lov_id, GROUP_NAME) != 'BILLABLE_RG' ) THEN
          Set_LOV_Property(lov_id, GROUP_NAME, 'BILLABLE_RG');
        END IF;
      ELSIF ( :YOUR_BLOCK.WORK_TYPE = 'NONBILLABLE' ) THEN
        IF ( Get_LOV_Property(lov_id, GROUP_NAME) != 'NONBILLABLE_RG' ) THEN
          Set_LOV_Property(lov_id, GROUP_NAME, 'NONBILLABLE_RG');
        END IF;
      END IF;
      item_id := Find_Item('YOUR_BLOCK.REASON');
      /* Option 2: Seperate LOV's */
      IF ( :YOUR_BLOCK.WORK_TYPE = 'BILLABLE' ) THEN
        IF ( Get_Item_Property(item_id, LOV_NAME) != 'BILLABLE_LOV' ) THEN
          Set_Item_Property(item_id, LOV_NAME, 'BILLABLE_LOV');
        END IF;
      ELSIF ( :YOUR_BLOCK.WORK_TYPE = 'NONBILLABLE' ) THEN
        IF ( Get_Item_Property(item_id, LOV_NAME) != 'NONBILLABLE_LOV' ) THEN
          Set_Item_Property(item_id, LOV_NAME, 'NONBILLABLE_LOV');
        END IF;
      END IF;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Dynamic LOV on portlet

    I have a dynamic LOV as the only item in a portlet. The page is a 2 column layout with 2 tabs. When I click on the second tab I get 'There is currently no HTML content' message where the LOV should appear. Why?

    Hi, I'm using Discoverer portlet on my Portal. As far as I know you need to map your form parameters to the page parameters and page parameters to Discoverer Portlet parameter. (Form > Page > Discoverer). There seems to be no direct way to pass parameters to Discoverer portlet.
    Can you explain how did you build Custom Form with dynamic LOV and use session variables. I tried but I was unable to do so.
    Please, provide steps to do the task. This would be of great help.
    Thanks in advance.

  • Dynamic LOV in universe based report

    Hi,
    My question is simple.
    In Crystal Reports ,is it possible to have a dynamic LOV for the prompts when the report is based on universe? When ever the user chooses the drop down in prompt page, he should see only his values in LOV. This works in WebI.
    I read from the forum that in crystal, this can only be possible with Business View. Is this true?
    If i use Business view and the user opens the report in Infoview, does he needs DSN to use the connection i have created in Business View to refresh the LOV dynamically?
    Please suggest a solution for dynamic LOV as this started as a simple issue and i'm breaking my head to solve this!!

    Once you create any dynamic parameter in crystal which is using direct database connection and if you publish that report to server then it automatically generates a list of values using business view in repository in which the business view uses the same connection what you have used for the report. Now when you try to run the report in info view first it prompts for LOV from repository. Before refreshing the LOV it prompts to connect to your database and if you don't want this prompt to popup everytime then open the connection in business view manager and in the properties select never prompt by giving the database credentials.
    You can also create LOV using universe as datasource. To get the updated list you need to change the registry key settings like this
    select the option Always refresh before use in the universe properties and change the registry like this
    HKEY_LOCAL_MACHINE\software\business objects\suite 11.5\crystal reports\database\AlwaysRefreshUniverseLOV
    Type: String
    Recognized Values: Yes, 1
    HTH
    Raghavendra.G

  • Dynamic lov Creation.....

    hi
    how i can create a dynamic lov whose columns i will be knowing only at runtime
    ie sometimes the the columns in the select statement will be 2 some times it will be 5 sometimes 9...etc..to say n number.
    regards
    Kris

    Have not personally tried it, but could you not just create one lov with say 10 (or the max desired) columns and one record group with same number of columns, then at runtime change the record group to query what ever you wanted filling in the extra columns with nulls, then just set the column width of the null columns in the lov to 0.
    Should work.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Dynamic LOV giving error

    Hi ,
    I have a dynamic LOV like this
    IF :P1_IND_MGR = 'I' THEN
    RETURN
    'SELECT DISTINCT(first_name||' '||last_name) a ,
    (first_name) b
    FROM MIS_CDR_HR_EMPLOYEES_MV
    ORDER BY 1';
    ELSE
    RETURN
    'SELECT DISTINCT(manager_name) a ,
    manager_name b
    FROM MIS_CDR_HR_EMPLOYEES_MV
    ORDER BY manager_name';
    END IF;
    When I run the application I get an error message like this , and its due to concatinating a space between first_name and last_name. How can I get the desired results ?
    " ORA-06550: line 3, column 34: PLS-00103: Encountered the symbol "||last_name) a , (first_name) b FROM MIS_CDR_HR_" when expecting one of the following: . ( * @ % & = - + ; < / > at in is mod remainder not rem <> or != or ~= >= <= <> and or like between || multiset member SUBMULTISET_ The symbol "." was substituted for "||last_name) a , (first_name) b FROM MIS_CDR_HR_" to continue.

    I think you need extra sinble quotes around your space in the first line:
    'SELECT DISTINCT(first_name||'' ''||last_name) a ,
    Jon.

Maybe you are looking for

  • Internal table's Memory space problem

    Internal table is running out of memory due to the no of records. I am trying to merge the records of two internal tables into third one. and this third internal table runs out of memory.

  • CTAS method takes long time - Any suggestion.

    Hi, Please find the query below. The 'select' statement was taking more than a day time to execute and i tuned the same. Now i am getting the results in 5 seconds. But when i try to load the data that i get from 'select' statement into table using CT

  • Upgrading from FCS1 to FCS2

    I have FCS1 Academic running on two machines at work. An Intel iMac and a Power Mac G5. Should I uninstall FCS1 before installing 2. It seems people on this forum like to use an actual FCS_Remover that you download and run. Is that what I should do?

  • How can i copy standard forms? et.al.

    good day experts. i would like to ask the following: A. About FORMS... 1. How can I copy the whole standard program of a form written/designed in SapScript to make a "z_xxxxxxxxx program"? 2. How can i check the print program of a certain form? 3. Ho

  • I keep getting the same error when trying to install?

    any ideas?