Issue in Preview through XML forms having TinyMCE editor

Hello Experts,
I have one issue in our client portal, which is really giving me hard time to resolve.
So I have come to you experts for helping me to resolve this issue.
So below are the details of the issue.
Actually it goes like that, we are using B.Texx Framework in our Client Portal Environment and most of the work is done by the users in the portal, who has author rights. Please note that Authors have the right to Edit and save the content.
Most of the things are made on XML forms, with the help of Java Scripts.
Now there is one XML form(Add General Content), through which users add the general contents and there is one template provided to the user for that content. The XML forms are integrated here with the Tiny MCE editor.
Now, there is one link (Insert/edit link) in the Tiny MCE editor, when we write some text in the body and select the text, the link in the editor gets activated and when we click on the link, a pop up comes up, in which there is a browse button, through which we select the Navigation Element Link , which takes us in the navigation of the portal content(the way it is viewed by user in the portal according to the roles ), showing us different content and we select an content and press finished. Now the selected text becomes as a link in the body of xml form, then we fill up the title and there is one preview button. When we click on the preview button, the link is displayed to us.But when we click on that link nothing happens.
Please note that if we save that form, the links appears on portal and we are able to navigate through the link.
For this I have checked the js file(xmlformpreview_redirect.js)  responsible.I am sharing the code of the js file below.
// author llaegner
// Get current URL of XML Forms Preview
// This Javascript should be included in the ShowForm Formular (old XSL Style)
// in xml forms builder in a label-field in the attribute caption
// this javascript file is then called by the Preview Button on an Edit Form, because the ShowForm is launched automatically always
// changes by ekaraca
// Add a if-Control so a redirect will work by clicking the xml file as well
var currentURL=top.location.href;
var redirectURL="";
var startOfParameters=currentURL.indexOf("?");
if (startOfParameters < 0) startOfParameters=currentURL.indexOf("%3F");
if (startOfParameters > 0) {
     // Provide all parameters for SAP original preview iview to our new iview
    redirectURL="/irj/servlet/prt/portal/prtroot/com.btexx.pct.easyWCM.customer.addons.xmlformpreview"+currentURL.substring(startOfParameters);
if(currentURL.substring(currentURL.length-4)==".xml") {     
     var xmluri = currentURL.substring(currentURL.indexOf("/irj")+15, currentURL.length); /* /irj/go/km/docs <---- 15 letters */
     redirectURL="/irj/servlet/prt/portal/prtroot/com.btexx.pct.easyWCM.customer.addons.xmlformpreview?show/test="+xmluri;     
     top.location.href=redirectURL;
else {
     // If we have found something to redirect
     if (redirectURL.length > 1) {
          // Change current location and switch immediately to new iview
          top.location.href=redirectURL;
I would really appreciate if any of you experts help me resolve this issue.
So I am eagerly waiting for the response from all of you experts present here.

guys i m still waiting for some expert comments here...plz help me out.

Similar Messages

  • Xml Form Builder HTML Editor

    Hi All,
    In my xml form builder application, i have to insert an image inside the UI "HTML Editor". But there is no option called as "insert image from km" into the HTML Editor? How can i have that option called "Insert Image From KM" ?
    I tried "configuration of the HTML editor" in
    Knowledge Management  Content Management  Utilities  Editing  HTML Editing.
    I enabled the option "Allow Images". Then too it is not reflecting in HTML Editor UI.
    What else can be done for getting that property on HTML Editor UI?
    Thanx and Regards,
    Divya

    Hi,
    My understanding is that the standard HTML editor control from SAP is quite limited. You can copy and paste an image into it (but the image has to already be in KM) - it has no nice control for selecting or positioning the image....
    Some options:
    1. There are options like TinyMCE which I belive can be used in place of the standard HTML editor control.
    2. If the structure of the content on you page is fixed then you could add images into the form as images that the user would provide links for - but this is not as free form as you would maybe like.
    Hope this helps,
    Simon

  • Problem with NewsLayout/XML Forms

    Hello,
    I have a created News(custom) item, through XML forms. When I preview the Edit,Show and Renderer form, they all work fine.
    The problem, I am facing is:
    When I create a news item under documents folder: New->Forms->News, it is saved. when i click on this xml file, I can see the news.
    But in the iView, when i set the Layout as "NewsBroswer" , these news are displayed as links but not as News item( as we see in Renderer list in XML froms ). All the other forms (FAQ, SAP Demo News are seen as news item )
    Can someone tell me why, this problem exists ?
    Regards,
    Poornima

    Hi Raghu,
    I have already done this. I am using the same layout set( with all the things u have mentioned ) to my other news, it works.
    The news where I am creating now is directly under root in another folder which is at the same level as documents folder. Should I do some XML resource rendering settings for this. The XML form is available for this folder.
    I have no idea pls help ! Its consuming a lot of my time to correct this.
    Regards,
    Poo

  • Unable to edit the content of an XML form

    Hello Experts,
    I am facing a weird issue after updating my XML form.
    Earlier scenario :
    We were displaying only the Title of the news along with the content.
    New scenario :
    We had to display image also along with the title and content of the news.
    Changes i did :
    I have updated my XML form with adding an Image UI in the XML form.
    Issue :
    After adding the image UI and generating the project in the content part it is giving a message as in the image below.
    Due to this message as "Loading content please wait" i am not able to save the content of the news due to which i am getting dump on the screen.
    Please help.
    Its an urgent issue.
    Thanks in advance.
    Regards,
    Gazala

    Hi gazala,
    Hope you are doing good.
    Is the portal 7.3? can you let us know the version? Trigger 5-6 thread dumps with 30 secs interval each for your server when you reproduce the issue.
    More info:
    http://wiki.sdn.sap.com/wiki/x/VYZ3Cw
    SAP Note No. 1020246-Thread Dump Viewer for SAP Java Engine
    SAP Note No. 710154-How to create a thread dump for the J2EE Engine
    This will help check this further
    Hope this helps.
    Kind Regards,
    Hemanth
    SAP AGS

  • Tabbing through a form with multiple pages!!!!! FIX!!

    Hi everyone, I have a fix for this tricky issue of tabbing through a form that has multiple pages.
    1. You'll need to go to the "master page" and add as many pages as you have "body pages".
    2. Click the Object Veiw Tab and set the Occurence of the page to Max 1 and click the box with the instruction Include In Page Numbering.
    3. Do this for each page of the form that you have.
    4. The tabbing now should move from the 1st to 2nd to however many pages you have Master and Body Pages for.
    Glad I could figure this out! Goodluck!

    Thanks for the reply. Since my post to this topic I discovered some things about tabbing. With out adding another master page but just keeping the one and making sure that it's occurance is set to a minimum of one and including master page in the numbering it will work as long as the order of fields in the hierarchy tab matches the order in the position of the fields.
    I have a subForm that has a row of fields starting with a button then several text fields. I couldn't tab to the next page because the button was at the bottom of the hierarchy and it wasn't until I moved it to the top that I could finally tab to the next field on the next page. I also discovered that with a one page dynamic interactive form that has some expand able text fields in it and when the field expands so that any fields are pushed to a new second page tabbing seems to not work. In other words when I tab out of that field that is suppose to expand and a new page is added to the form the tabbing quits and in order for it to resume I have to click in a field and from then on it work even if it gets to where a third page and so forth is added. It is just when a one page (in my case) form turns into multiple pages for the first time.
    Hope that makes sense.

  • Issue in Java Scipt in XML form

    Hello Experts,
    I have one issue in our client portal, which is really giving me hard time to resolve.
    So I have come to you experts for helping me to resolve this issue.
    So below are the details of the issue.
    Actually it goes like that, we are using B.Texx in our Portal Environment and most of the work is done by the users in the portal, who has author rights. Please note that Authors have the right to Edit and save the content.
    Most of the things are made on XML forms, with the help of Java Scripts.
    Now there is one XML form(Add General Content), through which users add the general contents and there is one template provided to the user for that content. The XML forms are integrated here with the Tiny MCE editor.
    Now, there is one link (Insert/edit link) in the Tiny MCE editor, when we write some text in the body and select the text, the link in the editor gets activated and when we click on the link, a pop up comes up, in which there is a browse button, through which we select the Navigation Element Link , which takes us in the navigation of the portal content(the way it is viewed by user in the portal according to the roles ), showing us different content and we select an content and press finished. Now the selected text becomes as a link in the body of xml form, then we fill up the title and there is one preview button. When we click on the preview button, the link is displayed to us.But when we click on that link nothing happens.
    Please note that if we save that form, the links appears on portal and we are able to navigate through the link.
    For this I have checked the js file(xmlformpreview_redirect.js)  responsible.I am sharing the code of the js file below.
    // @author llaegner
    // Get current URL of XML Forms Preview
    // This Javascript should be included in the ShowForm Formular (old XSL Style)
    // in xml forms builder in a label-field in the attribute caption
    // this javascript file is then called by the Preview Button on an Edit Form, because the ShowForm is launched automatically always
    // @changes by ekaraca
    // Add a if-Control so a redirect will work by clicking the xml file as well
    var currentURL=top.location.href;
    var redirectURL="";
    var startOfParameters=currentURL.indexOf("?");
    if (startOfParameters < 0) startOfParameters=currentURL.indexOf("%3F");
    if (startOfParameters > 0) {
         // Provide all parameters for SAP original preview iview to our new iview
        redirectURL="/irj/servlet/prt/portal/prtroot/com.btexx.pct.easyWCM.customer.addons.xmlformpreview"+currentURL.substring(startOfParameters);
    if(currentURL.substring(currentURL.length-4)==".xml") {     
         var xmluri = currentURL.substring(currentURL.indexOf("/irj")+15, currentURL.length); /* /irj/go/km/docs <---- 15 letters */
         redirectURL="/irj/servlet/prt/portal/prtroot/com.btexx.pct.easyWCM.customer.addons.xmlformpreview?show/test="+xmluri;     
         top.location.href=redirectURL;
    else {
         // If we have found something to redirect
         if (redirectURL.length > 1) {
              // Change current location and switch immediately to new iview
              top.location.href=redirectURL;
    I would really appreciate if any of you experts help me resolve this issue.
    So I am eagerly waiting for the response from all of you.

    Experts...still waiting for your comments.

  • Passing through XML in HTML forms without it being displayed in Web Browser

    Dear all
    I have some MapViewer XML stored in a variable, which I wish to pass through a HTML form. However whenever I insert the variable into the form and run the procedure, my web browser starts reading the actual XML and treating it as HTML, since it is only part of a complete XML script. Even if it was a complete XML script, it would still try and display it. Is there away of making sure the value is passed through without being read by the browser?
    For example:
    PROCEDURE DISPLAY
    AS
    var_xml VARCHAR2(32767) :='<theme name="theme_county"/>';
    htp.print('<INPUT TYPE = "hidden"
                      NAME ="var_xml"
                      VALUE = "' || var_xml || '" />Then causes the output to the browser to become:
    htp.print('<INPUT TYPE = "hidden"
                      NAME ="var_xml"
                      VALUE = "<theme name="theme_county"/>" />The browser is of course reading the XML as HTML.
    Kind regards
    Tim

    Dear all
    I have now resolved the problem by submitting values which can then be used to recreate the xml in another function, rather than actually submitting the xml itself through the forms. This makes more sense and avoids people having to see any of the xml.
    Kind regards
    Tim

  • Issue in XML Form Builder

    Dear Experts,
    i am new to XML Form Builders in Portal, so i have started with this document as my first form:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ee639033-0801-0010-0883-b2c76b18583a?QuickLink=index&overridelayout=true
    but i have come across two issues can you please guide me to troubleshoot this issue's:
    Issue 1:
    I have made changes as per the document but as per the document (refer page: 17, 2. point)
    refer this image from document: http://imageshack.us/photo/my-images/825/xmlerror1.png/
    New> Form>?,   here my created News is not displayed
    But it show like below:
    http://imageshack.us/photo/my-images/839/xmlerror2.png/
    As shown in the image no News form that I have created?
    Did I miss anything?
    Issue 2:
    As per page 18 from same document:
    Path to Initially Displayed Folder:      /documents/myNews
    Path to Root Folder for Navigation:    /documents/myNews
    I have created Iviews with the same pathu2019s and when I Preview I am getting the error  as below:
    Item not found
    /documents/myNews
    The item you are attempting to access is not available. Check that the name or link is correct. You might also check whether the associated repository is currently accessible.
    It seems that I am completely in wrong track can someone guide me in right direction to solve this both the issues.
    Full points will be awarded for sure!
    Regards,
    Mahesh

    Hi,
    Please read and try to understand the concept; give yourself some time. Try to understand what an XMLForms project is and how this differs from content based on such a project.
    > Path to initially displayed folder : /documents/myNews
    > Path to root folder for Navigation: /documents/myNews
    These are just two settings for the KM navigation iView; you can read the (different) meanings on help.sap.com. But in short words: You just configure to which folder the KM navigation iView points to. That's all.
    > so here it pointing to both newly created folder for saving the form created by the end users
    If you have the iView, it is a KM nav iView pointing to this folder. Now an "end user" - it is: an author - can call this iView and can create content based on the XMLForms you have created before (Folder - New - Forms - ...). That's all. That works. End of story. Afterwards, XMLForms content objects based on your project are to be found in this folder.
    > but this folder "myNews" does not contain the form which i have created
    You have created an XMLForms project. Period. You can ("author" iView!!!) create content based on your project in that folder.
    > so how do the end users see my form in first case.
    ??? Really, you have to be much more precise if you want to survive in IT... What is your "end user"? We are talking of an author iView. In that cas it is an author. And under "Folder - New - Forms - ..." there is the possibility to create new XMLForms content based on the project you have created. (That you have said by yourself - issue 1 was gone!!!)
    There is nothing more to explain. That it everything. I really don't see your or any problem any more.
    Detlev

  • Issue While printing / Previewing a Adobe form in Web Dynpro ABAP application

    Dear All,
    We have designed 4 different adobe forms using SFP transaction for 4 different countries in SAP system.
    Every country have different terms and conditions and therefore we have placed static texts (Hardcoded text) with text in different styles. Some text is in bold, some in different font (Bold, Italic). Font and Paragraph settings of the text was done as per expected. All the forms have same font and paragraph settings.
    When we Launch Web Dynpro ABAP application to open the form in Print preview or to take print, form is not getting displayed / printed as it is designed in SFP. But if you open the form in SFP, everything looks fine.
    It is working fine for 3 different forms but problem with only 1 form.
    Kindly guide what is the reason for this strange issue when previewed or taken print. It is very urgent.
    Thanks,
    Bharath.K

    Dear All,
    Thanks for your responses.
    We had identified the reason.
    Customer has provided terms and conditions for all 4 countries in PDF document. Along with PDF, for 3 out of 4 countries customer has shared pre-prepared word document with pre aligned and justified terms and conditions as per expected outcome. We copied this text from word to Adobe form layout. It worked fine. For 1 country, customer have not shared terms and conditions in word document. Therefore we had copied text directly from adobe PDF document in to Form layout. Then this issue happened.
    Solution for this issue is to, prepared a word document with expected alignment and justification of terms and conditions text . Then copied from word to adobe livecycle designer form layout. It worked fine.
    Thanks,
    Bharath.

  • Issue with XML form builder

    Hi All,
    1 ) My XML form builder is hanging up very very frequently (other than this, my portal is very fast).
    when I save the project its hangs up at "50% saving internal model". then I have to close the xml form builder and reopen it and save it again (when i do it repeatedly, some time it saves).
    when I click on "open Project" many times its not popup the project list, I have to close the xml form builder, logout from my portal and then login back.
    Its horrible to work on this, keeps on hanging every time. Any idea why its behaving like this? as I said, my portal is very fast except XML form builder.
    My Java version is 1.4.2_16... XML form builder verison is 6.xx
    2) when clicked on "preview" button, can we open a pcd iview??? my requirement is, when user clicks on preview button I need to open my application built in PDK java (created iview out of it, which shows xml form in a better way)?
    3) Can I show "Edit" form first other than "Renderer" form in News application? Presently it shows renderer form-> user has to click edit link -> then it will open Edit form. I want "Edit" form to be visible to the user in the first step itslef. is it possible?
    Thanks
    Pradeep
    Edited by: pradeep bondla on Nov 19, 2009 3:08 AM

    Hi.
    I suppose changing of the JDK, because 1.4.2_16 is not recommended version (see SAP  Note 716604). Refer to note 718901 - How to Change the JDK of the J2EE Engine.
    Also check what version of client JRE in use. (see Note 1341069 - XML Forms Builder not supported if client JRE is 1.6).
    Best regards,
    Aliaksandr Zhukau

  • XML Form Builder Issues

    Hi All,
    1 ) My XML form builder is hanging up very very frequently (other than this, my portal is very fast).
    when I save the project its hangs up at "50% saving internal model". then I have to close the xml form builder and reopen it and save it again (when i do it repeatedly, some time it saves).
    when I click on "open Project" many times its not popup the project list, I have to close the xml form builder, logout from my portal and then login back.
    Its horrible to work on this, keeps on hanging every time. Any idea why its behaving like this? as I said, my portal is very fast except XML form builder.
    My Java version is 1.4.2_16... XML form builder verison is 6.xx
    2) when clicked on "preview" button, can we open a pcd iview??? my requirement is, when user clicks on preview button I need to open my application built in PDK java (created iview out of it)?
    Thanks,
    Pradeep

    raised same thread twice, please reply to
    https://forumsa.sdn.sap.com/thread.jspa?threadID=1535558&tstart=0

  • XML Form Builder :  user the TinyMCE.

    Hy,
    Can we change the defaut Html Editor in the XML FORM BUILDER to use the TinyMCE one ? How ?
    I'am not speaking about the one in WPC.
    Thanks.

    Hi Esikad,
    have you tried the process described by Praveen in this thread:
    https://forums.sdn.sap.com/thread.jspa?threadID=305402
    Hope it helps,
    Robert

  • XML Forms Buidler: Rename Show and RenderListItem in Preview

    Hi everybody,
    how can I rename or translate the links in the preview page of XML Forms Builder. When a user clicks on "preview" in the edit form, a new windows is shown with two links:
    - Show
    - RenderListItem
    I want to change the text for those links.
    Any ideas?
    Regards,
    Andreas
    Edited by: Andreas Wachendorfer on Nov 26, 2009 10:05 AM

    Hi Raghu,
    I have users with different languages set. All items are displayed in the users' language depending on the translation files of the xml forms project.
    But when I click on preview in the edit form, a new window opens with two links "Show" and "RenderListItem". They are in english (the text is the ID of the form) for all users. I want to change those two link texts. If those texts can be made translatable thats fine, but chaging them to a fixed value would be enough.
    Any ideas? Thanks for your help.!
    Andreas

  • Issue with HTML Editor of XML Form Builder.??

    Hi All,
    We are using HTML Editor of XML Form Builder to enter the Content. This content will be displayed to teh User by parsing these XML Files generated by the XML Form Builder Application.
    But, when we parse the XML, the other field values are coming properly, except HTML Editor field Content.
    This is working fine, only when I enter a Single line Text. If I enter some Spaces, New lines, Paragraphs, etc. the XML Parsing is not returning any Content..
    And also when I use Text Area, the total content is returning as a Single Paragraph, Even if I enter multiple lines, spaces,.
    If anyone has Idea on this, Please Help me to solve this Issue ASAP.
    Thanks&Regards||
    Ashok Kumar M.

    Hi Bala,
    It is already mapped correctly. If I enter a single line Text in HTML Editor, I am getting the same Text after Parsing. But If I enter multiple lines, spaces, new lines, etc., then the Problem.
    Thanks||
    Ashok M.

  • Unable to preview - XML Forms builder

    Hello gurus,
    please forgive the silly question as I'm completely a newbie on the argument.
    I'm trying to implement a news iview in Portal; I found an exaustive and intesting How-to guide that designs exactly my scenario:
    How to Create XML Forms (NW2004)
    However, I tried to start from the existing SAP_DemoNews project doing some little modifications in order to include a society logo.
    So, I opened SAP_DemoNews project and did a Save as... to MyTemplateNews project.
    However, even though the project seems correct as there are no errors in the generate() phase, I cannot see a preview of any module as the windows which is opened contains the following message:
    XML - Forms 
    Item /documents/xmlforms/xfbuilder/preview/MyTemplateNews.xml does not exist
    I guess there's something wrong with paths and configuration, but didn't found any reference searching the forum; could anyone provide me an help to work with previews?

    Hi Matteo,
    > preview works correctly on the EDIT form, while still crashes on the Show and RenderListItem forms
    "the preview function in the XML Forms Builder is not supported for the RenderListItem form" (http://help.sap.com/saphelp_nw70/helpdata/en/42/f6733c20e73247e10000000a11402f/frameset.htm)
    But for Show it should work, and you said it does for standard forms delivered by SAP!?
    For the default trace, you can use the log viewer in VisualAdmin (7.0) or the log viewer in NWA (7.0/7.3). VA: http://help.sap.com/saphelp_nw70/helpdata/en/57/5f1140d72dc442e10000000a1550b0/frameset.htm; NWA: http://help.sap.com/saphelp_nw73/helpdata/en/47/af4560fa711503e10000000a42189c/frameset.htm
    Contact your basis people for further information; maybe they can check if the traces throw some insight...
    Hope it helps
    Detlev

Maybe you are looking for

  • Utl_file not getting generated

    hi i wrote one procedure using utl_file , to check the output of the file in a text format and it was created successfully , intially it had problems with directory and i created that directory and even granted permissions using system user but nothi

  • How to change the color of blog titles on blog archive page?

    So while I'm waiting for apple to fix iweb's publishing problem, I might as well do a revamp of my site in the meantime. One thing I've been itching to change, but can't is the color of the blog titles on the main blog archive page? They show up in r

  • AC 10.0 Background Scheduler only Allows Display

    Hi Community, When trying to follow SAP's wiki document to set up user access reviews (UAR) after the configuration steps in SPRO it asks to set up a background job in Access MGMT -> Scheduling -> Background Scheduler. Unfortunately, when I access th

  • Import of a request failing : ERROR: connect failed due to DbSL load lib fa

    Hi, I am using ecc6, on hp-unix and oracle as database. When i try to import a request from stms, i get this error. DURING IMPORT ERROR:     Transport control program tp ended with error code 0249     Errors: connect failed due to DbSL load lib failu

  • FI/ABAP

    how to do customer aging analysis in abap. what r the fields to be used and what is the logic. Ols help me.