Pipe dream unfortunately, have been there and tried 🙂
This would be great, but you can't use the datasources as a referenceable list like that, and definitely not dynamically.
I would (and have) instead have a dropdown that sets a variable to a text value of the datasource name - then multiple if conditions within each action button/initiator that does a different patch to a different datasource depending on what the text value of the variable is.
(pseudocode here)
If(gbl_DatasourceChosen = "Data A",
Patch('Data A',
Lookup('Data A', ID = 1),
{
name: control1.Text
}
),
gbl_DatasourceChosen = "Data B",
Patch('Data B',
Lookup('Data B', ID = 1),
{
Email: control2.Text
}
),
gbl_DatasourceChosen = "Data C",
Patch('Data C',
Lookup('Data C', ID = 1),
{
name: control3.Text
}
)
)