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

SOQL Datatable - Allow for custom action config in Screen Flows #88

Open
solo-1234 opened this issue May 4, 2021 · 5 comments
Open
Labels
wontfix This will not be worked on

Comments

@solo-1234
Copy link
Contributor

solo-1234 commented May 4, 2021

Is there any way to show row-level actions in a soqldatatable in flow?

Use case: I have a page which shows my user a list of records (Soqldatatable on flexipage), and has a row level action and a couple of table actions. The row level action opens a flow in a modal and shows some more fields and info from the record.

I want the user to be able to choose a couple of options for filtering (eg: my records vs another user vs all / records where a date field = today vs all).

So I'm thinking to move it to a flow soqldatatable so I can give them controls for those filters, but it looks like I will lose the row level action. (I can use a buttons component to emulate the table actions.)

Wondering if there's a recommended approach for this. (Even better would be if the user didn't need to click the arrow button to access the actions, FWIW)

TY

@tsalb
Copy link
Owner

tsalb commented May 4, 2021

High level, this is not on the roadmap because of modal-ception.

That is not something I'm willing to tackle right now (the impact of introducing that).

For now, keeping this open (and changing title)!

@tsalb tsalb changed the title SOQL Datatable (Flow) - Row-level actions SOQL Datatable - Allow for custom action config in Screen Flows May 4, 2021
@tsalb tsalb added the wontfix This will not be worked on label May 4, 2021
@solo-1234
Copy link
Contributor Author

Okay, thanks for letting me know.

@solo-1234
Copy link
Contributor Author

Posting some of my thoughts on this in case they are helpful:

In regard to modal-ception, if I were building this (which I'm not) I would consider going the same route as this component:
https://unofficialsf.com/custom-flow-navigation-buttons-move-beyond-next-and-previous/

Summary: you provide a list of strings for button labels. When any button is clicked, the flow navigates to the next step (except if the button is named Previous), and the flow 'builder' needs to build a decision to look at which button was clicked and decide what to do next. That way there is no modal within a modal, instead, the button brings the user to another screen after which the admin can configure the flow to route back to the datatable (depending on the use case).

With that approach, the admin would only need to specify string labels for the table actions and/or the row actions, and then handle them as they wish. This avoids the need to create additional flows or configure anything in custom metadata.

@tsalb
Copy link
Owner

tsalb commented May 4, 2021

Fair approach, but I'm not really willing to take on such investment to support admin (apologies here) workflows.

With a developer, they can take my output variables (selected rows) and whip up their own LWC to consume it.

I'll take it into consideration but it would be significant refactoring to allow for a different code flow based on the context of which soqlDatatable is living in.

My suggestion here is to use a LWC to consume the selected rows in your own LWC on the next screen =D

@solo-1234
Copy link
Contributor Author

I hear that! Meanwhile I can use that unofficialsf component to access selected rows and emulate table actions in flow, I just don't currently have a way to display a button on each row to emulate row actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants