ksthakur
6th January 2003, 13:23
Dear all,
How do be use set data type in baan iv tools
any special functions to retrieve the values....
thanks in anticipation...
warm regards,
Kuldeep
jaapzwaan
16th January 2003, 19:45
Kuldeep,
Simply don't use them. Although still supported in Baan IV, the user interface is not as intuitive as you might expect. I think it is better to split the field in several yes/no domains. These can be displayed as checkboxes.
In BaanERP, sets are not supported in the UI.
Of course you can still use them and decode the value with the bit.and function, but still I would prefer separate yes/no values.
Regards,
Jaap Zwaan
ksthakur
21st January 2003, 08:33
jaapzwaan,
thanks for your reply, please let me know whether u have ever used them. Could you be able to decode the pattern? Please let me know.
Regards,
Kuldeep
jaapzwaan
21st January 2003, 12:21
Kuldeep,
suppose you have a bitset called tcfeat with 3 enums:
tcfeat.bold (1)
tcfeat.underline (2)
tcfeat.italic (4)
in order to set and test the feature, read the following:
domain tcfeat my_feature
| set bold
my_feature = bit.or(my_feature, tcfeat.bold)
| unset italic
my_feature = bit.and(my_feature, bit.inv(tcfeat.italic))
| check if bold:
if bit.and(my_feature, tcfeat.bold)
see the bit operators in the manual here at baanboard.
regards,
Jaap Zwaan
ksthakur
3rd February 2003, 10:36
Hi all,
I have been used Set Data type successfully in one of my development projects. Before using them and after having lot of feedback from people, it seemed quite a difficult task, but during implementation, I could be at ease with this data type.
This is just for information to all, if anybody wants to have more detail on it, please reply to this post.
Regards,
Kuldeep