Device page - value of parameter as parameter (variable?)

Hi, i’m new on forum but have some experience with GenieACS (still learning).
I was wonder there are some other way (other than using VirtualParameters) to get some value by value of other parameter.
For example we have parameter InternetGatewayDevice.Layer3Forwarding.DefaultConnectionService which return by default settings InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1..

If i make on Device Page this

    - label: "'Default Interface'"
      parameter: InternetGatewayDevice.Layer3Forwarding.DefaultConnectionService
    - label: "'Default Interface'"
      parameter: VirtualParameters.DefaultConnectionService

Difference between path and VP:
image

But sometimes value are on dynamic number path like there InternetGatewayDevice.LANDevice.1.Hosts.Host.*.Layer2Interface which also return value as path for every single host on LAN side of router. And i can’t so easily get value for example port number/name with VP.

If someone want to check how get value by value of other parameter

const now = 		Date.now();

let DefaultConnectionService = declare("InternetGatewayDevice.Layer3Forwarding.DefaultConnectionService", {path: now, value: now});
let value = '';

if (DefaultConnectionService.value !== undefined) {
  let InterfaceName = declare(DefaultConnectionService.value[0]+"Name", {value: now});
  if (InterfaceName.value !== undefined) value = InterfaceName.value[0];
}

return {writable: false, value: [value, "xsd:string"]};
1 Like

Hi,
Me too, I’m new bie, and I don’t understand how to know exactly the parameters on devices, and i get problem to connect Huawei ONT EG8120L5 to ACS, if anyone known can help me to config.
Tks so much