Debug log:

 
                                

Handheld inhouse applications

Fastaphi is used today in various inhouse systems. For example tied to a Microsoft Dynamics database, presenting orders to iPods with attached laser barcode scanners.

 

RAW power

Notice how the RAW-tag is introduced. By specifying the type of RAW, the code is automatically placed correctly in the resulting application. RAW-types can be declared on demand and most often types are PHP, HTML, JS, jQuery and CSS. It's for your exceptions - making your app exceptional.

 

<status text="User:$$session|userInfo|username$$, Selected:$$scriptVars|selCount$$" />
<panel title="Dept. overview ($$session|userInfo|DeptID$$)" back="function" fwd="selorders" onsubmit="return false;">
<raw type="html">
    <table width="100%"><tr>
        <td style="width:80px;">Order no:</td>
        <td><input id="OrderNo" "type="text" name="OrderNo" style="width:50%"/></td>
        <td style="text-align:right;"><input type="submit" value="Go!" style="width:80px;" onclick="goOrder();"/></td>      
    </tr></table>
</raw>
<raw type="js">
function goOrder() {
    oid = document.getElementById('OrderNo').value;
    if (oid == '') {
      alert('Empty order ID!');
    } else {
      document.location = 'index.php?fa_page=picker.pickprev&id=' + oid;
    }
}
 
function scanTrigger(value) {
    document.forms[0].OrderNo.value = value;
    goOrder();
}
</raw>
<itemlist var="rs" href="picker.pickprev" \
     headerfunc="getHeader" name="lb1" itemclassfield="class" descfield="No_" id="No_" descfunc="getDesc"/>
    <pbuttons>
<access check="$$s|selCount$$">
#only enable if selCount > 0
      <button name="start" default="yes" href="index.php?fa_page=picker.selorders" value="Start!"/>
</access>
    </pbuttons>
</panel>
+