I have created a launch form containing 2 things : a date and an iframe.
The iframe is linked to a browse list containing in the first column a nudate.
I would like to create a button on the right of the input date field. This button should filter the browse list in the iframe with the date value in date field.
Behind the button, I have a create a run object which is a button.
and the code behind "on click"
It doesn't filter the list below and the date put in the input box is cleared.
Could you please help ?
Many thanks,
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
How to filter a list in an iFrame
-
- Posts: 347
- Joined: Sun Mar 14, 2021 8:48 am
- Location: Geneva
- Has thanked: 94 times
- Been thanked: 12 times
How to filter a list in an iFrame
You do not have the required permissions to view the files attached to this post.
-
- Posts: 156
- Joined: Wed Dec 23, 2020 12:28 pm
- Location: Russia, Volgograd
- Has thanked: 32 times
- Been thanked: 7 times
- Contact:
Re: How to filter a list in an iFrame
Use nuFiterRun onclick (may be onchange for acc_date field):
nuFilterRun('YourIframeObj', '#acc_date#')
YourIframeObj - object on your form ("run" type). It run your browse by iFrame-method
nuFilterRun('YourIframeObj', '#acc_date#')
YourIframeObj - object on your form ("run" type). It run your browse by iFrame-method
Wbr, miasoft.
-
- Posts: 347
- Joined: Sun Mar 14, 2021 8:48 am
- Location: Geneva
- Has thanked: 94 times
- Been thanked: 12 times
Re: How to filter a list in an iFrame
That's works perfectly. Thx.
What is the attended value in the filter field if we don't use JavaScript ? Where can I find the documentation explaining that ?
Thx
What is the attended value in the filter field if we don't use JavaScript ? Where can I find the documentation explaining that ?
Thx
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: How to filter a list in an iFrame
You can either pass a string value or a Hash Cookie.
E.g.
See Wiki documentation
E.g.
Code: Select all
#acc_date#
-
- Posts: 347
- Joined: Sun Mar 14, 2021 8:48 am
- Location: Geneva
- Has thanked: 94 times
- Been thanked: 12 times
Re: How to filter a list in an iFrame
In fact I have to put the field on which I would like to filter (see attachments) + .nuFilterRun('acc_agenda_frame', '#acc_date#') on change event of acc_date field.
Is it normal I have to do both ?You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: How to filter a list in an iFrame
1. Picture: The filter will be used when the object is created
2. Picture: The JS is required to refresh the iframe whenever the date is changed.
2. Picture: The JS is required to refresh the iframe whenever the date is changed.
-
- Posts: 347
- Joined: Sun Mar 14, 2021 8:48 am
- Location: Geneva
- Has thanked: 94 times
- Been thanked: 12 times
Re: How to filter a list in an iFrame
In addition to filter on date field, which is working perfectly, I would like to filter on the name. Is it possible to filter on multiple criteria ?