How to enable the (new record) functionality in an automatic way when we open a window/tab

544 views
Skip to first unread message

Pedro Rozo

unread,
Oct 4, 2017, 1:05:42 PM10/4/17
to iDempiere
Do you know how to enable the (new record) functionality in an automatic way  when we open a window/tab (so we create new rows by default entering to the window)... If I am not wrong  we used to have that  before in Adempiere within the AD , but after a lot of test with the latest version 4.1 we did not find it.....so I am wondering if. is there quick/suggested workaround to enable that per window/tab with Idempiere right now perhaps?

Something that we have in mind is a callout, or perhaps display logic, but I am looking another approach simpler to maintain ....

Regards

Pedro R

Alan Lescano

unread,
Oct 4, 2017, 1:46:36 PM10/4/17
to idem...@googlegroups.com
Hi Pedro,

Doesn't Preference->Automatic New Record work for you? (near Log Migration Script)
You can check also the window: Menu->System Admin->Data->Utility->User Preference

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/81a78ef2-05f3-41ff-a452-bbcd31c2aced%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alan Lescano

unread,
Oct 4, 2017, 1:51:15 PM10/4/17
to idem...@googlegroups.com
And for selected windows/tabs only with customizations.

Alan

Pedro Rozo

unread,
Oct 4, 2017, 2:50:28 PM10/4/17
to iDempiere
Thanks Alan...  and Yes .. I already checked that functionality (in the top menu and inside the Menu->System Admin->Data->Utility->User Preference),and still with the creation of that entry (rows) in the user preferences for one admin user and one normal users .... Custom windows (clones of normal windows) and out-of-the box windows (order,invoice)  does not start with a new record ..   we are working with Idempiere 4.1   could you check in your if that is working properly in your.... we will perform additional testing to see what else might me missing or if it is a bug perhaps ...

From your experiences, this a global parameter per user right ?, or do we need to specify which window is affected in other place, or any other system config to enable it  perhaps ?

Regards

Pedro R


El miércoles, 4 de octubre de 2017, 12:51:15 (UTC-5), Alan Lescano escribió:
And for selected windows/tabs only with customizations.

Alan
2017-10-04 14:45 GMT-03:00 Alan Lescano <alan....@gmail.com>:
Hi Pedro,

Doesn't Preference->Automatic New Record work for you? (near Log Migration Script)
You can check also the window: Menu->System Admin->Data->Utility->User Preference
2017-10-04 14:05 GMT-03:00 Pedro Rozo <pedro...@gmail.com>:
Do you know how to enable the (new record) functionality in an automatic way  when we open a window/tab (so we create new rows by default entering to the window)... If I am not wrong  we used to have that  before in Adempiere within the AD , but after a lot of test with the latest version 4.1 we did not find it.....so I am wondering if. is there quick/suggested workaround to enable that per window/tab with Idempiere right now perhaps?

Something that we have in mind is a callout, or perhaps display logic, but I am looking another approach simpler to maintain ....

Regards

Pedro R

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.

Alan Lescano

unread,
Oct 4, 2017, 3:43:29 PM10/4/17
to idem...@googlegroups.com
iDempiere 4.1 here too, and it works properly. I can see some different situations:

1- you click on the window to open it and search screen appears (due to high volume). You have here some options that seems to overwrite the autonew ctx variable:
- fill some fields (or not) and click OK: records are displayed or not based on the query result. If no records found, doesn't make sense to create new record. If found, it doesn't too.
- click in the new record icon in the bottom of the search screen: the window is opened, and new record created. Doesn't make sense also to consider the value of autonew variable.
2- you click on the window to open it and there is no enought rows in the table to show the search screen. Here the ctx variable is used to create or not a new record

The autonew ctx variable is global (per user) and also per window. But in fact the global value is copied to the window when it is created... there is where the customization could be done


To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/b6812298-f1ce-4807-8160-1919cd17c0f6%40googlegroups.com.

Pedro Rozo

unread,
Oct 9, 2017, 4:10:40 PM10/9/17
to iDempiere
Hi Alan and group

It looks like we found the issue, if we enable the user preferences, and there is no data (previously) it works flawlessly (for example with requests) and it open the tab with a new record activated (empty fields)   but if we have previous completed data for example previous requests in the grid ,, it does not work ...    

Any suggestions

Pedro R

Alan Lescano

unread,
Oct 10, 2017, 11:16:15 AM10/10/17
to idem...@googlegroups.com
yes, the auto new flag is evaluated only if there are no records to show in the opened window.

it's not tested, but you can try the below clause in the Where field in the Tab tab of Window, Tab and Field window, ex: Sales Order

c_order.IsSOTrx = 'Y' AND (@Find_Table_ID@ > 0 OR c_order.Updated > SysDate)

Alan

To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/816d289c-043d-462b-84a7-fa6b5caaf564%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages