SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 02-19-2011, 08:42 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
I don't think you should use an attribute defined below a table item; instead try using the cell title for the variable name where you are trying to set focus... but that won't work too well here because you are sending the same value for every item in the list sent to the table.

And, you only need to use EnsureVisibilityForVariable() if you want to have the focused item in a specific location (which may be what you want here).

- 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
  #22  
Old 02-19-2011, 09:25 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Thanks for the reply but I couldn't use the cell title as it never worked.... the cell title would normally work but in this case it didn't (I guess its because of the Array of Hash's thing).

I just worked out how to do it (I think).... I'm not sure if its a proper method or not and I would be grateful if you or anyone else could say if its a stupid way to do it or not.

Anyway because my table is fed from an array of hash's (see below for example) I could never get any sort of Focus to work with it..... So I was poking around in an XBMC skin running in Sage and came across a DataUnion() with only one value assigned to it. This got me thinking, and I tried adding my array of hash's to a DataUnion(MediaFiles) which then feeds my table... POW, SetFocusForVariable() worked first time...... I added my EnsureVisibilityForVariable() to get my focus centered in my table and its all working

Hash example: {SHOWTITLE=Fringe, MAX(RELEASEDATE)=2011-02-18, SERIESID=82066, COUNT(*)=57, MAX(MEDIAIMPORTTIME)=2011-02-19 03:57:18.686}

If this seems like a proper method to achieve what I want I'll be pretty pleased with myself..... if not I guess I'll go and jump under a bus

Quote:
Originally Posted by Opus4 View Post
I don't think you should use an attribute defined below a table item; instead try using the cell title for the variable name where you are trying to set focus... but that won't work too well here because you are sending the same value for every item in the list sent to the table.

And, you only need to use EnsureVisibilityForVariable() if you want to have the focused item in a specific location (which may be what you want here).

- Andy
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders
Reply With Quote
  #23  
Old 02-21-2011, 07:49 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by jaminben View Post
If this seems like a proper method to achieve what I want I'll be pretty pleased with myself..... if not I guess I'll go and jump under a bus
Are you still with us or did you jump under the bus?
__________________

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.
Reply With Quote
  #24  
Old 05-29-2011, 12:23 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by Opus4 View Post
And, you only need to use EnsureVisibilityForVariable() if you want to have the focused item in a specific location (which may be what you want here).
Quote:
Originally Posted by PLUCKYHD View Post
you don't have to use ensure focus only you want it in a certain spot.
I'm going to drag this thread back up from the depths

Does the same princple apply to a table which is 3 rows by 9 columns (horizontal scroll)?

I'm trying to get my table to start with element 0 at index 3 but everytime I try and set focus using the ensure focus it goes to index 0 instead of index 3. Using the same code on a single row or single column table works fine.

Cheers

Ben
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders

Last edited by jaminben; 05-29-2011 at 01:03 PM.
Reply With Quote
Reply


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
triangles are too large.. drewg SageTV Beta Test Software 2 11-03-2010 12:47 PM
Large Info Thumbnails benjamintm SageMC Custom Interface 3 09-03-2008 12:19 AM
Large Music Library groggory SageTV Media Extender 3 05-06-2008 06:18 AM
"DefaultFocus" not working any more dflachbart SageTV Studio 1 03-05-2008 09:52 PM
Large Recording Stutter Goodspike SageTV Software 0 08-27-2006 07:38 AM


All times are GMT -6. The time now is 12:57 PM.


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