Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Call service for on Entity while editing another? How to use abp.services.app.<entity>.getAll() (Core/ Jquery) #9048


User avatar
0
marble68 created

If I use a standard jquery ajax call to the URL, will permissions and security be applied?

Or is there a abp / asp.net zero way this should be done?

If a user has permissions while editing one entity, I need to show a list of other other, active entities, if the user has permissions to them.

Thanks in advance for any guidance.

Kind regards,


4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    How to use abp.services.app.<entity>.getAll() (Core/ Jquery)

    https://aspnetboilerplate.com/Pages/Documents/Dynamic-Web-API#dynamic-javascript-proxies

    If I use a standard jquery ajax call to the URL, will permissions and security be applied?

    Yes. The permission check is on the backend of the api application.

    If a user has permissions while editing one entity, I need to show a list of other other, active entities, if the user has permissions to them.

    I don't quite understand, can you share the use case?

    You can get the entities within the scope of user permissions through api.

  • User Avatar
    0
    marble68 created

    Thank you - Sorry - bit new.

    I have a page for users to create custom portlets.

    Then, on another page, the users can drag drop their portlets out of their "toolbox", creating a portlet page. (An entity that contains a list of portlets and their arrangement).

    Finally, the custom portlet page is rendered to the public facing side. Sort of like how the dashboard behaves, but this is for the user to define what's rendered and how.

    Thanks for your help !!

  • User Avatar
    0
    maliming created
    Support Team

    hi @marble68

    I saw that you closed the question, has your problem been solved?

  • User Avatar
    0
    marble68 created

    Yes, thank you.