Home AMX User Forum NetLinx Studio

Page tracking

Was wondering if there was a way of having a browser based panel being able to track to the current page of a real touchpanel. Currently, if we open a web based panel we automatically go to the starting page of the panel even if the real panel is on a different page. Once the web panel is open it tracks fine, but we are looking for a way to have the web panel open to the current page of the real panel no matter where it is.

I have looked at the TPAGEON command along with buffers but that only seems applicable to two real panels not a web based one.

My other thought was to try and send the current page to a variable and then send that information to the web based panel on a semi regular basis, but that seems like a lot more work then this should take.

Thoughts would be appreciated.

Comments

  • Joe HebertJoe Hebert Posts: 2,159
    Hi wgreen,

    One way is to use your current page variable and send the correct page to the web based panel when the ONLINE event fires off for the web panel.

    It would look something like this:
    DATA_EVENT [vdvWebPanel]
    {
       ONLINE:
       {
          //send the panel to the correct page
       }
    }
    

    Hope this helps.

    Cheers,
    Joe
  • Hi Joe
    Just a question about the tracking. Would each page flip have to be done via the program or would the "previous" command on the panel work? I suspect it would not but want to have this verified.
  • Joe HebertJoe Hebert Posts: 2,159
    Hi Thomas,

    Good question but I don't know since I don't use page tracking. I'm simply suggesting that the syncing page flip should occur (however it's tracked) when the ONLINE event fires vs. sending the page commands to the web based panel on a semi-regular basis. Other than that I'm of little use. :)
  • DHawthorneDHawthorne Posts: 4,584
    If you turn page tracking on in the panel (you can do this in an ONLINE event to make sure it happens), then you can watch STRING events to see when pages flip, regardless of whether they were flipped by code or in the panel.
  • Thanks for the info guys. I'll write some test code today and try it out.
  • Thanks for the responses, I have not had the time to try out the Online option but will hopefully have a chance to do it in the near future.
Sign In or Register to comment.