Tiki
01-02-2007, 09:44 PM
Help. I'm working on my first import and using the flachbar import utility library (v2.0).
I've got everything working except I need to change a couple of widget properties. Specifically, I'm trying to change the "Fixed Height" property on a couple of Panel widgets and the "numRows" property on a Table widget.
I can use flachbar's findWidget() to find an the widget in the existing STV. It returns a widget object. If I try to pass that object to the SageAPI's getWidgetProprty() or SetWidgetProperty(), I get about 50 errors in the debug log.
Here is an example of the code I am trying:
oWidget = df_sageutils_Import_findWidget(“/STV/Xtra: SageTV Recordings by malore/Content/sorting =*/*/*/true/*/Show*”)
SetWidgetProperty(oWidget, “Fixed Height”, “=0.0034 * fontsize * rows * 2”)
Any ideas?
I've got everything working except I need to change a couple of widget properties. Specifically, I'm trying to change the "Fixed Height" property on a couple of Panel widgets and the "numRows" property on a Table widget.
I can use flachbar's findWidget() to find an the widget in the existing STV. It returns a widget object. If I try to pass that object to the SageAPI's getWidgetProprty() or SetWidgetProperty(), I get about 50 errors in the debug log.
Here is an example of the code I am trying:
oWidget = df_sageutils_Import_findWidget(“/STV/Xtra: SageTV Recordings by malore/Content/sorting =*/*/*/true/*/Show*”)
SetWidgetProperty(oWidget, “Fixed Height”, “=0.0034 * fontsize * rows * 2”)
Any ideas?