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.
Button Object in subform
-
- Posts: 8
- Joined: Mon Aug 03, 2015 8:36 pm
-
- Posts: 8
- Joined: Mon Aug 03, 2015 8:36 pm
Re: Button Object in subform
I have it opening the correct form using javascript, but it's still coming up empty.
The form has three subforms. Do you thing there is any chance that it's getting confused by multiple subforms?
I'll try something with only one subform when I have a chance.
I'm brand new to js. I was an old school Basic programmer 30 years ago, so I may get it eventually.
The form has three subforms. Do you thing there is any chance that it's getting confused by multiple subforms?
I'll try something with only one subform when I have a chance.
I'm brand new to js. I was an old school Basic programmer 30 years ago, so I may get it eventually.
-
- Posts: 8
- Joined: Mon Aug 03, 2015 8:36 pm
Re: Button Object in subform
I finally got this working. I had to move 'this' to the event instead inside of the function.
onclick -> myFunction(this)
and
function myFunction(t){
var id = $('#' + nuRowPrefix(t) + '_nuPrimaryKey').val();
nuOpenFormInFrame('55bce73443eed30', id); //**** you need to find out the Form's ID in the database
}
onclick -> myFunction(this)
and
function myFunction(t){
var id = $('#' + nuRowPrefix(t) + '_nuPrimaryKey').val();
nuOpenFormInFrame('55bce73443eed30', id); //**** you need to find out the Form's ID in the database
}