NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Mike Grigsby on July 23, 2008, 08:24:44 PM

Title: When does CallClicked routine get called?
Post by: Mike Grigsby on July 23, 2008, 08:24:44 PM
I think this is different than the previous problem in this forum. I've got two basic file browses on two different files.

On the one that's working okay, I've got this code in the CallClicked routine:

  Message('Row UID=' & USE:ID & ', id=' & p_web.GetValue('id') & ', value=' & p_web.GetValue('value'))

On the one that's not working, it's virtually identical:

  Message('Row UID=' & REQ:ID & ', id=' & p_web.GetValue('id') & ', value=' & p_web.GetValue('value'))

The first one displays a popup message when I click on a row, but the second one does nothing but highlight that row, preventing me from grabbing some file data before I go to the form.

My question is: what causes the CallClicked routine to be called, and why wouldn't it work on any browse?




Title: Re: When does CallClicked routine get called?
Post by: Bruce on July 24, 2008, 04:22:20 AM
Hi Mike,

If the browse is on a form, then the click is (currently) likely to be swallowed by the form (ie in the Validate::<whatever> routine in the form) rather than be passed onto the browse.

Cheers
Bruce
Title: Re: When does CallClicked routine get called?
Post by: Mike Grigsby on July 24, 2008, 06:25:52 PM
Of course, you were right Bruce. One was in a search form. Can you think of any other way of capturing the click or row?
Title: Re: When does CallClicked routine get called?
Post by: Bruce on July 24, 2008, 10:38:55 PM
Hi Mike,

when on a form, the click _is_ bing trapped - but it's going to the Form embed rather than the browse. I am working on a mechanism though to pass it through the form, and on to the browse in that situation.

For now though, you can "see" the click in the form procedure.

Cheers
Bruce