On the main form there is a form (IFRAME), in which there is a table with only 2 rows and 10 fields. To select the beginning of the line, use the (Select) field.
At first I used json/array of type ['One','Two'] , but after a few days I noticed that fields were selected from the list, but were not saved in the database... When I clicked the Save button, the field with Select was cleared.in the database this field was of type varchar(25)
Then I switched to a new method of selecting from Select like 0|One|1|Two but... another problem appeared - the fields are selected correctly, but when saving, the field (Two) is replaced by One and naturally only 0 is saved in the database.in the database this field was of tinyint type
How to deal with this?
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.
Strange behavior of the Select field
-
- nuBuilder Team
- Posts: 4416
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 472 times
- Contact:
Re: Strange behavior of the Select field
Hi,
Are you experiencing this problem only in that (iframe) form, or in any form where select objects are used?
Also post a screenshot to illustrate "On the main form there is a form (IFRAME), in which there is a table with only 2 rows and 10 fields. To select the beginning of the line, use the (Select) field."
Are you experiencing this problem only in that (iframe) form, or in any form where select objects are used?
Also post a screenshot to illustrate "On the main form there is a form (IFRAME), in which there is a table with only 2 rows and 10 fields. To select the beginning of the line, use the (Select) field."
-
- Posts: 366
- Joined: Sat Apr 11, 2020 12:03 am
- Has thanked: 3 times
- Been thanked: 4 times
- Contact:
Re: Strange behavior of the Select field
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4416
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 472 times
- Contact:
-
- Posts: 366
- Joined: Sat Apr 11, 2020 12:03 am
- Has thanked: 3 times
- Been thanked: 4 times
- Contact:
Re: Strange behavior of the Select field
Yes.
This is before saving, after saving the first column, the second line takes the value of the first column.
This is before saving, after saving the first column, the second line takes the value of the first column.
-
- Posts: 366
- Joined: Sat Apr 11, 2020 12:03 am
- Has thanked: 3 times
- Been thanked: 4 times
- Contact:
Re: Strange behavior of the Select field
By the way, this is not the only oddity of this subordinate form. Columns 1-15 are prefixed with 'v', i.e. v1,v2,v3...
When you enter numeric values in these columns, when saved, they are not saved in all columns - only in 5-15.
Maybe this is due to some limitation on the number of columns?
When you enter numeric values in these columns, when saved, they are not saved in all columns - only in 5-15.
Maybe this is due to some limitation on the number of columns?
-
- nuBuilder Team
- Posts: 4416
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 472 times
- Contact:
Re: Strange behavior of the Select field
Can you take a screenshot of what it looks like before and after saving? Just enter some values before saving so I get a better picture of what is happening.
-
- Posts: 366
- Joined: Sat Apr 11, 2020 12:03 am
- Has thanked: 3 times
- Been thanked: 4 times
- Contact:
Re: Strange behavior of the Select field
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4416
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 472 times
- Contact:
Re: Strange behavior of the Select field
Only the first object is a select? The other objects are input objects? So the problem is not the select, but the other fields?
-
- Posts: 366
- Joined: Sat Apr 11, 2020 12:03 am
- Has thanked: 3 times
- Been thanked: 4 times
- Contact:
Re: Strange behavior of the Select field
This form is independent of other forms on the main form. Only manual entry into this table.