addecker
1st December 2008, 14:56
Does anybody know how to access the array of objects on a mainwindow ?
I've tried sinlge.occ.objects but get a compile error when trying to reference
the array.

zardoz
1st December 2008, 19:04
Where you find single.occ.objects function? Isn't in the baan tools help.

NPRao
1st December 2008, 20:02
Did you try with - query.object() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_user_interface_objects_query_object)

george7a
2nd December 2008, 14:09
Hi,

This array (single.occ.objects) is one of those undocumented variables (post #5) (http://www.baanboard.com/baanboard/showthread.php?p=121195#post121195) in Baan. It was mentioned earlier in this post (http://www.baanboard.com/baanboard/showthread.php?p=96040#post96040).

What object are you seeking? And why (maybe there is a simpler way)?!

- George

george7a
2nd December 2008, 14:22
Did you try with - query.object() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_user_interface_objects_query_object)
To my knowledge, This function does not work with Baan IV.

- George

addecker
5th December 2008, 10:22
I am trying to get access to the objects of type 'button' on a form to get/modify their properties. Therefore I need the object id's of these buttons.

george7a
5th December 2008, 11:17
What properties do you need to modify?

There are other interesting variables that you might want to look at run-time such as:
ttgfd100.butn
ttgfd100.optn
ttgfd302.optn

- George

george7a
5th December 2008, 15:35
This is the variable name (array) that holds some of the buttons (I found user.1 in it)

ttgfd100.buto

- George

Hitesh Shah
5th December 2008, 19:35
While all query.objects functions to access single.occ.objects array may work , just curious why u need this and what is it that u can not do with normal baan tools functions (e.g. radio buttons ).