Home AMX User Forum NetLinx Studio

Add page flip forget

Sending ^APF command to a panel is possible to add programmatically a page flip to a button.
I need to set a "page flip forget" to a button, but I cannot find this in the actions that can be sent.

How can I do it?

Thank you

Comments

  • DHawthorneDHawthorne Posts: 4,584
    It's available in the latest TPD4 as a button property; I imagine a firmware update will be necessary to do it in code. If it's in the most current one, I didn't see it (or look for it, to be honest) in the update notes.
  • jjamesjjames Posts: 2,908
    Perhaps I missed the memo, what does APF do?
  • mpullinmpullin Posts: 949
    You could try adding a page flip to a page that doesn't exist.
  • mighemighe Posts: 39
    My problem is the following: we are using R4s to control some zone.
    There are rooms with only 4 audio sources, others with 6; in each R4 page we put 4 buttons, so if you want to choose the 5th one you have to scrool using the big blue button.
    I'm too lazy to create different pages for every room, so I'd like to do something like that:
    if room.sourceCount == 4
        clear page flip from big blue button
    else
        add page flip forget to big blue button
    

    With ^APF I can add only a standard page flip, not a forget, but I need it to make work correctly the back button.

    For this specific project I can use a workaround because an R4 will always stay in the same kind of zone, so the "clear page flip" command is enough, but if something changes in specs (and you all know that this will eventually happen!) this quick and dirty solution will not work anymore.

    Thank you!
  • mighemighe Posts: 39
    jjames wrote: »
    Perhaps I missed the memo, what does APF do?
    APF add a page flip action to a button if it does not already exist

    You can add the following actions:

    Stan[dardPage] - Flip to standard page
    Prev[iousPage] - Flip to previous page
    Show[Popup] - Show Popup page
    Hide[Popup] - Hide Popup page
    Togg[lePopup] - Toggle popup state
    ClearG[roup] - Clear popup page group from all pages
    ClearP[age] - Clear all popup pages from a page with the specified page name
    ClearA[ll] - Clear all popup pages from all pages

    As you can see, there's no the "page flip forget"
  • jjamesjjames Posts: 2,908
    Thanks mighe!

    I'd probably go with what Matt said - flip to a page that doesn't exist. Though - I've been told by tech support that it could potentially mess up a panel (locking up, etc.) but I've never seen it happen.
  • Spire_JeffSpire_Jeff Posts: 1,917
    Mighe is looking for a page flip forget, not removing the page flip. The page flip forget is used in conjunction with the Previous page function. Here is an example:

    You have an R4 with the following pages: Main, page1, page1-a, page1-b.

    On the main page, there is a button that goes to page1. On page1, a button to go to page1-a. On page1-a, a button to go to page1-b. On page1-b, a button to go to page1. One each of the page1* pages, there is also a back button that uses the Previous Page function.
    If you use standard page flips to navigate through the R4, the page visit buffer would look like this: Main>page1>page1-a>page1-b>page1>page1-a>page1-b> .... for as many times as you hit the buttons on the page1* pages. If instead, you use a page flip forget on each of the page1* pages, it does not store the page flips so the page visit buffer would like like: Main>page1. No matter how many times you push the buttons on the page1* pages, it would just keep forgetting them (I think).

    Now, if you use the Previous Page button, with page flip forget, you will always go back to Main no matter how many times you flipped through the page1* pages. If you just use the standard page flips, you will have to push the previous page button once for every time you hit one of the page1* buttons and essentially step back through the cycle.

    Obviously, if it was as this example is, you could just use a page flip to the Main page instead of Previous Page. The place I found a use for this is when you jump to lighting control that has multiple pages from a device page. If you want to provide a back button, you either have to track everything in programming and handle it there, or you could use page flip forgets when scrolling through the list of light buttons and provide a back button. (This could also be applied to surround field settings :) )

    Jeff
Sign In or Register to comment.