baaneur
29th August 2002, 12:30
Hi,

I'm a baan coder and I have a little problem with the text.copy function.
When I run my session with my login, it is fine but with others users this function returns -1 every time.
Do you know what does the -1 value mean ?
It seems that it is an authorization problem according to BaaN documentation but I can't find out what kind of authorization they are talking about...

Thanks in advance

Djie-En
29th August 2002, 13:05
Hi,

Are they author. for tttxt1200s000/tttxt1205s000/tttxt2205s000?

GN

baaneur
29th August 2002, 13:53
All the users are Super Users !!! So sessions' authorization are useless...

OmeLuuk
29th August 2002, 15:10
Are the other users using the same text group? Do they have a default text group?
Text groups is not only about authorisations, but also settings related (margins, length etc).

mark_h
29th August 2002, 16:08
Follow the http://www.baanboard.com/programmers_manual_baanerp_help_functions_text_fields_text_copy to see the text.copy command. The -1 means that they do not have permissions to this text field. Are you sure the other users have the same text permissions as you?

Hope this helps!

Mark

baaneur
30th August 2002, 10:50
Thank you for all your replies (it's good to see such an active group !!).
OmeLuuk was right. My problem seem to be a text group problem. We use 2 different text groups (I call them A and B). 'A' has a text number range defined from 1 to 1000 (all the numbers are used).
When I use the text.copy command and don't specify a text group, it doesn't work. If I set 'B' as a default text group for the user, or if I specify 'B' in the text.copy command it works !
So I think the system tried to create a new text in the text group 'A' but didn't find any available number. With text group 'B', it works.
It's the first time I have this problem. I don't know why BaaN tried to create the text in 'A' (the user had no default text group).

Eric