Move to the next field by enter instead TAB (quick data entry)

75 views
Skip to first unread message

norber...@multimageweb.com

unread,
Jul 19, 2018, 5:10:43 PM7/19/18
to iDempiere
hi,

i got from potential customer a requirement.

1. They want move to the next field simple by ENTER instead TAB.  
2. use Shift+Enter for info window record selection 
3. Save and Create new line on a specific field by simple enter. (eg window customisation should have condition "save and create by enter = 'Y'"

example pattern 
we have 10 visible columns  col1. seq col2 product search col3 Qty - user will create line, select product by code(enter), type qty (enter, move to the next new line)

Their orders has approx 150 lines in peak, they afraid move to the next field by TAB will be slow. 
We don't want to create new form or window soon make idempiere data entry better.

any idea ?
norbert


Marco Longo

unread,
Jul 19, 2018, 7:18:32 PM7/19/18
to iDempiere
Hi Norbert,
We made It with a rule. So it's Easy to implement.
We used for barcode input.
Scan product then Scan qty and automatically go to New line
Now it's late ..
I'll write You back ASAP..
Marco

redhuan d. oon

unread,
Jul 21, 2018, 9:39:15 PM7/21/18
to iDempiere
Marco, your idea is for barcode scan script programming. Not seem to be what Norbert wanted which is keyboard keys.

Marco Longo

unread,
Jul 23, 2018, 8:04:56 AM7/23/18
to iDempiere
1. They want move to the next field simple by ENTER instead TAB.  

Do you mean on a specific window ..or everywhere ?

if everywhere . for me desn't make sense..
What's the purpose for this ? ( maybe the come from IBM AS400/iseries so they are used to do in this way... ..

2. use Shift+Enter for info window record selection 

Do you mean single select (ctrl+space) or all records ?

3. Save and Create new line on a specific field by simple enter. (eg window customisation should have condition "save and create by enter = 'Y'"

get a look at this rule : 
RULE 
import org.adempiere.webui.adwindow.ADWindowContent.ADWindowVlayout;
import org.adempiere.webui.adwindow.AbstractADWindowContent;
import org.adempiere.webui.session.SessionManager;
import org.compiere.util.Env;
import org.compiere.util.DB;
import org.compiere.util.Util;
import java.math.*;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Date;

if((A_Tab.getValue("M_Product_ID") != null)  ) {

   ADWindowVlayout pop = ((ADWindowVlayout)SessionManager.getAppDesktop().getActiveWindow());
   f = pop.getClass().getDeclaredField("content");
   f.setAccessible(true);
   AbstractADWindowContent content = (AbstractADWindowContent)f.get(pop);
  A_Tab.setValue("LIT_Barcode", ""); 
   content.onSaveCreate();

Marco
Reply all
Reply to author
Forward
0 new messages