vaskon
February 11, 2026, 11:10am
1
I have such virtual parameter
let mfr = declare(“DeviceID.Manufacturer”, { value: 1 }).value[0] || “”;
let vlanParamName = (mfr === “ZTEG”) ? “X_CT_VlanID” : “X_HW_VLAN”;return { value: vlanParamName };
This value substituted in
label: “‘WAN’”
parameter: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection
type: “‘parameter-table’”
childParameters:
- label: “‘WAN’”
parameter: Name
- label: “‘IP address’”
parameter: ExternalIPAddress
- label: “‘Status’”
parameter: ConnectionStatus
- label: “‘VLAN’”
parameter: VirtualParameters.Vlan
But there is now value at the end
dustin
February 11, 2026, 12:59pm
2
Are you trying to display the value of VirtualParameters.Vlan?
Can you show the entire contents of the Virtual Parameter - Vlan?
vaskon
February 11, 2026, 1:28pm
4
Are you trying to display the value of VirtualParameters.Vlan?
I wanna substitute this value in - label: “‘VLAN’”
parameter: VirtualParameters.Vlan to receive childParameter in parameter-table of InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection
dustin
February 11, 2026, 3:35pm
5
The logic looks correct to me.
Can you try displaying the value of mfr? If that has an incorrect value/type, it may mess up the other assignment statement.