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 - clicking Refresh should refresh $CurrentRecord field values #104

Open
solo-1234 opened this issue Jul 15, 2021 · 2 comments

Comments

@solo-1234
Copy link
Contributor

solo-1234 commented Jul 15, 2021

It appears that if you edit fields on a record and then click the Refresh button on a soqldatatable, it continues to use the previous values from the current record instead of the new values.

Refreshing the entire tab will force it to use the new values.

Is this the intended behavior?

Repro steps:

  • Open a scratch org with recipes. Create an Account with one Billing State and a Contact with a different Mailing State.
  • On the account page, locate the Related Contacts with same Mailing State as this Account's Billing State recipe. You will see zero contacts in the list.
  • Without leaving the page, edit the Account's Billing State (in the Details pane on the right).
  • Click the Refresh button at the top of the Related Contacts with same Mailing State as this Account's Billing State datatable. You will not see any Contacts.
  • Refresh the entire page and you will see a Contact in the list.
@solo-1234 solo-1234 changed the title SOQLDatatable - clicking Refresh should refresh $CurrentRecord field values SOQL Datatable - clicking Refresh should refresh $CurrentRecord field values Jul 16, 2021
@solo-1234
Copy link
Contributor Author

Incidentally, I noticed the same behavior when calling refreshsoqldatatable via Event Publisher. It would be helpful if refreshing from either Event Publisher or the Refresh button on a datatable would fetch updated $CurrentRecord.field values to use in filters.

Alternately, I would utilize a separate Event Publisher action to refresh current record field values.

Thanks!

@solo-1234
Copy link
Contributor Author

per @tsalb: probably just a bug where i dont call the getRecord wire again

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

1 participant