Use of FkAdvancedPickerComponent to get a list of accounts (Angular v92)

Hi,

I've developed my own component that will allow admins to edit memberships in ADSGroups. I do not want to use the oob PWO methods, just a simple "I have this adgroup, I want to add a new member account". No need of cart items and requests.

So far member deletions work fine, and now I'm dealing with new memberships (based on tsb->groups->new memberships). I'm having trouble on how to use the FkAdvancedPickerComponent from qbm with the ADSAccountInADSGroup table . For a given group , I would like to have a list of candidates ADSAccounts . I seem to be unable to get the corresponding fkRelations for the UID_ADSAccount field: 

const pruebafk = await this.groupService.creaNuevaMembresia();

  const sidesheetRef = this.sidesheet.open(FkAdvancedPickerComponent, {
    title: 'Solicitud de membresía',
    subTitle: this.data.cn.value,
    padding: '0px',
    width: 'max(600px, 60%)',
    icon: 'usergroup',
    testId: 'systementitlements-reqeust-memberships',
    data: {
      fkRelations: pruebafk.entity.entitySchema.Columns.UID_ADSAccount.fkRelations, (<< What here??)
      //fkRelations: this.membershipService.getFKRelation(),
      isMultiValue: true
    }
  });

for the data.fkRelations I've also tried 

pruebafk.GetEntity().GetColumn("UID_ADSAccount").GetMetadata().GetFkRelations(),
, but I get an error "Uncaught (in promise): No candidate data model for UID_ADSAccount/ADSAccount."
Any ideas would be apppreciated.
Thanks!

Top Replies

Parents Reply Children
No Data