Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxLevel2
typeflat

Services

...

Events

...

SetValues

Sets a group of values into the property panel, based on the property keys and values provided in a list format.

Code Block
SRP_PropertyPanel(PanelCtrl, "SetValues", Values)

Values

...

<x, 1>

...

<x, 2>

...

Enabled

Used to set if the property can be edited (enabled) or protected (disabled).

Code Block
SRP_PropertyPanel(PanelCtrl, "Enabled", PropertyKeys, Boolean)

PropertyKey

A key to the property value to enable/disable.  Multiple keys can be passed FM delimited.

Boolean

1 to enable (default); 0 to disable.

GetValue

Gets a property value based on the provided key.

Code Block
rv = SRP_PropertyPanel(PanelCtrl, "GetValue", PropertyKey)

PropertyKey

A key to the property value to retrieve.

GetKeys

Gets an field-marked list of all the keys/properties associated with the current panel.

Code Block
List = SRP_PropertyPanel(PanelCtrl, "GetKeys")

GroupExpanded

Used to programmatically control the expand / collapse display of a single group.

Code Block
SRP_PropertyPanel(PanelCtrl, "GroupExpanded", GroupKey, Boolean)

GroupKey

The key to the group to expand or collapse.

Boolean

1 to expand, 0 to collapse.

CollapseAll

Collapses all the groups and properties in the panel.

Code Block
SRP_PropertyPanel(PanelCtrl, "CollapseAll")

ExpandAll

Expands all the groups and properties in the panel.

Code Block
SRP_PropertyPanel(PanelCtrl, "ExpandAll")

Examples

Init

Code Block
ItemList = ""
ItemList<-1> = 1 :@VM: "Load"               
ItemList<-1> = 2 :@VM: "Status"
ItemList<-1> = 2 :@VM: "Entered"        :@VM: "" :@VM: "D" :@VM: "D4/":@SVM:"D"
ItemList<-1> = 2 :@VM: "Agent"
    
ItemList<-1> = 1 :@VM: "Carrier"
ItemList<-1> = 2 :@VM: "No."
ItemList<-1> = 2 :@VM: "NameCar"        :@VM: "Name"
ItemList<-1> = 2 :@VM: "MC No."
ItemList<-1> = 2 :@VM: "DOT No."
 
ItemList<-1> = 1 :@VM: "Shipper"
ItemList<-1> = 2 :@VM: "NameShip"       :@VM: "Name"
ItemList<-1> = 2 :@VM: "PhoneShip"      :@VM: "Phone"   :@VM: ""  :@VM: "[PHONE_FORMAT]":@SVM:"[PHONE_FORMAT]"

ItemList<-1> = 1 :@VM: "Cosignee"
ItemList<-1> = 2 :@VM: "NameCon"        :@VM: "Name"
ItemList<-1> = 2 :@VM: "PhoneCon"       :@VM: "Phone"   :@VM: ""  :@VM: "[PHONE_FORMAT]":@SVM:"[PHONE_FORMAT]"

ColWidth = 100 :@FM: "A"
Errors = SRP_PropertyPanel(Panel$, "Init", ItemList, ColWidth)

Init - Result

Image Removed

SetValues

Code Block
Rec = Xlate("LOADS", KeyId, "", "X")
    
Values = ""
Values<-1> = "Status"       :@VM: Rec<063>
Values<-1> = "Entered"      :@VM: Rec<001>
Values<-1> = "Agent"        :@VM: Rec<004>
Values<-1> = "No."          :@VM: Rec<003>
Values<-1> = "NameCar"      :@VM: Xlate("LOADS", KeyId, "CARRIER_NAME", "X")
Values<-1> = "MC No."       :@VM: Rec<064>
Values<-1> = "DOT No."      :@VM: Rec<104>
Values<-1> = "NameShip"     :@VM: Rec<013>
Values<-1> = "PhoneShip"    :@VM: Rec<101>
Values<-1> = "NameCon"      :@VM: Rec<018>
Values<-1> = "PhoneCon"     :@VM: Rec<102>

SRP_PropertyPanel(Panel$, "SetValues", Values)

SetValues - Result

Image Removed

GetValue

Code Block
rv = SRP_PropertyPanel(Panel$, "GetValue", "PhoneCon")

GetValue - Result

Image Removed

RollUpAll - Result

...

Current RDK version is 1.2.6