NetTalk Central

Author Topic: How do I update a record from a netweb browse button  (Read 1355 times)

JHojka

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • Email
How do I update a record from a netweb browse button
« on: October 08, 2021, 07:28:36 AM »
I want to run a source procedure from a betwebbrowse button

I created my button and onclick I put the name of the procedure. When I run my website I get a message that the page is not found.

What I want to do is add a button to a browse (I think I figured this out) call my source (not sure i understand how this works) and have my source re serve the browse it was called from.

Ideally an example app i can look at would be fantastic!

Here is my source.

UpdateMSCCLSource             PROCEDURE  (NetWebServerWorker p_web) ! Declare Procedure
FilesOpened     BYTE(0)
  CODE
      DO OpenFiles
      MSCCS:SystemGUID = p_web.GetSessionValue('MSCCS:SystemGUID')
      IF Access:MSCCS.Fetch(MSCCS:SystemGUIDKey) = Level:Benign AND MSCCS:SessionState <> 'Inactive'
        MSCCS:Action = 0
        Access:MSCCS.Update()
      END
      DO CloseFiles 

OpenFiles  ROUTINE
  Access:MSCCS.Open()
  Access:MSCCS.UseFile() 
  FilesOpened = True

CloseFiles ROUTINE
  IF FilesOpened THEN
     Access:MSCCS.Close()
     FilesOpened = False
  END

Thank You.

JHojka

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • Email
Re: How do I update a record from a netweb browse button
« Reply #1 on: October 08, 2021, 07:48:55 AM »
Send button click to server seems to be what I am looking for.

« Last Edit: October 08, 2021, 08:31:42 AM by JHojka »