|
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
|
|||
|
|||
Troubling Tables
I am wondering what I am missing with trying to populate a table to be displayed in the UI. I have tried a bunch of steps to debug, and nothing in the log file seems to point to Java exceptions. I was trying to pass a string array into the table, now I am only trying to pass a string value returned from the java function. And I know the Java function works because I used it to name a item widget in the same UI screen. Here's the code:
Code:
+ Panel (Todays Forecast) + Action (jbk_projects_reportWeather_saveWeatherWeb(newWeather, "Stuttgart")) + Table (CurTable) + TableComponent (CurCell) + Text (Untitled) + Theme (Cell Theme) Once I get this figured out, is there any difference between Java returning an array and a string to a table? thanks again.
__________________
Server and Media Center - Intel Core Duo 2x2.50 Ghz, Asus P5N7a-VM (Onboard HDMI and Optical Audio), 2GB Ram, Hauppauge HVR-1300, SageTV Beta v7.0.9, nVidia PureVideo decoder |
#2
|
||||
|
||||
The parent of a Table should be a Java array or list (ie something that GetElement can work with)
The TableComponent returns the 'current' item in that list, so the name of the TableComponent should be used to retrieve the values for the 'current' table cell being rendered... eg: Code:
DataUnion("a","b","c","d","e") +> Table (mytable) +> TableComponent (curCell) +> Action ("Value of this cell is "+curCell) +> Text(untitled)
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
#3
|
|||
|
|||
Quote:
__________________
Server and Media Center - Intel Core Duo 2x2.50 Ghz, Asus P5N7a-VM (Onboard HDMI and Optical Audio), 2GB Ram, Hauppauge HVR-1300, SageTV Beta v7.0.9, nVidia PureVideo decoder |
#4
|
||||
|
||||
No, you'll have to put a Panel there or something. (See p. 46 of the Studio manual for a table of what can go where.)
Niel's point, though, is that TableComponent does not set "this". It sets a variable instead, where the variable name is the same as the TableComponent's name. So you can't just fall through from a TableComponent to a Text and expect "this" to be defined. You need an Action widget above the Text to set "this" for you by referring to the TableComponent's name.
__________________
-- Greg |
#5
|
||||
|
||||
Also, there is a tutorial that has Table widget usage examples, starting on p. 105 of the v5.0 Studio manual. It might help clear up what to feed to a Table, and what you will get out of it.
- 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. |
#6
|
|||
|
|||
Quote:
Thanks everyone. That cleared everything up. My Java code and Sage are playing nice again.
__________________
Server and Media Center - Intel Core Duo 2x2.50 Ghz, Asus P5N7a-VM (Onboard HDMI and Optical Audio), 2GB Ram, Hauppauge HVR-1300, SageTV Beta v7.0.9, nVidia PureVideo decoder |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|