On Jun 11, 2009, at 5:45 PM, ARays wrote:


Hi,

In the screen https://demo904.ofbiz.org/accounting/control/globalGLSettings
the export is expected to use the simple.xml.ftl file to render as suggested
by the entry in commonscreen.xml under webcommon

<xml><html-template
location="component://common/webcommon/includes/simple.xml.ftl"/></ xml>

Now it does not seem like getting picked up and instead the processing
continues to happen using simple.ftl as specified under
<html><html-template
location="component://common/webcommon/includes/simple.ftl"/></html>


Well, I tested it and (even if there are some minor bugs, caused by the recent renderer refactoring that I will try to fix soon) it seems to work to me; in fact I get an output that starts with:

<ListGlAccountExport><ListGlAccount><glAccountId><a class="buttontext" href="/accounting/control/GlAccountNavigate? glAccountId=100000">100000</a></glAccountId><accountName>ASSETS</ accountName><glAccountTypeId></ glAccountTypeId><glAccountClassId>Asset</ glAccountClassId><glResourceTypeId>Money</ glResourceTypeId><glXbrlClassId></glXbrlClassId><parentGlAccountId></ parentGlAccountId><postedBalance>$0.00</postedBalance></ListGlAccount>
...

As you can see it is an xml file. Are you getting a similar output?

Cheers,

Jacopo



Also find that the controller.xml for accounting has an entry
<view-map name="ListGlAccountsExport" type="screenxml"
page="component://accounting/widget/ GlobalGlAccountsScreens.xml#ListGlAccountsReport"
content-type="text/xml"/>

Question:
1) What makes the <xml><html-template /></xml> picked up?
b) I am able to route it to simple.xml.ftl by simply overwriting the
contents of simple.ftl. Do get an XML output as well. Need to change the XML tags though from the ofbiz entity names to target system name tags. What are
my options? XSLT or map modified names in form or something else?

Thanks in advance
Aray
--
View this message in context: 
http://www.nabble.com/screenxml----how-does-it-work--tp23983906p23983906.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to