NetTalk Central

Author Topic: Self.request  (Read 4850 times)

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Self.request
« on: March 18, 2011, 10:07:45 AM »
What is nettalk webserver equivalent to self.request?
And where in embed to trap self.request = insertrecord
or  self.request =changerecord?
Regards,

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Re: Self.request
« Reply #1 on: March 18, 2011, 02:19:28 PM »
Ok, I must change my post...
The new version is: how to change default action on form.
When I press Insert button, the default action is still ChangeRecord, and I cannot change it, neverthess on form default action is set to none

Regards, Ozren
Nettalk, 4.56

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Re: Self.request
« Reply #2 on: March 19, 2011, 12:48:33 AM »
To clarify my post.
When I open some browse, and press any button, (change, insert...), trapped message for loc:act is 0, after that, I do the same routine, click on any button, and this time and every other time, the loc:act is 2 which means ChangeRecord, am I right? I cannot get loc:act = 1 (Insert) whatever I do... I must close entire application, and after that, same things happened again...
Regards, Ozren
Nettalk 4.56

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Self.request
« Reply #3 on: March 19, 2011, 08:09:48 AM »
Hi Ozren,

It's a tad difficult to understand exactly what you mean.
And I don't have NetTalk 4 loaded at the moment so I can't check this for you.

loc:act, and also loc:action are primed - in NetTlk 5 this is done in the SetAction routine. I'm not sure if that routine existed in NetTalk 4.
This is called fairly early, but obviously you can only test the variables after they have been set.

If you're still not sure, perhaps post a small example.

cheers
Bruce


oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Re: Self.request
« Reply #4 on: March 19, 2011, 08:25:05 AM »
OK, I know that my post(s) is a little...ambiguous...
Simple, I cannot get Insert action on form, default action is alway change records, even on form Default Form Action is set to Insert.
My form is memory type, and I use Nettalk 4.56. And yes, I can trap loc:act, loc:act that Ive got on these forms are always 2, which is, I pressume, Change.

I will put some demo app on our server tomorrow (sunday) or monday,  to show you what I mean.
Thanks in advance...
Regards, Ozren

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Self.request
« Reply #5 on: March 20, 2011, 07:34:14 PM »
Memory forms are always only "Change".

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Self.request
« Reply #6 on: March 20, 2011, 09:12:14 PM »
yes, well spotted Kevin - Memory forms are indeed always in "change" mode since they have no Table to Insert to.

cheers
Bruce