The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Calculate product in form
Sickstigma
post Apr 26 2024, 10:53 AM
Post #1





Group: Members
Posts: 4
Joined: 26-April 24
Member No.: 29,170



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>]
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Apr 26 2024, 01:51 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,663
Joined: 10-August 06
Member No.: 7



What is that code, React?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Sickstigma
post Apr 26 2024, 03:50 PM
Post #3





Group: Members
Posts: 4
Joined: 26-April 24
Member No.: 29,170



XML
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Apr 26 2024, 03:57 PM
Post #4


.
********

Group: WDG Moderators
Posts: 9,663
Joined: 10-August 06
Member No.: 7



XML can't do any calculations by itself, it's just a markup language.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Sickstigma
post Apr 26 2024, 06:33 PM
Post #5





Group: Members
Posts: 4
Joined: 26-April 24
Member No.: 29,170



Is there a compatible language that can do calculations?
And, hey!!
Thank you for helping!!
Sick
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Apr 26 2024, 07:53 PM
Post #6


.
********

Group: WDG Moderators
Posts: 9,663
Joined: 10-August 06
Member No.: 7



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/We...serializing_XML
https://www.php.net/manual/en/book.xml.php

How do you currently transform the XML data into a web page?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 7th May 2024 - 12:34 PM