|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
How to Re-load a menu
Is there a way to re-load a screen in Studio such that it executes the before menu loaded and after menu loaded hooks?
I want to be able to execute a conditional such that when a user makes a particular selection, it sets some variables and then re-enters the screen. I want to do it this way since there is a lot of complex code in the before and after menu loaded hooks that I don't want to duplicate. A simple refresh() doe not execute these hooks. I could have the conditional link back to the menu widget (this works - sort of, but it clutters up the history, so if the user then clicks the back button it takes him back to the same screen).
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2),USBUIRT (multi-zone) Source: Comcast/Xfinity X1 Cable Primary Client: Server Other Clients: (1) HD200, (1) HD300 Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE, HDHR, HVR-2250, HD-PVR |
#2
|
||||
|
||||
Anything that reloads the menu and activates those hooks will affect the menu history.
But reloading the menu or duplicating the code are not your only choices. Put the common code under a comment that says "Shared code for setting up menu state" or whatever, and then add a secondary reference to it at the point where you need it. (Widget references are covers in Chapter 2 of the Studio manual.)
__________________
-- Greg |
#3
|
||||
|
||||
If you do not want to link back to the menu execute the BeforeMenuLoad and AfterMenuLoad widget chain manually (by reference) and then Refresh().
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#4
|
||||
|
||||
Quote:
I try to make my changes and code references to an existing menu as minimal and non-disruptive to the existing code as possible. This reduces the chance that I will have conflicts with someone else's plugin or that my code will break when Sage updates their STV.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2),USBUIRT (multi-zone) Source: Comcast/Xfinity X1 Cable Primary Client: Server Other Clients: (1) HD200, (1) HD300 Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE, HDHR, HVR-2250, HD-PVR |
#5
|
||||
|
||||
Quote:
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#6
|
|||
|
|||
if you don't mind mucking with back history like greg pointed out you can reference the menu itself. This will reload the menu and evaluate the attributes, and beforemenuload, etc hooks.
__________________
Server 2003 r2 32bit, SageTV9 (finally!) 2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast) 2x HD300, 1x SageClient (Win10 Test/Development) Check out TVExplorer |
#7
|
|||
|
|||
You can also do a "back" command and get it removed from history down it before but don't remember how at the moment.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
missing selection icon in DVD menu, and how to select root menu | brantmacga | SageTV Software | 6 | 01-18-2011 09:53 PM |
Pressing info and menu button in 6.3.9 no longer shows the applicable menu | LehighBri | SageMC Custom Interface | 3 | 04-02-2009 12:05 PM |
Cannot load menu layout files | littlerm | SageMC Custom Interface | 1 | 07-09-2008 09:11 AM |
Where can I find the menu title theme (Main Menu, Program Guide, Setup Menu, etc) | mkanet | SageTV Studio | 5 | 11-11-2005 04:55 AM |