Use APEX_ITEM.SELECT_LIST_FROM_LOV on report

Hi All,
I am trying to create a editable report.
In this report, I have a few columns that allow users to update information. I have a problem to have my program return the current values of APEX_ITEM.SELECT_LIST_FROM_LOV in the specific ticked rows.
For example:
Here is the code for my report:
1.
SELECT apex_item.checkbox(1, h.nbt_po_seq, 'UNCHECKED') defaulted,
--apex_item.hidden(4, h.nbt_po_seq) "PO_SEQ ",
      h.po_num,
       h.po_vendor_name,
       (select d.nbt_dept_desc
          from nbt_dept d
         where h.nbt_dept_seq = d.nbt_dept_seq) "dept_name",
APEX_ITEM.SELECT_LIST_FROM_LOV
    (p_idx           => 3,
    p_value         =>NBT_LE_INFO_SEQ_holder,
    p_lov  => 'NBT_LE_INFO',
    p_attributes   =>NULL,
    p_show_null    => 'YES',
    p_null_value   =>  NULL,  --'%NULL%',
    p_null_text     => NULL,
    p_item_id       => NULL,
    p_item_label    => NULL,
    p_show_extra    => 'YES') "LE_NUM"     
  FROM nbt_po h------------------------------------------------------
2. Here is my validation, just to see what values return.
DECLARE
   l_message  VARCHAR2 (4000);
BEGIN
FOR i IN 1 .. apex_application.g_f01.COUNT LOOP
             l_message := l_message
            || '<br>'|| 'LE_NUM: ' || :P17_LE_NUM || '    '
            || 'Row '
            ||i || '     ' || 'f01- '|| apex_application.g_f01(i)|| '<br>'
            || 'f02- '|| apex_application.g_f02(i)||'<br>'
||  'f03- '||apex_application.g_f03(i)
        --   || 'f04- '||apex_application.g_f04(i)  ||'<br>'
           -- || 'f01_' || '#ROWNUM#'
                    || '<br>'
END LOOP;
RETURN LTRIM (l_message, '<br>');
END;-------------------------------
3. If I ticked row 3 and 5.
I can get correct ID from <b>h.nbt_po_seq</b>, but, for APEX_ITEM.SELECT_LIST_FROM_LOV value, I am getting row 1 and 2, not 3 and 5.
Can someone please help me and let me know how I can correctly refer to the correct ticked row values for "APEX_ITEM.SELECT_LIST_FROM_LOV "?
Thank you,
Ling
Edited by: LC on Sep 14, 2012 10:52 PM

Hi
I really appreciated your response.
I have read the document many times before I submitted the question for help. This is the first time that I have done a report like this, and couldn't find a good example.
Do you know an example that I can take a look and can refer to the "ticked" value of APEX_ITEM.SELECT_LIST_FROM_LOV?
Here is my test result. I actually ticked row 2,4 and 5. The LOV value of those three rows are 1.
But, here is giving me LOV values in row 1,2 and 3. So, the values become NULL, 1, NULL.
LE_NUM:
Row 1
f01- 2
f02-
f03-
LE_NUM:
Row 2
f01- 56
f02- 14
f03- 1
LE_NUM:
Row 3
f01- 55
f02-
f03-
FOR i IN 1 .. apex_application.g_f01.COUNT LOOP
             l_message := l_message
            || '<br>'|| 'LE_NUM: ' || :P17_LE_NUM || '    '
            || 'Row '
            ||i || '     ' || 'f01- '|| apex_application.g_f01(i)|| '<br>'
           'f03- '||apex_application.g_f03(i)
        --   || 'f04- '||apex_application.g_f04(i)  ||'<br>'
           -- || 'f01_' || '#ROWNUM#'
                    || '<br>'
END LOOP;I think it is because the i value in apex_application.g_f03(i) is counting from row 1,2,3 while Checkbox apex_application.g_f01(i) is counting ticked row 1,2,3
Please help!! How I can return values for ticked 1,2,3
Ling

