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.
Reduce Lookup results
-
- Posts: 67
- Joined: Wed Jul 04, 2018 4:11 pm
- Location: France
Re: Reduce Lookup results
Sorry,
after several attempts and having browsed the forum out of curiosity, I found this thread :
https://forums.nubuilder.cloud/viewtopic.php?f=19&t=10130
explaining what I am trying to do to assign values to objects in an iframe but i have another question, what is the syntax in JS to assign the value of one object in another in the same form ?
Thank
after several attempts and having browsed the forum out of curiosity, I found this thread :
https://forums.nubuilder.cloud/viewtopic.php?f=19&t=10130
explaining what I am trying to do to assign values to objects in an iframe but i have another question, what is the syntax in JS to assign the value of one object in another in the same form ?
Thank
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
-
- Posts: 67
- Joined: Wed Jul 04, 2018 4:11 pm
- Location: France
Re: Reduce Lookup results
joecocs,
There is a new JS function available to change the filter on Run::iFrames https://wiki.nubuilder.cloud/ ... uFilterRun
(This filters an iFrame from the value in another iFrame)
Steven
There is a new JS function available to change the filter on Run::iFrames https://wiki.nubuilder.cloud/ ... uFilterRun
Code: Select all
nuFilterRun('bbb',$("#aaa").contents().find("#cus_phone").val())
Steven
You do not have the required permissions to view the files attached to this post.
-
- Posts: 67
- Joined: Wed Jul 04, 2018 4:11 pm
- Location: France
Re: Reduce Lookup results
Thank's Steven,
But where i put this code, in JsScript of 'bbb' or in 'aaa' or in Filter of 'bbb' ?
after several tries I can not find how to integrate this code ...
i'm a newbie
But where i put this code, in JsScript of 'bbb' or in 'aaa' or in Filter of 'bbb' ?
after several tries I can not find how to integrate this code ...

i'm a newbie

admin wrote:joecocs,
There is a new JS function available to change the filter on Run::iFrames https://wiki.nubuilder.cloud/ ... uFilterRun
(This filters an iFrame from the value in another iFrame)Code: Select all
nuFilterRun('bbb',$("#aaa").contents().find("#cus_phone").val())
Steven
-
- Posts: 67
- Joined: Wed Jul 04, 2018 4:11 pm
- Location: France
Re: Reduce Lookup results
I am trying to learn to use 'nuBuilder', 'Jscript' and 'PHP' at the same time, but there are logics which I do not master yet...
if you would help me understand where to integrate your command 'nuFilterRun ',
thank you.

if you would help me understand where to integrate your command 'nuFilterRun ',

thank you.
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Reduce Lookup results
You can add an onchange event to an object and call nuFilterRun() to refresh the run object (Iframe).
https://wiki.nubuilder.cloud/ ... ustom_Code
Don't forget to replace aaa and bbb with your Object Ids.
https://wiki.nubuilder.cloud/ ... ustom_Code
Don't forget to replace aaa and bbb with your Object Ids.
-
- Posts: 67
- Joined: Wed Jul 04, 2018 4:11 pm
- Location: France
Re: Reduce Lookup results
Thanks Kev1n,
I tried but it doesn't work.
When I select a record in Frame 'aaa', the frame 'bbb' is not filtered or refreshed.
That's why I'm a bit lost on the nuBuilder mechanisms.
To be a little more specific about what I want, here are 3 photos:
I wish in a dossier for construction sites,
I choose or I create a contributor in the dossier (customer, suppliers, communities, manufacturers), I can have several in this dossier and they can be in other dossiers.
and when I select a contributor, I would like to see the file of this contributor in the Frame below, but it doesn't work.
If it can work, it will allow me to filter a list of contacts for this contributor in the 'Contacts' tab.
Just for the complete explanation, the diagram of my database
The principle seems simple, with MS Access I know how to do it, but here I am a little confused, so if you can help me on an early solution
I tried but it doesn't work.

When I select a record in Frame 'aaa', the frame 'bbb' is not filtered or refreshed.

That's why I'm a bit lost on the nuBuilder mechanisms.
To be a little more specific about what I want, here are 3 photos:
I wish in a dossier for construction sites,
I choose or I create a contributor in the dossier (customer, suppliers, communities, manufacturers), I can have several in this dossier and they can be in other dossiers.
and when I select a contributor, I would like to see the file of this contributor in the Frame below, but it doesn't work.
If it can work, it will allow me to filter a list of contacts for this contributor in the 'Contacts' tab.
Just for the complete explanation, the diagram of my database
The principle seems simple, with MS Access I know how to do it, but here I am a little confused, so if you can help me on an early solution

You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
-
- Posts: 67
- Joined: Wed Jul 04, 2018 4:11 pm
- Location: France
Re: Reduce Lookup results
In the mainFORM, in the list of objects in the first Run::Frame:
in the Javascript Code onchange event:
I've :
The “#Ref_Tiers_Intervenants“ is a lookup 'Tiers' seen in my previous post in third picture
Thanks for your time
in the Javascript Code onchange event:
I've :
Code: Select all
nuFilterRun('Form_Gestion_Tiers',$("#Form_Gestion_Intervenants").contents().find("#Ref_Tiers_Intervenants").val());
Thanks for your time
You do not have the required permissions to view the files attached to this post.