Я только что создал новое поле на экране SOOrder и хочу взять значение userRole по умолчанию для текущего входа пользователя в это текстовое поле, но оно получило ошибку выше. Это моя кодировка:
//Layout Editor: SO301000 (Sales Orders)
[PXDBString(64)]
[PXDefault(typeof(Coalesce<Search<UsersInRoles.userName, Where<UsersInRoles.userName, Equal<Current<AccessInfo.userName>>>>,
Search<BAccount.ownerID, Where<BAccount.bAccountID, Equal<Current<SOOrder.customerID>>>>>),
PersistingCheck = PXPersistingCheck.Nothing)]
[PXUIField(DisplayName="Current User" , Enabled = false)]
error: Cannot implicitly convert type 'PX.Data.PXResultset' to 'PX.SM.UsersInRoles' in file: Code#SOOrderEntry(80)
error: 'PX.Data.PXRowSelectingEventArgs' does not contain a definition for 'NewValue' and no extension method 'NewValue' accepting a first argument of type 'PX.Data.PXRowSelectingEventArgs' could be found (are you missing a using directive or an assembly reference?) in file: Code#SOOrderEntry(83)
Пожалуйста помоги!!!