We are using angular + abp setup
Would there be any issues if we were to try using the module leveraging razor pages? or better to wait till 10.1 before implementing the FE screens? thanks
Hi Maliming,
Take a simplified flow:
paymentRequest.Products[n].ExtraProperties.UserId to the relevant courses paymentRequest.Products[n].ExtraProperties.CourseIdIs this flow and my understanding correct?
Could you also advise what steps are needed if we are using ABP with Angular?
Many thanks
Sure, thanks.
For the other part of the qn,
In addition, Iām planning to implement the following workflow:
Could you advise on the best practices to implement this in ABP?
i think Bryan-EDV was renamed to app-access@lexarius.com aka lexarius
[maliming] said: hi
Can you share the output of the
abp login-infocommand?Thanks.
$ abp login-info
[09:59:39 INF] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli
š ABP CLI 0.9.26
š A newer version of the ABP CLI is available: 2.0.2
š¼ dotnet tool update -g Volo.Abp.Studio.Cli
[09:59:41 INF]
Login info:
Name: Lexarius Limited
Surname:
Username: lexarius
Email Address: app-access@lexarius.com
Organization:
[sumeyye.kurtulus] said: Hi! Here's an approach you can follow:
const userNameField = new FormProp<IdentityUserDto>({ type: ePropType.String, name: 'userName', displayName: 'New Username', id: 'userName', autocomplete: 'new-username', validators: _ => [Validators.required, Validators.minLength(4)], }); export function userCreateFormContributor(formProps: FormPropList<IdentityUserDto>) { const userNameIndex = formProps.indexOf('userName', (action, name) => action.name === name); formProps.dropByIndex(userNameIndex); formProps.addByIndex(userNameField, userNameIndex); } export const identityCreateFormContributors: IdentityCreateFormPropContributors = { [eIdentityComponents.Users]: [userCreateFormContributor], }; export const identityEditFormContributors: IdentityEditFormPropContributors = { [eIdentityComponents.Users]: [userCreateFormContributor], };Then, configure your route like this:
// app-routing.module ... { path: 'identity', loadChildren: () => import('@volo/abp.ng.identity').then(m => m.IdentityModule.forLazy({ createFormPropContributors: identityCreateFormContributors, editFormPropContributors: identityCreateFormContributors, }), ), }, ...Let me know if you need any further help!
ah, thank you works now. i had a similar code by the id was in PascalCase , therefore it wasn't working.
is it ok if i get my ticket allocation refunded for this please?
[AI-Bot] said: const usernameProp = propList.get('userName'); if (usernameProp) { // Update validators as needed usernameProp.validators = () => [ Validators.required, Validators.minLength(6), // Example: minimum length Validators.pattern(/^[a-zA-Z0-9_]+$/) // Example: alphanumeric and underscores only ];