NetTalk Central

Author Topic: A Graph(s) on Each Tab  (Read 9159 times)

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
A Graph(s) on Each Tab
« on: January 05, 2012, 04:33:06 AM »
Okay I thought I would share this...and to save this somewhere so that when I forget a year from now I can come back and find this...   ;D

I came across the need to display an Insight 2 graph on each tab of a memory form.  Now my solution may not be the best way but it works and it works well.

I'm not going to cover the creation of the graphs themselves.  I'm assuming you know that already.   If not, let me know and I'll help there to.

1.  Create a standard memory form.
2.  The form will not need a save button.  Cancel should do.
3.  For each tab, you will need a NetWebSource procedure.
4.  In the XHTML section, of the NetWebSource(s) place your code to display your graph:
     <!-- Net:TotalPermitFeesByFY -->  (My Graph..shown for syntax)
4.  For each tab on Form 1, create a "procedure" field that points to the NetWebSource

Repeat this process for each tab/graph you need.

You can also give each graph its own button set on each tab by adding fields on the parent form.  A print button would be an example.

Don
« Last Edit: January 05, 2012, 05:04:59 AM by DonRidley »
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11