Xml form HTML Editor control change.

Hi,
Is it possible to change External weblink control property of HTML Editor used in xml form builder.?
As of now this control gives 2 options to provide external weblink (1.Open in active window ,2.open in new window).I want to add open in same window as top.
Can anyone give some useful information ?
Thanks and Regards,
Jack.
Note: Points will be awarded for useful answers.

Hi jack men,
If you are still interested in a solution to your problem...
We just hit upon the same problem. I found out that XMLForms reference htmledit4.js in their <XMLForm-Name>Edit.xsl, so you have to adapt that one.
I saved htmledit4.js and renamed it to htmledit5.js so that I can change the HTMLEditor settings only for my XMLForm (and not for e.g. SAPNewsForm).
I changed the entry in my XML-Form Editor settings XSL to reference the new JavaScript file:
[code]<xsl:value-of select="$xmlformsroot"/>/htmledit/htmledit5.js</xsl:if>[/code]
Then I copied the method body of htmledit3.js (the standard htmleditor JavaScript file) to htmledit5.js and adapted it to just show the two tragets of <i>self</i> and <i>top</i>.
The method to display link properties is: <b>htmlb_hed_makeWebLinkDialog</b>
Find this method in both files. Then find in htmledit3.js the beginning of the target window selection-box:
[code]sSizerHtml += "<SELECT id=htmlb_hed_link_launch_mode class=\"urDdlWhlSml\">";[/code]
the following lines of code determine the selectable values.
You will notice that htmledit4.js misses a few entries. Just copy all or the ones you need.
For your convenience I show my code here:
[code]  sSizerHtml += "<td>";
  sSizerHtml += "<span style=\"font-size:1em;\">";
  sSizerHtml += "<SELECT id=htmlb_hed_link_launch_mode class=\"urDdlWhlSml\">";
//-- target=_blank
  sSizerHtml += "<OPTION value=\"_blank\" ";
  if(modOpenMode==1) sSizerHtml += "selected";
  sSizerHtml += ">";
  sSizerHtml += txtMap["TXT_HTMLB_HED_BLANK"]; 
  sSizerHtml += "</OPTION>";
//-- target=_parent --
  sSizerHtml += "<OPTION value=\"_parent\" ";
  if(modOpenMode==2) sSizerHtml += "selected";
  sSizerHtml += ">";
  sSizerHtml += txtMap["TXT_HTMLB_HED_PARENT"]; 
  sSizerHtml += "</OPTION>";
//-- target=_search--
  sSizerHtml += "<OPTION value=\"_search\" ";
  if(modOpenMode==3) sSizerHtml += "selected";
  sSizerHtml += ">";
  sSizerHtml += txtMap["TXT_HTMLB_HED_SEARCH"]; 
  sSizerHtml += "</OPTION>"; 
//--target=_self
  sSizerHtml += "<OPTION value=\"_self\" ";
  if(modOpenMode==4) sSizerHtml += "selected";
  sSizerHtml += ">";
  sSizerHtml += txtMap["TXT_HTMLB_HED_SELF"]; 
  sSizerHtml += "</OPTION>";
//-- target=_top
  sSizerHtml += "<OPTION value=\"_top\" ";
  if(modOpenMode==5) sSizerHtml += "selected";
  sSizerHtml += ">";
  sSizerHtml += txtMap["TXT_HTMLB_HED_TOP"]; 
  sSizerHtml += "</OPTION></SELECT></span>";
  sSizerHtml += "</td>";
  sSizerHtml += "</tr>";[/code]
I didn't check yet if a new generation of the XMLForms Project in the XMLFormsBuilder overwrites the changes in the XMLFormsEdit.xsl, however I guess so. A better way would be to adjust the JavaScript reference in some other configuration file that I haven't found yet, until then just adapt the XSL everytime...
If Carsten Buechert contacted you regarding the exchange of the whole control, I would be interested myself as well.
Cheers
Kilian

