Select LOV in a report

hi,
I'm having a problem with the select LOV (query base) in my report. I'm using Application builder to construct my report. My query is this:
Select proj_desc name, proj_code code FROM TM_Proj
where (substr(:p1_customer,1,1) = '*' or :p1_customer is null)
union
Select proj_desc name, proj_code code FROM TM_Proj
where substr(:p1_customer,1,1) != '*' and :p1_customer is not null and cust_gen_nbr = :P1_customer
I consistantly get this error: ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
I don't get this problem if I change it to "display as text based on LOV". However, when I changed it to "Popup LOV based on query," I get Popup List of Values authentication failed.
Can anyone provide any insight on this?

this is from ApEx forum, it may help;
Generated HTML for report rows cannot exceed 32K. Select lists must be >> reasonable in size. It appears that you have too many entries in them to use them >> thrice per row. You should consider popup LOVs instead.
Scott
ORA-06052 on Tabular Form w/3 select lists - LOV's.
Kind regards,
Tonguç

Similar Messages

  • Error in multi-select LOV in Portal Report parameter

    Hi,
    I have a Report from SQL Query that currently has a combo-box parameter that's linked to an LOV. Now the client requires for this parameter to be a multiple select instead of a combo box.
    I changed the LOV display to multiple select in Customization Form Display Options, and I changed the where clause of the query to this:
    AND CASE WHEN (SUBSTR (pav.name, INSTR (pav.name, '.')-1, 1) BETWEEN '0' AND '9')
    OR (UPPER (SUBSTR (pav.name, 1, INSTR (pav.name, '.'))) IN ('TBD.', 'PLCV.', 'EPLCV.'))
    THEN SUBSTR (pav.name, INSTR (pav.name, '.') + 1)
    ELSE pav.name
    END IN (NVL (:p_vacancy_name, pav.name))
    It works when I select only one value in the LOV, but gets the following errors when I select more than one:
    *** If Output Format selected is HTML:
    Failed to parse query
    Error: ORA-00933: SQL command not properly ended (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
    Error: Unable to execute query (WWV-10201)
    No row returned.
    *** If Output Format selected is Excel:
    ID;ORACLE;N;E P;PGeneral P;P#,##0 P;P#,##0.00 ; ; Global Formatting ; F;C1;FG0R;SM1 ; ; Title Row ;     
    Error:     Unable to perform query (WWV-10202)
         ORA-01001: invalid cursor (WWV-11230)
    Can anyone help me fix these errors?
    Thanks,
    Lorena

    Follow Up:
    After some discussions with Steven I tried to move some stuff around. Eventually I found out that if the ViewObjects on which these two table-blocks are based are built on different Entity Objects, then the application works as desired.
    So the conclusion seems to be: it is not a good idea to have - probably in the same UIModel - multiple Iterators based on ViewObjects that are based on the same EntityObject.
    Note: this is only a work-around: I still do not know exactly what goes wrong and why! It can be in JHeadstart runtime (not so likely), in ADB Binding Layer (very likely) and potentially in ADF BC (quite unlikely).
    best regards,
    Lucas

  • How to select LOV items from edit report / form?

    I'm new to ApEx 3 with very little web developer knowledge.
    I have a create record form (Page1) that uses single-select and multi-select LOVs and correctly inserts the data into a table.
    I have a basic report (tabular form) (Page2) that shows the records with the correct LOV information. When I click the edit icon for a row on Page2, Page1 displays row data for each field except the LOVs. There are no selections made in any of the LOVs.
    How do I make the connection between the tabular report and the edit form LOVs?
    Thx for your assistance.

    It turns out that the imported data did not match the LOV values. We changed the ETL processing, and now the LOV values are selected as expected.

  • Multi-Select LOV for Report Parameters

    I have a LOV defined in Oracle Portal as a Multi-Select LOV. When I assign this to an optional report parameter when defining a reports definiton file and run the parameter screen, it comes up as a combo box. Is a combo box the only type of LOV I can use for an Oracle Reports Parameter.
    Thanks
    Jody

    With whatever i could make out is you are trying to change a discovere report to xml; publisher report isnt it?
    To answe to your question, directly it is not possible to have In clause but you could use some smart logic like lexical parameters etc to achieve similar things.I guess you cannot do in in EBS Reports too.

  • POP LOV in classic Report not in a interactive Report

    My oracle version Oracle Express Aplication 11g
    Dear Forum
    We need a CLASSIC report where i can define what information my report will show.
    For example:
    My Report contain
    ID NAME DATE
    In Drag and Drop layout I create two data pickers cause I need to choose information between Date_picker_1 and Datepicker_2. both of them correspond to DATE
    In my region source in classic report I write something like this:
    Select id, name where DATE between :Date_picker_1 and :Datepicker_2 then Ichoose the months but nothing happen.
    I know that in the report interactive you can do that, but my boss doesnt' like interactive report (I dont know why) so my problem is in the Classic report.
    Danny Lima
    Ecuador
    PD: I'm not speak english very well

    >
    Please update your forum profile with a real handle instead of "897381".
    Also the subject of this thread—POP LOV in classic Report not in a interactive Report—doesn't appear to be relevant the question asked. There's no mention of a Pop-up LOV here?
    My oracle version Oracle Express Aplication 11gAlways state full version numbers, and include
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    as well.
    We need a CLASSIC report where i can define what information my report will show.
    For example:
    My Report contain
    ID NAME DATE
    In Drag and Drop layout I create two data pickers cause I need to choose information between Date_picker_1 and Datepicker_2. both of them correspond to DATE
    In my region source in classic report I write something like this:
    Select id, name where DATE between :Date_picker_1 and :Datepicker_2then Ichoose the months but nothing happen.Always post code wrapped in <tt>\...\</tt> tags. And always post the actual code or a realistic reduced test case: that query is not valid SQL.
    I know that in the report interactive you can do that, but my boss doesnt' like interactive report (I dont know why) so my problem is in the Classic report.Nothing to do with the report type. It's because all APEX items are actually VARCHAR2s. For proper comparison semantics with NUMBERs or DATEs in SQL explicit conversion is required:
    select id, name
    from foo
    where bar between to_date(:date_picker_1, 'DD/MM/YYYY') and to_date(:date_picker_1, 'DD/MM/YYYY')Where 'DD/MM/YYYY' is the format mask used in the datepicker items.

  • Is it possible to change values in pagination select list for a report?

    The values showing up in my pagination select list for a report are 10,15,20,30,50,100,200,500,1000,5000.
    Is it possible to not have this list show the 1000 and 5000 values? I've tried setting various row values in the layout and pagination section of the report, but nothing changes in the select list. Is there a way to change this, or is it set up in a template somewhere that I can change?
    APEX version 3.0
    Thanks

    Figured this one out. Using the P1_ROWS item, added a static LOV with the correct values to override the one APEX was providing. The P1_ROWS item goes in the Number of Rows (Item) field in the layout and pagination section of the report.

  • Multi-select LOV bug and Developer6i R2 Patch7

    Has anyone verified that Patch7 corrects the problem with multi-
    select LOV bug (see below). The Headstart6i Report Launch form
    (QMS0012F) exhibits this bug (when using the demo reports for
    example) and we were unsuccessful applying the workaround (see
    below). We will upgrade to Patch7 if this bug is fixed or we
    could use a little help from the HeadStart team correcting the
    Report Launch form to get around this bug. Thanks, Keith
    We have found one odd quirk with Headstart 6i and Forms
    6i versions 6.0.13 and higher.
    Description ===========
    1. When using a multi-select LOV (which is displayed in a modal
    dialog window), you select the records you want, press OK, and
    the application exits.
    2. When using a shuttle control to move records from left to
    right or vice versa, you select the records you want, press '>'
    to move them, and the application exits. This occurs in Forms
    6.0.8.13.0 and higher. It did NOT occur in prior releases. This
    is some kind of forms bug.
    Workaround ==========
    For some reason the call to procedure 'renumber' in
    qms$msel.process_records in qmslib65.pll causes the application
    to exit. If you copy the code from renumber to all the places
    from which it is called, it works fine.

    So far as I know, this bug has not yet been corrected.
    You will have to apply the fix as described in your email
    message.
    Regards, Lauri

  • Cascade LOV display as text (based on LOV) in clasic report

    Hi Experts,
    It is possible to use cascade LOV - item is displayed as text (based on LOV) in clasic report ? (Display AS)
    I would like to reference to another column displayed in the report in LOV.
    Example:
    select description d,
           val_strg2 r
      from domain_cntr
    where cntr_name = 'CH_PRIM_ST_NOTE'
       and val_strg1   = #PRIM_STATUS#
       and active_idc  = 'Y'#PRIM_STATUS# is the column i would like to reference.
    Is it possible ? IN CLASIC REPORT
    regards
    J :D

    Hi,
    >
    Is it possible ? IN CLASIC REPORT
    >
    Yes.
    It may a rather long thing to code, so be ready for it.
    Here is how:
    a. Use APEX_ITEM API in your Report Query. Make sure you specify the p_item_id parameter , using #ROWNUM#
    b. In the Parent LoV wrtie an onChange event trigger that fires a JavaScript function and pass the ID of the element .
    c. In this JavaScript function make an AJAX call to get the &lt;select&gt;...&lt;option...&gt;...&lt;/select&gt; , in short the complete HTML of the child LoV
    d. Push this HTML fragment into the Child Lov. You construct the ID of the target based on the ID of parent . E.g. f01_0001 to f02_0001.
    e. You may additional keep the child invisible or disabled initially, and then make it visible/enable it after it is populated.
    Regards,

  • Bug in select LOV ?

    Hi All,
    I have report error:
    "ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small" when I try to build select LOV on a column in wisard-generated tabular form. This happens when the LOV is quite long. The lookup table has about 850 values. But if I restrict query result set with rownum < 600, the form works fine.
    The example is available on http://htmldb.oracle.com/pls/otn/f?p=24345:1
    How to workaround such a problem?
    Thanks

    Follow Up:
    After some discussions with Steven I tried to move some stuff around. Eventually I found out that if the ViewObjects on which these two table-blocks are based are built on different Entity Objects, then the application works as desired.
    So the conclusion seems to be: it is not a good idea to have - probably in the same UIModel - multiple Iterators based on ViewObjects that are based on the same EntityObject.
    Note: this is only a work-around: I still do not know exactly what goes wrong and why! It can be in JHeadstart runtime (not so likely), in ADB Binding Layer (very likely) and potentially in ADF BC (quite unlikely).
    best regards,
    Lucas

  • Selective LOV per User/Group

    Hi Guys,
    Just would like to ask if there's a way on how to limit or only show a selected number of LOVs per User?  For example,
    I have a parameter for Country and I have 2 Users... User1 should only see let's say China, Japan and Korea, while User2
    should be able to see all countries..
    Kind  Regards and Many Thanks,
    Mark

    I am facing the Same Issue. I implemented Dynamic LOV and published the CR into BOE. But when user runs the report he/she see all the avilable LOVs.  But we need only Selective LOV per User/Group.
    Please suggest me where can I use the Current CE User function becuase we are already using security table in Crystal Reports.
    Thanks
    Reddy

  • Select query in a report

    Hi!
    Is it possible to modify a select query for a report in the following way:
    I have created two fields where users input values and operators.
    Operators selection is a static list consisting of: =, like , in
    Value field is a text field.
    The current query is:
    SELECT
    A,
    B,
    C
    from TABLE
    I would like to add:
    WHERE
    A : P1_OPERATOR : P1_VALUE
    but it doesn't work; I get a notification that the operator is incorrect.
    It has a defaulft value = and when I set let's say 5 in the value field the whole query should be:
    SELECT
    A,
    B,
    C
    from TABLE
    WHERE
    A = 5
    Regards!

    Hmm, I get the following error:
    Updatable report parse error:
    ORA-20001: Query must begin with SELECT or WITH
    The only difference I see is that your type is SQL Query (PL/SQL function body returning SQL query) while I have SQL Query (updateable report) hardcoded.
    I have APEX 4.2.2, I'm not quite sure how to change this...
    This is my code:
    begin
    :P7_QUERY := 'select ROWID,BNK_ID,MSR_PRD_ID,SRC_STM_ID,ID,ID_RETKA,RSP,OZNAKA_RETKA,DATUM_STANJA,OZNAKA_IZVJESCA,OZNAKA_KOMITENTA,MBR_KOMITENTA,KOMITENT_NEREZ,ZUPANIJA,DRZAVA,SEKTOR_NEREZIDENTA,VRSTA_POVEZANOSTI,INSTRUMENT,ISIN,VALUTA,OTKAZNI_ROK,IZVORNO_DOSPIJECE,VRSTA_INDEKSACIJE,VALUTA_INDEKSACIJE,PORTFELJ,UTRZIVOST_KREDITA,ZNACAJKE_KAPITALA,RIZICNA_SKUPINA,UGRADJENI_DERIVAT,ODNOSNA_VARIJABLA,PREDZNAK,IZNOS,IZNOS_ACTUAL,VRSTA_IZNOSA,KOMITENT_PBR,UDJELI_POVEZ_C,AR_ID,AU_ID,ACT_AR_BAL_KN,ACT_AR_BAL,AR_BUSS_ID,MTI_CCY_TP_ID,REG_NO,REG_SFX,JMBG_ID_NO,IP_ID,NO_DYS_OO,TAX_ID_NO,INSTRUMENT_OLD,PREDZNAK_OLD,IZNOS_ACTUAL_OLD,ACT_AR_BAL_KN_OLD,ACT_AR_BAL_OLD,NAPOMENA,NOVI_POSAO_F,LISTA_SUMARNA,LISTA_REKAP,POSTOTAK1,POSTOTAK2,POSTOTAK3,DZS_IDY_CL_ID,HNB_IP_CL_ID,EXG_RT_CRD_RSK_F from DWP.IZV_SLOG_DET
    where ' || :P7_X_FC1 || :P7_X_O1 || :P7_X_O1;
    return :P7_QUERY;
    end;
    I have also set Use Generic Column Names (parse query at runtime only) nad P7_QUERY as page item to submit.
    Regards,
    Ivan

  • All values from multiple select LOV

    Hi.
    Ik have a customize screen for a chart where a can select days. That works. But i want the standard value to be 'all days', so the user does not have to click all seven days. When i have combobox i use in the where clause:
    "and (fieldname = :variable or :variable = '%')"
    For a mutiple select i use IN:
    "and fieldname IN :variable"
    That would make:
    "and (fieldname IN :variable or :variable = '%')"
    This does not work for a multiple select LOV.
    Anu ID how i can make it work???

    Try the following:
    (:variable = '%' or
    :variable <> '%' and fieldname in :variable)

  • How to display the sort value in the selection screen in the report title

    Dear All,
    How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
    Good day,
    Thanks and regards
    Arun S

    Hi Arun,
    Try this.
    1, Set one dynamic parameter,
    2, Drag and drop that parameter into  your report title.
    3, Pass the value(sort value) dynamically from your application,
    4, Cheers..
    Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then  set the data source from CR designer. and darg and drop that data column into the report.
    Hope this will work,
    Regards,
    Salah
    Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM

  • How to create multiple rows in a child table from the multi select Lov

    Hi
    We have Departments and EmployDept and Persons tables and each employee can associate multiple departments and vice versa.While creating a Department page there should be a Multi Select LOV(values from Persons table) with search option for the Persons.From the search panel we can select multiple persons for that department.Suppose we have selected 5 persons and click on submit, then it should create 5 rows in the EmployDept table for 5 persons with that department id.
    Any inputs on how to implement this scenario please..

    Maybe you can get some ideas from here -
    http://adfdeveloper.blogspot.com/2011/07/simple-implementation-of-af.html

  • How to display the dispaly-value of a static LOV in a report?

    Hi,
    I want to display the Display-Value of a lov in a report
    How can i procede?
    thanks

    ok,
    My problem is the following:
    Say that I have created a static lov 'lov_colors' with the following values:
    display-value return value
    red 1
    blue 2
    green 3
    And i have a table 'object' wich has the following fields :
    object_name varchar2(100);
    object_color number;
    I want to make a report on the table object but in stead of displaying the number of the color,
    I want to display the name of the color that is in Lov_colors
    I hope that my question is clear.
    thank you

Maybe you are looking for

  • ITunes keep repeating a song in my playlist.  The repeat icon is no longer on the upper right hand side

    iTunes keep repeating a song in my playlist on my iphone (4 I thnk).  The repeat icon is no longer on the upper right hand sideiTunes keep repeating a song in my playlist.  The repeat icon is no longer on the upper right hand side

  • Doubt in formating in the Worksheet

    i created report in excel from java. in this Is it possible to differentiate two string in the same cell .for example Status : Active in this i want status in bold letters and Active in UnBold letters.it's in the same single cell.hw it can be perform

  • Best practices for customizing the standard OBIA metedata repository (RPD)

    Hello Is there a Best practices document published by oracle or a partner that talks about best practices for customizing OBIA out-of-box RPD. I am specifically looking for guidance around: 1. adding new objects to physical layer or modifying an exis

  • JSP TO MS EXCEL

    I have my table in my JSP page. Let me know how to export the contents of a table to microsoft excel sheets.

  • Crystal parameter starts with x

    Hello, I have a report which is using multiple parameters, and 2 of them start with 'x': xReportType and  xxxxxroundingxx. I can't find a formula where these parameters are used, but the have a green check next to them and I can't delete them. How ca