Reconfirmed https://demo904.ofbiz.org/accounting/control/globalGLSettings
What is happening is it sure is spitting out XML but also including some HTML on top including a print button. Traced the code and see that coming from simple.ftl and not from simple.xml.ftl which is seems designed to spit only XML and nothing else. Not a big deal since I stripped the simple.ftl of the HTML stuff and that just leaves the XML which is how I reached the next step of modifying the tag names. Regret I wasn't clear in my previous note. - Aray Jacopo Cappellato-4 wrote: > > > 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> > /accounting/control/GlAccountNavigate? glAccountId=100000 100000 </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. >> > > > > -- View this message in context: http://www.nabble.com/screenxml----how-does-it-work--tp23983906p23986068.html Sent from the OFBiz - User mailing list archive at Nabble.com.