Similar Messages

  • XML News html editor not visible

    Hi,
    As a part of XML News we have created an html editor along with other labels,text field etc.The problem now is this editor is not visible while creating the News using News Editor Role.Can you help?
    Regards
    Imran

    Hi Raghu,
                     Forms availability are eanabled already.If we are opening the News form all other fields (like button,text fields etc) are visible but the only thing not visible is the component hml editor where the Editor has to write News,I hope you understand this.Even though that is present in the form template under XML bulder.
    Regards
    Imran

  • HCM Form Dynamic UI Control change

    Hi,
    I need a solution on the dynamic UI control change in Adobe form, I am populating the backbend values in the dropdown, but the requirement is if i get only one value in the dropdown i need to show that in textfield It means that i need to change the dropdown control to textfield control based on the single value condition dynamic
    Let me know if any one have solution on this.
    Thanks
    Nag

    Hi
    Var count =  list of items in the DDL
    Var DDl = xfa.form.data.DDL (position of DDL in the form)
    Var textfield = xfa.form.data.textfield (position of textfield in teh form)
    if (count<1){
    ddl.presence = visible;
    textfield.presence = hidden;
    }else{
    ddl.presence = hidden;
    textfield.presence = visible;

  • WPC HTML editor rendering changed after SPS21 upgrade

    Hello experts,
    We've just upgraded our SAP Portal to SPS21. This upgrade included KMC. Since the upgrade the fontsizing of content types has changed. Everything has become so small, content cannot be properly read. I'm trying to narrow down the problem and found out the following:
    - It only happens when existing content (pre upgrade content) get saved. Before saving the font size is good, but after saving it changes.
    - It only happens to content which is being edited in the HTML edit object of WPC.
    I was surprised it only happens to existing content and not to new content. Using the IE Developer toolbar I tried finding out the difference in HTML. This is what I found:
    - Existing content is only rendered by the XSL. The XSL defines the content to be viewed in a paragraph tag. This is exactly the output of the HTML
    - New content (same content type) is rendered by the XSL, but has "extra" rendering: Text is shown in two SPAN tags <span> with extra class attributes urFontStd and urTxtStd.
    I don't know enough about WPC to know why it renders in two different ways if the same xsl file is used for the content. I hope someone can help me solve this problem.
    Thanks in advance.
    Kenny
    Edited by: K. Kok on Sep 30, 2010 1:58 PM

    No, I don't have a proper solution yet, but we adjusted our stylesheet., so we have a workaround A normal paragraph has 0.75 em and a paragraph inside the spans have a 1.0em value. Both paragraphs show the results in 12px.
    It's not pretty, but it works.

  • 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

  • KM HTML Editor unable to edit

    Hi,
    I am having a weird situation where I am unable to edit the HTML editor in the XML Form. Rest all controls like (Textfields, etc) are working.
    Only the HTML editor control is not editable.
    Can anyone give me any solution on this.
    Regards,
    Narendra.

    Please see SAP Note 1840665 - HTML Editor in XMLForms is not displayed
    I had a similar issue to what you described and the solution provided in this note corrected it.  If this is not the same issue you are facing, please provide more details, as I have a good bit of experience with KM issues.
    Hope this helps,
    Trent

  • XML Forms: save form in "Show Form" Mode

    Hi All,
    Is there a way to have 2 edit screens in XML Forms?
    My scenario:
    1) user creates form
    2) admin reads form and changes the property "status"  to "form read" (a field that the user does not see) and saves.
    Is this possible?
    I can add the controls for the "status" input and save button. 
    But when in Display mode I click on the save button and it errors.
    Cheers,
    Vic
    Message was edited by: Victor Yeoh

    In the URL Generator Service, XML forms CSS file path changed. I've reset the XML forms CSS file path to /irj/go/km//etc/xmlforms.
    This resolved our issue.

  • XML Form, RenderListItem bug

    Hello, all KM-developers!
    Please try following simple task sequence:
    1) In folder "News" create standard SAP news.
    2) Fill the fields and push Save button
    3) Open the news item again for editing
    4) Change for example title of the news item
    5) Push Save button
    6) In the list you can see old (!!!) title. If you open news item in separate window (for editing or just for viewing) you can see new title
    7) Open XML form in editor and regenerate project
    8) Only after regenerating project RenderListItem will display correct values.
    NW SPS13
    What should I do to correct the error?

    Hi!
          There's an SP13 Patch 3 which addresses this and a couple of other problems.
        Besides, you can also clear renderlistitem cache (System Administration -> Monitoring -> KnowldegeManagement -> Cache monitor -> ca_xmlforms_renderlistitems ) to update the render list values.
    Best regards,
                         Ilya.

  • XML Forms Template Translation

    Hi expertes!
    Customer is actively using XML templates for generating news and other KM content information.
    All the XML forms templates are created using XML forms builder and created in local language. The customer has customers in different countries and want to have the Templates translated so they can easily create forms in different languages. Ie: forms translated, buttons, headings and so on....
    One way of creating different templates would be to open up the local template in XML forms builder and make a copy(Save as) and translate the template, generate it and thus making template available in a different language. BUT this represents a lot of work if you have lets say 5-6 languages and all templates must be translated. Not to mention if you want to add a field, you would have to do it 5-6 times.
    Question?
    Are there any way of "translating" the XML template like you can do with "portal content translation" so you maintain only one XML form template but it changes according to the logon language of the portal?
    like adding "language filters" to one xml template
    Thanx in advance
    Trond

    Hi, Thanx to this Forums professional users
    ihave found the way of translating the XML forms template for easy changing the XML forms language using Userid language. So when a user logs on and wants to create a new XML forms(news ect.) they get the form in their own language.
    Found in SAP help:
    Language-Dependent Resource Files
    You can use the default resource files as a template for language-dependent resource files. Note the following naming conventions for language-dependent resource files:
    <Preferences location>/<project name>/<project name>_<language key>.xml
    For example, an item file for Italian could have the following ID:
    /etc/xmlforms/SAP_DemoNews/SAP_DemoNews_it.xml
    You have to create the language-dependent resource files manually (see Activities). You offcourse change the content of the xml
    Question:
    When we translate the form and test it, the entering template(xml) works perfect and we can generate the xml forms(news) in no time, BUT when displaying the XML forms in "SHOW" modus, it points back to a NON translated XML/XLS form. The translation of the form should also print/show the translated xml forms in SHOW modus also? Is there a way of translating the SHOW, bcs going into the forms builder is too time consuming and we can n ot do this bcs of short timeframe.
    Any solutions to this, Thanx!!
    Best Regards
    Trond Gjerde

  • Html Editor in XML Form builder

    Hi,
       I have created a FAQ in XML Form Builder and I am using html Editor in the form. I need to give link to some selected text by using "web link for selection" option form the html Editor and I tried but in the iview the text does not appear as link.
    can any one help me what is a problem? or it is bug in Html editor.
    regards
    Yasir Noman

    hi Yasir
    The project you created appear in the KM folder  ( /etc/xmlforms)or the folder based on your settings. You can open the form you created in the km and can check whether the link command is there in the file.You can edit it directly from here to correct the error.
    Regards
    geogi

  • Problem with HTML Editor box in XML Form

    Hi all,
    I am using a HTML editor box in one of the XML form template. When I parse the data from HTML editor and apply my own style sheet and display in JSP page, it has no effect on it. Instead the style set by HTML editor box is being applied. Is there any way to override the style applied by HTML editor ?
    For example,
    Suppose  user enters "Hello" in HTML Editor box and saves the xml form.
    Then when I parse this data and apply my style sheet like
    <style="font-family:arial; font-size:12"><%= datafromXMLform() %>
    I should get "Hello" in arial font with size 12, instead I am getting size=1 because of style applied by html editor.
    Is there anyway to remove/override this style?
    Thanks in advance,
    Sandesh
    Edited by: sandesh kumbhar on Oct 27, 2008 4:12 PM

    Got it !!!
    In the property section of html editor in form builder , set the style as none/empty instead of standard.
    Sandesh

  • 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.

  • How can i convert the HTML information in XML form to a PDF?

    Hi does any body know how can i convert the content of an HTML field in a XML Form in a regular text to include in a PDF in a Java program?

    Hi ,
    On the tool bar you have an option "Browser" which is next to "HTML Editor" .
    You know that for using these elements wo have to map them with Data Schema.
    Step by step
    1. In data Model Under Data Schema Add a child and name it Read_More.
    2. In the left hand corner ,click on tab Type and from the drop down select "rid"
    3.Click on the "Browser" from the toolbar (as told earlier) and drag and drop it on the form.
    4. Drag the Data schema which u have made(Read_more) and drop it on the browser on form. On right hand side u will se the mapping done.
    5.Click on the "Browser" which is there in the form and on the right hand side of the form u will see the property window.
    6.In property window change the value of action property to "Item Entry point"
    7. Repeat step 3 and 4 in Render and show form but using "label" nad not browser.
    Do not forget to add Save button in Edit Form.
    This will solve your problem.
    PS:Rewards Point Please.
    Regards,
    Naveen Gupta

  • 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.

  • How to change the Hyper links color in the XML form

    HI SDNs
    Do u have any idea how to change the hyperlink color in the xml form. My requirement is as follows.I have created xml form by using xml template and i displayed this xml form by using Km document iview.  I need tochange the hyper link color in the xml form content. I dont want to go for manual process by editing the xml form. because i have several hundreds of xml forms.
    Appreciate if you give suggestion.
    Thanks
    Ramana

    Hi Ramana,
    The most convenient way to change the hyper links is by using the Theme Editor. Go to System Administration --> Portal Display --> Select Theme --> Component-Specific Styles --> Links --> Function/Result Link.
    Hope this helps.
    Kind regards,
    Joost

Maybe you are looking for

  • What's the best thesaurus app for iPhone 4S?

    I'm looking for the best thesaurus app for my new iPhone 4S. The best I've seen listed to so far is the Oxford English version for $24.99 Canadian. All the rest are Roget II or those A-Z thesauri which I've never liked. I prefer the Roger's Internati

  • How to switch the control from one browser to another browser for automating the application in VBScript?

    I am automating a web application which is opening a another model Pop up browser. But the control remains in the first browser itself. I want to switch the control to the recently opened popup browser. Please provide me the solution that how it coul

  • Almost 3 Months to install a Landline, it's Normal

    Hi My name is Helio and I have recently moved to a new house in Worcester. I have required a Landline on the 8 of April 2013. I have been scheduled to install twice and both time no one show up. To be at home I have requested the days at the office f

  • Video Noise Reduction Plugins (Neat Video, Natress, Etc.)

    We are doing some finishing on a short documentary film and some shots (HVX-200 in a dark, poorly lit, blue-starved, turkey barn) need a small amount of noise reduction to maintain the overall look of the film. We tested a demo of Neat Video's noise

  • Business Process Of Steel Industry

    Hi Gurus,              Could any one explain me th Business Process of Steel Industry in detail please.               I will award points. With Regards Saeed Arif