Can tabular form handle CLOB?

Hey,
I just came up the next problem: I have a tabular form with one column being a textarea with type CLOB, when i try to fill in text that is over 4000 then it gives me the next error:
Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 6556, maximum: 4000
I can't find anyone else with the same problem, Is it just me or is this not possible?
Kind regards,
Oli

Nicolette wrote:
Pars
PARS wrote:
Hi Nicolette,
Yes i'm creating dynamic action on page load for add row but it create only one row
In your javascript are you using a loop to run add_row as many times as needed?
Somthing like
l_no_rows = apex.item('P_YOUR_ITEM').get_value; 
for (var i=0;i<l_no_rows;i++) 
add_row; 
Where P_YOUR_ITEM is a hidden item that holds the number of rows that need to be added.
PARS wrote:
it is possible by creating manual tabular form but it add row which are null not maps parent field reference
If your using a manual tabular form than the default values have to be set by you the moment you create the new row.
So either as parameter in apex_collection.add_member or as a value in the select statement.
Nicolette
Are you referring to apex internal add row js function? because there is nothing called add_row
it is addRow and it should be called as below in the DA:
addRow();

Similar Messages

  • Can Bi Publisher handle CLOB values?

    Hello,
    I've a requirement to generate a letter/report from BI Publisher(Standalone version) in which the Data Template includes a sql query to extract data from table which has clob value? Can Bi Publisher handle clob values? Please guide.
    Thanks.

    Can anyone please advise me if i can create a Data template with SQL query to extract the clob data from a table? and generate a report in pdf format? Am not sure if BI Publisher handles CLOB values?
    My version is Oracle BI Publisher 10.1.3.4.0 (stand alone).
    Please guide.
    Thanks.

  • Doing validation on tabular form

    hi
    i have tabular form based on table which contains name_of_user varchar2(15)
    the name of the user should be upper case.
    i want when i'm pressing the add row button to check if this column (field) contains upper case. i do know that i need to relate to the tabular for as array
    but i don't know how ?
    my tabular form is select
    "id","name_of_user" from owner."users"
    how shell i relate this array and how shell i ask if it's upper case
    note: i will be glad if you show me also a way to do it as a validation on table level
    thanks

    Writing validations for tabular form input is not very easy. You can try using some of the excellent work Patrick has done with this, details at http://inside-apex.blogspot.com/2006/12/plug-play-tabular-form-handling.html
    Using out-of-the-box APEX, you would need to write a "PL/SQL function body returning error text" validation with a Error display location of "On error page" that does something like
    declare
    l_error varchar2(4000);
    begin
    for i in 1..apex_application.g_f02.count loop
       if (nvl(apex_application.g_f02(i),'~')  != upper(nvl(apex_application.g_f02(i),'~')) then
          l_error := l_error ||'< br/>'||'Row '||i||': Value must be upper case '||apex_application.g_f02(i);
       end if;
    end loop;
    return ltrim(l_error,'< br/>');
    end;[Of course, substitute "f02" with the proper name of the array (unfortunately you need to look at the generate page HTML source to see what array is used to render your "name_of_user" column]

  • Items on a tabular form

    hello,
    i want to add a validation to a page, where i definied a tabular form with several editable fields.
    If i try to add a validation to an item to that page, apex doesnt find any items?
    How can i reach the tabular form items ?
    Would be glad about some help
    phil

    Hi Phil,
    you can also take a look at my ApexLib Framework which has some enhancements for the handling of Tabular Forms.
    http://inside-apex.blogspot.com/2006/12/plug-play-tabular-form-handling.html
    http://inside-apex.blogspot.com/2006/12/accessing-row-selector-of-tabular-form.html
    http://inside-apex.blogspot.com/2007/03/min-max-value-validation-in-browser.html
    http://inside-apex.blogspot.com/2007/02/restrict-input-length-for-tabular-form.html
    For a full list of features see http://apexlib.sourceforge.net/
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

  • Tabular forms based on pipelined functions - can it be done?

    Hi there,
    Pipelined functions are great, specially when you want to encapsulate the access to tables instead of just SELECTing from them (what I am doing a lot in my current project.)
    However Apex 4 does not like them, at least not for tabular forms...
    I want to handle myself the update/insert/delete process, so I don't need the MRU default functionality (all the access to the data is via APIs). But at the same time I want to just SELECT from my pipelined function and set the item types using the builder interface as with any tabular form (without having to use the apex_item API). Also I want to be able to use tabular form validation.
    To start with, you can only create a tabular form based on a table or view. To overcome this issue, I created a dummy view with the fields I wanted and created my tabular form on it. Then I changed the FROM clause to FROM TABLE(myfunction). It didn't work as it seems it tries to select the ROWID for each row... Of course my pipelined function doesn't return one but I don't need one anyway as I will be doing the data manipulation myself based on the PK.
    For this to work, I had to create a collection, populate it with the result of the pipelined function in a page process every time the page is loaded, create a view on that collection and base the tabular form on the view... A lot of work and overhead for something that should be very simple in principle.
    Then, I found out that if I remove the default MRU process that is automatically created, the tabular form validations stop working (as I posted in another thread). So I have to leave a "dummy" MRU process there with condition = never for it to work.
    The application I am working on is all based on API calls and pipelined functions so all this work has to be repeated for each tabular form that is needed.
    If it was possible to base a tabular form directly on a pipelined function it would be such an elegant solution.
    Is there a better way to implement this? Shouldn't Apex be more compatible with pipelined functions? (at least in regards to tabular forms, they work well with normal forms, reports, LOVs etc)
    Thanks
    Luis

    As I mentioned before, I don't handle inserts (well, I cheat).... On my page, there is a form to set up a request - prompts for a few things, and when submitted, calls a stored procedure:
    :P2_REQUEST_RESULT := Simon.Apex_Campus_Guest.Setup_Request(:P2_GROUP_NAME,
           :P2_COAS_ORGN, :P2_START_DATE, :P2_END_DATE, :P2_Quantity, :P2_Generic_Names);
    Which creates an APEX collection, which in turn is made visible via a pipelined function turned into a view:
    create or replace view Apex_Campus_Guest_Request_va as
    select seq_no,
            user_name,
           group_name,
            comments
      from table ( Apex_Campus_Guest.Request_Result )
    I have a second region which is tabular form on a query - conditional on select 1 from Simon.apex_campus_guest_request_va (the view defined above).
    When this submitted, I have standard MRU and MRD processes (Seq_No is the primary key). This then runs into the appropriate trigger - the update trigger is as follows:
    trigger Apex_Campus_Guest_Req_Upd
    instead of update on Apex_Campus_Guest_Request_va
    for each row
    declare
            cg_rec  campus_guest_maint.rec;
    begin
            cg_rec := Campus_Guest_Maint.Request(
                            name => :new.user_name,
                            group_name => :new.group_name,
                            comments => :new.comments);
    end;I don't know off hand why it isn't asking for a rowid - but may be that I specified a PKEY column. The insert case fails, as it tries to add a "Returning" statement in the original select. I actually find that annoying as a function is defined to allocate the PKEY from a sequence, so it doesn't need to ask for it that way.

  • How can i add rows in a tabular form

    Hi,
    How can i add rows in a tabular form with out updating in database and after adding the rows one by one and after filling the data then iwant to submit them all at once.Please help me on this.
    Thanks

    Hello Leandro,
    In the Add_Rows page process, there is a box for "Number Of Rows". Change that value and you change the number of rows that get added. The default is 1.
    Don.
    You can reward this reply by marking it as either Helpful or Correct :)

  • How can I use two tabular forms on the same page.

    I have create one tabular form in page and try to create second tabular form so
    it gives below error.
    1 error has occurred Updatable SQL Query already exists on page XXXXX.
    You can only add one updatable SQL query per page. Select a different page.

    I can get this to work but the page is submitted, either when I use a button with URL link or from a link on a display only text field.
    Is this how it is supposed to work? I thought it was supposed to work just on the browser so it is fast.
    IGNORE THIS!
    =============================
    I resolved it easily by modifying the URL from f?p=blah blah to #LINK_NAME
    Message was edited by:
    user530800

  • How can I change a check sum in a tabular form

    How can I change a check sum in a tabular form?
    I have added an extra field and now get an error when updating because I need to change the check sum, how do you do it?

    Question asked and answered many times !
    Insert a section break just before the page to move.
    Insert a section break just after the page to move.
    Select the page's thumbnail
    cut
    Insert a section break where you want to insert the page.
    paste
    The required infos are available in Pages User Guide which isn't delivered to help helpers to help you.
    Yvan KOENIG (VALLAURIS, France) mercredi 5 octobre 2011 14:33:24
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Can't get Delete Process to work on Manual Tabular Form

    Help. My insert and update process works just fine. I can't get the delete process to work. I've searched the forum and found a couple of examples on what to do, but I can't get the examples to work. I get an ORA-01403: no data found error.
    Report SQL:
    select apex_item.checkbox (1, ceah_people_lang_id,'unchecked') delete_checkbox,
    --'onclick="highlight_row(this,' || ROWNUM || ')"',
    --null,
    --'F1_' || LPAD (ROWNUM, 4, '0')) delete_checkbox,
    Delete Process:
    declare
    begin
    for i in 1..apex_application.g_f02.count
    loop
    --if apex_application.g_f01(i) = 'Y'
    --then
    delete from ceah_people_language
    where ceah_people_lang_id = to_number(apex_application.g_f01(i));
    --end if;
    end loop;
    end;
    I've spent more time than I care to admit on the manual tabular form. Any help would be appreciated. Thanks, Elizabeth

    select apex_item.checkbox (1, ceah_people_lang_id,'unchecked') delete_checkbox,
    --'onclick="highlight_row(this,' || ROWNUM || ')"',
    --null,
    --'F1_' || LPAD (ROWNUM, 4, '0')) delete_checkbox,
    apex_item.hidden(2,ceah_people_lang_id)
    ||
    apex_item.select_list_from_query(3,language_id,'select language_name, language_id from foreign_language') language_id,
    apex_item.hidden(4,ceah_people_id) ||
    apex_item.select_list_from_query(5,proficiency,'select name, id from proficiency') proficiency
    from ceah_people_language where ceah_people_language.ceah_people_id = :P152_person_id
    union all
    select apex_item.checkbox
    (1,
    null,
    'onclick="highlight_row(this,' || ROWNUM || ')"',
    null,
    'F1_' || LPAD (ROWNUM, 4, '0')) delete_checkbox,
    apex_item.hidden(2,null) ||
    apex_item.select_list_from_query(3,null,'select language_name, language_id from foreign_language',
    'style="width:170px" ' ,
    'YES',
    '0',
    '- Select Foreign Language -',
    'f3_' || LPAD (9900 + ROWNUM, 4, '0'),
    NULL,
    'NO'
    ) language_id,
    apex_item.hidden(4,null) ||
    apex_item.select_list_from_query(5,null,'select name, id from proficiency',
    'style="width:170px" ' ,
    'YES',
    '0',
    '- Select Proficiency -',
    'f5_' || LPAD (9900 + ROWNUM, 4, '0'),
    NULL,
    'NO'
    ) proficiency
    from dual where :request = 'ADD_ROWS'
    connect by level <= 2

  • How can we handle CLOB in Universe and WebIntelligence

    Hi,
    Could  you explain how can we handle CLOB in Universe and WebIntelligence?If we use CLOB in either of this,how is the  Report performance ?Is the perfomance of report degraded? Appreciate your help.
    Thanks,
    Swapna

    Hi,
    There is no way around this, long texts are big chunks of data that have to be moved from the database to the webi report.
    Depending on how many rows of data you retrieve this can become a problem in various spots.
    1) network traffic (lots of data to move over the network).
    2) webi report memory (lots of data that needs to be stored in memory to work with the data).
    So you need to limit the query in either the number of rows being retrieved,
    or in the size of the data that is retrieved per row.
    Depending on your use of message text, you can limit long text object to a smaller number of characters.
    (Universe, Parameters, Controls...)
    Depending on your version of database and BO, the default of this value is 1000 or unrestricted.
    It might be that you just need an idea of the message and can limit this to 100 chars or similar, which should help performance.
    It is also possible that the text is always 'long' padded with spaces, in this case it can help to trim the message column in the universe already.
    Good luck,
    Marianne

  • Can we have the 'select list with submit' type within a tabular form?

    An item can be the "Select list with submit' type so a form has no problem with it. However, when I built a tabular form manually, I couldn't find this type. There are only three types avaiable: "named", "static", and "dynamic".
    Is it possible to have the "submit" type so columns of the tabular form can be dynamically rendered based on the user inputs?
    Another question I have is how to dynamically build the tabular form with decode func. For example, if the value of col_1 is 'val_1', then build a select list in col_2; otherwise null in col_2.
    I tried to use
    select col1,
    decode (col1, 'val_1', select htmldb_item.select_list_from_lov(2, first, 'lov1') from dual, null)
    from....
    where....
    But it didn't work.
    I'd like to know whether it's feasible to have something like that.
    TIA.
    Message was edited by:
    Luc

    You could use a region of type PL/SQL function
    returning SQL query to dynamically build this kind of
    tabular form. However if you want to use the built-in
    multi-row insert, update and delete processes, all
    items in a column must have the same display type. Marc, thanks for the quick reply. I appreciate it.
    I got your idea. However, I need to have the javascript 'ToggleAll' as the heading so the form works as same as the built-in one. If I put the query definition into a pl/sql procedure, where I can put this html tab attribute? It can not be inside the checkbox function, otherwise the checkbox of any row would act as same as the header.
    I hope I've made this clear.
    To Vikas: It's our clients who want this, not us. :(

  • Can't add row to sorted tabular form

    I have a very basic tabular form created using the wizard. The only significant change I made was to the sort order. When I click on the add row button, the new blank row is created at the top of the table. When the number of rows in the table grew beyond the page size (10), the blank row seems to be created at the top, but the form goes to the last page of data so the blank row is never displayed.
    If I remove the ordering then the blank row is added at the bottom and the automatic navigation to the last page shows the blank row.
    How can I modify this behaviour - either add the blank row at the end, or display the first page when adding rows.
    Table Structure
    dt_id (populated by trigger)
    dt_date
    dt_meal_type varchar2
    dt_food varchar2
    Sort order is (dt_date desc, dt_meal_type)
    Apex 2.1.0.00.39 on XE

    Vikas,
    I've had a look at your javascript idea. It took a little bit of figuring out but I think I understand it. I had to modify it a bit so that it cleared the values (I'm not trying to clone anything - I just want a blank record).
    After spending a whole morning on this I still have 2 fairly serious outstanding issues:
    a) When I enter some values into my new blank record and hit Submit nothing seems to be saved and the record just seems to get lost (I suspect I have cleared out some important hidden fields or something)
    b) It doesn't work if the table is blank and I am trying to enter the very first record.
    I'm sure it's possible to fix these issues but I am no javascript expert and I have come to the conclusion that it just isn't worth investing any more time.
    The benefit of Application Express to me is that it is a simple declarative development environment. There are many things I need to be concerned about and javascript just isn't one of them.
    Whilst I wait for the tabular forms functionality to mature, I think I will go back to the good old report + Edit button style.
    Thanks,
    Alastair
    PS. Here is the script I added to the region header (I removed everything I didn't understand and added it back in as and when I needed it):
    <script>
    function addRow()
    var col = html_GetElement('NAME'); // NAME is just an arbitrary column in my table
    var tab = html_CascadeUpTill(col,'TABLE');
    var row1 = tab.rows[1];
    var clone = row1.cloneNode(true);
    var elements = clone.getElementsByTagName('input');
    for (var j=0;j<elements.length;j++) elements[j].value="";
    myNewRow = tab.insertRow(tab.rows.length);
    myNewClone = myNewRow.replaceNode(clone);
    </script>

  • Can you order by label of select list in tabular form?

    Imagine this scenario, you have an updateable tabular report based on a query like the following:
    select emp_id
          ,ename
          ,dept_id
    from employeesAnd you define the dept_id column as a query based lov, so you see a select list for departments.
    select dept_name d
          ,dept_id   r
    from departments
    order by 1However if the user chooses to order by the department column by clicking on the heading to sort, they see the following order (note the H between A & B):
    Accounting
    Human Resources
    BiodiversityWhich is because of the ID not being in the same order as the label
    1 - Accounting
    3 - Biodiversity
    2 - Human ResourcesHow can I allow the user to order by the lov based column, but have it order by the label and not the reference id?
    A colleague reckons she fought and lost this battle. Surely this must be a common issue? I can't seem to find any related questions.
    Cheers,
    ScottWe.

    >
    Option B: Convert to manual tabular form. Here is a sample of the report query (leave column display as at "standard report column").
    select e. emp_id
          ,e.ename
          ,'&lt;input type="hidden" value="'||d.dept_name||'" /&gt;'||APEX_ITEM.SELECT_LIST_FROM_QUERY(3,e.dept_id,'select dept_name ,dept_id  from departments order by 1') dept
    from employees e, departments d
    where e.dept_id = d.dept_idI recently had problems when I had to apply a script to a page that used this technique: basically too many <tt>input</tt>s. Never understood why this element is used&mdash;guess it's the fact that it's "hidden". Anyway, an HTML comment works as well and is more out of the way:
    select e.empno
          ,e.ename
          ,'<!-- '||d.dname||' -->'||APEX_ITEM.SELECT_LIST_FROM_QUERY(3,e.deptno,'select dept_name ,dept_id  from departments order by 1') dept
    from emp e, dept d
    where e.deptno = d.deptno

  • How can I update specific records in a tabular form

    I have a form with two blocks. One is a "simple form" and the other block is "tabular".
    In the "tabular form" I have some data (codigo, descripcion, importe)
    I want to update the item "importe" acording to specific values given in the "simple form". What I don4t know how to do is tell the form which record I want to update.
    Hope to be clear.
    Versnica

    Versnica,
    as i understood u got two blocks and u need to update that record in second block which value matches to block one .
    eg
    u can "A" item in values "Value1" in block 1 and there is record in block two with item "B" has same value "Value1". then u can use
    procedures like NAME_IN(<<item A>>) = NAME_IN(<<item B>>) then update the record in second block .
    see whether it helps for not ? otherwise u can send me forms on [email protected] so that i can have a look .

  • Conditionally highlight a column in a tabular form. How can this be done ?

    Hi,
    I am making a timesheet application where the rows are activities and the columns are the days of the month.
    Now I want to give the background of the weekend-days a different color. In the header of the column we have mon,tue,wed etc.
    So the color has to be changed conditionally (i.e. when the columnheader is sat or sun).
    How can I do this ? Probably it can be done using javascript, but I don't know how and where. I hope somebody can help me.
    We are using Apex 4.01. I also looked at the new option of dynamic actions, but can not find the appropiate event (page load?) and condition.
    Any help is appreciated.
    Rob

    >
    The detail part is a tabular form. (this is the part where I want to add the background or highlight).
    I use theme 16. Dark blue. Everything still 'out-of-the-box'.
    >
    OK. Take a look at using a custom report template with conditional column templates, or a custom named column template.
    To start with a custom report template with conditional column templates, make a copy of the theme 16 report template the detail form is currently using. Switch the form to use the new report template. Modify the new report template to use conditional columns.
    A custo named column template is more complex as none are provided out-of-the-box, so it has to be started from scratch.

Maybe you are looking for

  • How to share iTunes on a Mac with iTunes on XP

    I gave my wife an iPhone for her birthday. Unfortunately she has to sync it with her Outlook on her work laptop (XP). She wants to load music and movies that we have on our Mac's at home. Problem is that the iPhone can only be synced with one compute

  • Dataflow Conflict appearing on the front panel

    Hello, my vi is almost done but I still have a problem with the front panel. I think it's about data flow conflicts in my vi. When you run my vi, you will see the pop-up window to ask you about putting a file path, adjusting the units, selecting data

  • Can I Block Saving of Video Clips?

    I have video clips (MOV files) on a website which icons in a PDF that I built can link to and open (to clarify: the icons are actually just virtual boxes around icon pictures that were in the Word doc from which it was built). Usually, the MOV files

  • Bootcamp Installation ending in a Black Screen

    My partner tried to put Bootcamp onto our G5 iMac, however, we are now left with a black screen asing us to press a key on the keyboard but as it is a wireless one the drivers have been wiped so we tried a plug in one that didn't need to be installed

  • Webproxy for guest access

    Hi, I have deployed web proxy in explicit mode with integration with Active directory. When my users are authenticated they are getting the access to the internet as per the policies. I want to know, if any guest user's come and try to access the int