Thanks for your patience. I still haven't found the solution for this problem. The problem is maybe hard to explain in a foreign language.
I have a menu structure like this:
category A | category B | category C
Now the users are assigned to one category - it depends on the content. When the user logged in and use the profile link at the CB_Login Module I want that he jumps to his profile and also get in his category. But that doesn't work so far. There is just set the address index.php?option=com_comprofiler without any task or itemid. If I set a userlist in the sub menu of the correct category and click on the "list-menu-link" there is set a task and itemid. When I go to another sub menu point, the values of task and itemid are lost.
I have three or four different components in use. Nowhere I have such problems with itemids.
Maybe it's not so hard to solve. Because by registration the user has to choose a field which values are "category A" or "category B" or "category C".
So some scripts like
SELECT #__menu.id FROM #__menu WHERE #__menu.name = [cb_field]
has to tell CB the itemid. But where??
Regards