Can Assigned Users be revealed on the RelatedUserInfo form?
I'm trying to add the existing Assigned To Users relationship from the Licence class onto the RelatedUserInfo.js form. I've copied the RelatedUserInfo js file from the templates directory into the CustomSpace folder and applied the following changes to the Assets tab. The section does appear in the web form, but does not show any data when the user I am viewing is an Assigned User on the licence:
<div>{</div><div> name: "LicensesAssignedTo",</div><div> rows: [</div><div> {</div><div> columnFieldList: [</div><div> { name: "", type: "multipleObjectPicker", PropertyName: "Source_LicenceHasAssignedUsers", ClassId: "a3ad0993-def0-e2ff-dbcf-9ca04040a219", PropertyToDisplay: {DisplayName:"DisplayName","ObjectStatus.Name":"ObjectStatus",LastModified:"LastModified"},Disabled: false,ShowAddButton: false, ShowRemoveButton: false, SelectableRow: true, SelectProperty: "DisplayName" }</div><div> ],</div><div> }</div><div> ]</div><div> }</div>
Best Answer
-
seth_coussens Member Ninja IT Monkey ✭✭✭✭This won't work because the type projection used by the related user info page doesn't contain the LicenseHasAssignedUsers relationship in it. So the property name you are targeting there doesn't exist in the view.
pageForm.viewModel AssetStatus:initBaseId:""BusinessPhone:nullBusinessPhone2:nullCity:nullClassName:"System.Domain.User"ClassTypeId:"10a7f898-e672-ccf3-8881-360bfb6a8f9a"Company:nullConfigItem:nullCountry:nullDepartment:nullDisplayName:"Geoff Ross"DistinguishedName:""Domain:"CIRESON"Email:""EmployeeId:"Internal"FQDN:"cireson.local"Fax:nullFirstName:"Geoff"FullClassName:"Domain User or Group"FullName:"System.Domain.User:CIRESON.Geoff.Ross"HomePhone:nullHomePhone2:nullInitials:nullIsAssignedToUser:init[1]IsCreatedForUser:nullLastModified:"2016-04-08T02:02:05.010Z"LastModifiedBy:"3d6e42c9-0cae-408c-942f-6610d5e551d5"LastName:"Ross"Mobile:nullMyRequest:init[7]Notes:nullObjectGuid:""ObjectStatus:initOffice:nullOrganizationalUnit:"Cireson Users"Pager:nullPath:nullPrimaryOwner:nullSID:""Source_HardwareAssetHasPrimaryUser:init[0]Source_SoftwareAssetHasPrimaryUser:init[0]State:nullStreetAddress:nullTimeAdded:"2016-04-06T02:02:00.014Z"Title:nullUPN:""UserName:"Geoff.Ross"Uses:nullZip:null_events:Object_handlers:Objectcomputers:init[0]hasAsset:trueisDirty:falseparent:()uid:""
5
Answers
pageForm.viewModel AssetStatus:initBaseId:""BusinessPhone:nullBusinessPhone2:nullCity:nullClassName:"System.Domain.User"ClassTypeId:"10a7f898-e672-ccf3-8881-360bfb6a8f9a"Company:nullConfigItem:nullCountry:nullDepartment:nullDisplayName:"Geoff Ross"DistinguishedName:""Domain:"CIRESON"Email:""EmployeeId:"Internal"FQDN:"cireson.local"Fax:nullFirstName:"Geoff"FullClassName:"Domain User or Group"FullName:"System.Domain.User:CIRESON.Geoff.Ross"HomePhone:nullHomePhone2:nullInitials:nullIsAssignedToUser:init[1]IsCreatedForUser:nullLastModified:"2016-04-08T02:02:05.010Z"LastModifiedBy:"3d6e42c9-0cae-408c-942f-6610d5e551d5"LastName:"Ross"Mobile:nullMyRequest:init[7]Notes:nullObjectGuid:""ObjectStatus:initOffice:nullOrganizationalUnit:"Cireson Users"Pager:nullPath:nullPrimaryOwner:nullSID:""Source_HardwareAssetHasPrimaryUser:init[0]Source_SoftwareAssetHasPrimaryUser:init[0]State:nullStreetAddress:nullTimeAdded:"2016-04-06T02:02:00.014Z"Title:nullUPN:""UserName:"Geoff.Ross"Uses:nullZip:null_events:Object_handlers:Objectcomputers:init[0]hasAsset:trueisDirty:falseparent:()uid:""