forminit(sessionid,token)

Setting up auto Web Form for server. This function reads the data-tablename= set in html and read the tdf for each of them. If there is none, it will look for data-formloaded= and call the startup functions for them. If there are tables defined, it will first read all the tdf, then call forminitdone that will do the next step on the form initialization code.

<!doctype html>
<html lang="en">
  <head>
    <title>[{page.Name}]</title>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
  </head>
  <body>
<!-- Start of body imported from page -->
[%body%]
<!-- End of body imported from page -->
  <script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
  <!-- Script to load and initialize dataease web form engine -->
  <script type="text/javascript" src="/deserver/dataeaseconnect.js"></script>
  <script>
    var deconnect = new DataEaseConnect();
    deconnect.forminit("[{user.sessionid}]","[{user.token}]");
  </script>
  </body>
</html>

The init code set up in a basetemplate.html