Bandwidth validations Logical with Physical
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 10:19 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 02:09 AM
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