Use the editor HTML JavaBean in Forms

Hello

Currently I'm trying to implement a JavaBean (Sferyx) HTML editor in our forms 10 g environment. The product works, however I leave how to manage the content of this Publisher. The content from the Publisher may be much more then 4000 characters, so I created a CLOB field in the database to store. The field used in forms is the LONG data type and I set the maximum length to 65534 property (the maximum).

If I want to put the contents of the editor, I put the contents of the LONG field in a FBean.ArgList, which is then read by the editor. If I try to add a CLOB field in the arglist argument, this works if the CLOB has a smaller length then 6000 characters. If the length is great, it gives ORA-06502. When I look at the specifications of FBean.Add_Arg I see that it only accepts VARCHAR2, NUMBER, and BOOLEAN. So the so of seems strange to me. Another experiment was to add the contents of the field ALONG directly to the arglist argument. I was surprised to see that even though 30000 characters were present in the field LONG it could still be added to the arglist argument. The LONG field shows the ORA-01403 when the CLOB uses to much space, which in this case was more characters then 30000. A little strange, because of competition from 65534.

My goal here is to make it possible to display the database CLOB field in the editor JavaBean. But before I post this, the CLOB value is changed by a function (which also returns a CLOB) of the database.

Maybe I mix things here. So my questions are:
1 why FBean.ArgList accepts a CLOB if he is small enough (because it implicitly converted to a VARCHAR2)?
2. How is it possible that up to 30000 characters in a field of LONG forms can be put in an arglist, is it more then the maximum VARCHAR2?
3. is there a way to add a large CLOB field to a FBean.ArgList (or a workaround to achieve the same thing)?

Thanks for the replies!

Best regards, Weis

It does not accept a clob, as you've seen fbean.add_arg accepts number, boolean, and varchar2. If you switch to something else, an implicit type conversion is made.
take into account:

SQL> create or replace procedure some_procedure(ivVal in varchar2) is
  2  begin
  3  null;
  4  end;
  5  /

Procedure created.

SQL> r
  1  declare
  2    clob1 clob;
  3  begin
  4    DBMS_LOB.CREATETEMPORARY(clob1,TRUE, DBMS_LOB.SESSION);
  5    for i in 1..32767 loop
  6      dbms_lob.write(clob1, 1, i, 'a');
  7    end loop;
  8    some_procedure(clob1);
  9* end;

PL/SQL procedure successfully completed.

SQL> r
  1  declare
  2    clob1 clob;
  3  begin
  4    DBMS_LOB.CREATETEMPORARY(clob1,TRUE, DBMS_LOB.SESSION);
  5    for i in 1..500000 loop
  6      dbms_lob.write(clob1, 1, i, 'a');
  7    end loop;
  8    some_procedure(clob1);
  9* end;
declare
*
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at line 8

The maximum varchar2 in PL/SQL is 32767 byte:

SQL> r
  1  declare
  2  vDummy varchar2(32768);
  3  begin
  4  for i in 1..32768 loop
  5  vDummy := vDummy || 'a';
  6  end loop;
  7* end;
vDummy varchar2(32768);
                *
ERROR at line 2:
ORA-06550: line 2, column 17:
PLS-00215: String length constraints must be in range (1 .. 32767)

So, if you pass a longer than 32767 clob to a procedure that accepts conversion of type varchar2 will cause the digital error or value above that you exceed the maximum of 32767.

One possibility would be to split the clob into several pieces of 32767 byte and pass those to your java bean.

see you soon

Tags: Oracle Development

