WPC - Custom Web Form: DOMException: Root Element is already present

Hi experts,
I'm trying to create a custom web form for my companies portal and I'm facing the following problem:
I can create create articles with my new webform and everything is fine, but when the XSL Transformation is happing (eg. for viewing the content) i got following exception:
Cannot render container : com.sap.engine.lib.xml.util.NestedException: org.w3c.dom.DOMException: Root Element is already present, cannot be appended as a child. -> org.w3c.dom.DOMException: Root Element is already present, cannot be appended as a child.
I don't understand of which root element the parser is talking. Unfortunately I can't find any additional info to this.
This is my Editor Document:
<documenttype id="wpc_informatics_article" description="wpc_informatics_article" showpreview="true" showelementlist="true">
  <properties>
    <property id="name" description="xml.xlbl.name" type="inputfield" size="25" isrequired="true" isfilename="true" />
    <property id="createdBy" description="xml.xlbl.created_by" type="peoplepicker" size="25" isrequired="true"/>
    <property id="includeInRSS" description="xml.xckl.include_in_rss" type="checkbox" defaultvalue="false" property="wpc_wcm_rss"/>
    <property id="displayNewIcon" description="xml.xckl.display_new_icon" type="checkbox" defaultvalue="false" property="wpc_wcm_new"/>
  </properties>
  <elements> 
    <element id="heading1" description="xml.xlbl.heading1" type="inputfield" default="true" singleinstance="true" size="75" maxlength="75" nodelete="true"/>
    <element id="heading2" description="xml.xlbl.heading2" type="inputfield" size="50" default="true" />
    <element id="paragraph" description="xml.xlbl.paragraph" type="htmleditadvanced" default="true" />
    <element id="relatedLinks" description="xml.xlbl.related_links" type="wpclink" hastitle="true" />
  </elements>
</documenttype>
The created example content:
<document document="wpc_informatics_article">
  <properties>
    <property type="name" prop_ns="http://sapportals.com/xmlns/cm" prop_name="displayname"/>
    <property type="createdBy">USER.R3_DATASOURCE.FAH</property>
    <property type="includeInRSS" prop_ns="wpc_wcm" prop_name="wpc_wcm_rss"/>
    <property type="displayNewIcon" prop_ns="wpc_wcm" prop_name="wpc_wcm_new"/>
  </properties>
  <elements>
    <element type="heading1">asdf</element>
    <element type="heading2">asdf</element>
    <element type="paragraph">adsfsadfsadfsadf</element>
  </elements>
  <relatedlinks/>
  <relatedfiles/>
