Page 1 of 1
nubuilder architecture
Posted: Wed Apr 13, 2022 3:39 pm
by yvesf
I would like to best use nubuilder framework and limit as much as possible coding. I have 2 tables, task and user. In the task form, I have a select field that request the user via a lookup field. From the task form, I can easily create as end-uer, a new task for a new or existing user. Finally I have a list of task with a list of users related to each task. The problem is when I would like to see the selected user from the task form. I cannot open directly the related user from the task form. I have to create a run button to perform that. Is it possible to make this possible without writing any line of code maybe by changing the way the end-user interacts with the interface ? Is is it the best approach ? Many thanks for your help
Re: nubuilder architecture
Posted: Wed Apr 13, 2022 4:01 pm
by kev1n
The problem is when I would like to see the selected user from the task form. I cannot open directly the related user from the task form.
I don't fully understand this. Is it possible to upload a screenshots to illustrate your question/problem?
Re: nubuilder architecture
Posted: Wed Apr 13, 2022 4:48 pm
by yvesf
Capture.PNG
If I click on the magnifying glass icon, it pop-ups the user list and not the user form. Is there a way to pop-up directly the selected record in the form ?
Re: nubuilder architecture
Posted: Wed Apr 13, 2022 5:05 pm
by kev1n
If you would override the functionality when clicking the magnifying glass, a patient can no longer be selected/changed but the selected patient is opened in an edit form. Is that really what you want?
To open the patient's edit form, you probably cannot do without creating an additional Run button.
Re: nubuilder architecture
Posted: Wed Apr 13, 2022 5:30 pm
by yvesf
Ok, thanks, you described exactly what I want.So the run button is the solution

. How to pass the current selected user ? Many thanks.
Re: nubuilder architecture
Posted: Wed Apr 13, 2022 5:58 pm
by kev1n
In the button's run tab, add the object's Hash Cookie in the Record Id.
E.g if the patient's id is patient, write #patient# in the Record Id field.
Re: nubuilder architecture
Posted: Wed Apr 13, 2022 6:27 pm
by yvesf

.Thanks Kev1n, perfect as usual