Author Topic: FindConfigObject?  (Read 3645 times)

Offline BenTaylor

  • Full Member
  • ***
  • Posts: 107
  • Karma: 4
FindConfigObject?
« on: March 22, 2012, 02:12:33 AM »
Can someone explain how to use this function in IRD 8.1.1 please?

FindConfigObject[Type,'Properties']

I can't seem to make it find anything...

Offline kubikle

  • Full Member
  • ***
  • Posts: 140
  • Karma: 7
Re: FindConfigObject?
« Reply #1 on: March 23, 2012, 02:27:41 PM »
Type is type of obejct: DN, place, application, etc. Presented by number. IRD has named constants for them CFGDN, CFGPlace, etc. Can use them or number directly. In any case switch - 1, DN - 2, Person - 3, Place - 4, Application 9. transaction - 16.

Properties is set of object properies of object to be found. Should identify object in unique way. It is string in format
key:value|key:value.  set of keys in general depends form object type although there are universal keys like dbid.
keys for switches dbid or name, for DN: dbid or name or combination switch and number, the same for plcaes, for applications dbid or name, for persons: dbid or employeeid.

Samples:
FindConfigObject[CFGDN, ‘name:MyRP’] or
FindConfigObject[CFGDN, ‘number:2201|switch:my_switch’]

or

FindConfigObject[CFGPlace, ‘name:Place2201’] or
FindConfigObject[CFGPlace, ‘number:101|switch:my_switch’]

or

FindConfigObject[9, ‘dbid:123’]


Offline BenTaylor

  • Full Member
  • ***
  • Posts: 107
  • Karma: 4
Re: FindConfigObject?
« Reply #2 on: March 26, 2012, 07:03:25 PM »
Thanks :)

Works great with CFGDN or CfgPlace, but doesn't like the numbers.
« Last Edit: March 26, 2012, 10:58:00 PM by BenTaylor »

Offline kubikle

  • Full Member
  • ***
  • Posts: 140
  • Karma: 7
Re: FindConfigObject?
« Reply #3 on: March 28, 2012, 01:36:58 PM »
I tried numbers and they worked too in my case (if you enter them "manually", IRD not propose them in drop down liist)

Offline BenTaylor

  • Full Member
  • ***
  • Posts: 107
  • Karma: 4
Re: FindConfigObject?
« Reply #4 on: March 28, 2012, 05:34:28 PM »
I should probably clarify and say that it doesn't like the numbers that I want to use ;)

1, 2, 3, 4, 9 and 16 are fine, but I'd like to use 19 for Statistical Table :)

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1806
  • Karma: 60
Re: FindConfigObject?
« Reply #5 on: March 28, 2012, 06:21:13 PM »
Hi Ben,

Only CFGDN and CFGPlace are officially supported so be careful using other object types.

BTW Have you made it working for other objects then DN and Place?

R.

Offline terry

  • Sr. Member
  • ****
  • Posts: 303
  • Karma: 33
Re: FindConfigObject?
« Reply #6 on: March 29, 2012, 04:16:46 AM »
supported types in 8.1.2 (officially and/or not officially):
switch, dn, place, person, tenant, application, transaction, enumerator, enumerator value.

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1806
  • Karma: 60
Re: FindConfigObject?
« Reply #7 on: March 30, 2012, 06:35:18 PM »
Terry,

I tried using FindConfigObject for person object and it didn't work. Does it work for you...?

R.

Offline terry

  • Sr. Member
  • ****
  • Posts: 303
  • Karma: 33
Re: FindConfigObject?
« Reply #8 on: March 31, 2012, 05:05:58 AM »
What was search string you used? I mean they might be different for different types of objects.
URS can access agents by two ways only: dbid or employeeid.
Something like that: FindConfigObject[3, 'employeeid:UN_104_vit_sw2'] works in my case:

    _I_I_006b0205d4a42018 [09:04] ASSIGN: event(LOCAL) <- STRING:
"dbid:679|employeeid:UN_104_vit_sw2|username:UN_104_vit_sw2|tenantdbid:103|tenant:Vit|skills.French:4|skills.Test:11"

Offline JeffreyT

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
Re: FindConfigObject?
« Reply #9 on: July 28, 2020, 03:22:25 AM »
It seems that when trying to query for application objects it's not accessing the [Options] part while accessing the [Annex] part... could someone comment ?

Offline terry

  • Sr. Member
  • ****
  • Posts: 303
  • Karma: 33
Re: FindConfigObject?
« Reply #10 on: August 01, 2020, 03:31:30 AM »
If application options are needed the GetObjectProperty[CFGApplication, 0, AppName, section, option].
As option * can be used to get all options within provided section.