![]() |
|
Register | Forum Rules | FAQs | Members List | Social Groups | Downloads | Search | Today's Posts | Mark Forums Read |
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
|
|||
|
|||
Table refresh not happening after calling RefreshArea
So this is a section my widget chain.
Code:
DisplayDataPanel |- ItemCountPanel |- DataListPanel |- Action (Get data array to display in table) |--Table |--Tablecomponent |--DataInfoPanel |--Item |--OptionsMenu |--Panel |--Cancel Panel |--Delete Panel |--Item |--Action (Call api and delete item) |--CloseOptionsMenu |-- RefreshArea("DisplayDataPanel") My problem is that I cannot get the table refreshed with new data after calling RefreshArea. If I manually change focus, it refreshes, but not until then. It appears as though it's caching the table. I'm sure I have too many panels, but will work on trimming those down once I figure out this refresh issue. Last edited by fafurd; 01-02-2007 at 06:52 PM. |
#2
|
||||
|
||||
What version of SageTV are you running? In some older version, I had to to put a conditional, such as "if true", directly above the action leading to a panel/table to force it to update instead of using some cached data, but I thought that was changed. I'm not sure if it has anything to do with your issue, since I can't see the actual surrounding code.
BTW: if the data calculation is extensive, you can use something like this: Code:
if data |-null | |-data = data calcs | |-Table |-else |-data |-<reference link to Table> - Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#3
|
|||
|
|||
I'm using 6.0.15.115. I'll give that a try.
|
#4
|
|||
|
|||
Well I implemented what you stated, but still didn't work. I'm wondering if the reason that it's not refreshing is because the users current focus is within the table that it's trying to refresh? If so, how can I change the focus to something else? I scanned around and didn't see anything obvious.
|
#5
|
|||
|
|||
Argh! It's a race condition. Appears that deleting items, through the Skype API, must be done asynchronously and I was trying to retrieve a refreshed list before it had finished deleting the item. It wasn't until I put a few SageTV DebugLog stuff and turned on debug output in the other did I notice that things were being processed in a different order than I was expecting. For now, I just put in an action that does a Wait(2000)...at least for now.
Thanks for all the help. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|