Select to view content in your preferred language

object.value function doesn't work for different pages

735
3
11-18-2011 05:12 AM
paolozampa
Emerging Contributor
Hi everyone,
I'm actually dealing with a annoying problem. Via VBScript i try to call a routine, onclick event on a checkbox, that should first delete previous checked boxes (object.value = false) and then disable the same checkboxes (object.enabled = false).The checkboxes are divided into two pages and the checkbox that call the routine is in the second one. Problem is that the object.enabled functon works properly for both pages, but the object.value function works only for the page where is located the checkbox that call the routine. Anyone has an idea why this happen?
Thanks in advance

Paolo
Tags (3)
0 Kudos
3 Replies
RolfBroch
Frequent Contributor
Hi Paolo, you can only change the value for a control that is on the currently active page.

Since you can change other aspects of a control (visible or not, enabled or not ...) from other pages it would be great if ESRI could remove this annoying "feature".

Rolf
0 Kudos
paolozampa
Emerging Contributor
Thank you Rolf.
I will not spend any more time try make it working...I noticed that other aspects work fine...It's weird that the .value doesn't. I hope they will fix it soon.
Ciao
Paolo
0 Kudos
RolfBroch
Frequent Contributor
I programmed around it by setting a global value in the first page and checking the global value in the onsetactive script of the "other" page.

Rolf
0 Kudos