Bandwidth validations Logical with Physical

Vinay2509
Tera Contributor

Hi Team,

 

I am trying to create logical connection on physical connection using create "Logical connection change model"

If Logical connection bandwidth is higher than physical connections, it should not allow user to create logical connection and throw exception message.

 

My logic here is to compare Bandwidth field value to A end interface & Z end Interface record value of Port Bandwidth.

 

if Bandwidth selected on below screen shot is greater than Port bandwidth value, then throw error message and should not allow to create logical connection.

 

Please advise if this logic is fine? if yes please help with glide script how to achieve this.

 

 

Vinay2509_0-1701236830759.png

 

1 REPLY 1

Tai Vu
Kilo Patron
Kilo Patron

Hi @Vinay2509 

You can follow the steps below to achieve it.

1. Create OnChange Client Scripts on the Bandwidth variable.

2. Use GlideAjax or getReference to retrieve the Port Bandwidth value

3. In the callback function, use IF Statement to compare the selected Bandwidth to the Port Bandwidth

4. If the Bandwidth is greater than the Port Bandwidth, clear the Bandwidth variable.

 

Try to do the same with A/Z end interface variables, as they may select the Bandwidth before filling into these fields.

 

Cheers,

Tai Vu