Author Topic: Dynamic Charts how read tagged-values  (Read 92 times)

steen.jensen

  • EA User
  • **
  • Posts: 124
  • Karma: +3/-1
    • View Profile
Dynamic Charts how read tagged-values
« on: September 15, 2020, 08:53:55 pm »
Anyone used new v 15 Dynamic Charts with javaScript and can show how to read any TaggedValues??
I have got some SQL script working with old Charts, but now I have to learn all over again.
The examplesfor dynamic charts are all dummies, no use of data from repository ....

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 10418
  • Karma: +343/-30
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Dynamic Charts how read tagged-values
« Reply #1 on: September 15, 2020, 09:16:09 pm »
Depends a bit on the context, but I can imagine that in most cases you would want to use Repository.SQLQuery()
Pass an SQL Query to that function that gets you the figures you need for your chart.

Repository.SQLQuery() returns an xml string that you can parse with an xml parser.

Geert