The Lookup field of the lower lines are inactive in the subf

Questions related to using nuBuilder Forte.

Re: The Lookup field of the lower lines are inactive in the

Postby ltrannoy » Thu Feb 08, 2018 3:16 am

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
ltrannoy
 
Posts: 19
Joined: Sat Jul 26, 2014 5:39 pm
Location: France

Re: The Lookup field of the lower lines are inactive in the

Postby toms » Thu Feb 08, 2018 4:11 am

Hi,

I have assigned a Hover event on L2


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.
toms
 

Re: The Lookup field of the lower lines are inactive in the

Postby ltrannoy » Thu Feb 08, 2018 4:29 am

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
ltrannoy
 
Posts: 19
Joined: Sat Jul 26, 2014 5:39 pm
Location: France

Re: The Lookup field of the lower lines are inactive in the

Postby toms » Thu Feb 08, 2018 5:29 am

I think you need to set the hover again after a new row has been added.

Check out the afterinsertrow event.
toms
 

Re: The Lookup field of the lower lines are inactive in the

Postby admin » Thu Feb 08, 2018 6:32 am

I concur.
admin
Site Admin
 
Posts: 3289
Joined: Mon Jun 15, 2009 9:53 am

Re: The Lookup field of the lower lines are inactive in the

Postby ltrannoy » Thu Feb 08, 2018 6:40 am

Thank you,

It's perfect like that!

Max
ltrannoy
 
Posts: 19
Joined: Sat Jul 26, 2014 5:39 pm
Location: France

Re: The Lookup field of the lower lines are inactive in the

Postby admin » Thu Feb 08, 2018 6:51 am

.
admin
Site Admin
 
Posts: 3289
Joined: Mon Jun 15, 2009 9:53 am

Previous

Return to General