View Full Version : Help finding attribute in scope
DwarF
01-21-2006, 10:47 PM
I need some help figuring out how to find an Attribute that I belive should be in scope. In this snippet (netflix_test.txt) you can see where there is a keypad to enter a piece of data (id). It is in a menu level attribute called SearchString. This is used as the variable name for a TextInput to write data to it. However, when I try to save the property using this attribute, it always saves what the original "entry" value was (GetProperty('plugins/netflix/NetFlixID_01')).
NetFlix Setup -> (ID field) *
The save button is calling SaveProperty('plugins/netflix/NetFlixID_01', SearchString)
I appriciate that it's not clean. I got tired of trying to keep it clean when I had to do it over 100 times trying to figure this out. :bang:
Thanks for any guidance,
DwarF
Opus4
01-21-2006, 11:30 PM
Put the reference widget for the jump to the "NetFlix Setup" menu as a child of the SetProperty widget below the Save item. I can't remember whether there were any docs on this, but I like to keep a single Process chain & a single UI chain as children of an Item (button) widget -- you don't need to have both, though.
The single Process chain doesn't have to be non-branching, but only one Process action would be below the button, such as:
Button
|-Action (parent for optional Process chain)
| |-action widget chain
| |-action widget chain (optional, could be more than 1)
|-Action (parent for optional UI chain)
| |-UI chain
| |-UI chain (optional, could be more than 1)
I hope that makes sense. :)
- Andy
DwarF
01-22-2006, 01:34 PM
Actually, the jump back to setup works fine. It is the SetProperty that is not writing the value I want. I am trying to write the value in the TextInput to the property. It is instead writing the default value (the one I set from the NetFlixID_01) when the menu is begun. It looks like a scope issue to me. Can you get it to SetProperty('plugins/netflix/NetFlixID_01', SearchString) ?
TIA,
DwarF
Opus4
01-22-2006, 02:19 PM
Actually, the jump back to setup works fine. It is the SetProperty that is not writing the value I want.I know that. Did you try the solution I suggested? :)
(If you use breakpoints, you will see that SetProperty() isn't getting executed in the file you uploaded.)
- Andy
DwarF
01-22-2006, 11:33 PM
Sorry Opus4, I didn't try before responding. I had a full day and didn't get time till just now. It works beautifully.
Thank you for the advice.
vBulletin® v3.7.6, Copyright ©2000-2010, Jelsoft Enterprises Ltd.