In the subform, I have 2 dependent Lookup fields: L1 and L2
In the parent field, I have a hidden field.
This hidden field is used to filter the search table of L2
I have assigned a Hover event on L2
The Hover event of L2 assigns the value of L1 to the hidden field
So when we click on L2, the query filters on on the value of the hidden field (corresponding to the value of L1 therefore)
The Hover event only works on the added line just after saving the form. This does not focus on the extra lines.
Max
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
The Lookup field of the lower lines are inactive in the subf
-
- Posts: 19
- Joined: Sat Jul 26, 2014 10:09 am
- Location: France
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: The Lookup field of the lower lines are inactive in the
Hi,
It remains unclear how the event is applied (Javascript code?) And I guess that you need to reset it whenever a new row is inserted.I have assigned a Hover event on L2
-
- Posts: 19
- Joined: Sat Jul 26, 2014 10:09 am
- Location: France
Re: The Lookup field of the lower lines are inactive in the
Hi,
My JavaScript code in the form :
$(document).ready(function () {
$("div[id$='customer_idbutton']").hover(
function () {
$('#delivery_id2').val(nuSubformValue(this,'delivery_id'));
}
);
delivery_id2 is an hidden field
My JavaScript code in the form :
$(document).ready(function () {
$("div[id$='customer_idbutton']").hover(
function () {
$('#delivery_id2').val(nuSubformValue(this,'delivery_id'));
}
);
delivery_id2 is an hidden field
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: The Lookup field of the lower lines are inactive in the
I think you need to set the hover again after a new row has been added.
Check out the afterinsertrow event.
Check out the afterinsertrow event.
-
- Posts: 19
- Joined: Sat Jul 26, 2014 10:09 am
- Location: France