I want to retrieve information through GQI that is specific to the logged-in user. Is it possible to pass the user to an ad-hoc data source (IGQIDataSource)? Or, can I use a placeholder in GQI that defines the user that is logged in?
I found an easier way to get the current logged-in user in a GQI:
var securityInfoMessage = new GetInfoMessage { Type = InfoType.SecurityInfo };
var userInfoResponse = connection.HandleSingleResponseMessage(securityInfoMessage) as GetUserInfoResponseMessage;
DataMinerUser dataMinerUser = userInfoResponse.FindUserByLoginName(connection.UserDomainName);
The connection is a IConnection which is available via the GQIDMS.