NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: ntnewbies on August 04, 2020, 01:56:19 AM

Title: call a form in insert mode from a memory form
Post by: ntnewbies on August 04, 2020, 01:56:19 AM
hi friends,
i have a memory form and in it, i call a netwebform (registernewuser) as procedure.
In advanced tab of registernewuser procedure, i select default action as insert.
but, when i fill in the info and press the save button, the record is not created at all.

i need to open this form as in insert mode so that when the user press save button, it should auto add the record.

i have tried putting ans = 1 or ans = net:insertrecord in the preinsert but it is not working.

any clue?

jason
nt11.41
c11
Title: Re: call a form in insert mode from a memory form
Post by: Bruce on August 04, 2020, 06:12:43 PM
Hi Jason,

I think you need to make a small example of what you have, so I can duplicate the effect here and see what is going on.

cheers
Bruce
Title: Re: call a form in insert mode from a memory form
Post by: ntnewbies on August 04, 2020, 07:28:10 PM
hi bruce,
attached is the sample app with same effect.

thanks

jason

Title: Re: call a form in insert mode from a memory form
Post by: Bruce on August 06, 2020, 12:05:23 AM
that zip file is invalid. try again please.
Title: Re: call a form in insert mode from a memory form
Post by: ntnewbies on August 06, 2020, 03:36:27 AM
hi bruce,
can you try the attachment again please?
i have uploaded a new one.

thanks

jason
Title: Re: call a form in insert mode from a memory form
Post by: Bruce on August 13, 2020, 12:39:28 AM
Hi Jason,

ok, I see what you are doing, and why it doesn't work. Thanks for the example.

The root of the problem is that you've got it sort-of "backwards". Typically the "form on form" approach is designed so that the internal forms are memory forms, and the outer form is the actual form. In your example you have this reversed because the outer form is a "container" and the inner form is a "working form".

There's nothing wrong with your approach - I can see it making sense in some cases - but there are a few moving parts that would need to cater for this approach. I'm investigating to see if it's do'able...

Cheers
Bruce



Title: Re: call a form in insert mode from a memory form
Post by: ntnewbies on August 19, 2020, 07:12:45 PM
thanks bruce,

keep me posted.

jason
Title: Re: call a form in insert mode from a memory form
Post by: ntnewbies on August 31, 2020, 08:32:34 PM
hi bruce,
is this doable in nt 11.43?   :)


jason
Title: Re: call a form in insert mode from a memory form
Post by: Bruce on August 31, 2020, 10:46:45 PM
no, not in 11.43...