SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio


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
Old 01-02-2007, 06:32 PM
fafurd fafurd is offline
Sage User
Join Date: Feb 2004
Posts: 47
Table refresh not happening after calling RefreshArea

So this is a section my widget chain.

|- ItemCountPanel
 |- DataListPanel
   |- Action (Get data array to display in table)
                               |--Cancel Panel
                               |--Delete Panel
                                       |--Action (Call api and delete item)
                                               |-- 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.
Reply With Quote
Old 01-02-2007, 09:33 PM
Opus4's Avatar
Opus4 Opus4 is offline
Join Date: Sep 2003
Location: NJ
Posts: 19,619
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:
if data
|  |-data = data calcs
|     |-Table
      |-<reference link to Table>
You'll need an attribute for 'data', initialized to null, at a higher level and set it to null before forcing a refresh. This puts a conditional in the tree for refreshes and speeds up refreshing when the data hasn't changed.

- 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.
Reply With Quote
Old 01-02-2007, 10:26 PM
fafurd fafurd is offline
Sage User
Join Date: Feb 2004
Posts: 47
I'm using I'll give that a try.
Reply With Quote
Old 01-05-2007, 07:10 PM
fafurd fafurd is offline
Sage User
Join Date: Feb 2004
Posts: 47
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.
Reply With Quote
Old 01-05-2007, 08:00 PM
fafurd fafurd is offline
Sage User
Join Date: Feb 2004
Posts: 47
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) least for now.

Thanks for all the help.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 03:35 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.