Page 1 of 1
How to limit the number of lines in an iframe for a user
Posted: Mon Jun 01, 2020 3:01 pm
by kknm
How to limit the number of lines in an iframe for a user ?
Re: How to limit the number of lines in an iframe for a user
Posted: Mon Jun 01, 2020 4:25 pm
by kev1n
Re: How to limit the number of lines in an iframe for a user
Posted: Mon Jun 01, 2020 8:49 pm
by kknm
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.
Re: How to limit the number of lines in an iframe for a user
Posted: Tue Jun 02, 2020 3:00 am
by admin
kkm,
Can you show a screenshot?
Steven
Re: How to limit the number of lines in an iframe for a user
Posted: Tue Jun 02, 2020 5:34 am
by kev1n
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.
Code: Select all
if(nuSubformObject('sfObjID').rows.length = 1){nuCancel = true;}
Replace sfObjID with your Subform Object ID.
https://wiki.nubuilder.cloud/ ... ustom_Code
Re: How to limit the number of lines in an iframe for a user
Posted: Tue Jun 02, 2020 7:45 am
by kknm
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.
Code: Select all
if(nuSubformObject('sfObjID').rows.length = 1){nuCancel = true;}
Replace sfObjID with your Subform Object ID.
https://wiki.nubuilder.cloud/ ... ustom_Code
Where to find the event - beforeinsertrow?
Re: How to limit the number of lines in an iframe for a user
Posted: Tue Jun 02, 2020 8:02 am
by kev1n
Double-click the label of your subform. Then switch to the tab "Custom Code"
Re: How to limit the number of lines in an iframe for a user
Posted: Tue Jun 02, 2020 9:13 am
by kknm
kev1n wrote:Double-click the label of your subform. Then switch to the tab "Custom Code"
Thanks !