I’ve started a new project in v6 beta 16 and I’m testing out linking an app flow to a page.
I’ve created a simple page index.php with a data store, and linked that page to the app flow, but when I try to add a run command in the app flow, the data store and other page elements aren’t showing… can you tell me what I have done wrong please?
I think you’re talking about “App Flow” but you describe a “Page Flow”…
If you’re talking about AppFlow the source attribute is missing in your dmx-flowdeclaration src="app/flows/app_flow.json"
App Flows do not have context of what’s on a page. Think of them like Server Connects. You can define params in them and then after adding an App Flow to a page you can pass values into the params for use in the App Flow.
So to be clear, I want to be able to execute a Run command in the app flow that manipulates the DataStore in the page index.php... but when I try to populate the Run command in the App Flow there are no Actions to select:
If you just need to have the datastore available in your AppFlow, just pass the datastore as an argument to the AppFlow when you call it on index.php, for example:
app_flow.run( dstore: datastore_id)
Then you can find it under $params in your AppFlow
$params->dstore
First create under $params the desired variable(object) call it the way you want (eg “dstore”) and then when you call it on your index you pick the datastore there)