Page 2 of 2

Re: Button Object in subform

Posted: Wed Aug 12, 2015 11:31 am
by steve foley
Thanks. I'll let you know how it works out.

Re: Button Object in subform

Posted: Thu Aug 13, 2015 2:23 am
by steve foley
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.

Re: Button Object in subform

Posted: Thu Aug 13, 2015 2:29 am
by admin
Steve,

An empty Form means an incorrect record id.

Steven

Re: Button Object in subform

Posted: Sat Aug 22, 2015 10:53 pm
by steve foley
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
}

Re: Button Object in subform

Posted: Mon Aug 24, 2015 5:44 am
by admin
ok