NetTalk Central

Author Topic: call a form in insert mode from a memory form  (Read 5308 times)

ntnewbies

  • Full Member
  • ***
  • Posts: 184
    • View Profile
    • Email
call a form in insert mode from a memory form
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: call a form in insert mode from a memory form
« Reply #1 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

ntnewbies

  • Full Member
  • ***
  • Posts: 184
    • View Profile
    • Email
Re: call a form in insert mode from a memory form
« Reply #2 on: August 04, 2020, 07:28:10 PM »
hi bruce,
attached is the sample app with same effect.

thanks

jason

« Last Edit: August 06, 2020, 03:35:51 AM by ntnewbies »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: call a form in insert mode from a memory form
« Reply #3 on: August 06, 2020, 12:05:23 AM »
that zip file is invalid. try again please.

ntnewbies

  • Full Member
  • ***
  • Posts: 184
    • View Profile
    • Email
Re: call a form in insert mode from a memory form
« Reply #4 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: call a form in insert mode from a memory form
« Reply #5 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




ntnewbies

  • Full Member
  • ***
  • Posts: 184
    • View Profile
    • Email
Re: call a form in insert mode from a memory form
« Reply #6 on: August 19, 2020, 07:12:45 PM »
thanks bruce,

keep me posted.

jason

ntnewbies

  • Full Member
  • ***
  • Posts: 184
    • View Profile
    • Email
Re: call a form in insert mode from a memory form
« Reply #7 on: August 31, 2020, 08:32:34 PM »
hi bruce,
is this doable in nt 11.43?   :)


jason

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: call a form in insert mode from a memory form
« Reply #8 on: August 31, 2020, 10:46:45 PM »
no, not in 11.43...