-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello All,
I need help, I want to create form window popup. Suppose I have 2 zul page.
1st page is view.zul
<zk>
<grid fixedLayout="true" width="600px">
<columns>
<column label="Name"/>
<column label="Address"/>
</columns>
<rows>
<row/>
<row/>
</rows>
</grid>
<button label="Add data" popup="dataEntry.zul"/>
</zk>
2nd zul is dataEntry.zul
<zk>
<window sizable="true" draggable="true" position="center,center">
<grid fixedLayout="false">
<columns>
<column label="Name" width="250px" />
<column label="Address" width="10px" />
</columns>
<rows>
<row zclass="gridonlist">
<label value="Name" />
<label value=":" />
<textbox />
</row>
<row zclass="gridonlist">
<label value="Address" />
<label value=":" />
<textbox />
</row>
</rows>
</grid>
<button label="Submit" onClick="view.zul"/>
</window>
</zk>
but it doesn't work, I don't know how to make it work. Please, give me some way.
And the important thing is I'm not allowed to create composer. Please helpppppppp
Thanks
<label value="Name" /> <textbox id="nameText"/> <button label="Submit"> <attribute name="onClick"> //clearing input values nameText.setText(""); //hidding window myWin.SetVisible("false")"/> </attribute> </button>
Hi Arsen,
I meant in my 2 zuls I have created, I implemented popup window. So when I click button Add data, popup window of add data is show up, then I input some data, suppose I input name = Duke then I click OK button, so the window pop up of adding data is not visible. Then I tried to click button Add data again and add data is show up, but data with name = Duke is still there. My question is, how to remove it when I click Ok button after I finish inputing data, meanwhile I not allowed to use zscript component.
Thanks, Please help.
Hi Arsen,
Thanks for your solution, and I apologize for my duplicate thread.
Anyway, I use different way to make it, but I've new problem now. I can create popup window, but when I inputed the some data, I can't refresh the old one, so the old data is still alive. Do you have any solution please?
here my zul code
view.zul
<zk>
<grid fixedLayout="true" width="600px">
<columns>
<column label="Name"/>
<column label="Address"/>
</columns>
<rows>
<row/>
<row/>
</rows>
</grid>
<button label="Add data" onClick="myWin.doHighlighted()"/>
<window id="myWin" visible="false" >
<include src="dataEntry.zul" />
</window>
</zk>
dataEntry.zul
<zk>
<grid fixedLayout="false">
<columns>
<column label="Name" width="250px" />
<column label="Address" width="10px" />
</columns>
<rows>
<row zclass="gridonlist">
<label value="Name" />
<label value=":" />
<textbox />
</row>
<row zclass="gridonlist">
<label value="Address" />
<label value=":" />
<textbox />
</row>
</rows>
</grid>
<button label="Submit" onClick="myWin.SetVisible("false")"/>
</zk>
please help.
Best
Asked: 2010-07-15 01:22:33 +0800
Seen: 2,716 times
Last updated: Jul 16 '10