Hi there @teodor…
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?
Thanks!
Antony.
= = = = = = = = = = = = = = =
index.php
<!doctype html>
<html>
<head>
<base href="/">
<script src="dmxAppConnect/dmxAppConnect.js"></script>
<meta charset="UTF-8">
<title>Untitled Document</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.14.0/css/all.css" integrity="sha384-HzLeBuhoNPvSl5KYnjx0BT+WB0QEEqLprO+NBkkk5gbc67FTaL7XIGa2w1L0Xbgc" crossorigin="anonymous" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="bootstrap/5/css/bootstrap.min.css" />
<link rel="stylesheet" href="css/style.css" />
<script src="dmxAppConnect/dmxBootbox5/bootstrap-modbox.min.js" defer></script>
<script src="dmxAppConnect/dmxBootbox5/dmxBootbox5.js" defer></script>
<script src="dmxAppConnect/dmxDatastore/dmxDatastore.js" defer></script>
</head>
<body is="dmx-app" id="index">
<script is="dmx-flow" id="page_flow" type="text/dmx-flow">{
bootbox.alert: {
message: "Page Flow",
title: "Page Flow",
buttons: {
ok: {label: "Okay"}
}
}
}</script>
<dmx-datastore id="contacts"></dmx-datastore>
<div class="container">
<div class="row" id="r_row1">
<div class="col text-center" id="c_col1" dmx-on:click="flow1.run()">
<h1 id="h_heading1" class="text-center display-3">Flow Test</h1>
<button id="btn1" class="btn text-center btn-primary" dmx-on:click="page_flow.run()">Button</button>
</div>
</div>
</div>
<script src="bootstrap/5/js/bootstrap.bundle.min.js"></script>
</body>
</html>
app_flow.json
{
meta: {
options: {linkedFile: "/www/index.php"}
},
exec: {
steps: [
{
run: {outputType: "text"}
},
{
bootbox.alert: {message: "App Flow", title: "App Flow"}
}
]
},
includeFolders: ["dmxBootbox5"]
}