Limit on select lists in mru regions

Has anynone experienced limtits on the number of select_list_lov(s) in multi-row updatable regions?
I have experienced this using a wizard as well as creating the region manually. The thing is that if I use popup lov(s) it works fine with no errors - but I really want to use htmldb_item.select_list_from_lov(s). The error is:
report error:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
If anyone knowa how to increase this buffer size or any work around it will be greatly apprceiated.
Thanks,
Sabrina

Hi,
I cannot believe that 32 k should be the limit. I used the following SQL:
DECLARE
v_sql_stmt VARCHAR2 (4000);
BEGIN
v_sql_stmt :=
'SELECT x.del,x.creation_date,x.update_date,x.schaetzer_id,'
|| 'x.team_id,x.leistungsbeschreibung,x.personentage,'
|| 'x.stundensatz,x.betrag,x.kostenart_id,x.user_id,x.sch_id,x.cks '
|| 'FROM (SELECT htmldb_item.checkbox(1,rownum) del,'
|| 'htmldb_item.hidden(2,schaetzungsposition_id)||'
|| 'htmldb_item.hidden(3,schaetzung_id)||'
|| 'wwv_flow_item.display_and_save(4,'
|| 'nvl('
|| 'to_char(creation_date,''DD.MM.YYYY HH24:MI''),'' '')'
|| ') creation_date,'
|| 'wwv_flow_item.display_and_save(5,'
|| 'nvl('
|| 'to_char(update_date,''DD.MM.YYYY HH24:MI''),'' '')'
|| ') update_date, '
|| 'htmldb_item.select_list_from_lov(6,'
|| 'schaetzer_id,''SCHAETZER_LOV'',''style="width: 200px;"'',''YES'') schaetzer_id, '
|| 'htmldb_item.select_list_from_lov(7,'
|| 'team_id,''TEAMS_MIT_KEIN_TEAM'',NULL,''NO'') team_id, '
|| 'htmldb_item.textarea(8,'
|| 'leistungsbeschreibung,2,40) leistungsbeschreibung, '
|| 'htmldb_item.text(9,trim(to_char(personentage,''999990D00'')),10,10,'
|| '''STYLE="text-align:right"'') personentage, '
|| 'htmldb_item.text(10,trim(to_char(stundensatz,''999990D00'')),10,10,'
|| '''STYLE="text-align:right"'') stundensatz, '
|| 'htmldb_item.text(11,trim(to_char(betrag,''999999990D00'')),15,15,'
|| '''STYLE="text-align:right"'') betrag,'
|| 'htmldb_item.select_list_from_lov(12,kostenart_id,''KOSTENARTEN'','
|| 'NULL,''NO'') kostenart_id, '
|| 'wwv_flow_item.display_and_save(13,'
|| 'get_app_user_name(user_id)) user_id, '
|| 'schaetzer_id sch_id, '
|| 'htmldb_item.md5_checksum (creation_date,update_date,schaetzer_id,'
|| 'leistungsbeschreibung,personentage,betrag,'
|| 'kostenart_id,user_id '
|| ') cks '
|| 'FROM schaetzungsposition '
|| 'WHERE schaetzung_id='''||:P35_SCHAETZUNG_ID||''' '
|| 'AND schaetzer_id IN ('
|| 'SELECT a.person_id '
|| 'FROM app_user a '
|| 'WHERE a.person_id in (select s.person_id '
|| ' FROM schaetzer_view s))'
|| 'UNION ALL '
|| 'SELECT htmldb_item.checkbox(1,NULL) del,htmldb_item.hidden(2,NULL)||'
|| 'htmldb_item.hidden(3,NULL)||'
|| 'wwv_flow_item.display_and_save(4,'' '') creation_date,'
|| 'wwv_flow_item.display_and_save(5,'' '') update_date,'
|| 'htmldb_item.select_list_from_lov(6,:P35_DEFAULT_SCHAETZER,''SCHAETZER_LOV'','
|| '''style="width: 200px;"'',''YES'') schaetzer_id,'
|| 'htmldb_item.select_list_from_lov(7,NULL,''TEAMS_MIT_KEIN_TEAM'','
|| 'NULL,''NO'') team_id,'
|| 'htmldb_item.textarea(8,NULL,2,40) leistungsbeschreibung,'
|| 'htmldb_item.text(9,NULL,10,4,''STYLE="text-align:right"'') personentage,'
|| 'htmldb_item.text(10,NULL,10,4,''STYLE="text-align:right"'') stundensatz,'
|| 'htmldb_item.text(11,NULL,15,10,''STYLE="text-align:right"'') betrag,'
|| 'htmldb_item.select_list_from_lov(12,NULL,'
|| '''KOSTENARTEN'',NULL,''NO'') kostenart_id,'
|| 'wwv_flow_item.display_and_save(13,'' '') user_id,'
|| 'NULL sch_id, '
|| 'htmldb_item.md5_checksum (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL'
|| ') cks '
|| 'FROM dual '
|| ') x '
RETURN v_sql_stmt;
END;
This SQ Query (PL/SQL function body) works with abaut 100 records on an Oracle 10g lon Windows. But it didn't work with 0 records on Oracle 10g on Sun solaris.
Only using
|| 'htmldb_item.select_list_from_lov_XL(6,'
|| 'schaetzer_id,''SCHAETZER_LOV'',''style="width: 200px;"'',''YES'') schaetzer_id, '
and
|| 'htmldb_item.select_list_from_lov_XL(6,:P35_DEFAULT_SCHAETZER,''SCHAETZER_LOV'','
|| '''style="width: 200px;"'',''YES'') schaetzer_id,'
worked fine.
Note:
schaetzer_id number and :P35_DEFAULT_SCHAETZER has numeric value
Can someone tell me if there is a bug or what is the difference between the operatiing systems in using HTMLDB 2.0?
Thanks a lot
Siegwin

