like the topic name says, i have a problem on one Visu which i cannot reproduce on another Visu.
We filter buttons with input locks and visible items with [CURRENTCLIENTID] on different WebVisu's with different ID's, and one time the itfClient used the same Client ID for 2 Clients, so the Visualization on the first ID was wrong, because that one which connected after did not have the same permissions like the first, so the first one was blocked.
We read the Clients with the VisuClientIteration project:
//count active clients
gCli.iNumberOfClients:=gCli.iNumberOfClients+1;
// if client is active write data to global struct
IF gCli.iNumberOfClients > 0 THEN
gCli.astClientInfo[gCli.iNumberOfClients-1].iClientID:=itfClient.ClientId ;
gCli.astClientInfo[gCli.iNumberOfClients-1].stCurrentVisu:=itfClient.CurrentVisuName;
gCli.astClientInfo[gCli.iNumberOfClients-1].wsUserName:=itfClient.UserName;
gCli.astClientInfo[gCli.iNumberOfClients-1].sIpAddress:=itfClient.GetIPv4Address();
gCli.astClientInfo[gCli.iNumberOfClients-1].ClientType:=itfClient.ClientType;
END_IF
Runtime from the device: 3.5.19.20
Codesys we use: 3.5.20.10
I added a screenshot where the same ID exists 2 times.
Hello,
like the topic name says, i have a problem on one Visu which i cannot reproduce on another Visu.
We filter buttons with input locks and visible items with [CURRENTCLIENTID] on different WebVisu's with different ID's, and one time the itfClient used the same Client ID for 2 Clients, so the Visualization on the first ID was wrong, because that one which connected after did not have the same permissions like the first, so the first one was blocked.
We read the Clients with the VisuClientIteration project:
//count active clients
gCli.iNumberOfClients:=gCli.iNumberOfClients+1;
// if client is active write data to global struct
IF gCli.iNumberOfClients > 0 THEN
gCli.astClientInfo[gCli.iNumberOfClients-1].iClientID:=itfClient.ClientId ;
gCli.astClientInfo[gCli.iNumberOfClients-1].stCurrentVisu:=itfClient.CurrentVisuName;
gCli.astClientInfo[gCli.iNumberOfClients-1].wsUserName:=itfClient.UserName;
gCli.astClientInfo[gCli.iNumberOfClients-1].sIpAddress:=itfClient.GetIPv4Address();
gCli.astClientInfo[gCli.iNumberOfClients-1].ClientType:=itfClient.ClientType;
END_IF
Runtime from the device: 3.5.19.20
Codesys we use: 3.5.20.10
I added a screenshot where the same ID exists 2 times.
Thanks for your answers.