Is it possible, within the following code, to calculate the product of "COGS" divided by "Revenue" in "COGS%"?
[ <FormField>
<Styles cellColor="Black" colorCodeUsage="0" imageCodeUsage="1" colSeqNum="1" colSpan="2" dataType="15" dataTypeName="Currency" hasColor="0" hasImage="0" hideIfEmpty="0" isSearchable="0" printOnly="0" labelColor="Black" rowSeqNum="32"/>
<Name>Revenue</Name>
</FormField>
<FormField>
<Styles colorCodeUsage="0" imageCodeUsage="1" colSeqNum="2" colSpan="1" dataType="15" dataTypeName="Currency" hasColor="0" hasImage="0" hideIfEmpty="0" isSearchable="0" printOnly="0" rowSeqNum="32"/>
<Name>COGS</Name>
</FormField>
<FormField>
<Styles colorCodeUsage="0" imageCodeUsage="1" colSeqNum="3" colSpan="1" dataType="2" dataTypeName="Number" hasColor="0" hasImage="0" hideIfEmpty="0" isSearchable="0" printOnly="0" rowSeqNum="32"/>
<Name>COGS %</Name>]
What is that code, React?
XML
XML can't do any calculations by itself, it's just a markup language.
Is there a compatible language that can do calculations?
And, hey!!
Thank you for helping!!
Sick
Javascript or (better) a server-side scripting language (like PHP) might do it. Not sure how to use these with XML, but perhaps these pages can be helpful:
https://developer.mozilla.org/en-US/docs/Web/XML/Parsing_and_serializing_XML
https://www.php.net/manual/en/book.xml.php
How do you currently transform the XML data into a web page?
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)