Activities of "cangunaydin"

here is the payload. i have the abp version 9.0 by the way. do you also use the same version?

also one more thing. Whenever i extend the organization units from module extension.

ConfigureIdentity(saas =>
            {
                saas.ConfigureOrganizationUnit(ou =>
                {
                    ou.AddOrUpdateProperty<int?>("ShareOfVoice", property =>
                    {
                        property.Attributes.Add(new RangeAttribute(0, 100));
                        property.UI.OnTable.IsVisible = true;
                        property.UI.OnCreateForm.IsVisible = true;
                        property.UI.OnEditForm.IsVisible = true;
                    });
                });
            });

RangeAttribute is not following the validation on the backend.

  • ABP Framework version: v9.0.x
  • UI Type: Angular
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

Hello, I want to add an extra property to organization units, i have managed to that in the backend with module extension. When i try to extend the angular side it does not seem i have an extension point there.

it seems like i can not extend the organization units when i look at this code.

export type IdentityCreateFormPropContributors = Partial<{
  [eIdentityComponents.Claims]: CreateFormPropContributorCallback<ClaimTypeDto>[];
  [eIdentityComponents.Roles]: CreateFormPropContributorCallback<IdentityRoleDto>[];
  [eIdentityComponents.Users]: CreateFormPropContributorCallback<IdentityUserDto>[];
}>;

here is what i have tried according to documentation https://abp.io/docs/latest/framework/ui/angular/dynamic-form-extensions#step-1-create-form-prop-contributors and here is my code. can you give some suggestions about how can i extend the organization units?


  import { ePropType, FormProp, FormPropList } from '@abp/ng.components/extensible';

import {  OrganizationUnitWithDetailsDto } from '@volo/abp.ng.identity/proxy';
import {
  eIdentityComponents,
  IdentityCreateFormPropContributors
} from '@volo/abp.ng.identity';

  

const shareOfVoiceProp = new FormProp<OrganizationUnitWithDetailsDto>({
    type: ePropType.Number,
    name: 'ShareOfVoice',
    displayName: '::DisplayName:ShareOfVoice'
  });
  
  export function shareOfVoicePropContributor(propList: FormPropList<OrganizationUnitWithDetailsDto>) {
    propList.addByIndex(shareOfVoiceProp, 1);
  }


  export const identityCreateFormPropContributors: IdentityCreateFormPropContributors = {
    // enum indicates the page to add contributors to
    [eIdentityComponents.OrganizationUnits]: [
      shareOfVoicePropContributor
      // You can add more contributors here
    ],
  };
  
  export const identityEditFormPropContributors = identityCreateFormPropContributors;
  // you may define different contributors for edit form if you like```
  • ABP Framework version: v9.1
  • UI Type: Angular
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no (but does not matter)

When you have a feature in 3 layers structure like

* Signage
    * Playlist
        * ShareOfVoice

in angular ui you can not see the branches in this order. it is always 2 layers. here is the sample code.

public class BookStoreFeatureDefinitionProvider : FeatureDefinitionProvider
{
    public override void Define(IFeatureDefinitionContext context)
    {
        var group = context.AddGroup(BookStoreFeatures.GroupName,
        L("Feature:BookStore"));


     

        var signageFeature = group.AddFeature(BookStoreFeatures.Signage.Default,
            "false",
            L("Feature:BookStoreSignage"),
            L("Feature:BookStoreSignageDescription"),
            new ToggleStringValueType());

        var playlistFeature = signageFeature.CreateChild(BookStoreFeatures.Signage.Playlist.Default,
            "false",
            L("Feature:BookStorePlaylist"),
            L("Feature:BookStorePlaylistDescription"),
            new ToggleStringValueType());
        var playlistShareOfVoiceFeature = playlistFeature.CreateChild(BookStoreFeatures.Signage.Playlist.ShareOfVoice,
            "false",
            L("Feature:BookStorePlaylistShareOfVoice"),
            L("Feature:BookStorePlaylistShareOfVoiceDescription"),
            new ToggleStringValueType());

    }
    private static LocalizableString L(string name)
    {
        return LocalizableString.Create<BookStoreResource>(name);
    }
}

here is the output for it.

ok thanks for the reply. Now i have figured it out by changing the source code and get more detailed exception. It was trying to use ipv6 while trying to connect to port 44389 according to error log.

at ClientRequest.<anonymous> (C:\dev\abp\npm\ng-packs\node_modules\got\dist\source\core\index.js:970:111)\n at Object.onceWrapper (node:events:639:26)\n at ClientRequest.emit (node:events:536:35)\n at origin.emit (C:\dev\abp\npm\ng-packs\node_modules\@szmarczak\http-timer\dist\source\index.js:43:20)\n at emitErrorEvent (node:_http_client:104:11)\n at TLSSocket.socketErrorListener (node:_http_client:512:5)\n at TLSSocket.emit (node:events:524:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1615:16)","message":"connect ECONNREFUSED ::1:44389","name":"RequestError","code":"ECONNREFUSED","request":{"options":{},"timings":{}},"options":{},"timings":{}}

so i upgraded my nodejs to the latest version. probably sth was broken on my nodejs installation or the version had some bugs.it has been fixed now. Thank you for step by step instruction. I am closing this thread.

Hello again, I have sent you the email, but i don't think sth would come up from there. Probably it would work fine since it works on my macbook. Here i want to take a different approach. Can you just guide me how can i get the source code of @abp/ng.schematics package into my project and when i run the abp cli, instead of the regular package, i want to run the source code that i downloaded so i can log more about the problem. How can i do that? It would be great if you can give me step by step instructions about getting the source code to my project and running it. So i can modify it.

I didn't say it works for both machines. I say that for some of my microservice modules it works. But for my main app it does not. So we can eliminate the theory about the versioning cause it already works for another microservice.

And i still didn't understand how you are helping to solve the problem. i already know that i can uninstall with dotnet uninstall command. But aren't you caching anything in some folder (maybe in an .abp folder some files related with logging)? At least it is clear that you are saving log in information somewhere cause when i uninstall and reinstall it it doesn't ask me about it.

By the way the cli error clearly not giving any information about what the real error is. There is sth else in the background throwing the error. Not because it can not reach the URL.

How am i going to integrate the schematics package and how am i going to add custom loggers? And how does it work really When i install abp cli and run the command does it look at schematics package? Right now this problem is stalling my development. Please instead of giving abstract informations give me some directions so i can solve the problem.

Hello,

windows pc: yarn version: 1.22.22 node version is v22.12.0

mac yarn version: 1.22.22 node version 22.11.0

i don't think this is related with yarn or node versions cause i have 1 main app and 2 external modules (running standalone) in my angular app. So i serve 2 external modules from port 7038 and 44361 and if i try to generate the proxies for them. It works fine also from my windows pc. I couldn't get the answer about some of my questions how should i uninstall and clean everything related with cli from my windows machine? Where can i see the detailed logs about abp cli after i run the command? Where can i get the source code of abp cli?

and i am 100% sure that url is https://

New information from me. I have tried the same in my macbook. And it works over there. What can be wrong for my windows pc? Do you have any idea? I am sure that firewall is not blocking. And where can i find detailed logs for cli and how can i delete all the cli and reinstall it again from scratch?

abp-old generate-proxy -t ng -m doohlink -u https://localhost:44389

i am getting abp-old: The term 'abp-old' is not recognized as a name of a cmdlet but when i use the old cli with this command

abp generate-proxy -t ng -m doohlink -u https://localhost:44389 --old

i am getting the same error.

is there any abp-old command? i didn't see it on docs.

Showing 11 to 20 of 166 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 18, 2025, 07:10