</document>
and the xsl
<?xml version="1.0"?>
<!DOCTYPE stylesheet [
<!ENTITY apos  "'" ><!-- replace &apos; with html escape character for ' -->
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wpc="com.sap.nw.wpc.km.service.editor.hslt.XsltHelperCore">
  <xsl:output method="html"/>
  <xsl:template match="/">
    <h1 id="informatics_h1"> <xsl:value-of disable-output-escaping="yes" select="document/elements/element[@type='heading1']" /> </h1>
    <h2 id="informatics_h2"> <xsl:value-of disable-output-escaping="yes" select="document/elements/element[@type='heading2']" /> </h2>
    <xsl:for-each select="document/elements/element">
      <xsl:if test="@type='paragraph'">
        <xsl:value-of disable-output-escaping="yes" select="current()" />
      </xsl:if>
      <xsl:if test="@type='relatedLinks'">
        <div id="informatics_related_links"> Siehe auch: <a>
          <xsl:attribute name="href"> <xsl:value-of disable-output-escaping="yes" select="wpc:getAccessLink(string(@rid), string(/document/@locale))"/> </xsl:attribute>
          <xsl:value-of disable-output-escaping="yes" select="@heading1"/> </a> </div>
      </xsl:if>
    </xsl:for-each>
  </xsl:template>
</xsl:stylesheet>
maybe someone of you can help me with this! thank you in advance!
Harald

I found a solution for this.
It seems that all of the XSL Transformation has to be covered by a div tag with css classes featurebox clearfixleft.
<?xml version="1.0"?>
<!DOCTYPE stylesheet [
<!ENTITY apos  "'" ><!-- replace &apos; with html escape character for ' -->
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                     xmlns:wpc="com.sap.nw.wpc.km.service.linkmanager.XsltHelper">
    <xsl:output method="html"/>
    <xsl:template match="/">
     <div class="featurebox clearfixleft">
       <h2 id="informatics_h1">
               <xsl:value-of disable-output-escaping="yes" select="document/elements/element[@type='title']" />
     </h2>
     <xsl:for-each select="document/elements/element">
             <xsl:if test="@type='heading1'">
                    <h2 id="informatics_h2">
                        <xsl:value-of disable-output-escaping="yes" select="current()" />
                    </h2>
             </xsl:if>
             <xsl:if test="@type='paragraph'">
                 <p><xsl:value-of disable-output-escaping="yes" select="current()" /></p>
             </xsl:if>
      </xsl:for-each>
     </div>
  </xsl:template>
</xsl:stylesheet>
Edited by: Harald Falzberger on Mar 1, 2011 11:06 AM

Similar Messages

  • WPC - Custom Web Form - Cannot render container

    Hello!
    I've created custom web form for WPC (wpc_utg_sitelink) and gone through customizing provided in
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2041eb17-6001-2b10-b08d-b95ce55fa9b7&overridelayout=true]
    It looks fine at designtime.
    In runtime i get following:
    Cannot render container : Could not load stylesheet.com.sap.engine.lib.xml.util.
    NestedException: Error parsing query. -> java.lang.ArrayIndexOutOfBoundsException
    are there errors in my wpc_utg_sitelink.xsl file syntax?
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:wpc="com.sap.nw.wpc.km.service.linkmanager.XsltHelper">
    <xsl:output method="html"/>
    <xsl:template match="/">
    <span>
    <xsl:if test="starts-with(document/elements/element[@type='image'],'/')"></xsl:if>
    <h2>
    <a>
    <xsl:if test="string-length(document/elements/element[@type='itemlink']/@rid)!=0">
    <xsl:attribute name="href">
    <xsl:value-of select="wpc:getAccessLink(string(document/elements/element[@type='itemlink']/@rid))"/>
    </xsl:attribute>
    <xsl:if test="document/elements/element[@type='itemlink']/@targetnew='true'">
    <xsl:attribute name="target"> new </xsl:attribute>
    </xsl:if>
    </xsl:if>
    <xsl:value-of select="document/elements/element[@type='title']" disable-output-escaping="yes"/>
    </a>
    <xsl:if test="document/properties/property[@type='isnew']/@value)='true'">
    <span>New!</span>
    </xsl:if>
    </h2>
    <p>
    <xsl:value-of select="document/elements/element[@type='text']" disable-output-escaping="yes"/>
    </p>
    </span>
    </xsl:template>
    </xsl:stylesheet>
    Or may be some problems in customizing?
    Thanks!
    Edited by: Ivan O. Ivanov on Sep 21, 2009 5:15 PM

    solved!

  • WPC -Custom Web Form

    Hello,
    I am trying to create a custom news form in WPC.
    The news form will contain Title, abstract and detail on a form and it should render in the page with title as hyperlink, abstract and when they click on tilte it should show the detail in a new window.
    Trying to change the xsl so that it will open a new window and show the detail..but not successful.
    Please let me know if you have any suggestions for this.
    Thanks
    Leela

    solved!

  • Customer Visible in Sales Order Screen.But not visible in the customer Web form in R12

    Hi all,
    I have created  a customer of organization type using the customer API.I have also created a location and a customer account and account site as well
    The created values are loaded into the HZ tables and are visible in the tables such as hz_parties, hz_party_sites, hz_party_sits and so on.
    But the issue is that I cannot find the customer in the customer web form in the receivables.but at the same time it is visible in the sales order screen in the order management.
    so please, someone help me resolve this issue.
    Thanks and Regards,
    Bhaskar.

    Hi Kate,
    Could you please share your form with me ([email protected]) so that I can investigate and correct this problem? Instructions on sharing can be found here:
    http://forums.adobe.com/docs/DOC-2462
    Thanks,
    Brian

  • Custom web form.

    Hello,
      I am trying to create custom web form for company news (with title, paragraph, one or more images). Can anyone direct me, if there is example xml/xsl file, I can start building on.
    Thanks
    Srinivas

    Hi Srinivas,
    I'm happy if your problem is resolved. You should always open a new thread for a new questions and not discuss different questions in one thread.
    But here some short answers:
    >But the title of this window is weird. It shows "!cod.xtit.wpc_news! " as the title of this form.
    Just go through the document until the end. It tells you how to translated the labels in the form.
    >How can I make this form available for others to use ( like site owner, or author or editor).
    If the form is available in a specific folder (check allowed RIDS in chapter 3.2.2) if will be available for every user who has write rights in the folder (and can access the "New" menu).
    Again, open new threads for more specific questions and be more generous to the ones above the tried to help you solve your problem (there are yellow and green stars )
    Best regards,
    Robert

  • New custom web form not visible in the menu.

    Hello WPC Experts,
      I created a new web form by following this pdf https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2041eb17-6001-2b10-b08d-b95ce55fa9b7
    After the "3.2.6 Referencing the XML File in the Document Type" step and restarting the server, I don't see the web form I just created.
    I have the wpc_editor_role assigned. Where should I be looking to access the new web form.

    Hi Anja,
    Thanks for your response. I was working on other issues. I confirmed that I enabled "Generate UI-command" for my new Web Resource Type.
    I deleted the xml/xsl files and recreated them by copying from the how to guide: https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2041eb17-6001-2b10-b08d-b95ce55fa9b7
    After referencing the xml/xsl files and restarting the portal, where should I check for the new web form I just created ( this is section "4. Result" in the how to guide).
    Thanks
    Srinivas.

  • Customized Web Form

    Hi,
    I have Scenario dim (Plan, Forecast) in Page and Year and Period in Columns (these two are placed in separate columns). I am now needed to show only Thisyear (Column A) or NextYear (Column B) based on the scenario selection in the page and click on Go. If the end user choses Forecast then web form should show only FY11 and months. If end user choses Plan then web form should show only FY12 and months. Can this be possible with customizing java script.
    I have written a sample code in ValidateData.js file and restarted planning service but nothing is showing when opening a web form. Please correct me if i am missing anything here.
    function customOnLoad() {
    if (equalsIgnoreCase(applicationName,"app1")) {
              if (equalsIgnoreCase(formName,"tempform")) {
         var correctScenarioinPage = findpageByMemberNames(new Array("Current"));
         if ((page == correctScenarioinPage) { alert("scenario selected is Current");
    Thanks,
    Praveen

    JohnGoodwin wrote:
    endy wrote:
    I'm merely giving you the best practice, I love this saying, can you tell me who defines what best practice is, it is you, is it documentated somewhere?
    Cheers
    John
    http://john-goodwin.blogspot.com/
    Hi John,
    You are right that there isn't clearly defined best practices, but using javascript customization for such a case seems a bit of an overkill, and I'm sure I'm not the only one who will recommend to avoid it in this case.
    As I don't see any obvious other alternative than simply using two forms, then I consider using two forms to be the best practice.
    I'm sure you have a lot more tricks up your sleeve than I do, but which solution would you consider to be the best here ?
    Cheers !

  • Customizing web form

    Hi, is it possible to edit my web form auto responder email to like this:
    There are 4 questions in my web form, and customers fill in 2 of the 4 questions, then in the email, it shows only the 2 questions and answers that they filled in.

    Hi,
    This is not possible to achieve as there are no further parameters to {tag_webformresults}. Hence the system email sent cannot be modified using any javascript code for the information captured via form submission.
    You can submit a ticket so the support can pass on this as a feature request on your behalf.
    Kind Regards,

  • Custom compound element in custom web form.

    I would like to create a custom compound element that is a combination of paragraph and picture side by side.
    If the user didn't use the picture from this element, it still has to render as a normal paragraph, and vice versa.
    Can anybody give me ideas on how to go about it.
    Thanks a lot

    Hi Vishal,
      Here is the code in xsl:
    <xsl:if test="@type='paragraph'">
                   <p><xsl:value-of disable-output-escaping="yes" select="current()" /></p>
             </xsl:if>
             <xsl:if test="@type='image'">
             <img>
    Can you give me sample code on creating table. Does the table allow me to specify 60% paragraph and 40% image.
    Thanks

  • Custome Web Form with User profile services

    HI
    I need some input to design webform which contain the data from user profile service and display in text box but using sharepoint 2013 Fiundation Env.
    So please can any one know how to user user profile service with sharepoint 2013 Foundation Versin
    Regards
    Anil

    Hi,
    Please refer to the Client-side people in SharePoint 2013.
    How to: Use the client-side People Picker control
    All you need to do is just add a div tag in your code and some JQuery code.
    <SharePoint:ScriptLink name="clienttemplates.js" runat="server" LoadAfterUI="true" Localizable="false" />
    <SharePoint:ScriptLink name="clientforms.js" runat="server" LoadAfterUI="true" Localizable="false" />
    <SharePoint:ScriptLink name="clientpeoplepicker.js" runat="server" LoadAfterUI="true" Localizable="false" />
    <SharePoint:ScriptLink name="autofill.js" runat="server" LoadAfterUI="true" Localizable="false" />
    <SharePoint:ScriptLink name="sp.js" runat="server" LoadAfterUI="true" Localizable="false" />
    <SharePoint:ScriptLink name="sp.runtime.js" runat="server" LoadAfterUI="true" Localizable="false" />
    <SharePoint:ScriptLink name="sp.core.js" runat="server" LoadAfterUI="true" Localizable="false" />
    <div id="peoplePickerDiv"></div>
    Place the above code in ContentPlaceholderMain.
    // Run your custom code when the DOM is ready.
    $(document).ready(function () {
    // Specify the unique ID of the DOM element where the
    // picker will render.
    initializePeoplePicker('peoplePickerDiv');
    // Render and initialize the client-side People Picker.
    function initializePeoplePicker(peoplePickerElementId) {
    // Create a schema to store picker properties, and set the properties.
    var schema = {};
    schema['PrincipalAccountType'] = 'User,DL,SecGroup,SPGroup';
    schema['SearchPrincipalSource'] = 15;
    schema['ResolvePrincipalSource'] = 15;
    schema['AllowMultipleValues'] = true;
    schema['MaximumEntitySuggestions'] = 50;
    schema['Width'] = '280px';
    // Render and initialize the picker.
    // Pass the ID of the DOM element that contains the picker, an array of initial
    // PickerEntity objects to set the picker value, and a schema that defines
    // picker properties.
    this.SPClientPeoplePicker_InitStandaloneControlWrapper(peoplePickerElementId, null, schema);
    Please mark it answered, if your problem resolved.

  • WPC web form error...

    Hi all,
    I am new to WPC and i am trying to create sample  DropDownList wpc editor component that will be shown in the custom web form properties. When i try to open the custom web form i am getting the below error.
    Exception ID:11:29_01/10/09_0012_109903950
    [EXCEPTION]
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
    Component : com.sap.nw.wpc.designtime.EditorTool
    Component class : com.sap.nw.wpc.editor.EditorTool
    User :******
         at
    Caused by: java.lang.NullPointerException
         at com.sap.nw.wpc.editor.EditorBean.updateDocumentFromContext(EditorBean.java:324)
         at com.sap.nw.wpc.editor.EditorBean.getPreview(EditorBean.java:600)
         at pagelet.editor._sapportalsjsp_editor.subDoContent(_sapportalsjsp_editor.java:1802)
         at pagelet.editor._sapportalsjsp_editor.doContent(_sapportalsjsp_editor.java:58)
         ... 43 more
    Please advise where i went wrong.
    Thanks in advance,
    Vasu

    Even I also having same problem. what ever u got the error message I am also getting it.
    I found this forum but no where i found the solution and thread is showing Answerd. could you please share the solution.

  • Problem Transporting Web Forms

    Hi Experts,
    I have been trying to export the custom web forms from POC server to Dev server. But then i'm not able to find the web form in the target server..
    For exporting i followed this method..
    Content Administration  KM Content  Export  Pending Exports in the portal... n then i include the xml, xsl and even the whole of wpcconfig folder in the package .
    And on importing i fnd the xml and xsl file in the styles and types folder of 'etc'.. but then i do not find the web form .
    Can somebody please help me in this matter.
    Thanks,
    Archana.

    Thanks Vishal for the reply.
    i exported the xsl and xml files through content admin- km content admin- export. and
    I exported all the config changes that i had made while creating the web forms . But when i import the config changes on the tranget system .. it says.. there are errors..
    ImportExportConfigException: Upgrade error: "java.lang.Exception: ConfigException: Cannot migrate the configuration object id "config://local/cm/ui/uicommand/NewsDisplayGroup_Sample" from configuration class "config://local/cm/ui/uicommand/UIGroupCommand" (step 2) as its values cannot be set
         Inner exception is:
         InvalidEntryException: Invalid commands: rating_2
         Inner exception is:
         ConfigException: Cannot migrate the configuration object id "config://local/cm/ui/uicommand/NewsDisplayGroup_Sample" from configuration class "config://local/cm/ui/uicommand/UIGroupCommand" (step 2) as its values cannot be set
              Inner exception is:
              InvalidEntryException: Invalid commands: rating_2
    ImportExportConfigException: Upgrade error: "java.lang.Exception: ConfigException: Error while setting the value "wpc_arch_article,wpc_faq,wpc_InfyA_Link_List_Bold,wpc_middle_Article,wpc_miniarticle,wpc_urliview_item,wpc_webarticle,wpc_webbanner,wpc_webfeature,wpc_weblinklist,wpc_webrsslinklist,wpc_websimple" for the configuration object "config://target2/cm/wpc/page/main_page" and property "allowedchildtypes"
         Inner exception is:
         InvalidCheckConfigException: 2 elements of the list "allowedchildtypes" are invalid: "wpc_middle_Article,wpc_urliview_item"
              Inner exception "1" of "2" is:
              InvalidCheckConfigException: Cannot find configuration object "wpc_middle_Article" referenced by property "allowedchildtypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
              Inner exception "2" of "2" is:
              InvalidCheckConfigException: Cannot find configuration object "wpc_urliview_item" referenced by property "allowedchildtypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
         Inner exception is:
         ConfigException: Error while setting the value "wpc_arch_article,wpc_faq,wpc_InfyA_Link_List_Bold,wpc_middle_Article,wpc_miniarticle,wpc_urliview_item,wpc_webarticle,wpc_webbanner,wpc_webfeature,wpc_weblinklist,wpc_webrsslinklist,wpc_websimple" for the configuration object "config://target2/cm/wpc/page/main_page" and property "allowedchildtypes"
              Inner exception is:
              InvalidCheckConfigException: 2 elements of the list "allowedchildtypes" are invalid: "wpc_middle_Article,wpc_urliview_item"
                   Inner exception "1" of "2" is:
                   InvalidCheckConfigException: Cannot find configuration object "wpc_middle_Article" referenced by property "allowedchildtypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
                   Inner exception "2" of "2" is:
                   InvalidCheckConfigException: Cannot find configuration object "wpc_urliview_item" referenced by property "allowedchildtypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
    ImportExportConfigException: Upgrade error: "java.lang.Exception: ConfigException: Error while setting the value "wpc_InfyA_DefaultPageTemplate" for the configuration object "config://target2/cm/wpc/page/main_page" and property "defaultlayout"
         Inner exception is:
         InvalidCheckConfigException: Cannot find configuration object "wpc_InfyA_DefaultPageTemplate" referenced by property "defaultlayout" of configuration object "configurable_[Archana_A03]_config://target3/cm/wpc/page/main_page" in folder "/cm/wpc/layout/layouts".
         Inner exception is:
         ConfigException: Error while setting the value "wpc_InfyA_DefaultPageTemplate" for the configuration object "config://target2/cm/wpc/page/main_page" and property "defaultlayout"
              Inner exception is:
              InvalidCheckConfigException: Cannot find configuration object "wpc_InfyA_DefaultPageTemplate" referenced by property "defaultlayout" of configuration object "configurable_[Archana_A03]_config://target3/cm/wpc/page/main_page" in folder "/cm/wpc/layout/layouts".
    ImportExportConfigException: Upgrade error: "java.lang.Exception: ConfigException: Error while setting the value "iView,wpc_arch_article,wpc_InfyA_Link_List_Bold,wpc_middle_Article,wpc_miniarticle,wpc_urliview_item,wpc_webbanner,wpc_webfeature,wpc_weblinklist,wpc_webrsslinklist,wpc_websimple" for the configuration object "config://target2/cm/wpc/containers/wpc_container_def_cell_A1" and property "allowedrestypes"
         Inner exception is:
         InvalidCheckConfigException: 2 elements of the list "allowedrestypes" are invalid: "wpc_middle_Article,wpc_urliview_item"
              Inner exception "1" of "2" is:
              InvalidCheckConfigException: Cannot find configuration object "wpc_middle_Article" referenced by property "allowedrestypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
              Inner exception "2" of "2" is:
              InvalidCheckConfigException: Cannot find configuration object "wpc_urliview_item" referenced by property "allowedrestypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
         Inner exception is:
         ConfigException: Error while setting the value "iView,wpc_arch_article,wpc_InfyA_Link_List_Bold,wpc_middle_Article,wpc_miniarticle,wpc_urliview_item,wpc_webbanner,wpc_webfeature,wpc_weblinklist,wpc_webrsslinklist,wpc_websimple" for the configuration object "config://target2/cm/wpc/containers/wpc_container_def_cell_A1" and property "allowedrestypes"
              Inner exception is:
              InvalidCheckConfigException: 2 elements of the list "allowedrestypes" are invalid: "wpc_middle_Article,wpc_urliview_item"
                   Inner exception "1" of "2" is:
                   InvalidCheckConfigException: Cannot find configuration object "wpc_middle_Article" referenced by property "allowedrestypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
                   Inner exception "2" of "2" is:
                   InvalidCheckConfigException: Cannot find configuration object "wpc_urliview_item" referenced by property "allowedrestypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
    ImportExportConfigException: Upgrade error: "java.lang.Exception: ConfigException: Error while setting the value "wpc_arch_article,wpc_faq,wpc_InfyA_Link_List_Bold,wpc_middle_Article,wpc_miniarticle,wpc_urliview_item,wpc_webarticle,wpc_webbanner,wpc_webfeature,wpc_weblinklist,wpc_webrsslinklist,wpc_websimple" for the configuration object "config://target2/cm/wpc/compound/wpc_page" and property "allowedchildtypes"
         Inner exception is:
         InvalidCheckConfigException: 2 elements of the list "allowedchildtypes" are invalid: "wpc_middle_Article,wpc_urliview_item"
              Inner exception "1" of "2" is:
              InvalidCheckConfigException: Cannot find configuration object "wpc_middle_Article" referenced by property "allowedchildtypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
              Inner exception "2" of "2" is:
              InvalidCheckConfigException: Cannot find configuration object "wpc_urliview_item" referenced by property "allowedchildtypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
         Inner exception is:
         ConfigException: Error while setting the value "wpc_arch_article,wpc_faq,wpc_InfyA_Link_List_Bold,wpc_middle_Article,wpc_miniarticle,wpc_urliview_item,wpc_webarticle,wpc_webbanner,wpc_webfeature,wpc_weblinklist,wpc_webrsslinklist,wpc_websimple" for the configuration object "config://target2/cm/wpc/compound/wpc_page" and property "allowedchildtypes"
              Inner exception is:
              InvalidCheckConfigException: 2 elements of the list "allowedchildtypes" are invalid: "wpc_middle_Article,wpc_urliview_item"
                   Inner exception "1" of "2" is:
                   InvalidCheckConfigException: Cannot find configuration object "wpc_middle_Article" referenced by property "allowedchildtypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
                   Inner exception "2" of "2" is:
                   InvalidCheckConfigException: Cannot find configuration object "wpc_urliview_item" referenced by property "allowedchildtypes" of configuration object "undefinedConfigurable" in folder "/cm/services/resource_types".
    can u please help me.??
    Thanks,
    Archana.

  • My web form is not working with PayPal

    Only seamless gateways such as the "Pro" version of PayPal, eWay or Authorize.net will work with form payments. Gateways that have the user leave BC, such as PayPal Standard, Google Checkout or Realex, only work with the online store.

    I did further testing:
    1. I turned off the IPN and I still received the Error page.
    2. Than I went and turned off the Payment Data Transfer, and now I got the blank page... /PaymentProcess.aspx?paypal=success. However, I still got the paypal transaction ID attached to the orders.
    3. I turned on the IPN and still got the blank  /PaymentProcess.aspx?paypal=success and I still got the paypal transaction ID attached to the orders.So the conclusion is that IPN has no bearing on payments made with PayPal Standard when it is used with custom forms.
    4. I chaged the URL in the Return URL to go to the secure home page instea of to /PaymentProcess.aspx. and...it still sent me to the PaymentProcess.aspx and I still got the paypal transaction ID attached to the orders.
    5. I made the purchase using shoping cart to ensure it works too and this time I even received the receipt on the /PaymentProcess.aspx. The Ref# and Auth Code were "Not Applicable" but it still worked and it was recorded in the orders with the paypal transaction ID
    So my conclusions are:
    1. IPN has no bearing on PayPal payments made from the custom web form
    2. Payment Data Transfer being on sends to the pafe that can't be processesd and it renders Error message
    3. Return URL always send you to the PaymentProcess/aspx regardless what secure url you put in there.
    4. Transcation ID is always passed to the orders as long as it can connect to PayPal. I guess ur will do it as long as the Payment Gateway has the proper informration in there.
    5. It works the same from the custom web form and from checkout form.
    I hope this sheds some light and serves some purpose to whoever is completely confused by this as I am.
    Mario and Liam, thanks for your help. Much appreciated.

  • Can I customise the HTML code in an eCommerce online purchase web form?

    The Adora template lets me customise the html code but then after saving the form it reverts back to the default. Can anybody tell me if I can customise this form or find where the form placeholder/HTML is located so that I can try and insert the html directly.
    Thanks in advance!

    Hi Brendon. Although the form is a custom web form the actual form you view is under the Registration Buy layout of eCommerce layouts.
    You need to copy the html you edit from the customise web form part of the form and paste it into that Registration Buy Layout too.

  • Web form {tag_webformresults} appearance is there a better way?

    OK so the default action of BC to display webform results in an email and redirect page is a shocker to say the least. I say this in respect to when you start to include Extended CRM Database fields as part of the webform and start creating an extensive web form.
    When using the WYSIWYG form builder to assemble the form all the standard form fields can be stacked and ordered as you require. When adding the CRM Form fields they automatically are jammed to the bottom of the builder and cannot be positioned amongst the general fields. Yes this can all be overcome by customising the code when inserted into a page no problem. When though the {tag_webformresults} tag is included as the email auto responder and redirect page the order and appearance of the content is exactly as it appears in the form builder which is just terrible. All the data is out of order in comparison to the customised design and as separators and headings for not exists much of the fields all look identical. Simply it does not work for complex forms.
    Many clients simply do not want to use the CRM because of how strenuous, slow and poorly thought through the process is to extract data from a single form submission. The solution all to often asked for by my clients is to simply get an email with the data.
    Clearly the {tag_webformresults} does not work and I need to know is there another solution that can be used to customise the look of the auto responder to create a visual structure where the data actually appears in a usable manner? I was hoping I could do it in Web Apps but the user must be logged in for it's auto responder to work. Not a solution.
    Below is a sample of how poorly an extensive web form submission will look. Imagine this 3 times the size:
    Is there a solution(s) to fix this issue? I have found none.

    Note: this only relates to the form confirmation page, not email.
    This seems like a relatively old discussion but thought I would respond in any case as I spent all day yesterday trying to find a work around for customising how the webformresults module renders and found few options. The answer is pretty simple with some Liquid magic.
    Problem:
    I needed a way to render the webformresults module in different ways for different forms. In particular my client had a survey that they wanted the user to be able to print once submitted.
    Unfortunately the webformresults module will not render on a custom web form confirmation page (ie &PageID=/Templates/formResults.html ), it will only render on the default system layout page .
    Solutions:
    In the web form action add a variable (ie &template=formResults)
    Create a custom template as per the name of your variable that will be used to render the form results (ie /Templates/formResults.tpl )
    Edit the form confirmation template in /SystemMessages
    Using the newer names parameters for the webformresults module call your variable using liquid to define the custom template to be used to render form results (ie  {module_webformresults render="item" collection="formResults" template="/Templates/{{globals.get.template}}.tpl"}
    On this page you can also add <pre>{{ this | json }}</pre> which will render all json data available to you, this is handy for finding the tags required for rendering form results using liquid within your custom template
    You can test the form at this stage (note that the template is still blank so you will only see the rendered json data on the form result page as per <pre>{{ this | json }}</pre>
    Once you submit the form, you will see the available json data rendered on the form confirmation page. Notice the 'globals' at the top will show the variable you named for your template ("template": "formResults")
    Sample:
    "moduleName": "",
      "globals": {
      "get": {
      "WebFormID": "87704",
      "OID": "13922877",
      "OTYPE": "1",
      "EID": "0",
      "CID": "0",
      "template": "formResults"
    At the end of the the json data rendered on the page you will see your form results data:
    Example:
    "results": {
      "firstName": "Test",
      "lastName": "Test",
      "email": "[email protected]",
      "caseId": 1391888,
      "Where did you find out about us?": ""
      "params": {
      "render": "item",
      "collection": "formResults",
      "template": "/Templates/checklistResults.tpl"
    The final step is to simply use liquid within your custom template (ie /Templates/formResults.tpl ) to display the form data in any way you like
    Example:
    <ul>
    <li>First Name: {{results.firstName}}</li>
    <li>Last Name: {{results.lastName}}</li>
    <li>Email: {{results.email}}</li>
    </ul>
    Note: its important to note that you have changed the default system page form confirmations so you would need to follow this method by ensuring you define a template for all web forms that land on this page.
    Hope this helps. Feel free to contact me if you have any trouble or need any further explanation.

Maybe you are looking for

  • In SAP Scripts  /,  /=,  (BLANK)?

    Hi Experts, In SAP Scripts we use, 1) / means LINE FEED, 2) /= mean EXTENDED LINE , 3) (BLANK) mean CONTINUOUS TEXT. So, can u explain pls. with an example? ThanQ.

  • HT4623 I can't download or update anything on my phone

    How can I update my apps and download music from itunes? My phone stop doing both.

  • Stylus support in wireless toolkit

    Hello people, I'm doin a project which involves creating a drawing pad on which a user can draw..How can i do with Sun Java Wireless Toolkit??..any classes for stylus??..or any mouse events/classes??..or any other means?? Thanx in advance

  • Connecting a DVR via firewire

    according to wikipedia, there is a Firewire 400 port on every HD DVR produced since 2004. with that being said, what would I need to do in order to be able to download recorded media from my DVR to my mac?

  • Trying to distinguish photo from video clip ?

    Hi, I have just started using A3. I have noticed that it is difficult to distinguish between photos and video clips in A3. Only from the metadata badges you can see a very small icon in the bottom right hand corner. Is there a better way to easily se