Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?page title="Master Kota" contentType="text/html;charset=UTF-8"?>
- <zk>
- <window id="wndKota" title="Master Kota" border="normal" width="250px" height="200">
- <listbox id="lstKota" onSelect="isiKota()">
- <listhead>
- <listheader label="KODE" sort="auto" />
- <listheader label="NAMA" sort="auto" />
- </listhead>
- <listitem>
- <listcell label="001" />
- <listcell label="JAKARTA" />
- </listitem>
- <listitem>
- <listcell label="002" />
- <listcell label="BEKASI" />
- </listitem>
- <listitem>
- <listcell label="003" />
- <listcell label="BOGOR" />
- </listitem>
- <listitem>
- <listcell label="004" />
- <listcell label="TANGERANG" />
- </listitem>
- <listitem>
- <listcell label="005" />
- <listcell label="SURABAYA" />
- </listitem>
- </listbox>
- <zscript>
- void isiKota(){
- Page p = Executions.getCurrent().getDesktop().getPage("register");
- Window w = (Window)p.getFellow("wndRegister");
- Textbox tempat = (Textbox)w.getFellow("tempat");
- tempat.setValue(lstKota.getSelectedItem().getChildren().get(1).getLabel());
- wndKota.detach();
- }
- </zscript>
- </window>
- </zk>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement