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 limit the number of lines in an iframe for a user
-
- Posts: 377
- Joined: Sat Apr 11, 2020 12:03 am
- Has thanked: 3 times
- Been thanked: 4 times
- Contact:
How to limit the number of lines in an iframe for a user
How to limit the number of lines in an iframe for a user ?
-
- Posts: 377
- Joined: Sat Apr 11, 2020 12:03 am
- Has thanked: 3 times
- Been thanked: 4 times
- Contact:
Re: How to limit the number of lines in an iframe for a user
No, no ... There are 4 subforms-iframes on the main form.
In the first subform, the readings of 6 sensors are entered in one line. On the other subforms, the difference of readings is 2-1,4-2,6-4 from the first subform, which are used for other calculations of your subform. I need to enter a single line on the first subform and prohibit further input on This subform.
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: How to limit the number of lines in an iframe for a user
I wasn't aware that you were talking about a subform...
To limit the number of rows in a subform, use this code in the beforeinsertrow event.
Replace sfObjID with your Subform Object ID.
https://wiki.nubuilder.cloud/ ... ustom_Code
To limit the number of rows in a subform, use this code in the beforeinsertrow event.
Code: Select all
if(nuSubformObject('sfObjID').rows.length = 1){nuCancel = true;}
https://wiki.nubuilder.cloud/ ... ustom_Code
-
- Posts: 377
- Joined: Sat Apr 11, 2020 12:03 am
- Has thanked: 3 times
- Been thanked: 4 times
- Contact:
Re: How to limit the number of lines in an iframe for a user
Where to find the event - beforeinsertrow?kev1n wrote:I wasn't aware that you were talking about a subform...
To limit the number of rows in a subform, use this code in the beforeinsertrow event.
Replace sfObjID with your Subform Object ID.Code: Select all
if(nuSubformObject('sfObjID').rows.length = 1){nuCancel = true;}
https://wiki.nubuilder.cloud/ ... ustom_Code
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: How to limit the number of lines in an iframe for a user
Double-click the label of your subform. Then switch to the tab "Custom Code"
-
- Posts: 377
- Joined: Sat Apr 11, 2020 12:03 am
- Has thanked: 3 times
- Been thanked: 4 times
- Contact:
Re: How to limit the number of lines in an iframe for a user
Thanks !kev1n wrote:Double-click the label of your subform. Then switch to the tab "Custom Code"