Activities of "ididsbury"

Hi,

Yes. I'd like to open the change details modal for a new entity. The docs don't describe how to do this. Note that I can open the modal via the audit logging page for my new entity however I'd like to add a command on my custom page to open up the modal.

Opening the modal from an actions menu (on the Tenant Entity) is shown on in the recent ABP 2.7 blog post. I'd like to do something similar for my new Entity.

Note that I'm using MVC.

Any help appreciated.

Thanks

Ian

Answer

Hi,

I figured it out. Added below for reference.

There is a named RenderSection in the theme Application layout called 'content_toolbar'. To add a button to this section then add the following on any page:

@section content_toolbar{ <abp-button button-type="Primary"> Click Me</abp-button> }

Answer

Note that I've tried to add a button to the home page as per the above link however it doesn't add the button. A button is correctly added though for pre-built pages i.e. User page.

If a Page 'content' toolbar does not exist (even through there is space reserved), can you confirm how to remove the top row / component from the AbpPage in the theme such that i can add my own.

Thanks

Answer

Hi,

I want to achieve something like this Page Toolbar but, say, on the home page in the startup tenplate.

The theme seems to adds a top row to each page. This row includes the title and breadcrumb on the left and the toolbar area / div on the right. I can't seem to work out how to add a button to the toolbar.

Answer

See Entity Action doc.

Answer

Perfect. That solved it! Thanks for the support.

Answer

Hi,

Further to the above, I've created a new test WPF desktop client using the ABP framework (non commercial version) start-up template (Acme.BookStore). This works as expected so the shutdown issue most be licence related in the commercial version or an issue with one of the commercial modules.

Can you please advise remedial actions.

Thanks

Ian

Answer

Hi,

Agreed. It seems straightforward. I was aware of the sample. It is similar to the ConsoleTestApp generated above. In my WPF app, I have the following:

        using (var application = AbpApplicationFactory.Create&lt;DesktopClientModule&gt;()) {
            application.Initialize();

            var helloWorldService = application.ServiceProvider.GetService&lt;HelloWorldService&gt;();
            helloWorldService.SayHello();
            
            application.Shutdown();
        }

Once application.Initialize() is called the application immediately exits with code -42 (the hello world service is not executed). The exact same code in the ConsoleTestApp will result in the attached written to the console once application.Initialize() is called however the application will continue to run and the hello world service is executed.

Could this be a bug? It seems that one of the core modules is calling application shutdown on initialisation. Could this be license related (I've had a few issues with reseting licenses) i.e. an application shutdown is called if a license check fails?

Appreciate any help.

Thanks

Ian

Thanks for the excellent response. Much appreciated.

Hi,

Thanks for the above. I'm still strugglling to piece together how openid connect can be utilised with the dynamic http proxies. Do you have a c# sample?

i've looked at the sample console client in inhttps://github.com/abpframework/abp/blob/dev/samples/MicroserviceDemo/applications/ConsoleClientDemo/ClientDemoService.cs.

However, this seems to use a different authenication process. Can you please explain how OpenID connect can be used to login such that subsequent calls using the dynamic proxies to not fail (user not logged in). Do I need to update the underlaying HTTP client headers with the token recieved from OpenID connect?

I suspect I'm missing something simple or my understanding of the authentication process is flawed.

Any help greatly appreciated.

Thanks

Isn

Showing 11 to 20 of 22 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35