OneIdentity / IdentityManager.Imx

HTML5 source code for Identity Manager web apps
Other
26 stars 107 forks source link

Sidesheet showing FK columns : No candidate data source for it #145

Closed juancarloscamargo closed 1 month ago

juancarloscamargo commented 1 month ago

In v92 I've created a custom api method to handle management of google workspace accounts. I can get a list of the accounts in the GAPuser table and when the user clicks one, there's a sidesheet opening with the details. Everything works fine except when I include a FK column in the sidesheet cols:

const cols = ['PrimaryEmail','IsSuspended','UID_Person'];
this.cdrList = this.cdrFactory.buildCdrFromColumnList(this.sidesheetData.selectedGAPAccount.GetEntity(), cols);

, the three values are shown: image

but there's that error: No candidate data source for UID_Person/Person. Question is, could this be related with my custom api method or should I dig deeper in my code. I'm not using the latest v92 pull yet.

hannoquest commented 1 month ago

Hi, Make sure that the source API for the GAPAccount entity has the UID_Person as a property. Otherwise, the client won't know where to get assignable Person entities from.

juancarloscamargo commented 1 month ago

That was it. See Modules\QBM\dvd\Addon\ApiSamples\SDK02_Properties Thanks!