Controlling Multistate Objects with Javascript
I am looking for a method to control the view of a Multistate object with javascript code.
I have an object that has six views (call them one, two, three.... six)....
I want the user to hit a button and for a different object (not the button) to display one of the state views. This is something like I am thinking about.... but don't know if it is possible to control the state view of one object, by the user pressing a different button. Anybody have any thoughts here....
Something like this....
var setNumber = 1;
if (setNumber == 1) {
window.cpAPIInterface.setVarialbleValue("Multistate_Object", one);
}
Thanks for any help or direction on this.
Regards,
Dave
