Save Large Value example & FCKeditor

Hi,
I have been trying to use code from example application 'Save Large Value' with FCKeditor. It doesn't work for me.
So how make that code to work with FCKeditor text area?
Your suggestions are really appreciated.
Thanks,
Vladimir

Carl, thanks!
I have been trying to use fckEditor API. At first I modified doSubmit because in my page this function should be called at the end of clob_SubmitReturn.
I added three lines. But in spite of the fix the next page that is retrieved after submit returns an error 'Value param too long'
function doSubmit(r){
var oEditor = FCKeditorAPI.GetInstance('P1001_SOURCE') ;
oEditor.SetHTML('');
oEditor.UpdateLinkedField();
$x('P1001_SOURCE').value = '';
flowSelectAll();
document.wwv_flow.p_request.value = r;
document.wwv_flow.submit();
Any ideas, suggestions?
Thanks,
Vladimir

Similar Messages

  • Packaged Application - Save Large Value with multiple items

    I made an little application with 3 fields fckeditor. I tried to do the workaround "Save Large Value" with these 3 fields in the same page.
    Do you know how I can do that without the new apex.ajax.clob ? I'm on APEX 3.0.
    My application :
    workspace : listecd
    username : guest
    password : gu4est
    http://apex.oracle.com/pls/otn/f?p=47587:1
    Thanks.
    Sylvain
    Homepage : http://www.insum.ca
    InSum Solutions' blog : http://insum-apex.blogspot.com

    Hi Carl,
    In my application, I have two field FCKeditor. If I check the response of my http request in Firebug I see :
    Expecting p_company or wwv_flow_company cookie to contain security group id of application owner.
    <table summary=""><tr><td></td> <td>Error</td>
    <td>ERR-7621 Could not determine workspace for application (:) on application accept.
    </td></tr> <tr><td>OK</td> <td>
    </td></tr></table>
    Firebug show me this error but when I execute my page I have the right value. Why ?
    I have 3 problems with the integration of the FCKeditor :
    1 - Sometime when I load the data in the 2 fields, it doesn't save the value if it's more than 32k.
    2 - Sometime when I save the data I received this message :
    Bad Request
    Your browser sent a request that this server could not understand.
    mod_plsql:/pls/otn/wwv_flow.accept HTTP-400 Value param too long. Lenght is 73045. Upper limit is 32512.
    3 - When I catch the result of my AJAX with this string :
    $x('P2_COL1').value = p.responseText; This doesn't work well.
    I would like to use these strings :
    var oEditor = FCKeditorAPI.GetInstance('P2_COL1') ;
    oEditor.SetHTML(p.responseText);
    But I can't use them in my clob_GetReturn function because the FCKeditor is not implemented at this time. Where I can make this change ?
    Thanks.
    Sylvain
    Homepage : http://www.insum.ca
    InSum Solutions' blog : http://insum-apex.blogspot.com

  • Save Large Value code example

    I am trying to import the above example into my APEX online workspace, the file is upload ok and the install application portion of the import completes.
    The import supporting objects however hangs....
    Is anyone else encountering this problem?
    When i log back into the APEX workspace the application is visible but i can't seem to find the apex_save_large.js file in the shared components???
    when i click on the save value or retrieve values in the sample form nothing happens....

    Hello,
    I'll look into the install issues, I've never seen it but I'll look again.
    the $a() functions are included in the apex_save_large.js and will be included in the standard js files in a future version.
    $x() is the new format of html_GetElement() so if your in a 2.0 instance just add
    function $x(pNd){return html_GetElement(pNd);}
    ver 2.2 should be fine.
    Is this by design? If so, what are the reasons that it appears there instead of in the static files area.Developer Error and when I get my hands on that lazy guy he's gonna hear about it :)
    When I have a second I'll fix it and get a new version uploaded to the code examples page.
    I added a link to the js file here http://apex.oracle.com/pls/otn/f?p=27916:5
    (hint for digging files out of workspace images adding this real quick to a page &lt;a href="#WORKSPACE_IMAGES#filename.js">filename.js&lt;/a>)
    Carl

  • Save large objects

    hallo,
    i use code from "Code Example (Save Large Value) 0.9" in my application. show of clob-field of a table works fine, but save into table dont work. what is the mistake?
    get_large:
    declare
    l_code clob := empty_clob;
    begin
    if(APEX_COLLECTION.COLLECTION_EXISTS(p_collection_name => 'CLOB_CONTENT'))then
    dbms_lob.createtemporary( l_code, false, dbms_lob.SESSION );
    SELECT blackboard into l_code FROM tab_function where function_id = :P148_FUNCTION_ID;
    declare
    l_clob_source2 clob;
    offset int:=1;
    begin
    loop
    l_clob_source2 := dbms_lob.substr(l_code,4000,offset);
    htp.prn(l_clob_source2);
    exit when offset + 4000 >= nvl(dbms_lob.getlength (l_code),0);
    offset := offset + 4000;
    end loop;
    end;
    end if;
    htmldb_application.g_unrecoverable_error := TRUE;
    end;
    save_large:
    declare
    l_code clob := empty_clob;
    begin
    dbms_lob.createtemporary( l_code, false, dbms_lob.SESSION );
    for i in 1..wwv_flow.g_f01.count loop
    dbms_lob.writeappend(l_code,length(wwv_flow.g_f01(i)),wwv_flow.g_f01(i));
    end loop;
         apex_collection.create_or_truncate_collection(p_collection_name => 'CLOB_CONTENT');
         apex_collection.add_member(p_collection_name => 'CLOB_CONTENT',p_clob001 => l_code);
         htmldb_application.g_unrecoverable_error := TRUE;
    end;
    who can help me?

    You need to create a directory object to import this file:
    Try this:
    eg:
    CREATE TABLE MY_IMAGE_TABLE (
    ID NUMBER,
    NAME VARCHAR2(20),
    IMAGE BLOB);
    CREATE OR REPLACE DIRECTORY IMAGES AS '/tmp';
    GRANT READ, WRITE ON DIRECTORY IMAGES TO PUBLIC;
    CREATE OR REPLACE PROCEDURE load_file_to_my_table (p_file_name IN MY_IMAGE_TABLE.NAME%TYPE) AS
    v_bfile BFILE;
    v_blob BLOB;
    BEGIN
    INSERT INTO MY_IMAGE_TABLE (id, name, image)
    VALUES (1, p_file_name, empty_blob())
    RETURN doc INTO v_blob;
    v_bfile := BFILENAME('IMAGES', p_file_name);
    Dbms_Lob.Fileopen(v_bfile, Dbms_Lob.File_Readonly);
    Dbms_Lob.Loadfromfile(v_blob, v_bfile, Dbms_Lob.Getlength(v_bfile));
    Dbms_Lob.Fileclose(v_bfile);
    COMMIT;
    END;
    execute load_file_to_my_table('myfhoto.jpg');
    cheers

  • Error in saving  large value with the data input query

    Hi,
       I  am  trying to save a large value in 0Quantity using the data input query into a realtime infocube
    e-g
    123456789.1234
    Error says too many digits.
    When i try to save 8 digits before the decimal point ,no error, if it is 9digits before decimal it's thro' error.
    Is there any limitation before the decimal.
    i know that 0Quantity can take 17 digits including the sign.
    Any suggestions.?
    regards,
    ram

    try budgetting in thousands in stead of units? (setting on query itself)
    D

  • How to save a value in a byte array, retrieve it and display it?

    Hi,
    I am doing a project for my data structures class that involves saving a value (given in String format) in a byte array (our 'memory'). Initially I just tried casting character by character into the byte array and casting back to char[] for retrieval (using .toString() to return what's supposed to be the original string), but this did not work. I tried the .getBytes() method, applying it to the string and then trying to recover it by placing the contents of the 'memory' in a byte array and applying toString(), but that didn't work either. I looked a bit and found this class, CharsetEncoder and CharsetDecoder. I tried to use these but when I try the compiler tells me I cannot instantiate CharsetDecoder because it is an abstract class. At this point I'm at a loss as to what I can do. Is there any way to place a string in a byte array and then recover the string in it's original format? For example, I might save a value in my particular class of "456". But when I try to recover the value from my 'memory' i.e. the byte array, it comes out like [gnue@hnju.... or something similar. I need it to output the original string ("456").
    Below is my code as it is right now, for the methods setValue and getValue.
    Thanks!
    public void setValue(String value) throws InvalidValueException {
         //… stores the given value in the memory area assigned to the variable
              if(this.type.isValidValue(value)){
                   bytes = value.getBytes();
                   int i,j,k;
                   int l=0;//might be wrong?
                   int ad=address-(address%4);
                   mem.readWord(ad);
                   reg=mem.getDataRegister();
                   if((address%4)+bytes.length-1<4){
                        for(i=address%4;i<address%4+bytes.length;i++)
                             reg.setByte(i, bytes[i]);
                        mem.setDataRegister(reg);
                        mem.writeWord(ad);
                   else if((address%4)+bytes.length-1>=4){
                        if(address%4!=0){
                             for(i=address%4;i<4;i++){
                                  reg.setByte(i, bytes);
                                  l++;
                             mem.setDataRegister(reg);
                             mem.writeWord(ad);
                             ad+=mem.WORDSIZE;
                        while(ad<address+bytes.length-(address+bytes.length)%4){
                             for(j=0;j<4;j++){
                                  reg.setByte(j, bytes[j+l]);
                                  l++;
                             mem.setDataRegister(reg);
                             mem.writeWord(ad);
                             ad+=mem.WORDSIZE;
                        if((address+bytes.length)%4!=0){
                             mem.readWord(ad);
                             reg=mem.getDataRegister();
                             for(k=0;k<(address+bytes.length)%4;k++){
                                  reg.setByte(k, bytes[k+l]);
                                  l++;
                             mem.setDataRegister(reg);
                             mem.writeWord(ad);
                   else
                        throw new InvalidValueException("The value passed is not valid.");
         /** Gets the current value of the variable.
         @return current value converted to String
         public String getValue() {
              //… returns the current value stored in the corresponding memory area
              //… value is converted to String
              bytes=new byte[this.getType().getSize()];
              int i,j,k;
              int l=0;//might be wrong?
              int ad=address-(address%4);
              mem.readWord(ad);
              reg=mem.getDataRegister();
              if((address%4)+bytes.length-1<4){
                   for(i=address%4;i<address%4+bytes.length;i++)
                        bytes[i] = reg.readByte(i);
              else if((address%4)+bytes.length-1>=4){
                   if(address%4!=0){
                        for(i=address%4;i<4;i++){
                             bytes[i] = reg.readByte(i);
                             l++;
                        ad+=mem.WORDSIZE;
                   mem.readWord(ad);
                   reg=mem.getDataRegister();
                   while(ad<address+bytes.length-(address+bytes.length)%4){
                        for(j=0;j<4;j++){
                             bytes[j+l] = reg.readByte(j);
                             l++;
                        ad+=mem.WORDSIZE;
                   if((address+bytes.length)%4!=0){
                        mem.readWord(ad);
                        reg=mem.getDataRegister();
                        for(k=0;k<(address+bytes.length)%4;k++){
                             bytes[k+l] = reg.readByte(k);
                             l++;
              return bytes.toString();

    You can certainly put it into a byte array and then construct a new String from that byte array. Just calling toString doesn't mean you'll automatically get a meaningful string out of it. Arrays do not override the toString method, so the use the one inherited from object.
    Look at String's constructors.

  • How to save a value in a .txt n retrive back the exact value from the file?

    Well I have a number. Let's say 600. I need to save this value in a .txt file so that I can retrive this value. I tried using the below source code. It can be executed but I'll get num 49 everytime I execute it even though the value in my .txt is 600.
    try {
                   File inputFile = new File("Lt.txt");
                   File outputFile = new File("outagain.txt");
    FileReader in = new FileReader("Lt.txt");
    FileWriter out = new FileWriter(outputFile);
    int c;
              c = in.read();
              in.close();
    System.out.print("\nggggggggg"+c);
    in.close();
                   } catch (IOException ex) {
                   System.out.println("IOException:"+ex.toString());

    Thank you. I execute the program below. I can now retrive the data from the Lt.txt. But the value is limited to 3 digits. For example, the content of my file is 777888.
    When I run the program, I only get 777. How can I retrive the whole exact number?               
    import java.io.*;
                   class Test {     
                   public static void main(String args[]) {          
                   try {               
                   File inputFile = new File("Lt.txt");               
                   File outputFile = new File("outagain.txt");                    
                   FileReader in = new FileReader("Lt.txt");               
                   FileWriter out = new FileWriter(outputFile);               
                   char[] tmp = new char[3];               
                   int cnt = in.read(tmp);                              
                   System.out.print("\nRead: ");               
                   for (int i = 0; i < cnt; i++) {                    
                   System.out.print(tmp);               }               
                   System.out.println(" ");               
                   in.close();          }
                   catch (IOException ex) {               
                   System.out.println("IOException:"+ex.toString());          }     }}

  • How to save a value in form jsp?

    hi all,
    i have a dropdown list in my struts web app,
    i am having a form in which a bean is instatiated(bean has 2 properties "name" and "code").
    i am using like this in the jsp:
    <td><html:select property="item.code">
                             <logic:iterate id="itemType"
                                  name="<%=WebConstants.getItemTypeListName()%>">
                                  <option value='<bean:write name="ItemType" property="code"/>'><bean:write
                                       name="ItemType" property="name" /></option>                              
                             </logic:iterate>                         
                        </html:select></td>
    each "itemType" has "code" and "name".
    when the user clicks on the item name on the dropdown item beans "code" is populating.now i need to populate "name" aswell at the sametime using hidden property.
    i want to save tha value of name in the jsp to use it later to populate "name" in my form using hidden property?
    do anyone have idea how to save the value in jsp?
    regards and thanks in advance

    Thank you. I execute the program below. I can now retrive the data from the Lt.txt. But the value is limited to 3 digits. For example, the content of my file is 777888.
    When I run the program, I only get 777. How can I retrive the whole exact number?               
    import java.io.*;
                   class Test {     
                   public static void main(String args[]) {          
                   try {               
                   File inputFile = new File("Lt.txt");               
                   File outputFile = new File("outagain.txt");                    
                   FileReader in = new FileReader("Lt.txt");               
                   FileWriter out = new FileWriter(outputFile);               
                   char[] tmp = new char[3];               
                   int cnt = in.read(tmp);                              
                   System.out.print("\nRead: ");               
                   for (int i = 0; i < cnt; i++) {                    
                   System.out.print(tmp);               }               
                   System.out.println(" ");               
                   in.close();          }
                   catch (IOException ex) {               
                   System.out.println("IOException:"+ex.toString());          }     }}

  • How do I save preferences/values using javascript in dashboard widget?

    How do I save preferences/values using javascript in dashboard widget? I apologize if this is a stupid question but I simply cant seem to find a way. For example, if on teh back side of the widget teh user chooses the color of the widget, where or how do I save that value so it is retained the next time the user goes to the dashboard. Also, once saved, how do I read the value?
    Thanks a mil....

    Please look into
    /Developer/Examples/Dashboard/Goodbye World/3-Saving Preferences directory for a comple example.
    Otherwise, wait until the following book is published :-))
    http://www.apress.com/book/bookDisplay.html?bID=10173
    Mihalis.

  • How to select the larger value of column?

    I would like a cell value (here E8) to be for example: (max $E$1:E7) + B8. Where all previous E column values were find the same calculation except for E1 that is a simple number and not a calculation? It does not work. It give the result for E1 + B8. The larger value should be E7. So the correct result should be E7 + B8 but if there is no value in E7 I want it to choose the larger number of the E column so far. Does some one can help me?

    Hi Frederic,
    If I understand "Where all previous E column values were find the same calculation except for E1", you want each cell, starting at E2 to contain this formula.
    E2: =MAX($E$1:E1)+B2          E8: =MAX($E$1:E7)+B8
    If that's the case, then "there is no value in E7" would never occur, and, unless the value of Bn were negative, the maximum value in column E would always be the one immediately above the formula.
    In that case, this simpler formula would produce the same result:
    E2: =E1 + B2                        E8: =E7 + B8
    Regards,
    Barry

  • How to save a value ?

    Hello. I am making a program in Labview....and my problem is for example:at the end of a cicle i need to save the result that has been calculated in the cicle...so i can use it later in other cicle calculations....
    my question is how can i save that value in a variable (or register)  ? 
    thanks
    JOSE 

    Sorry i said cicles instead of loops. I understand that the value is in the wire that conect to other things outside the loop...i just canot save/store it in some 'variable' so i can use it later...i will try a shif register  
    thanks again for your anwsers
    JOSE

  • Rendering large values on the LinearAxis(Y)

    Hi all,
    In our app, theres a problem when we send out very large value as the max value for Y axis for a ColumnChart.
    LinearAxis is being used for y axis and when page loads, timeout occurs  and nothing is dsiplayed
    (some error in AxisRenderer)
    So the question is
    1. Can i get around this by writing a custom label function. If so How (i have seen some common examples..but thats
    for a limited and where max is small)
    2. Is there any bug related to this
    Please advice
    Thanks
    sbelur

    Hi Mike,
    More info on what your chart is reporting an what it it reading from its source chart is probably what it will take to give you an actual solution. Cmd-shift-4 will turn your cusor into a crosshairs you can drag a selection that is saved to your desktop as a screenshot.
    But here is this anyway.
    So this is my step by step. Sorry I wasn't clearer. I have a table where I am reading the left hand column for my Y axis. 4 other columns for a bar graph.
    In the reference sheet I select the table and add a header column before my first (the one being used for Y values). On my Mac the change shows up right away in my graph. This worked for me also in iOS.
    More directly, on my Mac, I can select the chart, double tap on the y axis label and edit directly. I can also edit the legend directly like this.
    My X axis is simple numbers- it is reporting the frequency a entry shows up. The main control I have here is how many steps to show from 0 to 24 (the largest result), it must be a number as that is all it gets from my source table.
    Quinn

  • How I can save the value of a variable in a database?

    hello,
    how I can save the value of a variable in a database? I need to keep the # of times you press click animation. to know how many times it has been seen.
    I connect to msql database, using php, javascript, ajax and jquery, but not how to save the variable counter clicks from adobe edge Animate
    appreciate your help so I can connect to the database from adobe edge animate.
    thank you very much
    Luis Felipe Garcia
    [email protected]

    Hi, all-
    This isn't an Animate-specific issue, but I thought I'd take a stab at it anyway.  As with anything else on the web, you need to have a server script to handle incoming data, so it's all back end work.  Your page will need to call that script and provide parameters to that script that it can read.
    The easiest way I can think of to do this (and this is all highly theoretical, so please make sure it's secure before you implement it) is to create a 1px div that has visibility off.  Whenever you click, you can load your URL in that div, which then increments your counter on your db.
    Hope that helps inspire some interesting solutions!
    -Elaine

  • I am working in Numbers and can't seem to change the generic value assigned to the legend.  Any advice on how to select the legend and save new values?

    I am working in Numbers and can't seem to change the generic value assigned to the legend.  Any advice on how to select the legend and save new values?

    Ntenich,
    If your table has a Header and your Legend text is in the header, it will be picked up by the table.
    Jerry

  • I want to save large pdf files from my computer to my iPad so I can view them in Adobe Reader.

    I want to save large pdf files from my computer to my iPad so I can view them in Adobe Reader. I do not want to view them in iBooks or Quickoffice. Since I cannot email these large files, how can I get them on my iPad? Thanks for your help.

    I think that Adobe reader supports file sharing.
    Connect the iPad to your computer and launch iTunes. Select the iPad on the left side under "devices". Click on the Apps Tab in the window on the right. Scroll down to the File Sharing Apps list under the main apps list. Click on Adobe Reader. Drag the documents into the file sharing window on the right or select them using the "add" button.
    Launch the Adobe reader app and the files should be in there.

Maybe you are looking for

  • Adobe Creative Cloud Crashing on Windows 8

    I have two programs that continue to crash/not respond. Premier Pro and Audition.   Several questions have been asked here:Re: Adobe audition CC keeps crashing  with no answers. I have uninstalled both programs and reinstalled-updated with no luck.  

  • Pass dynamic values to search-query in wlp-syndication-config for RSS

    Hi All, I want to pass dynamic values to the <search-query> element for the <syndication-feed> node in the wlp-syndication-config.xml file for implementing RSS feeds. Here's a sample <syndication-feed>           <name>RSSFeed</name>           <search

  • Safari 4 Crashes Every Two Minutes

    Safari 4 ran fine until yesterday, for whatever reason Safari crashes even when just running in the background while I am using text edit. I don't recall installing any plugins. I tried uninstalling and installing and Safari and it still cant stop cr

  • Install shield keeps coming up

    Hi I have version 6.05. Tonight when I switched on my computer, the install shield wizard kept coming up saying it was installing iTunes. It was driving me nuts. I thought it might be a security problem so i did all the checks for that. Eventually I

  • Bing pop up appears when a link is clicked

    I get a msn game page/or Bing search page whenever I click on a link. For instance: If I'm on a forum and they provide a link to another site ? That's when I will get that pop up for about 2 or 3 seconds, then it disappears. I never got it until I up