| Home » Developer & Programmer » Application Express, ORDS & MOD_PLSQL » Apex 5 Master Detail Form (oracle 11g,apex5 and windows server 2012) Goto Forum:
	|  |  
	| 
		
			| Re: Apex 5 Master Detail Form [message #656515 is a reply to message #656476] | Sun, 09 October 2016 13:37   |  
			| 
				
				|  | Littlefoot Messages: 21826
 Registered: June 2005
 Location: Croatia, Europe
 | Senior MemberAccount Moderator
 |  |  |  
	| I'm afraid I don't understand what you mean. 
 Do you know what "master-detail" relationship is?
 
 How did you create master-detail form? Did you use a wizard? If not, I'd strongly suggest you to do so because, saying that you are new to Apex, it'll take ages until you make it properly work. Besides, why bother? That's what wizard is here for.
 
 Anyway: if you carefully follow(ed) the wizard, it sets everything up and your master-detail form just works, there's nothing much you have to do. OK, you can make it fancy, but - generally speaking - it is fully operational.
 
 So, what exactly do you mean by saying "how to fill detail region based on master region column"? There's the "Add row" button which creates a new, empty row in the detail block so you fill data in, literally type information into items.
 
 Finally, what are we supposed to do with a link you posted? If you wanted to share your Apex application/page with us, you should have done that by creating it on apex.oracle.com & posting login information so that someone might have a look.
 |  
	|  |  |  
	|  |  
	|  |  
	| 
		
			| Re: Apex 5 Master Detail Form [message #656634 is a reply to message #656622] | Thu, 13 October 2016 00:09   |  
			| 
				
				
					| knd.prasad Messages: 35
 Registered: December 2009
 Location: HYDERABAD
 | Member |  |  |  
	| Hi, 
 In image  master and detail regions are there . in master region Inv No is lov. I have selected one invoice no
 
 i.e,  STA/233.   In  this invoice 50 records are there. once i selected any invoice number dynamically fill the detail region.
 
 I don't want to add each record in detail region.
 
 Please tell me how to fill the detail region dynamically.
 
 I have added image for reference.
 
 Thanks in advance
 prasad
 
 
 
   [Updated on: Thu, 13 October 2016 00:24] Report message to a moderator |  
	|  |  |  
	| 
		
			| Re: Apex 5 Master Detail Form [message #656664 is a reply to message #656634] | Thu, 13 October 2016 14:48   |  
			| 
				
				|  | Littlefoot Messages: 21826
 Registered: June 2005
 Location: Croatia, Europe
 | Senior MemberAccount Moderator
 |  |  |  
	| I'm sorry, but I still don't understand what you have and what you want to do. There are two options I can think of. 
 The first one: once you select "Inv. No" value, you want to fetch all 50 records that already exist in the detail table. If that's so, once again: if master-detail relationship is correctly set, Apex engine will do that automatically.
 
 The second one: once you select "Inv. No" value, there are currently no detail records for that Inv. No., but you want to automatically create 50 detail records for it (instead of pressing the "Add Row" button manually 50 times). If that's so, you'll have to write some code; I (or someone else) can help you do that.
 
 So, which one of these two are you talking about? Or, is there the third option? If so, which one is it?
 |  
	|  |  |  
	|  |  
	|  |  
	| 
		
			| Re: Apex 5 Master Detail Form [message #656678 is a reply to message #656671] | Fri, 14 October 2016 03:55   |  
			| 
				
				
					| knd.prasad Messages: 35
 Registered: December 2009
 Location: HYDERABAD
 | Member |  |  |  
	| 
 SELECT nvl(x.eanno,'0') eanno ,' ' fab_code,SALES_CD,SIZE_CD,nvl(D.FAB_TYPE,2) BLEND, D.MRP, D.BASIC_PRICE,D.BRAND_CD,X.QTY,X.GARMENT_TYPE_CD
 FROM  WH.WH_ORDER_CONF_DTL D, WH.WH_ORDER_CONF_HDR H, WH.WH_DCCUM_INVOICE_HDR J, WH.WH_MULTIPLE_ORDERSGROUP_HDR M, WH.WH_MULTIPLE_ORDERSGROUP_DTL M1,
 WH.WH_COMMERCIAL_INVOICE_HDR  N,WH.WH_SCAN_ORDCONF_DTL X
 WHERE H.ORDERCONF_NO = D.ORDERCONF_NO
 AND M.TRAN_NO = M1.TRAN_NO
 AND M1.ORDER_NO = D.ORDER_NO
 AND M1.ORDERCONF_NO = D.ORDERCONF_NO
 AND D.ORDERCONF_NO=X.ORDERCONF_NO
 AND D.MKTG_SALES_CD=X.MKTG_SALES_CD
 AND M.TRAN_NO=N.ORDER_NO
 AND H.CUST_ID=J.CUST_ID
 and ((j.cedc_no= n.c_cedc_no) or (j.cedc_no= n.pc_cedc_no))
 and j.cust_id=:p5_cust
 AND M1.TRAN_NO = J.ORDER_NO
 AND J.FIN_YEAR_CD = :p4_FIN_CD
 AND J.FAB_TYPE = DECODE(D.FAB_TYPE, '1', 'COTTON', '2', 'NON COTTON')
 AND COMM_INVOICE_NO=:p21_INV_NO
 
 
 
 This is the query , if i run this i will get below data
 
 
 
 EANNO	FAB_CODE SALES_CD	SIZE_CD	BLEND	MRP	BPRICE	BRAND  QTY  GARMENT
 U2573	 	DFU1210629	42	1	1,899	1,153	2	1	1
 U2513	 	DFU1210629	38	1	1,899	1,153	2	1	1
 U1451	 	DFU1170313	46	1	2,099	1,274	2	1	1
 U5320	 	DFU1210609	42	1	2,299	1,396	2	1	1
 U5242	 	DFU1060371	42	1	2,099	1,274	2	1	1
 U5219	 	DFU1060371	42	1	2,099	1,274	2	1	1
 U3461	 	DFU1200926	42	2	1,899	1,153	2	1	1
 U6591	 	DFU1170314	39	1	1,799	1,092	2	1	1
 U5047	 	DFU1210610	44	1	2,299	1,396	2	1	1
 U5410	 	DFU1200933	42	1	2,099	1,274	2	1	1
 U5427	 	DFU1200933	44	1	2,099	1,274	2	1	1
 U2435	 	DFU1210628	42	1	1,899	1,153	2	1	1
 
 
 
 I want to fill this data in Detail region .
 
 
 Thanks
 prasad
 
 
 
 
 
 
 |  
	|  |  |  
	|  | 
 
 
 Current Time: Fri Oct 31 02:52:48 CDT 2025 |