FusionCharts Forum: Using data in fields as input values - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Using data in fields as input values

#1 User is offline   mgimblet 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 27-August 10

Posted 27 August 2010 - 12:00 PM

I just downloaded fusion charts free and like it very much...I'm knew to this as well as XML so please excuse the question...all of the information I've seen shows an actual value such as '<Set name='Test' value='1000'/>. 

If I have a programs which has values in fields, how do I set up the statement?  I've tried the following but id doesn't seem to work:

  1. <Set name='Field1' value='Field1Value' />
  2. <Set name='Field2' value='Field2Value' />

I would like the value to be set to the contents of Field1 and Field2.  In other words, the value of Field1 may be 257.50 and the value of Field2 might be 1500.00, etc.  Can I do this?

Thank you.

0

Other Replies To This Topic

#2 User is offline   mgimblet 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 27-August 10

Posted 27 August 2010 - 01:20 PM

Or if someone could point to where the answer to my question is documented, I would appreciate it very much...I've looked through a lot of the documentation but can't seem to find anything...any help would be appreciated...thanks.
0

Other Replies To This Topic

#3 User is offline   Basundhara Ghosal 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2459
  • Joined: 15-September 09

Posted 29 August 2010 - 11:40 PM

Hi,

Could you please send us the XML codes that you are using, as an attachment?

Awaiting your reply.

Regards,

Basundhara Ghosal

Follow us on Twitter :D
0

Other Replies To This Topic

#4 User is offline   mgimblet 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 27-August 10

Posted 31 August 2010 - 01:12 PM

I'm using code below...I've tried to use the '&' for the field name but that doesn't appear to work...I'm trying to use the values stored in the fields (IssProdAmt, WDProdAmt, etc.)  Thanks for your help.

GraphTest   BEGSR
 
  eval   graph = '<set name =''Submitted'' value = data{SubProdAmt} />'  
  eval   graph = %trimr(graph) + '<set name =''Issued'' value = ''&IssProdAmt'' />'
  eval   graph = %trimr(graph) + '<set name =''Withdrawn'' value = ''WDProdAmt'' />'
  eval   graph = %trimr(graph) + '<set name =''Settled''   value = ''SetProdAmt'' />'  
  eval   graph = %trimr(graph) + '<set name =''Withdrawn'' value = ''WDProdAmt'' />'  

  callp updhtmlvar('GRAPH':GRAPH)  

  callp wrtsection('graphSection')

  EndSR

0

Other Replies To This Topic

#5 User is offline   mgimblet 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 27-August 10

Posted 31 August 2010 - 01:59 PM

I've attached a copy of how the graph is now turning out.

Attached File(s)


0

Other Replies To This Topic

#6 User is offline   Basundhara Ghosal 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2459
  • Joined: 15-September 09

Posted 31 August 2010 - 11:24 PM

Hi,

Could you please let us know the scripting language that you are using for the same?

Awaiting your reply.

Regards,

Basundhara Ghosal

Follow us on Twitter :D
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked