Is it possible to invoke one database queries when calling changeValueAsync multiple times?
I am making an extension with a UI that can update multiple parameters in my dashboard. The data source is linked to a database. Currently, each change in a parameter/call to changeValueAsync causes the datasource to be queried.
Is it possible for me to group them up and update multiple parameters all at once to reduce the number of time the database is queried?
@kalanyuz : Currently that is not possible. It is a great idea for a feature enhancement though, @Kovner.
John
I know this doesn’t answer your question, but I’ve found great success in dashboard design by concatenating my parameters into one string (e.g. “x=abc|y=def|z=ghi…” along with calculated fields which parse that parameter string for the requisite values. Then I can make fantastic use of parameter actions which modify one or more parts of the parameter string at a time. This would, in effect, solve your problem.
Cheers,
-Eric
On May 18, 2021, at 1:58 AM, KalanyuZ @.***> wrote:
I am making an extension with a UI that can update multiple parameters in my dashboard. The data source is linked to a database. Currently, each change in a parameter/call to changeValueAsync causes the datasource to be queried.
Is it possible for me to group them up and update multiple parameters all at once to reduce the number of time the database is queried?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftableau%2Fextensions-api%2Fissues%2F382&data=04%7C01%7C%7C8e48c2d196f0485e74aa08d919db2393%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637569251246295918%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Pzq6WIcQq9W9K%2B3vVnTXYP6oC6fDnkb0BbSDgsGXaY0%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABVZEFZHF5R4AJMKJXUJ2BLTOIT4DANCNFSM45CCVJXA&data=04%7C01%7C%7C8e48c2d196f0485e74aa08d919db2393%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637569251246305912%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=NoKWPKqzqcOi39EZcynYjGH0qsm%2Fypo0cVGQvwrRPNM%3D&reserved=0.