Defenition Clarification

Help each other out

Defenition Clarification

Postby JPRosiak on Tue May 31, 2005 1:04 am

So I have read over every thing I could find in the XLOBBY forum, but I am still confused on some things.

Categories:
Why would I use a Category and how does using a category benefit me?

Variables:
In the examples I have seen for variable assignment, it has shown that the syntax would be similar to category>music>songtitle.
If I want to create my own variable where would I assign a value to it?
After the variable has been assigned a value, would what would the syntax be to use that variable?
Example:
I have 2 buttons, 1 labeled DVD and the other labeled TV. I also have a text field which I want to appear empty by default. (i.e. no value assigned to a variable. Lets name the variable DeviceName for this example.)
When I select the DVD button, I want DeviceName to be set to "DVD" and the text field to now read "DVD".
Next, when I select the TV button I would like the DeviceName variable set to "TV" and the text field to read "TV"

I am sure I will have more questions as time goes on, but answers to these will help me get started.
JPRosiak
 
Posts: 11
Joined: Mon May 30, 2005 3:24 am

Postby lar282 on Tue May 31, 2005 10:19 am

Categories are the databases, so u need that for storing your music, movies or whatever u are storing. This is what xlobby is all about.

u can use your own variable and set,unset and so on.
example setting a variable.

event:Save to variable
%epg>channel%
channel

To display the varibale u put this in a textbox
%variable>channel%

//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby JPRosiak on Tue May 31, 2005 10:44 am

lar282 wrote:Categories are the databases, so u need that for storing your music, movies or whatever u are storing. This is what xlobby is all about.


So I could create a database to hold information and then set the variable based on information within the database?
Last edited by JPRosiak on Tue May 31, 2005 10:50 am, edited 2 times in total.
JPRosiak
 
Posts: 11
Joined: Mon May 30, 2005 3:24 am

Postby lar282 on Tue May 31, 2005 10:46 am

Depends if u got alot of info or not. If u just wanna set a button text static then just do it. If u have info that u wanna save then use databses. The variable set does not retain its info after xlobby is off. Databses retain everything


//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby JPRosiak on Tue May 31, 2005 10:50 am

lar282 wrote:u can use your own variable and set,unset and so on.
example setting a variable.

event:Save to variable
%epg>channel%
channel

To display the varibale u put this in a textbox
%variable>channel%


So in my example, if I wanted to push the "DVD" button on my main page what would I set my event to?
Would I have to create a custome category first?

example:
event:Save to variable
%??>DeviceName%
DVD
JPRosiak
 
Posts: 11
Joined: Mon May 30, 2005 3:24 am

Postby lar282 on Tue May 31, 2005 11:04 am

Event: test button press
---Save to variable
Information:DVD
Varable(Location): button1

This will fill the variable button1 with the information "DVD"

U do not need a database for this. This is just a variable.

OR just use the built in feature


Event: test button press2
---Button SET Text
Button ID:button1
Text:DVD


http://www.xlobby.incolby.com/EventVariableSheet2.htm

//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden