Page 1 of 1

how to add javascript to subform?

Posted: Tue Nov 09, 2021 3:23 am
by coldfish
i have an INVOICE PROCESS subform under INVOICE.

Then I use run object button to open the list of the INVOICE PROCESS subform.

On the list of the INVOICE PROGRESS, when I click a record, I can't edit it on a new tab.

I can edit records on a new browser tab using the following for a form:

Code: Select all

function nuSelectBrowse(e){
    var r   = $('#' + e.target.id).attr('data-nu-primary-key');
    nuForm(nuGetProperty('form_id'), r, '', '', '2');
}
But there's no place to edit subform records on a new tab.

Re: how to add javascript to subform?

Posted: Tue Nov 09, 2021 5:44 am
by kev1n
Hi,

Could you upload a screenshot?

Re: how to add javascript to subform?

Posted: Wed Nov 10, 2021 6:32 am
by kev1n
...this would help me to better understand what you are trying to accomplish.

Re: how to add javascript to subform?

Posted: Sat Nov 13, 2021 7:46 am
by coldfish
kev1n wrote:...this would help me to better understand what you are trying to accomplish.
Thank you.

Looks like subforms are not for heavy use. I've replaced them with Browse & Edit forms and they are working greatly.