CMDBuild Forum

User ID to report widget in the process

Dears, 

I need to insert the report widget into the shark process step with the parameter - userId. How can I insert the actual user Id into the report parameter? I have tried userId={user:id} - it works well in the class widget but it does not work in the process.  

Can anybody help me?

Thanks in advance, 

Jiří 

 

I have solved. The right syntaxe is:
userId=_CurrentUser
 
It is not logical, because _CurrentUser should be the ReferenceType. But it works, unlike _CurrentUser.getId(), which should return integer and doesn't work. 
 
Can anybody explain me?
 
Jiří
 
Previously Jiří wrote:

Dears, 

I need to insert the report widget into the shark process step with the parameter - userId. How can I insert the actual user Id into the report parameter? I have tried userId={user:id} - it works well in the class widget but it does not work in the process.  

Can anybody help me?

Thanks in advance, 

Jiří