NetTalk Central

Author Topic: Using RChart in NT 8.40 app  (Read 3506 times)

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Using RChart in NT 8.40 app
« on: March 09, 2015, 07:43:11 PM »
Bruce,

     I have been experimenting with a JavaScript charting library called RChart.  I created a WebPage procedure and added the necessary JS code to the XHTML tab.  A sample chart was created successfully when I called this procedure from a menu item.  Next, I created a memory form with three tabs.  On tab 1 I created a field of type procedure, and had it call the webpage procedure from above.  This causes the chart to be placed in the header of all subsequent pages, see the attached image of my login page.  I can't see where I went wrong.  Any suggestions?

Thanks,
Jeff

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Using RChart in NT 8.40 app
« Reply #1 on: March 10, 2015, 12:20:38 AM »
Hi Jeff,

>>  On tab 1 I created a field of type procedure, and had it call the webpage procedure from above.

no, this is not allowed. A NetWebPage is a "Page" not a "Control" and so cannot be embedding "in" other pages.

Probably you need to move your code to a NetWebSource, which can then be embedded on both your test NetWebPage, and also included in other Pages (ie inside a NetWebForm).

cheers
Bruce

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Re: Using RChart in NT 8.40 app
« Reply #2 on: March 11, 2015, 05:40:03 PM »
Bruce,

     Thanks.  That got me going in the right direction.  Attached is an image of a tabbed form with a chart on an individual tab.

Jeff

[attachment deleted by admin]