Thanks, Union!
Need to ask what 'BAS_Guest@@' is?
I am trying to see how I can alter this to fit my needs, but I'm not there yet. I can try to explain better what I am looking for, because I am not sure if what you are doing here can be transferred to what I am trying to do.
I had a stored procedure that worked fine, and this contained a WHERE @ID = RegularUser.ID. Doing an EXEC_SP in a qyery then gave med the correct data for the logged in user. Then I figured that you can't sort or filter when using stored procedure, so I made a view. In my view I can't use the @ID, and therefore I need to have a WHERE clause in my query on the view to replace the WHERE @ID = RegularUser.ID. I am studying the User guide about context, since I think everything I've tried so far haven't worked because I can't get the loginName from logged in user in context..
Appologice for the possibly bad explanaition..
Found this that makes me wonder even more why I get the "Possibly wrong object identifier"
"NOTE: The following instances of business objects are always accessible to rules
directly – there is no need to find them using the FIND action, as they are always
implicitly present in any Context:
a. An instance of a business object representing logged in user (must be a member of
the SystemUsers group) – this instance can be referred to using LoggedIn prefix
(see Instance Prefixes), for example LoggedInLibraryMember where
LibraryMember is a business object belonging to the SystemUsers group"
Shouldn't this mean that I should be able to get to the LoggedInRegularUser.LoginName without any problems?