Similar Messages

  • Select list in report region.Everything is not in order...

    I want to have a select item in a report region. The selected item in de select list is the "master" for the records in the region. It was working fine but after dropping another region on the same page the select list is now shown beneath the report instead of on top of the report. I can't find a way to get it back on top.
    As a matter of fact I can't find any attribute that determines what comes first in this situation. Is it bad practise to use a item in a report region?

    Thanks, that's it.
    Because I wanted this region to be above two other regions I moved it to page template 2. I did not notice the "items below/items above region content". I guess I need to create a page template region 2 items above content.

  • Select List and detail region

    db11gxe , apex 4.0 , firefox 24 ,
    hi all ,
    i have a master detail page , with an item "test_id" as a select list ,
    and a detail region has also a column "test_id" ,
    what i want is :
    when i change the value of the master "test_id" , the data is retrieved in the detail region where "test_id" = "master_test_id" ;
    how to do so ?
    thanks

    Newbi_egy
    Do you mean that when you change the test in the master you want to refresh the detail?
    Can you put up an example of your tables and foreign keys etc. on apex.oracle.com.
    To me this sounds a wrong model design.
    The detail should only depend on the primary key of the master. And the primary key shouldn't be updatable.
    Nicolette

  • How to display chart region based on select list in html region ?

    Hi all,
    i'm using 4.0.1.00.03 apex version,in a page i have 2 regions one is html and another one is Chart region.in html region i have a select list and button.when user sign into my application select list have some values in that page,user select's a value and clicks on the button then chart will be displayed.my query is when user first sign into my application i want to dispaly chart region when only select list is selected and clicks on the button.can any one guide me on this.
    thnx in Adv.

    Hi yann,
    thnx for ur reply,
    i have done what u have written but i didn't meet my requirement..
    let me explain what i need exactly
    as of now my application is like this..
    i have a html region in that i have select list(P6_LIST) and go button
    and chart region.
    chart query is like this..
    SELECT your_value
    FROM your_table
    WHERE your_value = :P6_LIST
    AND ...
    how it is working??
    when user sign into my application, user can see html region with 'select list and go button' and chart region with 'no data '.
    when user select a value in select list and click on go button automatically chart region will be dispalyed with chart.
    what i wanted to change is..
    when user sign into my application, user can see html region with 'select list and go button' and no chart region
    when user select a value in select list and click on go button then only user can see chart region with chart.
    plz help me how to do it.. :)
    thnx in Adv.
    Edited by: moulani on Nov 4, 2011 12:05 PM

  • CAT2 - Limit WBS selection list

    Hi,
    We are running Timesheets using CAT2.
    I am trying to limit the selection of projects (receiver WBS element) via the search help screen so that only released (REL) projects are listed. Can this be achieved in config or will this need to be coded?
    Currently, every WBS created in CJ20N is visible, no matter what the system status is: CRTD, REL, TECO, CLSD - even marked for deletion. It is only when I physically delete a WBS  that it disappears from the list.
    Obviously these codes will error on the timesheet if specific statuses have been set, so how can I prevent the users seeing them on the selection list if they are not for use?
    Any help/advise would be useful.
    Thanks in advance.

    Hi graeme,
    1. One way is using search help exit,
       and restrict the values.
    2. Another is using EXIT,
      and checking, if there is any wrong entry  in the time sheet.
    3. For that use the enhancement CATS0006 (using smod tcode).
      There u can validate the entire time sheet,
      while saving.
      (if there is any error , u can restrict from saving,
      after giving some message)
    regards,
    amit m.

  • Limit selection list for variables

    Hello Experts.
    Is there a way to limit the selection list for variables?  For example, there are many possible currency values for 0CURRENCY, but I want allow the user to choose only one of these choices USD, EUR, or HKD.  I would rather not do a validation check subsequent to the users making their selection.
    I must use 0CURRENCY rather than copying it to another characteristic and entering only those three keys in master data.
    Any ideas?
    Kind regards,
    Aron
    Edited by: Aron Weaver on Oct 1, 2010 1:08 AM

    If you are using the standard info object which is referring to '0CURRENCY' then it mayn't be possible to restrict the 'F4' list to few currencies in the standard BEx environment. There are couple of options to limit the 'F4' selections using the web template /BSP technology.

  • Refresh PL/SQL Report Region (not Page) using Select List value

    Hi,
    I've got a report region based on a 'PL/SQL function body returning a SQL query'which gets generated on selecting a value from a Select list item, The Select List action is 'Redirect and Set value' but this causes the whole page to refresh rather than just the report region. I've tried to refresh the report only using a dynamic action on the Select List item (Action now reset to  'None') but now the report is not appearing on choosing from the List. Can anyone suggest a solution that will allow me to refresh this report without refreshing the page? I am using APEX 4.2.2 and the report syntax is as follows:
    DECLARE
      v_statement VARCHAR2(500);
    BEGIN
      SELECT query_text
        INTO v_statement
       FROM sql_queries
       WHERE query_id = :P2_QUERY ;
       RETURN v_statement ;
    END ;
    where P2_QUERY is Select List Item,
    regards,
    Kevin.

    KevinFitz wrote:
    The report region being displayed is conditional on P2_QUERY item being NOT NULL. I assume the region not appearing is because the Action for the Select List Item is set to None and so P2_QUERY is always NULL.
    No, the region is not appearing because it is conditional on P2_QUERY being NOT NULL. This means that the report region never exists on the page shown in the browser, so it can't be dynamically refreshed. (Dynamic refresh doesn't evaluate region conditions, and it only re-renders the report content, not the entire region.)
    Remove the condition on the report region, check the refresh is working, then reconsider exactly what the requirements here are. If you want the region to appear only when P2_QUERY has a value, and you want it to be refreshed without submitting and re-rendering the page, then the region needs to be hidden rather than conditionally rendered, and shown via a dynamic action when P2_QUERY gets a value.
    I tried adding an additional Set Value True Action for the DA event but got an error as listed above,
    All irrelevant if Page Items to Submit on the region is used properly.

  • How to position a select list in the create region

    Hello,
    I would like to position a select list item in the create region, I think we can do that somehow using javascript but I don't have an idea how to make it.
    Thanks in advance!

    In this example you can see how to position the elements:
    http://apex.oracle.com/pls/apex/f?p=31517:242
    You don't need javascript for that. The element attributes are enough for that.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Select list with submit issue when they are referred in report region query

    I have a page with a reporting region. Same region also has 3 different list items and depending on the value selected in each item, the report is refreshed. All the 3 list items are "Select list submit with submit"
    Out of 3 items, 2 (say item2 and item3) are populated through dynamic LOV using the value in item1.
    Additionally, when I select a default "ALL" value in in item1, I ignore values in item2 and item3.
    With this background, I am a following issue:
    1. I select a value other than Default value in item1 which filters the report.
    2. Then I select some value in item2 which further shrinks the reports.
    3. Now if I go back to item1 and select the default "All" value, the report is not refreshed with the new values of item1, item2 and item3. But it still shows the report based on value of item2 that I selected in step2.
    How do I set the value of item2/item3 to null if value of item1 is default which is "All"
    Any word of advise will be a great help!
    Thanks,
    Girish

    Hi,
    Make two computations each with the computation text NULL; or
    Make one process with code like:
    BEGIN
    :P1_ITEM2 := NULL;
    :P1_ITEM3 := NULL;
    END;With the condition "Value of Item in Expression 1 = Expression 2"
    Expression 1: P1_ITEM1
    Expression 2: ALL
    (or whatever the return value of ALL is...remember that this is case sensitive)
    Mike

  • Diplaying region content based on multiple selection lists

    Hi,
    I have 3 select list on submit(P1A, P1B, P1C). And i have 3 report regions.
    now this is the scenario. the 3 select lists are on submit.
    the P1C is a dynamic list which shows contents based on the selection from P1A and/or P1B. so this is how my P1C LOV looks like
    SELECT DISTINCT COLLECTION d, COLLECTION v
    FROM viewvs
    WHERE (YEAR =   :P1A  OR  :P1A= '-1' )
    AND   (SEASON =  :P1B  OR  :P1B= '-1' )
    ORDER BY d i also have a 3 report regions which display result based on P1C selection.
    now when i select P1C then i am able to see the 3 regions. and when i go back and change P1A and/or P1B, then P1C changes output. and the 3 regions should not show any data unless i again select one from P1C but, the 3 regions still hold on to the previous data.
    what i am trying to say is, when the regions should display data only when P1C is selected, and when any of P1A or P1B is changed the regions should disappear and should not display any data, but instead the 3 regions show the previous data unless a new selection is done.
    How can i clear the report region when everytime a new value is selected from P1A and/or P1B.
    also the below is part of what i have entered in the report regions
    IF :P1C != 'NULL' THEN
    --DISPLAY THESE VALUES
    END IF;---------
    this is what i found the latest. whats happeneing is
    when i select listA, listB-- listC gets populated and when i select from listC based on that value which gets stored in session state, report regions get displayed
    but when i go back and change selection in listA, listB
    by default listC session value should go to NULL, and only after i make a new selection, then with this new session value for listC, the report regions get displayed.
    but when i checked the session value for listC, it still remains the same old value from the previous selection, because i haven't nade new selection and thats why the report regions are still showing the old result.
    so how can i remove this session value for listC after displaying the report results.
    Thanks,
    Philip.
    Message was edited by:
    [email protected]

    There is nothing wrong with your code, so I'd look elsewhere for the problem. Is this a direct copy of what you have on your page?
    :P1_COMBO1 in ('Option 1', 'Option 2')
    And
    :P1_COMBO2 = 'Option Combo 2'And the page item values are exactly as you have in the quoted strings? You might run the page in debug and confirm the page item values are exact.
    Edited by: Bob37 on Dec 6, 2011 2:18 PM

  • Displaying region based on multiple selection list

    Hi,
    this is my scenario.
    i had 3 drop down selection lists A, B, C. based on A and/or B, C is populated. and when i select one from C, i display a report regions.
    i am able to achieve this, and when in the selection list C, I have a null value as "- All -"
    so when i select "- All -" then the report region should not show anything.
    so in my report region query this is what i gave
    DECLARE
    q varchar2(2000); --query
    w varchar2(2000); --where clause
    we varchar2(1) := 'N'; --where condition
    BEGIN
    q := 'SELECT * from SCCATCH';
    IF :P1_STATION != 'NULL' THEN
    w := 'COLLECTION = :P1_STATION';
    we := 'Y';
    END IF;
    IF we = 'Y' THEN
    q := q ||' WHERE '|| w ;
    END IF;
    RETURN q;
    END;
    where :P1_STATION is the item value of C.
    now what is not working is when i select A, B then C is populated and whne i select C, the report region is displayed.
    now when i go back and select A, B , then C is again populated with a different C list, but the report region still remains the same showing the previous result.
    what i really want to do is. when i select list A,B and then C, report get displayed. and when i go back and change sleection in A,B and then obviously C gets changed, then the report region should not show anything untill i select one from C.
    i understand that there is some basic things i need to do to fix this, but i am not able to fix this.
    Can you help me please.
    Thanks,
    Philip.

    user12943263 wrote:
    HiPlease update your forum profile with a real handle instead of "user12943263".
    I basically want to use the select below for my list but I do not know how to get the app and session no.
    select list_desc, 'f?p='||get_app_id|| ':' || page_no||':' || get_session_id
    from table_nameIn SQL use bind variable notation as described in the Understanding Substitution Strings section of the documentation:
    select
      ,  'f?p=' || :app_id || ':' || page_no || ':' || :app_session
    from
        ... Always consult the documentation before posting here.
    Dynamic Actions, JavaScript, and all "P.Ranish" posts above are all irrelevant to your question.

  • Help with Cascading Select List in Tabular Form

    Hello Friends,
    I am trying to implement Denes Kubicek's sample for Cascading Select list and ran into this error:
    Please help me identify what I might have missed ???
    <code>
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    Only one top level element is allowed in an XML document. Error processing resource 'http://apex.oracle.com/pls/apex/f?p=12...
    <select><option value="0">- Select Employee (0) -</option></select><html lang="en-us" xmlns:htmld...
    </code>
    Please find below the list of activities I performed:
    1.Created the region source
    2.Created the hidden items
    3.Created the buttons and items
    4.Created the application process for MRU and Delete
    5.Created the Application item [ TAB_CASCADING_ITEM]
    6.Created the Application Process[tab_casc_sel_list]
    Any clue/pointers to debug this are welcome.
    I tried the above on apex.oracle.com; WS: CHAITANYAPATCHIPULUSU; USERNAME :[email protected]
    PWD:Satya123 in APPLICATION : 12855 and Page :35
    Regards..

    OK, you didn't have the background process as an on demand process.
    In the MRU and MRD process, you were referencing the wrong variables for the count. (as in deb's case, it's p176, but in your case its p35).
    In the javascript function, the call that is supposed to assign : TAB_CASCADING_ITEM a value, isn't working (I believe).

  • Item(select list) with LOV and Report with link = changed value item

    Hello,
    On one page I have:
    - Item 'P_name' (select list) with LOV to select name of a person;
    - Items 'factory' and Report 'factory'(standard created with 'Form with Report' on the same page).
    Situation:
    All works fine. I selected first a LOV Item 'P_name' (say 'Jane'). But....
    Only when I select a record (to change the values) from the report 'factory' then LOV Item 'P_name' become empty. Report used a link to the same page to fill the report items 'factory' and make also the LOV item empty.
    Question:
    I have made a process that write the name 'Jane' to table.
    I see two possibilities:
    - LOV Item value => fill the LOV item with 'Jane' from the table before region. Is this possible?
    - Report => What is the buttonname of reportlink? I can use this name in the processes.
    Thanks Walter!

    1) what i meant was for you to test this ridiculously huge LOV outside of htmldb, but it occurred to me last night that you could, in fact, be hitting a limit of ours. after some poking around, i have confirmed that. select list items in htmldb are currently limited to 10,000 rows. this was initially done for performance reasons, but they're now opening up the restriction. if you really need to work with that many rows where the user is allowed to pick from a set of values, consider using a popup item type instead. it'd help your app performance as well (in my test cases, it stank to have to wait for my 10k select list rows to come down to my browser).
    2) sorry to not have been more clear about this, but when you set your item's "Source Type" back to "Database Column", you'd have to specify that column in the "Source or value expression" field. also, you can't put a sql query into that "Post Calculation Computation" field. as i said before, "you can take a look at the attribute-level help for that field to see implementation examples."
    3) stick with "Always..." for now if you're using our auto-dml process(es)
    regards,
    raj

  • Too big select lists

    Any advice for what to do when you are using a select list and the dynamic query that it builds upon might some time in the future be too big for it?
    For example I am currently using a select list for all projects registered in a CRM application. What about when this list grows to more than it can hold as a result of the customer adding 300-400 projects (I guess there is a 4000 char limit in total for this page item)?
    Regards
    runski

    Hi
    I suppose that you could use a cascading LOV and then separate your projects by category, even this could lead to lists that are too long to be easily usable though.
    My suggestion would actually be to have a searchable report region of your projects and their attributes with something like a link column that the user can select to to to another page, populating an item with the project id.
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • Need a little JavaScript help with disabling a select list in a tabular frm

    Hello Folks
    Here's the scenario.
    I have a tabular form which, subject to the setting of one Select List, I want to disable/enable another.
    I have got this far and it will disable a text item but not a select list..
    This is in the HTML header section for the page...
    <script type="text/javascript">
    function test(pThis)
    var currIndex = $('select[name="'+pThis.name+'"]').index(pThis);
    if (pThis.value=='2') {
    $('input[name="f02"]')[currIndex].style.backgroundColor = "LightGrey";
    $('input[name="f02"]')[currIndex].disabled=true;
    The report region is defined as...
    SELECT apex_item.text(1, ir.iot_rebate_type_id) iot_rebate_type_id
    ,apex_item.select_list_from_lov_xl(2,ir.rebate_currency,'LOV_CURRENCY_CODES') rebate_currency
    FROM iot_rebate ir
    WHERE ir.iot_agreement_id = :P303_IOT_AGREEMENT_ID
    The iot_rebate_type_id column has an Column Element Attribute set to...
    onchange="javascript:test(this);"
    As I say, if I define the rebate currency as a text item, the javascript works fine.
    Can anyone offer any suggestions?
    Many thanks
    Simon
    Application Express 4.0.2.00.07

    Simon Gadd wrote:
    Hi Vikram.
    That's great.
    I have the relevant items being set to diabled & grey (and also the reverse of this if the driving select list is changed back).
    As this is being used in a Tabular form, if I am calling pre-existing records which should be displayed with two of the select lists disabled, can you point me in the right direction to show the relevent select lists as disabled when the records are returned from the database?If you are using apex_item API set the disabled property into p_attributes parameter conditionally using a case statement in you sql statement
    Another option is you can use some javascript to loop through the tabular form array that runs on the onload of the page.
    Finally, if some columns are disabled, this invaludates the MRU process on the page. Is there a way to submit the page with some fields in the disabled state?Do that as per Roel's suggestion for this issue.
    Any input/pointers much appreciated.
    Simon

Maybe you are looking for

  • Wacom Bamboo Tablet with Adobe Photoshop Elements 8.0 install on Newly bought Windows 8.1 laptop

         So I bought a Wacom bamboo tablet a while back when I had windows 7, which it came with Adobe Photoshop 8 on a CD with product code. I upgraded and bought a new laptop with windows 8 and no CD drive. While I managed to re download the things nee

  • Inbound idoc for orders05 to create sales order

    Hi all, I am creating a sales order through idoc (ORDERS05). I am getting a flat file, which is being converted into idoc from XI side and i need to add certain things and validate inside the function module IDOC_INPUT_OREDERS. I am using the exit ca

  • Vist home ultimate + audigy 2 ZS platinum

    Hello All ,my audigy keeps disapearing. I start my pc and it is no longer in device manager:System:ABIT AN8 SLI FatalityVista Home Ultimate2 gig? Crucial Ballistix?I am/was running the Audigy as my system sound and the motherboards ?realtek AC 97 for

  • Error 1316 when install Business One Integration Server

    Hi, i have a problem when i try to install SAP integration Server. i already uninstall the previous version, and when i try to install it again, there is an error message "Error 1316. A network error occurred while attempting to read from the file C:

  • Spry Effects

    I am using the Grow/Shrink behavior from Spry Effects in Dreamweaver. I am trying to grow an image from 20% to 100% but the image appears in the browser at a 100% then when I click on it it then appears at 100% and grows to 100%. Is it possible to ge