Difference between revisions of "Default behavior"
From iDempiere en
| Line 5: | Line 5: | ||
* Sometime when open a window (From menu or favorite) it can either "new record" or "view old record": | * Sometime when open a window (From menu or favorite) it can either "new record" or "view old record": | ||
| − | [[Image:Open_window_new_record.jpg| | + | {|style="margin: 0 auto;" |
| − | [[Image:Open_window_view_old_record.jpg| | + | | [[Image:Open_window_new_record.jpg|300px|left|alt:Open with new state]] |
| + | | [[Image:Open_window_view_old_record.jpg|300px|alt:left|Open with view state]] | ||
| + | |} | ||
'''What is logic for type of window is open?''' | '''What is logic for type of window is open?''' | ||
| Line 29: | Line 31: | ||
when count > 0, window open in view old record | when count > 0, window open in view old record | ||
| − | default query for document is simple | + | 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: | ||
| + | {|style="margin: 0 auto;" | ||
| + | | [[Image:Open_window_search_record.jpg|300px|left|alt:Open with search state]] | ||
| + | | [[Image:Open_window_search_record_setup.jpg|300px|left|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. | ||
Revision as of 05:07, 15 April 2014
Window
Open window
- Sometime when open a window (From menu or favorite) it can either "new record" or "view old record":
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:
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.