Similar Questions

  • Error when using the API to publish on form

    Hello

    I use the instructions here to post data to a form of eloqua. When the form is displayed, I get the message:

    Code: UnexpectedDataException

    Message: Could not submit form. Check that the required fields have been provided and that all fields are of the correct type.

    Again, using the example as a guide, form Eloqua is only 3 fields - Email, full name, company. None of the fields are mandatory and are all text.

    I'm at a loss. According to me, there I'm missing something simple, but can't. Anyone has an idea on what might be causing this error?

    Thank you

    Nick

    OK, you can use DescribeEntityType, which will bring back all forms and their identity papers, to ensure that you have the right one.  Also, once you have the right ID, you can use DescribeEntity (to aid the DynamicEntity ID) to get a list of all the fields and whether or not they are required.

  • I want to use the digital signature on a form filliable but cannot. My digital signature is created, but I can't use it.

    I want to use the digital signature on a form to fill out, but can't. My digital signature is created, but I can't use it.

    If you want to type their name, you can add a text field, but they can do it in any case either by using the comment tool to add text or the pencil comment (if they want to hand-draw draw a signature).

  • Impossible to use the magic wand on hidden forms

    I try to use the magic wand on certain forms which had a clipping mask applied to them, and he does not select anything, although the Lasso seems to work when I drag it over the same shape. Forms that do not work are those used to hide other images inside them.

    In isolation mode in order to access individual entities or paths of output / disassociate.

    Mylenium

  • Workflow using the editor external js

    Hello

    I'm a developer of games and news to animate and Flash. I want to use Animate installation for the game assets and then publish on html5. What I get is the html file and the .js file, where everything is initialized. Animate his own javascript editor, but I would prefer a better external tool. My question is how the workflow will look like. I should write my own html file, leave the .js initialization file, and then perform all the game logic in another script? Or how would it be?

    Regards, Martin

    The CreateJS of the team themselves using external editors, but I do not know their workflow. You might want to watch their community page and post a question on the CreateJS workflow using external editors:

    https://plus.Google.com/communities/113475154727121541523

    It would be useful if you could try the editor to animate. You get autocompletion for createjs, and there is a code snippets panel, which includes the code example. You could give your comments as to why it does not work for you.

  • No matter what a description on how to use the editor of text used for this Forum?

    I am very frustrated trying to use the text editing functions (without the use of HTML code, I don't have them) that can be used to create messages in this Forum.

    Can someone point me to a good description of the text editor used to enter/edit the messages in this Forum? Thank you very much in advance.

    You may be more likely to get a response if you asked it question in the comments of the http://forums.adobe.com/community/general/forum_comments Forum

  • Why the editor HTML to add/remove my code sometimes Landing Page?

    I had a few times and different landing pages, the HTML editor actually change my code. No matter how many times I return in the HTML editor and change my HTML code to the appropriate markup, the Publisher will change the code again once the page is saved.

    For example, once I got a header tag I was selecting by ID and then re-writing its contents on the page loading, based on certain situations, as follows:

    " < p id="hand-promo-description"> ". < /p >


    After you save the page, the editor has removed the closing tag, leaving the markup like:


    "< p id="hand-promo-description">".


    This broke the rest of my page. No matter how many times I added the closing tag (for example, < /p >), it would remove the HTML editor. The support of Prime Minister Eloqua said that we could not empty tags, so I dropped a unicode non breaking space in the empty tag value and MAGIC!... Eloqua stopped removing the tag:


    "< p id="hand-promo-description">& nbsp< /p > .


    Now, I'll have a similar on a < div > tag behavior of Eloqua. Adds randomly Eloqua < / div > tags in my code and completely break my page. In my example, it happens in a < div > nested on 3 or 4 layers (it happens in two places on the page). Yet once, no matter how many times I remove the extra < / div > tags, Eloqua adds to the time where I save the page.


    Someone at - it similar experiences? If Yes, what did you do to fix?

    If you change the raw HTML code, then the GUI based editor will change your code in its own version of the "correct" html (He has a rather unusual parser).

    Fortunately, there are always other ways to do the job.

    The Eloqua GUI editor seems to have a love affair with the DIVs.  (I actually saw him add


    to make a line break). After a long time with the GUI editing session, you can get the code that is a patchwork of nested
    s and s.  If you go into the raw HTML code and try to clean it, you have to be very careful.  If you delete a
    , you must be very careful eliminate the correspondent
    which closes the block. If you have a corn maze of
    s, this can be a very daunting task. (If delete you the wrong, Eloqua will try to fix it for you by providing the 'missing'
    -in the wrong place.)

    I've been hand-coding HTML gross for years, but am still (relatively) new Eloqua. So, I'm much more comfortable with the raw HTML editor as the GUI. That being said, here are a few tricks that help me when creating/debugging HTML pages in Eloqua.

    • Make sure that your block and Inline elements are correctly nested. (If you are not familiar with the element block and inline, this page is a good start). If you put a block or inline element in the wrong place, Eloqua will try to 'fix' for you - and probably in trouble.
    • HTML for web browsers is much more forgiving than HTML for Eloqua. You can write the baddest rat nest of semi valid HTML, and most browsers will understand what you are trying to do and fortunately wear. Eloqua is not as forgiving. Tags bad nested (such as
      Hello
      ) will correctly in most browsers, but tends to give the editor Eloqua a headache.
    • For HTML more complex, I like to copy the code in Notepad ++ and edit there. For me, the screen of Notepad ++ is much easier to read and work with.

    Hoping this will help you!

  • Use the banner html in as3 AIR

    I am wanting to use a HTML banner in my AS3 Air for Android project, here is the html code:

    " < a href =" http://Tracking.raftika.com/aff_c?offer_id=1106 & aff_id = 1708 & file_id = 12132 & file_id = 12166 "target ="_blank"" > < img src = " " https://media.go2speed.org/brand/files/raftika/1106/320x50_150k_ArchersVsCerberus_GEN_EN.g if "width ="320"height ="50"border = '0'" / > < / a > < img src = " " http://Tracking.raftika.com/aff_i?offer_id=1106 & file_id = 12166 & aff_id = 1708 & file_id = 12132 "width ="1"height ="1"/ > "

    I would need to have a certain height and width on my App thank you, any help is appreciated.

    You can load an html page in an air application, using the HTMLLoader class.

  • Use the custom component to retrieve form data

    Hi, I'm creating a custom component that can extract data from form for a task, when I run the component in the workflow, it will throw an exception:

    "com.adobe.idp.taskmanager.dsc.client.task.TaskImpl cannot be cast to com.adobe.idp.taskmanager.dsc.client.task.TaskInfo.

    on line:

    ' TaskInfo tinfo = taskManager.getTaskInfo (taskId);

    If I put the same code on a java console app to test it, it works fine.

    I tried Google but offer nothing for TaskImpl.

    Thank you

    hkho

    These links should help:

    http://help.Adobe.com/en_US/LiveCycle/9.0/componentXMLRef/webframe.html

    http://help.Adobe.com/en_US/LiveCycle/9.0/programLC/help/index.htm?content=001379.html

    http://www.Adobe.com/devnet/LiveCycle/articles/dsc_development.html

    -Note that for the import-package, it must be explicit.  specifying a.b.c won't matter in a.b.c.d classes.

    -for classes that you import, you can not have the jar in the classpath of component.xml and do not want it in included in your container of components.

    -If you use ServiceClientFactory.createInstance () without a context, then you will get the current context.  Which it is depends on how your service operation is called.  I have direct invocation by a user will have the context of the user.  So called by the engine of workflow in a long-lived process then it will run in a system context.  Since you call TaskManager to extract data from a task, rights of access apply so you should be aware of the context.  The context of the system has full access rights so it can get the desired results.  But runs under the context of the user calling, that user must be the owner of the task or the request fails.

  • using the adobe on smart phones forms

    Is there a way a form in acrobat on a smart phone, either iso or android, and then save the form and send it.

    Hi graphicsrk ,

    Here to inform that you can save the form with the Extended Reader in Acrobat, since smart phones using "Adobe Acrobat Reader" App you can fill in the form & send it back.

    Kind regards

    Christian

  • How to use the same control between two forms of Visual Basic 6?

    I have two forms and must share text between two controls forms such that I get a value in the text box in Form-A should update the same value in the text box in Form-B...

    Is this possible? If so, how can I apply it in my project?
    I tried to create a control array, but that did not help.

    Hello

    I suggest you to ask your question in the Visual Basic forum: http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/threads

    Thank you.

  • I use the following method in tabular form, created by the wizard.

    Hello
    To change the value of a column...
    I have create a following procedure...

    declare
    number of count_em;
    BEGIN
    BECAUSE me in 1.APEX_APPLICATION. G_F01. Count
    LOOP
    apex_application.g_f05 (i): = 12;
    apex_application.g_f04 (i): = 12;
    apex_application.g_f03 (i): = "ONEYEARI";
    END LOOP;


    END;

    04's start_Number column
    then end_number is 05
    And the third column, it's offer .
    But the value donot change...

    Donot change is reflected in the database. . Any idea. What am I do wrong...
    This method of referencing the values in table form a correct method... ?
    Thanks again
    Thank you

    Published by: zycoz100 on October 19, 2012 22:00

    the source property of the element is always replace the value or only where is null?

  • wrap the span in the robohelp html editor

    I use the html editor in RH11. I am trying to wrap a list item in a span tag, but whenever I record, the span tag is moved inside the tag list. Is it far from turning off the AutoCorrect?

    We do not use the HR HTML editor as it sometimes does weird things. We use Notepad ++ (free) for any HTML editing. There is a (free) plugin for N ++ called WebEdit that let's you apply tags with shortcut keys. You can also modify this HTML it adds with your shortcut or if you use the code button that appears on the taskbar.  After using HR to import my FrameMaker files, I use mostly of HR to generate the output. N ++ is used for any changes. (And fortunately, FrameMaker is on its way here.)

  • Problem with copy paste function (for images) using the TinyMCE editor

    Can not copy paste images (a document - text Copies OK) to the tinyMCE editor in Windows 8. Seems to be the specific question of operating system.

    Use the tinyMCE editor for info on the download Web site. Copy-paste function works very well on a Windows7 machine

    Hi Anand,

    I would be grateful if you can help me with the following information related to the TinyMCE editor:

    1. What is the Web browser that you use to copy and paste images via the application editor TinyMCE?
    2. What exactly happens when you try to copy and paste images using the editor? You receive an error message?

    This problem may occur because of the compatibility of the browser with the TinyMCE editor.

    Check out these links and check if the suggestions help you to solve the problem:

    http://www.TinyMCE.com/forum/viewtopic.php?PID=34916

    http://www.TinyMCE.com/develop/bugtracker_view.php?id=6075

    If the problem is specific to the TinyMCE editor, you can also contact the support of TinyMCE:

    http://www.TinyMCE.com/enterprise/support.php

    Please let us know if you need more help on this issue. Otherwise, feel free to ask for more queries on Windows.

  • synchronization between the editor in the browser and file failing muse

    In the past I had problems with changes in the browser to a client site hosted on Business Catalyst not successfully implemented Muse who have never explained Re: Muse is not merge changes

    Last week, I got a trouble with this same site (opbarks.com) and have a frustrated customer, angry as a result. Restore things, here's what happened:

    Last week, when I open my file of Muse, I sometimes got a notice stating that the site had changed through the editor in the browser, and I agree to incorporate changes. However instead of the request for review and merge the changes, the window has very quickly to full synchronization screen.

    sync-complete.png

    I thought that maybe site changes had been made and then cancelled or returned back to match what I already had so so no change despite the alert - or that Muse was just confused. So I continued to work on the site and published some tests I did with Wufoo forms. Unbeknownst to me, I had crushed my client did to two of its significant changes classes pages. Annex OpBarks Sweet Spot cottages Quakertown   and OpBarks calendar Little White Dog East Falls

    Before you crush me, my client had used in the browser edition to publish information for may and June classes. Because my Muse file has not been updated (because no changes were to merge), I published the outdated class dates and descriptions on my customer changes. First noticed my client (because one of his customers asked when she could run classes), she thought that maybe amended no had not stuck because she forgot to hit publish them in the browser - then blamed editor itself. While she paid his assistant to redo the changes and they both checked the site online to ensure that may and June were posted. They have been. They don't have to tell me about it and it wasn't until they looked back a day later and seen their changes went even once they contacted me to help solve. Turns out that the dates of their endangered changes coincided with the time Muse told me the site changed, but had then no changes to show me and I had published it. Beyond technical frustration and overtime costs, my company customers was hit - registration was non-existent because customers could see only old and outdated classes.


    Temporary workaround: now that we have understood what the problem was (bad timing), my client is pay me to make any changes directly in the Muse and publsih until we can trust the synchronization again. Of course, we could continue to use the editor in the browser and if I get a alert Muse change, but no change to merge I will not post and he will ask my client if she has made changes. But it does not solve much - I have no way to get my Muse folder to update without doing manually what is already done in the browser.


    I'm looking for an explanation or if it is a bug, I would like assurance that she is treated and want to know when I can sync trust to accomplish his task again.


    In case it helps to solve the problems, I am totally up-to-date on Muse software and faithfully were rename files .muse publishes in the browser do the merge (a solution that I read on a forum somewhere). I don't know what else to try. This is a link to the muse file that do not correctly accept the changes in the browser. Dropbox - opbarks_Apr22 - 2015.muse and it's a current a Dropbox - opbarks_Apr29-2015-for - AdobeHelp.muse I can not always going to work. (more on that below)


    ------


    Re: Dropbox - opbarks_Apr29-2015-for - AdobeHelp.muse to make it worse, I did a test see if I could reproduce the error. Successfully, I got a change in the browser, I did to the homepage of bend in my file of Muse. BUT I can't get a small change, I did to OpBarks annex Sweet Spot Farm Quakertown able to trigger an alert in Muse that an amendment was filed and manually using file > synchronize with the web version displays a window that says no changes detected.



    It's small change I made to the editor in the browser. Add a hyphen and has published.

    hyphen-on-qtown.png


    My Muse file may not see the change.

    no-changes-merged.png


    He has given some time and closed my file of Muse, reopened and I always get a message "no changes detected.

    Screen Shot 2015-04-29 at 12.06.36 PM.png

    Yet once again, I would like your help to understand this.


    Thank you

    Janine

    Hi Janine.

    There are a handful of circumstances that may prevent the Muse of the merger successfully completed through editing in the browser changes. One of them is the invalid HTML markup on your page.

    This seems to be the case with OpBarks annex Sweet Spot Farm Quakertown

    Specifically, the HTML for the form at the bottom of the page is not valid. Do you remember how you got/integrated HTML?

    Thank you

    Abhishek

Maybe you are looking for