Author Topic: Get current Place  (Read 169 times)

Offline MatSzafraniec

  • Newbie
  • *
  • Posts: 10
  • Karma: 1
Get current Place
« on: November 22, 2018, 10:06:34 PM »

could you introduce me how can I read current CfgPlace, where user is log on?

In my case, I want to read current CfgApplication and CfgPlace. First one it's quite simple:

Code: [Select]
string wdeApp = configService.RetrieveObject<CfgApplication>(new CfgApplicationQuery() { Name = configService.ApplicationName }).Name;

But cannot find any way how to use above example (of course with CfgPlace and CfgPlaceQuery) to read current CfgPlace. Or is there other way?

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 6889
  • Karma: 56331
Re: Get current Place
« Reply #1 on: November 23, 2018, 12:27:48 AM »
That is not a job for CfgServer but for TServer instead. You do a query on the agent state and returns such info. This has been discussed previously. Search the forum