AnsweredAssumed Answered

Line Item Detail renditions For WCM Forms

Question asked by hiteshlad on Mar 9, 2008
Hi guys,

I need to create multiple renditions from my XSD Web Form.  The problem is I need to generate renditions for each line item in the form.  I already set up the xsd correctly so that i can add from 0..n Line Items to an order.  That is, each order can have 0 or more lineitem sections.  This is the structure of the example xml:

<order>
   <ordernumber />
   <purchaseordernumber />
   <orderdate />
   <tax />
   <shipping />
   <total />
   <lineitem>
      <sku>123</sku>
      <quantity />
      <unitprice />
   </lineitem>
   <lineitem>
      <sku>456</sku>
      <quantity />
      <unitprice />
   </lineitem>
   <lineitem>
      <sku>789</sku>
      <quantity />
      <unitprice />
   </lineitem>
</order>
What i want to do is create the following ouputs:
  • order.html

  • order_line_123.html (For lineitem 1, the sku is 123)

  • order_line_456.html (For lineitem 2, the sku is 456)

  • order_line_789.html (For lineitem 3, the sku is 789).
Does anyone know how to do this?

FYI, we are using Alfresco 2.1.1 Enterprise

Thanks,
- hitesh

Outcomes