@CarlosRuiz: nmicoud_, maybe something like event.getWindow().getADWindowContent().getActiveGridTab() ¿? can't test here nmicoud_: Hi Carlos, no, it always return the 'main' tab seems like it is always the main tab which is sent, even if the record is saved in the detail one @CarlosRuiz: just tested with PaymentWindowValidator when saved as master everything works fine when saved as detail - is not calling the BEFORE_NEW/AFTER_NEW events and on saving it gets the master gridtab as active so - seems like an issue with the detail implementation nmicoud_: ok, so i will create a jira ticket
@CarlosRuiz: kind of tricky as in the same save button you can have modified detail and master nmicoud_: and perhaps create a new label. AFAIR, there are other ticket related to detail tab probably need to change something in the onSave method ? to pass the 'tab_where_record_is_located' juste rereading what you wrote : "as in the same save button you can have modified detail and master".
Means that you can save both master and detail tabs in a single click ? @CarlosRuiz: I think yes nmicoud_ tested creating a detail - and I'm able to change fields on the master not sure if the detail is saved when I navigate to master - or just when I push the save button it saves both nmicoud_: anyway, the onSave should send the tab where changes are made
Hi,
Following :
https://groups.google.com/d/msg/idempiere/dqinv00sn2k/9hb3RJJIUe8J
ON IRC today (04/09)
@CarlosRuiz: nmicoud_,
maybe something like
event.getWindow().getADWindowContent().getActiveGridTab() ¿?
can't test
here
nmicoud_: Hi Carlos, no, it always return the 'main' tab
seems like it is always the main tab which is sent, even if the record is saved in the detail one
@CarlosRuiz: just tested with PaymentWindowValidator
when saved as master everything works fine
when saved as detail - is not calling the BEFORE_NEW/AFTER_NEW events
and on saving it gets the master gridtab as active
so - seems like an issue with the detail implementation
nmicoud_: ok, so i will create a jira ticket
@CarlosRuiz: kind of tricky as in the same save button you can have modified detail and master
nmicoud_: and perhaps create a new label. AFAIR, there are other ticket related to detail tab
probably need to change something in the onSave method ?
to pass the 'tab_where_record_is_located'
juste rereading what you wrote : "as in the same save button you can have modified detail and master".
Means that you can save both master and detail tabs in a single click ?
@CarlosRuiz: I think yes nmicoud_
tested creating a detail - and I'm able to change fields on the master
not sure if the detail is saved when I navigate to master - or just when I push the save button it saves both
nmicoud_: anyway, the onSave should send the tab where changes are made
Regards,
Nicolas