Setvariables - Panasonic TGP600 Developer's Manual

Hdv100/130/230/330/430
Hide thumbs Also See for TGP600:
Table of Contents

Advertisement

5.2.13. SetVariables

[Overview]
SetVariable is used to create & update system wide read/write variable.
The variable will store a string value that can be referring back at the later stage.
This variable life span is until system reboot.
This variable is registrable by 16 kinds or less.
[Naming Rule of Variables]
Rules of variable name:
- Can be any combinations of String (alphabet + number + Multi-byte character code)
- White space, symbol and special character are not allowed
- Example of valid variable name: @MyVariable123, @aB12Cd, @textBox1
- Example of invalid variable name: @MyName_Textbox, @Hello~!^%,
[Example usage of SetVariable]
- Store the XML server URL path,
<SetVariable key="@serverPath" value="http://192.168.0.100/path" />
- For referring the variables
Value which stored in variables can be referred by following way
<PictureBox name="PBox1" left="0" top="0" width="120" height="55" source="@serverPath/a.bmp" />
<HDV330/430>
<PictureBox name="PBox1" left="0" top="27" width="120" height="55" source="@serverPath/a.bmp" />
* Height of status bar is 27 pixels.
[Definition]
Child Element 1
SetVariable
[Syntax]
[To Set variables]
<ppxml
xmlns="http://panasonic/sip_phone"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://panasonic/sip_phone sip_phone.xsd">
<Screen name="Screen1" version="3.0">
<Components>
<Label name="MyNameLabel" line="2" text="Label1"
textAlignment="Left" showDateTime="true" refreshDateTime="52" />
</Components>
</Screen>
<SetVariables>
<SetVariable key="@SystemValue" value="MyNameLabel" />
</SetVariables>
</ppxml>
[To Refer variables]
<ppxml
xmlns="http://panasonic/sip_phone"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://panasonic/sip_phone sip_phone.xsd">
Attribute
Value
key
@ followed by a~z,A~Z,0~9
e.g. @myId, @food2
value
Except '&', '"', '<'
m/o
m
m
m
52
Functionality
System wide read/write :
Prefix character is @.
1~64 characters
1~64 characters

Advertisement

Table of Contents
loading

Table of Contents