Difference between revisions of "Default behavior"

From iDempiere en
m (Add category)
Line 42: Line 42:
 
Just check "hight volumn" in "Table and Column" window as image.
 
Just check "hight volumn" in "Table and Column" window as image.
 
this check tell idempiere, table has a lot record, because it should open in search sate.
 
this check tell idempiere, table has a lot record, because it should open in search sate.
 +
 +
 +
[[Category: HowTo-Technical]]
 +
[[Category: Development|P]]
 +
[[Category: Developer documentation‏‎]]

Revision as of 18:40, 20 September 2015


Window

Open window

  • Sometime when open a window (From menu or favorite) it can either "new record" or "view old record":
alt:Open with new state
Open with view state

What is logic for type of window is open?

SELECT 
	COUNT(*) 
FROM 
	C_Order 
WHERE 
	((C_Order.IsSOTrx='Y')) AND 
	(Processed='N' OR Updated>SysDate-1) AND 
	C_Order.AD_Client_ID IN(0,11) AND 
	C_Order.AD_Org_ID IN(50007,0,50004,50005,50006,50000,50001,50002,11,12) AND  
	(C_Order.C_Order_ID IS NULL OR C_Order.C_Order_ID NOT IN ( 
		SELECT Record_ID FROM AD_Private_Access WHERE AD_Table_ID = 259 AND AD_User_ID <> 100 AND IsActive = 'Y' )
	)

it's easy. before open window, Idempiere count record will query. when count is 0, window open in new state when count > 0, window open in view old record

Logic of default query for document is simple: display unprocess record or processed in preview day

  • In some windown, you can see search panel when open window:
alt:Open with search state
alt:Open with search state setup

why? how to make other window have same behavior? what is mean? Just check "hight volumn" in "Table and Column" window as image. this check tell idempiere, table has a lot record, because it should open in search sate.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.