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.
Default value in subform
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
-
- nuBuilder Team
- Posts: 506
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 8 times
- Been thanked: 18 times
Re: Default value in subform
On one form lets say Form_1 I have a button with run command to open other form lets say Form_2 to enter a new record on it.
To have blank form I use - non existing value in the search field. And later I have to choose manually the reference with the "Lookup".
so the question - how to set on Form_2 in just in one field a value taken from the Form_1.
(So after Button press on Form_1 to have following sequence -> read value from Object_A on Form_1 -> Open Form_2 -> set value on Form_2 / Object_X = Object_A )
To have blank form I use - non existing value in the search field. And later I have to choose manually the reference with the "Lookup".
so the question - how to set on Form_2 in just in one field a value taken from the Form_1.
(So after Button press on Form_1 to have following sequence -> read value from Object_A on Form_1 -> Open Form_2 -> set value on Form_2 / Object_X = Object_A )
If you like nuBuilder, please leave a review on SourceForge
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Default value in subform
Is this question related to "Default value in subform"? It's better to create a new topic instead of asking different kind of questions in one thread.Janusz wrote:On one form lets say Form_1 I have a button with run command to open other form lets say Form_2 to enter a new record on it.
To have blank form I use - non existing value in the search field. And later I have to choose manually the reference with the "Lookup".
so the question - how to set on Form_2 in just in one field a value taken from the Form_1.
(So after Button press on Form_1 to have following sequence -> read value from Object_A on Form_1 -> Open Form_2 -> set value on Form_2 / Object_X = Object_A )
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Default value in subform
Add an ORDER BY clause in the SQL.Janusz wrote:And one more question for subforms. What would be the best way to define default sorting order by a specific column?
Re: Default value in subform
I'm trying to do this too. Where I'm stuck is that there is no SQL I can find. There is a place to put in a table name. I tried the name of a saved SQL query and just got blank records. So where is this SQL that can be edited in a subform???
Tom
Tom
-
- nuBuilder Team
- Posts: 506
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 8 times
- Been thanked: 18 times
Re: Default value in subform
Tom,
Copy the first field (form id).
Next go to the nuHome choose Form tab and find the (sub)form with id copied just before.
When you open it you will see just typical form with sql and other options.
Janusz
When you open subform object then in the Subform Tab you will have Form Lookup - where the first field is Form_id and the second is the form name.So where is this SQL that can be edited in a subform???
Copy the first field (form id).
Next go to the nuHome choose Form tab and find the (sub)form with id copied just before.
When you open it you will see just typical form with sql and other options.
Janusz
If you like nuBuilder, please leave a review on SourceForge
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Default value in subform
With Clicks: Click 3 dots of the subform, click "Form Properties", select "Browse"
You do not have the required permissions to view the files attached to this post.