Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global scope for row-actions framework #2937

Open
Kharg opened this issue Jan 8, 2024 · 2 comments
Open

Global scope for row-actions framework #2937

Kharg opened this issue Jan 8, 2024 · 2 comments

Comments

@Kharg
Copy link
Contributor

Kharg commented Jan 8, 2024

Is your feature request related to a problem? Please describe.
As of now you can't add a Global Row action, you have to create a .json for each entity you wish to add a row action.

const defs = this.getMetadata().get(`clientDefs.${this.scope}.rowActionDefs`) || {};

Describe the solution you'd like
I'd like to be able to use the row-actions framework for the Global scope, so to add a row action for all the entities all at once instead of
having to create multiple .json for the same action.

Just like how it can be done with viewSetupHandlers and menu buttons.

let handlerIdList = this.metadata.get(['clientDefs', 'Global', 'viewSetupHandlers', type]) || [];

or else consider developing a row-action to "Open API" for records, visible to admins only:

window.open('api/v1/' + this.view.scope + '/' + model.id, '_blank');

Describe alternatives you've considered
Creating a .json with rowActionDefs for each scope.

Additional context
Add any other context or screenshots about the feature request here.

@yurikuzn
Copy link
Contributor

yurikuzn commented Jan 9, 2024

This can be useful for extension developers. For those who develop only for a specific instance, it's not a necessity.

@espocrm espocrm deleted a comment from Kharg Jan 26, 2024
@espocrm espocrm deleted a comment from bandtank Jan 26, 2024
@espocrm espocrm deleted a comment from Kharg Jan 26, 2024
@espocrm espocrm deleted a comment from bandtank Jan 26, 2024
@Kharg
Copy link
Contributor Author

Kharg commented Mar 13, 2024

By the way, if we could also use Global scope for sidepanels it would be a great addition for developers :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants