Question : Loop and a query

Here is what I mean:

I have a script which generates a PDF file. This works.

However I need to change this.

My problem is as follows:

I have a table with products. These products are now generated as a PDF file as follows:

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
	set rsOrders = Server.CreateObject("ADODB.Recordset")
	rsOrders.Open "SELECT * From oitems INNER JOIN orders ON oitems.orderid = orders.orderid Where orders.orderid=" & order, Conn

	While Not rsOrders.Eof
	
		ccode				=	rsOrders("catalogid")
		numitems			=	rsOrders("numitems")
		itemname			=	Replace(rsOrders("itemname"),"<br />"," - ")
		
		pdf.Cell(5)
		pdf.Cell -1,0,Cstr(numitems),0,1,"C"
		pdf.Cell(15)
		pdf.Cell 0,0,Left(itemname,120),0,1,"L"
		pdf.Ln(6)
		
	rsOrders.MoveNext

	pdf.Close()
	
	pdf.Output ("D:\testshop_orders\pakbon_" & invoiceid & ".pdf")
	Wend


Within the table "oitems" where this data is coming from there is also a field called "supplierid".

The supplierid can be different for each product.

If there are 3 items, where two items have supplierid 1 and one item has supplierid 2, then it should generate 2 pdf files. One PDF file with all the items from supplierid 1 and one PDF file with all the items with supplierid 2. If there is only one item, then only one pdf is generated. If there are 2 items with the same supplierid, then one PDF is generated. So you never know how many pdf files are created.

So I need some sort of loop which groups by supplierid and generates the different PDF files. Can anyone supply me this code ?




Answer : Loop and a query

I'm not strong on QoS, but I did see in the 12.4T documentation where the policy can be suspended if you've configured a guarantee that exceeds the available BW.  See http://www.cisco.com/en/US/docs/ios/qos/configuration/guide/qos_mqc_ps6441_TSD_Products_Configuration_Guide_Chapter.html.  You might also search for troubleshooting guides in general.
Random Solutions  
 
programming4us programming4us