Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Button Object in subform

steve foley
Posts: 8
Joined: Mon Aug 03, 2015 8:36 pm

Re: Button Object in subform

Unread post by steve foley »

Thanks. I'll let you know how it works out.
steve foley
Posts: 8
Joined: Mon Aug 03, 2015 8:36 pm

Re: Button Object in subform

Unread post 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.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Button Object in subform

Unread post by admin »

Steve,

An empty Form means an incorrect record id.

Steven
steve foley
Posts: 8
Joined: Mon Aug 03, 2015 8:36 pm

Re: Button Object in subform

Unread post 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
}
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Button Object in subform

Unread post by admin »

ok
Locked