mobiletooldefault.lzx
<library>
<view name="usermenu" visible="true" width="${parent.width}" height="${parent.height-25}">
<view width="${parent.width}">
<view align="left">
<text fontstyle="bold">WeePee telecom Tel. 0800 26 1 26 Fax. 050 96 95 94</text>
</view>
<view align="right">
<text> mobile provisioning tool rev.2009100601
</text>
</view>
</view>
<simplelayout axis="y" spacing="5"/>
<view name="userdefault" width="${parent.width}" height="${parent.height}">
<tabs x="5" style="whitecolors" id="mytabs" width="${parent.width-10}" height="${parent.height-5}">
<tabpane bgcolor="#FFFFFF" width="${parent.width}" height="${parent.height}">SIM Card provisioning
<simplelayout axis="y" spacing="5"/>
<view width="${parent.width-20}">
<view layout="axis:x" align="right">
<text fontsize="14">Klanten Nr:</text>
<edittext id="qdaccountid" width="150"/>
<text fontsize="14">Sim Id:</text>
<edittext id="qdcardnr" width="150"/>
<button isdefault="true">Voeg SIM toe
<handler name="onclick">
Debug.write("id", qdaccountid.getText());
Debug.write("cardnr", qdcardnr.getText());
canvas.pendingUpdate(qdaccountid.getText(), qdcardnr.getText());
</handler>
</button>
<button isdefault="true">Verwijder aanvraag
<handler name="onclick">
Debug.write("test", qdaccountid.getText());
canvas.pendingDelete(qdaccountid.getText(), qdcardnr.getText());
</handler>
</button>
<button isdefault="false">Ververs
<handler name="onclick">
canvas.getData();
</handler>
</button>
<simplelayout axis="x" spacing="7"/>
</view>
<view layout="axis:x" align="left">
<text>Selecteer:</text>
</view>
</view>
<grid id="pending" width="${parent.width-20}" height="${parent.height-80}" bgcolor0="$once{whitecolors.basecolor}" datapath="pendingDS:/dbdata" sizetoheader="false" multiselect="false">
<handler name="ondata">
canvas.gridShorts=1;
canvas.checkGridData();
</handler>
<method event="onselect" args="selectedarg">
var dp = this.getSelection();
dp.setXPath("account_id/text()");
qdaccountid.setAttribute("text",dp.getNodeText());
dp = this.getSelection();
dp.setXPath("cardnr/text()");
qdcardnr.setAttribute("text",dp.getNodeText());
</method>
<gridcolumn width="${parent.width/8}">Klanten Nr
<text width="${parent.width}" datapath="account_id/text()" enabled="true"/>
</gridcolumn>
<gridcolumn width="${parent.width/8}">Datum Aanvraag
<text width="${parent.width}" datapath="added/text()"/>
</gridcolumn>
<gridcolumn width="${parent.width/8}">Naam Klant
<text width="${parent.width}" datapath="name/text()"/>
</gridcolumn>
<gridcolumn width="${parent.width/8}">Card Nr
<text width="${parent.width}" datapath="cardnr/text()"/>
</gridcolumn>
<gridcolumn width="${parent.width/8}">Datum Agreement
<text width="${parent.width}" datapath="agreement/text()"/>
</gridcolumn>
<gridcolumn width="${parent.width/8}">Trsfr GSM NR
<text width="${parent.width}" datapath="gsmnr/text()"/>
</gridcolumn>
<gridcolumn width="${parent.width/8}">Trsfr SIM NR
<text width="${parent.width}" datapath="simnr/text()"/>
</gridcolumn>
<gridcolumn width="${parent.width/8}">Trsfr Operator
<text width="${parent.width}" datapath="operator/text()"/>
</gridcolumn>
</grid>
</tabpane>
</tabs>
</view>
</view>
</library>
Cross References
Named Instances