NetTalk Central

Author Topic: Finding best embed points  (Read 3351 times)

HeinBarkhuizen

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Finding best embed points
« on: June 09, 2015, 04:36:23 AM »
Hi,

Any tips on the best way to pick embed points in a NetWebForm.
I have ticked the send Stage to debugview as on, but not sure i understand what i'm getting.

Can anyone please explain the priciple for me.

Hein Barkhuizen

Vinnie

  • Full Member
  • ***
  • Posts: 183
    • View Profile
    • Email
Re: Finding best embed points
« Reply #1 on: June 09, 2015, 05:08:40 AM »
If I understand you correctly you want to add code to an embed point in a NT Form.

The best option is to Select the field in the Form

Then select the Client-Side Tab

Then Check Send new Value to Server

Then Click Server Code

The embed point window will display  and you can enter code where it displays "Add Server Code Here".

Cheers

Vinnie

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Finding best embed points
« Reply #2 on: June 10, 2015, 10:09:06 PM »
Hi Hein,

If you have a specific bit of code to add then by all means ask and someone will tell you where that goes.

If you are asking generally, then the best way to identify embed points is by having a passing familiarity with the code that's being embedded. To get that I mostly use right-click / source when selecting embeds.

If you understand the Form and Browse to be "event handlers" then the "stage" makes more sense because that allows you to see all the times the procedure is called, and what event / stage it is in at that time.
But reading the generated code you can see how that stage in turn calls multiple specific routines.

cheers
Bruce