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
  #1  
Old 11-09-2009, 05:11 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Table is missing one element?

I have a list that it created using DataUnion(). When I display this list using the table and table component widgets it displays one less element then is in the list. So if Size(List) == 4, I only see 3 items displayed.

What am I doing wrong?

My code looks like this:

Code:
<Action Widget> ListofPodcasts
   <Table Widget> PodcastTable
      <Table Component Widget> Podcast
         <Panel Widget> display the Podcast
For the Table Widget NumRows is big enough (i.e. bigger than Size(ListofPodcasts)) and NumCols is 1.

Thanks,

Tom
__________________

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
  #2  
Old 11-09-2009, 08:22 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
You're aware that DataUnion removes duplicates? So if you pass in four items, and two of them happen to be the same, you'll end up with a list of size 3. I don't know if that's what's causing your problem, but in general, CreateArray is the more appropriate API for this sort of thing. (You'll see a lot of older code using DataUnion for this, but this is not really what it's meant for.)
__________________
-- Greg
Reply With Quote
  #3  
Old 11-10-2009, 06:27 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Greg,

I knew DataUnion() removed dupes but all of the data is unique. I'll try using CreateArray() to see if that makes a difference.

What's so odd is that Size() returns the right value but the display code is one short. More digging is in order...

Tom
__________________

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
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
rearranging time element on SageMC OSD 49studebaker SageTV Studio 4 08-11-2009 08:09 PM
ERROR:Root element is missing. enterpryse SageTV EPG Service 3 01-22-2009 12:47 PM
Any way to map a remte button to a dynamic menu element? mherce SageTV Customizations 6 07-01-2008 02:28 PM


All times are GMT -6. The time now is 06:04 PM.


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