Similar Messages

  • Exception when using apex_item.select_list_from_lov

    I have a query where I want to use a select list to enable the user to change the value of an attribute. However, when i try using apex_item.select_list_from_lov or apex_item.select_list_from_query I get an exception. My report region shows ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    I tried querying a smaller table, and then it works. Is there a size limit for select_list_from_query and select_list_from_lov? And if so, what is it? The list of values and the query works fine when using them in select list items (in a form). It also works fine when using apex_item.popup_from_lov.
    Camilla

    Camilla,
    Those functions return a varchar2 value so you are limited to 4000 characters for a column of that type selected in SQL. You can use the select_list_from_query_xl or select_list_from_lov_xl, which return a CLOB. In any case the size of the HTML generated for the row must be less than 32K.
    Scott

  • Using apex_item in a report based on collection

    Hi:
    Need some assistance please.
    I have a report based on a collection and have used apex_item.text to create some of the text fields.
    I need an onchange event to call javascript on one of the columns. I have found that when the colum (created by apex_item.text) is set to "Standard Report Column" that onchange fires as expected but does not when set to "text field".
    The issue is that because the column is set to standard report column it displays the html and I don't want this.
    Can I use the text field and still make use of onchange, or, can I eliminate the display of the html in the field?
    Any assistance would be most appreciated.
    Regards,
    Bruce

    Post Author: wendy biyela
    CA Forum: WebIntelligence Reporting
    Hi Kiran
    Try this. Assumed measures: &#91;Date&#93; and &#91;Closing balance&#93;
    Assuming this is your table in the report, below i have shown you the formulae that should be in your table. Previous() is a function and will work depending on your table. In this case Previous is the previous date so the first Opening balnce will always be null.
    Date                    Opening Balance                                     Closing balance
    =&#91;Date&#93;               =Previous(&#91;Closing balance)                    =&#91;Closing Balance&#93;
    Regards,

  • How to add a new record in updatable report using apex_item

    Hi,
    i am using an updatable report using the following select
    select
    aPEX_ITEM.POPUP_FROM_QUERY(2,emp_code,
    ' SELECT emp_surname, emp_code FROM hrm_employee ' ,null,null,null,null,null,'onchange="f_set_multi_items_tabular(this.value ''#ROWNUM#'''
    || ')"',null,null,null) PF_No,
    apex_item.text (32,
    NULL,
    80,
    100,
    'style="width:190px" ',
    'f11_' || '#ROWNUM#'
    ) Name,
    " REST_DATE",
    "REMARKS",
    from "roster"
    when i click on the button add row , only the column rest_date and the remarks are enable.
    why is the apex_item.text and apex_item_popup_from_query is disable ? and how i can make it enable.
    thanks
    regards
    jerry

    I could see that you are using the addRow() function to generate new blank row.
    I guess, this function(used by the builtin tabular form s) , identifies editable columns when they are marked so at the report column attributes.
    When you use apex_item API, it expects the columns to be standard report column and hence render the new rows as such.
    Some one from the development team might be able to give a better answer on that.
    As for avoiding this issue
    <li>One method , would be to define the columns editable(and display types) in report column attributes.
    <li> You can duplicate the last row using jQuery( *$('tr.highlight-row:last).after( $('tr.highlight-row:last).clone() )* ) and removing the field values, but events(for example datepicker) would remain attached to the original row , so it isn't very straightforward either.
    <li>If you want to use apex_item you would have to use a pseudo union to DUAL for generating a blank row and re-render the report either by a page load or a Dynamic Action. Sounds like a nice idea for a plugin.
    Now , if you want to add rows multiple times without saving them, then you would need to store the values in a collection at load and update the collection before adding the row.

  • Ajax Autocomplete Tabular does not work using apex_item.text in SQL Query.

    Hello,
    Is it possible to use the search function which is used in, Dennis Kubicek example, ENAME topic Ajax Autocomplete Tabular
    in a sql query using apex_items?
    Query line :
    , apex_item.text(17,xp.part_nr,null,null,'onfocus="f_register(this);" autocomplete="off"') PART
    At first I followed the example by adding 'onfocus="f_register(this);" autocomplete="off" in the element attributes in the report field.
    This didn't work... so tried to add the it in the attirbutes parameter of the apex_item.
    But this still doesn't work. No errors are given, it does not respond.
    Could somebody please help me?
    Thx!
    Astrid

    Well, I'm trying to take this one step further, but I seem to be having some difficulty.
    I'm trying to make a Filter screen to create a dynamic where clause filter screen.
    This is a page I made with Popup LOVS, just to show you my goal (now trying to use autofilters)
    http://apex.oracle.com/pls/otn/f?p=29989:5
    I have a table on my system that tells you where the field is, and I'm using that to get the table (didn't want to change the javascript, so I pass in a static value).
    This is the javascript code I used
    <pre>
    <script language="JavaScript" type="text/javascript">
    function f_register(p_this,p_name)
    var p_registered = $x('P5_ITEM_ID').value;
         var p_this_name = $x(p_this).id;
    //alert(p_this_name);
    if (p_registered != p_this_name)
    register(p_this_name, "COSTING_M", p_name, "blue", "red");
    $x('P5_ITEM_ID').value = p_this_name;
    </script>
    </pre>
    This is my query
    <pre>
    select column_name || apex_item.hidden(1,column_name) Col_name,
    apex_item.SELECT_LIST_FROM_lov(2,'=','OPERATOR') OPERATOR,
    apex_item.text (3,
    NULL,
    20,
    200,
    'onfocus="f_register(this,''' || column_name || ''');" autocomplete="off"',
    'f3_' || '#ROWNUM#',
    NULL
    ) value,column_id
    from user_tab_cols
    where table_name = 'COSTING_M'
    ORDER BY ROWNUM
    </pre>
    and here is my on-demand process
    <pre>
    declare
    TYPE CurTyp IS REF CURSOR;
    v_row varchar2(4000);
    rec CurTyp;
    V_TABLENAME NKW.UTFIELD_M.TABLE_NAME%TYPE;
    begin
    BEGIN
    SELECT TABLENAME INTO V_TABLENAME
    FROM NKW.UTFIELD_M
    WHERE FIELD_NAME = :TF_SL_COLUMN;
    EXCEPTION WHEN NO_DATA_FOUND THEN RETURN; END;
    :TF_SL_SEARCH := replace(:TF_SL_SEARCH, '&amp;','&');
    :TF_SL_SEARCH := replace(:TF_SL_SEARCH, '&lt;','<');
    :TF_SL_SEARCH := replace(:TF_SL_SEARCH, '&gt;','>');
    :TF_SL_SEARCH := replace(:TF_SL_SEARCH, '&quot;','"');
    owa_util.mime_header('text/xml', FALSE);
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<rowset>');
    open rec for
    'select distinct ' || :TF_SL_COLUMN || ' ' ||
    'from NKW.' || V_TABLE_NAME || ' ' ||
    'where '||:TF_SL_COLUMN||' like :1||''%'' ' ||
    'and rownum < 100 ' ||
    'order by '||:TF_SL_COLUMN
    using :TF_SL_SEARCH;
    loop
    fetch rec into v_row;
    exit when rec%NOTFOUND;
    htp.prn('<row>' || htf.escape_sc(v_row) || '</row>');
    end loop;
    htp.prn('</rowset>');
    end;
    </PRE>
    I made some slight mods to make the table dynamic from my source table (this is to grab master files when they exist and not to when they don't).
    I get my select list, but it's blank on all fields, any suggestions?
    thanks,
    Scott

  • APEX_ITEM on Interactive Report losing all the data.

    Hi!
    I'm having some troubles with some apex_items on interactive report.
    The problem happens when i save the interactive report with apex_items and a validation in some of the items fail then i lose all the data entered.
    I made i test application to you guys see the problem and try to solve it.
    URL: http://apex.oracle.com/pls/apex/
    The scheme is Sn4k8
    User: guest
    Password: 123654g
    To see the application: http://apex.oracle.com/pls/apex/f?p=20135:1:
    The application is Interactive Report Example / Page number 1
    A example to test is type on the fields values and then type a start date bigger then the end date this is cause a validation error and you will see all your data entered lost.
    I tryed to find something on the web but i could not find nothing if you guys know something to help post it.
    Regards,
    Ismael Filipe
    Edited by: Sn4k8 on 25/03/2010 12:26

    I think there is a solution with java or pl/sql.
    Try to use the example application and type values in the fields and then type "d" at some date. This will cause a exception and will redirect to a apex erro page, if you click at "ok link", you will come back to the interactive report page and you will see that all your data remains intact.
    I think there is a solution...
    Regard,
    Ismael Filipe

  • APEX: Store Values of fields which are created dynamically(Using APEX_ITEM)

    Hello All,
    I am creating one application in which i create one report with dynamic fields(using APEX_ITEM Package) and non-dynamic fields(Taking from table). Now i want to store the value of the dynamic fields into table. So please help me on that.
    I want to store value of APEX_ITEM.TEXT fields in a table, but i don't have names of it so how to store value in table?
    select APEX_ITEM.CHECKBOX2(1,HC.S_ID) "SELECT",
    HC.ACT_NAME,HC.REBOOT_DATE,
    APEX_ITEM.TEXT(2,00) "Start Time",
    APEX_ITEM.TEXT(3,00) "End Time",
    APEX_ITEM.TEXTAREA(4,'Enter Remarks',2,40) "Remarks" FROM HWC_CHK_SCHEDUELE HC;
    Thanks,
    Jiten

    Let me clarify a finer point. The APEX_ITEM API provides for value , which can come from a table.
    You need to add APEX_ITEM to your columns selected from the table as well.
    Once you have done that then the p_idx value , the first numeric, in the APEX_ITEM, is accessing in DOM as well as PL/SQL.
    In DOM, for JavaScritps, the p_idx 1 becomes f01, 2 becomes f02 ,etc.
    In PLSQL the same are APEX_APPLICATION.G_F01, APEX_APPLICATION.G_F02, etc.
    Hope that explains what you need to do.
    select APEX_ITEM.CHECKBOX2(1,HC.S_ID) "SELECT",
    APEX_ITEM.TEXT(2,HC.ACT_NAME) "ACT_NAME",
    APEX_ITEM.DATE_POPUP(3,HC.REBOOT_DATE) "REBOOT_DATE",
    APEX_ITEM.DATE_POPUP(4,SYSDATE) "Start Time",
    APEX_ITEM.DATE_POPUP(5,SYSDATE) "End Time",
    APEX_ITEM.TEXTAREA(4,'Enter Remarks',2,40) "Remarks"
    FROM HWC_CHK_SCHEDUELE HC  /* no semi colon in SQL; */In the OnSubmit process
    FOR I IN APEX_APPLICATION.G_F02.COUNT LOOP
      -- LOGIC HERE.
    END LOOP;Note I have not used Check box F01 in the above code. Look up the documentation for checkbox in Referencing Arrays. Checkbox behaves different as compared to other item types.
    BTW, why are you not using Tabular form for this?
    Regards,
    Edited by: Prabodh on May 9, 2012 5:32 PM

  • ORA-20001 in APEX_ITEM.SELECT_LIST_FROM_LOV

    Hi everyone,
    I'm getting a ORA-20001 error from within HTMLDB_ITEM when trying to invoke APEX_ITEM.SELECT_LIST_FROM_LOV. I'm running XE and ApEx 3.2.1.00.12. After getting the error in a report query I was doing, I figured I'd try to narrow the issue down. If I either do this:
    SELECT   apex_item.select_list_from_lov(1, '1', 'FUNDLOV') FROM DUAL;or this:
    BEGIN
       DBMS_OUTPUT.put_line(apex_item.select_list_from_lov(1, '1', 'FUNDLOV'));
    END;I get the following error message:
    ORA-20001: Query must begin with SELECT or WITH
    ORA-06512: at "APEX_030200.WWV_FLOW_ASSERT", line 283
    ORA-06512: at "APEX_030200.WWV_FLOW_UTILITIES", line 6368
    ORA-06512: at "APEX_030200.WWV_FLOW_ITEM", line 853
    ORA-06512: at "APEX_030200.HTMLDB_ITEM", line 421
    ORA-06512: at line 2
    I get the same message whether I'm in ApEx's SQL Commands window or running it in Toad. I can invoke other APEX_ITEM functions like checkbox, text, etc. no problem.
    My FUNDLOV query looks like this:
    select DESCRIPTION display_value, RECORD_ID return_value
    from CSBG_FUNDING_LEVEL
    order by 1and it runs without any problem in ApEx or Toad so I don't believe the LOV query is the problem.
    Any idea what the problem may be? Thanks!
    John

    Unless I'm doing something wrong, the ORA-20001 issue appears to be affecting APEX_ITEM.SELECT_LIST_FROM_LOV_XL as well - and I'm also seeing strange behavior in APEX_ITEM.SELECT_LIST_FROM_QUERY.
    Running this query:
    SELECT description, record_id FROM csbg_funding_level;Returns:
    DESCRIPTION.....RECORD_ID
    Operated without CSBG.....1
    1% - 24%.....2
    25% - 49%.....3
    50% - 74%.....4
    75% - 100%.....5
    Yet running this:
    SELECT   apex_item.select_list_from_query(1, 1, 'SELECT description, record_id FROM csbg_funding_level', NULL, 'NO')
      FROM   DUAL;Returns:
    <select name="f01" ><option value="1" selected="selected">1</option></select>Where are all of the option tags that ought to be getting rendered for the rows in the query results?
    I could be wrong, but there appears to be some bugs in SELECT_LIST_FROM_LOV, SELECT_LIST_FROM_LOV_XL and SELECT_LIST_FROM_QUERY.
    Any thoughts? Thanks,
    John

  • Using APEX_ITEM.MULTI_ROW_UPDATE along with APEX_ITEM.CHECKBOX

    Hi,
    I am stuck working with APEX_ITEM.MULTI_ROW_UPDATE process for the past 2 days.
    I don't see any working examples in forum as well to update APEX_ITEM.CHECKBOX values using the APEX_ITEM.MULTI_ROW_UPDATE process.
    My updateable query is as below :
    select APEX_ITEM.HIDDEN(1,INST_ID) ||
           APEX_ITEM.TEXT(2,INST_NME,20,200) AS INST_NME,
           APEX_ITEM.TEXT(3,INST_CTY_TXT,10,50) AS INST_CTY_TXT,
           APEX_ITEM.SELECT_LIST_FROM_LOV(4,ST_CDE,'STATES_LOV',NULL,'YES','ZZ','~ Select ~') AS ST_CDE,
           APEX_ITEM.MD5_CHECKSUM( INST_NME,
                                   INST_CTY_TXT,
                                   ST_CDE,
                                   LGE_IND
                        ) || APEX_ITEM.CHECKBOX(5,LGE_IND,NULL,-1) AS LGE_IND
    from  TESTNote: I am using -1 for checked value of checkbox.
    My update process is
      BEGIN
        APEX_ITEM.MULTI_ROW_UPDATE('#OWNER#:TEST:INST_ID,1:,|INST_NME,2:INST_CTY_TXT,3:ST_CDE,4:LGE_IND,5');
      END;Now when I update any field and Save the changes I get the error below :
      ORA-20001: Error in MRU: row= 1, ORA-01403: no data found, update If I use textbox instead of checkbox and write the code as below it works perfect.
    select APEX_ITEM.HIDDEN(1,INST_ID) ||
           APEX_ITEM.TEXT(2,INST_NME,20,200) AS INST_NME,
           APEX_ITEM.TEXT(3,INST_CTY_TXT,10,50) AS INST_CTY_TXT,
           APEX_ITEM.SELECT_LIST_FROM_LOV(4,ST_CDE,'STATES_LOV',NULL,'YES','ZZ','~ Select ~') AS ST_CDE,
           APEX_ITEM.MD5_CHECKSUM( INST_NME,
                                   INST_CTY_TXT,
                                   ST_CDE,
                                   LGE_IND
                        ) || APEX_ITEM.TEXT(5,LGE_IND,5,10) AS LGE_IND
    from  TEST;
      BEGIN
        APEX_ITEM.MULTI_ROW_UPDATE('#OWNER#:TEST:INST_ID,1:,|INST_NME,2:INST_CTY_TXT,3:ST_CDE,4:LGE_IND,5');
      END;If anyone see what is wrong that I am doing please help me out here.
    Your help is greatly appreciated.
    Thanks,
    Raj.

    Hi,
    You should concatenate your HIDDEN item(s) to the front of the next displayed item - that way you do not get a column in the tabular form that you have to hide (hiding the column could have the effect of stopping the item from being submitted with the page)
    Secondly, all the fields should be based on actual column names so that the MD5_CHECKSUM that reference these.
    DUAL doesn't provide column names directly but you may be able to do something like:
    SELECT
    APEX_ITEM.HIDDEN(1, ID) || APEX_ITEM.TEXT(2, PRODUCT_NAME, 60, 60) product_name,
    APEX_ITEM.SELECT_LIST_FROM_LOV(3,CATEGORY,'CATEGORY',NULL,'YES',NULL,'-Select Category-',null,null,'NO') CATEGORY,
    APEX_ITEM.MD5_CHECKSUM(PRODUCT_NAME,CATEGORY)
    FROM (SELECT NULL ID, NULL PRODUCT_NAME, NULL CATEGORY FROM DUAL)Alternatively, you could create an empty row from the actual table:
    SELECT
    APEX_ITEM.HIDDEN(1, ID) || APEX_ITEM.TEXT(2, PRODUCT_NAME, 60, 60) product_name,
    APEX_ITEM.SELECT_LIST_FROM_LOV(3,CATEGORY,'CATEGORY',NULL,'YES',NULL,'-Select Category-',null,null,'NO') CATEGORY,
    APEX_ITEM.MD5_CHECKSUM(PRODUCT_NAME,CATEGORY)
    FROM (SELECT NULL ID, NULL PRODUCT_NAME, NULL CATEGORY FROM EBA_ASSET_ASSETS WHERE ROWNUM = 1)Then Scott's code should work:
    BEGIN
    APEX_ITEM.MULTI_ROW_UPDATE('#OWNER#:EBA_ASSET_ASSETS:ID,1:|ASSET_NAME,2:CATEGORY_ID,3');
    END;Note that you have to include the : before the | as this function assumes that there are two primary keys - as the table only has one, the second one is empty, but must be included.
    Andy

  • How do I use the Oracle Developer Reporting Control in Visual Basic 6.0?

    I was wondering how to use the Oracle Developer Reporting Control componant in Visual Basic 6.0 to generate reports in Oracle Reports? Any help would be appreciated.

    Hi Rohit,
    Would like to ask you some questions about the oracle report with Visual Basic.
    1. I have a report built in oracle report. Currently there is a Visual Basic program want to pass some parameter to this report. Can Visual Basic program pass the parameter to this oracel report?
    2. Based on yr answer, do i have to installed the oracle report? or just copy and register the Rwsxa60.ocx (i'm using oracle report 6i) in the PC? So can i use this activeX control.
    3. Is this activeX control similar to Crystal report object which can found in VB?
    4. Is there an example/guide on how the Visual Basic pass the parameter to oracel form?
    Your answer will be much appreciated.
    Thanks.
    Regards,
    Hock Leong

  • What are the main tables using in vendor performance report.

    what are the main tables using in vendor performance report.
    how many select statements are in ABAP reports.

    Refer the links -
    vendor performance report !!!
    vendor performance report
    vendor performance report
    I need standard vendor performance report
    Regards,
    Amit
    Reward all helpful replies.

  • Query Stripping not working properly when using variable in the report

    We have issue with WEBI document that have query stripping enable.
    Once the query stripping enabled there is no data return in the report.
    We have investigate on the problem, the query stripping function are notable to retrieve objects that indirectly used in the report
    as we have
    many variable in the reports.
    Ex.
    Var1 = object1 + object2
    Var2 = Object3 + Object4
    Var3 = Var1 + Var2
    Var4 = Object1 + Object2 + Object3 + Object4
    If we use only Var3 in the report, the object1,2,3,and 4 will not be
    retrieve.
    But if we are using Var4 in the report, the object1,2,3,and 4 will be
    retrieve properly.
    Please let me know is it a by-design behavior, if yes please share points on it

    Hi Amit,
    Thank you for response, however i already had alook on that VIdeo and it tells us about the basic enabling of query stripping.
    But my question is when we have a Variable in a report which is dependent on the other two variables it gives me #error so is it by design or not.
    Regards,
    Abhinav

  • Attention!!-don't use OLE object in Reports

    If you are planning to use or is currently using OLE objects in Reports-please don't use it as the object maynot reload in future and your report may not even open in Report Builder.I got this message when opening the report containing OLE object:
    REP-4004: Error occurred while restoring OLE object
    and it refused to open up crashing my days of work.
    The pity is I can't open my report even to remove the OLE object.

    I know that is weird.I placed the object in the same directory-but in vain.Afterall, what's the logic of putting it in the same directory after embedding it?

  • How to use lexical parameter in report

    i want to use lexical parameter in report and pass parameter from form how it is possible in detail
    A.R

    Hi,
    typically you fill your lexical paramter in the after-paramform-trigger out of the values of your bind-parameters (giving end users directly control over lexical parameters might not be a good idea). Inside PL/SQL a lexical parameter is referenced like bind parameters with ":". In the query it's referenced via "&" and represents a part of the query.
    A simple example.
    - p_deptno as bind parameter
    - p_where as lexical paramter
    - end user choose value for p_deptno (10,20,... or nothing)
    - Trigger: if :p_deptno is not null then
    :p_where := 'WHERE deptno = :p_deptno'
    else
    :p_where := null;
    end if;
    - Query select ... from emp &p_where
    Regards
    Rainer

  • To read all the database fields used in a Crystal report 10 file using Vb 6 Code

    Hi
    Iam in development of an Application in Visual basic which lists all the
    database fields used in a particular report (crystal 10)
    In simple i need to show all the checked fields in the database fields section in field explorer section of the crystal report file.
    regards
    venkateshG

    Please re-post if this is still an issue to the Legacy Application Development SDKs Forum or purchase a case and have a dedicated support engineer work with you directly

Maybe you are looking for

  • Need to create Goods receipt Bapi in CO11

    Hi, I have a requirement, In Confirmation of Production Order (CO11) if the stock quantity is less than production order quantity i need to add quantity in stock for that i am trying to add material quantity in Goods Receipt  by using bapi 'BAPI_GOOD

  • Problem while implement a File to File senario

    hi all:      When trying to implement a senario , there is  an error message by checking RWB --> component monitoring .      1   Configured source directory 'D:\sender' does not exist . but D:\sender does exsit ,as I have checked.      what's more, a

  • Is there any way to get a glass cover for my high res anti glare display?

    This may sound silly but I wasn't expecting the high res anti glare macbook pro to not have a glass cover over it. to many this might not be an issue, but I need to be able to use a digital drawing pen over top the surface of my monitor. My previous

  • Music skips when using airplay with iphone4 to Apple TV

    Songs will skip and pause, really annoying, could it my router???? If so how do I get airplay to work flawlessly!!!!!!!!

  • 20-inch: 2.16GHz or 2.33GHz

    Hello all. Thinking of moving to an Intel iMac soon, quite definitely getting a 20-inch (instead of the bigger 24"), but is there like a significant speed boost by upgrading to a 2.33 GHz? What kind of percentage % speed boost am I looking at? Of cou