0

how to print popup window in zk

asked 2010-04-08 00:22:51 +0800

techvts gravatar image techvts
120 2 5

I had display the products iteratively with details by detail tag in grid.
i want to print the single product information.
i have given print button in each detail tag .
when user clicks on print button the pop up window zul comes of particular product info.
my pop window is likethis

<window id="printwin" title="new page title" border="normal" mode="popup" position="center" closable="true" onCreate="Clients.print()">
Hello world!!!!!!!!!!!!
</window>


here Clients.print() prints backround browser but not pop up window what should i do.

plz help very urgent.


if it is not possible to print pop up window is there any login to print particular detail tag only code as follow

<center flex="true" autoscroll="true">
			<div>
				
				Please open/close the +/- button, to see product details
	properly.
	<grid  fixedLayout="false" width="600px" forEach="${ads}"  mold="paging" pageSize="2">
		<columns>
			<column width="25px" />
			<column>Product Name</column>
			<column>Brand</column>
			<column>Category</column>
		</columns>
		<rows>
			<row>
				<detail  open="true" >
					<hbox>
						<image width="150px" height="150px" src="/img/camcord.jpeg" />
						<vbox>
							<label value="Item Specifics - Item Condition" style="font-weight:bold;font-style: italic;" />
							<hbox>
								<label value="Product Code:" />
								 <label  value="${each.product.product_id}" style="font-weight:bold;" />
							</hbox>
							<hbox>
								<label value="Product Name:" />
								<label value="${each.product.product_name}" style="font-weight:bold;" />
							</hbox>
							<hbox>
								<label value="Product Brand:" />
								<label value="${each.product.product_brand}" style="font-weight:bold;" />
							</hbox>
							<hbox>
								<label value="Terms  Conditions :" />
								<label value="${each.offer_desc}" style="font-weight:bold;" />
							</hbox>
							
					<button id="${each.product.product_id}" label="print"  onClick="getLabId(self)" />		
		</vbox>
					</hbox>
				</detail>
				<label value="${each.product.product_name}" />
				<label style="color:green;float:right;" value="${each.product.product_brand}" />
				<label value="${each.product.prodcat_main.category_desc}" />
			</row>
		</rows>
		
	</grid>
	</div>
			</center>

plz help

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-02-21 15:20:03 +0800

faisal gravatar image faisal
18

did you got any answer here ? i have the same situation to print a popup.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-04-08 00:22:51 +0800

Seen: 963 times

Last updated: Feb 21 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More