cancel
Showing results for 
Search instead for 
Did you mean: 

xml_template property in WPC Custom Layout in Netweaver Portal 7.3

Former Member
0 Kudos

We have upgraded the WPC content from 7.01 to 7.3 EHP1. We had a custom WPC Page layout in 7.01 which also needs to be migrated to the newer version. The layout is similar to the attached image.


In the new version, for the custom layout to work we need to add an additional property "XML_Template" in portalapp.xml file (as recommended by SAP). This property should resemble the required layout.


Link to the Migration document from SAP provided in SAP Note 1371703 ( https://service.sap.com/~sapidb/012006153200000293592011E/WPC_UPG_MGR_NW73_SP3.pdf ). We need to perform page no.19-21 activity of this document to add “XML_Template” as per our customization.

For example:


<ContainersRow>

     <Container containerID="com.sap.portal.reserved.layout.Cont1">

           <TableCellData colSpan="1" vAlign="top"/>

      </Container>

</ContainersRow>

<ContainersRow>

     <Container containerID="com.sap.portal.reserved.layout.Cont2">

           <TableCellData colSpan="1" vAlign="top"/>

      </Container>

</ContainersRow>


The above xml template will create a layout with 2 rows having 1 column each.


We need to implement the same for the attached image, but we are having trouble doing the same.

We were able to create xml_template for cells m1, m2, m3, m4, m5 and m6 but were not able to write xml_template for r1, r2, r3, r4 and r5.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Aditya,

Are you able to build the XML_Template value for your custom WPC Layout.  Please find my custom layout image below.  Kindly let me know, the XML_Template value for this.

Regards,

Venkatesh K

Former Member
0 Kudos

Hi Folks,

There is not enough help documentation for creating a custom WPC page layout.  Especially while forming the XML_Template value to support the AJAX Page Builder. 

I have followed the Help Documentation Adjusting Custom Layouts to Ajax Page Builder

I am not able to build the XML with nested TableLayout tag, Experts need your help in this regard ASAP.  Or else, provide me the help links which talks about the tags like TableLayout ContainerRows Container and TableCellData in detail.

Thanks in Advance.

Regards,

Venkatesh K

Former Member
0 Kudos

Dear Venkatesh, the final reply I received from SAP regarding WPC custom layouts in 7.3 is, we cannot use rowspan property in the new version. Hence, in my opinion it would not be possible to build XML_Template for your case. We can only use colspan property wherever required.

Regards,

Aditya

Former Member
0 Kudos

Dear Aditya,

Thanks for the update.

Regards,

Venkatesh K

Former Member
0 Kudos

Whati f DIVs were used instead of Tables in JSP. How are we to translate the DIV in TableLayout? Or are we forced to use tables? This is clearly a step back in SAP especially if they are using AJAX Framework.

Former Member
0 Kudos

Hi Christian, if you use DIV, each DIV will behave as a cell of a row in a table layout. The number of columns will depend on the value of "cols" property in the "TableLayout" tag of the xml_template.

Regards,

Aditya

Former Member
0 Kudos

Aditya,

So with the sample above from Venkatesh, if it was created in DIVs (as it is not possible in Tables since the Rows are expected not to have equal heights, middle and right side), how could this be built into an XML template?

Former Member
0 Kudos

Hi Christian, as I had mentioned earlier that using "rowspan" property is not possible in the new release and this particular layout cannot be built without rowspan. So, in my understanding it would not be possible to build an exact custom layout for this case.

But, a layout with two columns with first column having width of 75% and 2nd column having width of 25%, can be built. The iviews can be placed in a fashion that it fulfills the actual requirement. In this case the width of the content in the iviews also needs to be fixed to adjust the iviews side by side (for 5th and 6th row). In the second column all five iviews can be placed one below the other.

This way the required layout can be achieved.

Regards,

Aditya