cherokee
2nd December 2005, 22:43
Hello everyone,

I am using the function get.object(obj_id, DsNObjectType, t.obj.type), the value that this function returns is a number (24)... how do I know what type of objects is object 24? Is there a table with this relation?

Thanks in advance,

Carlos
:confused:

george7a
3rd December 2005, 11:15
Hi,

According to http://www.baanboard.com/programmers_manual_baanerp_help_functions_user_interface_objects_get_object
It should be true or false.

The object type is specified in the parameters of the function and not returned.

It also return the ref values for some of the parameters (As explained in the manual)

I hope it helps,

- George

cherokee
3rd December 2005, 21:04
Hi George,

Yes, you are right, I said return value which is not the one I wanted to inquire about. It is the ref value in my variable t.obj.type, it returns 24. Sorry for the misunderstanding.

Thanks again,

Carlos

george7a
3rd December 2005, 23:48
Hi,

AFAIK there is no list that says this number is for this object but it is easy to do one.

But it is interesting how you are using it. It should be used for an object that you created and you know it. So why do you want to know the type again?

- George

george7a
5th December 2005, 14:00
Hello,

I have looked into it again.. and I saw that 24 is for DsCscrollWindow (http://www.baanboard.com/programmers_manual_baanerp_help_functions_user_interface_objects_dscscrollwindow)

But how did you get its ID (obj_id that you put in get.object) ? Did you use create.object() function before?

- George

cherokee
5th December 2005, 15:36
Hi George,

No, I did not use the create.object function before the function get.object.I just started to look at this object functions in a session that I made. I am getting familiar with these functions and trying to read the objects present within the session.

How did you figured out 24 is the DsCscrollWindow? I saw the link you sent but I couldn't see any number relatoin to the object type.

Thanks for your help.

Carlos

george7a
5th December 2005, 15:41
I ran through all the objects and printed them :D.

How did you get the ID number of this object?? How are you reading the objects present within the session?

- George

cherokee
3rd March 2006, 17:19
Sorry to replay this late, ....

Baan uses arrays such as (single.occ.objects())in memory where holds the objects id... then you can inquire about the object.

Carlos

george7a
18th July 2006, 11:44
Baan uses arrays such as (single.occ.objects())in memory where holds the objects id... then you can inquire about the object.

Carlos,

I can see now what you meant.

Where can I find all the arrays/variables that Baan uses (in memory)? Is there a list somewhere?

P.S. I have found this list (http://www.baanboard.com/programmers_manual_baanerp_help_misc_predefined_variables) but it does not include single.occ.objects! Is there another one?

- George