NetTalk Central

Author Topic: Running insert in a popup  (Read 3416 times)

Matthew51

  • Full Member
  • ***
  • Posts: 152
    • View Profile
    • Email
Running insert in a popup
« on: February 12, 2015, 03:18:20 PM »
Unless I'm mistaken NetTalk can't do this (if I am please tell me) so I decided to hack a solution.  I put the following code

Code: [Select]
Access:InvoiceTransaction.Insert()
InsertResult:IsInvalid = TRUE
ItemCode:IsInvalid = TRUE
!loc:alert = 'Item Added'
loc:InvalidTab = 0
loc:Invalid = 'ITR:LocationID'
ItemCode        = ''
InsertResult    = 'Item added. Add another?'
ITR:Quantity    = 1
ITR:Price       = 0
ITR:Cost        = 0
ITR:Notes       = ''
p_web.ssv('ItemCode', ItemCode)
p_web.ssv('InsertResult', InsertResult)
p_web.ssv('ITR:Quantity', ITR:Quantity)
p_web.ssv('ITR:Price', ITR:Price)
p_web.ssv('ITR:Cost', ITR:Cost)
p_web.ssv('ITR:Notes', ITR:Notes)
do Refresh::ItemCode

It works fine except the reset field values don't show up in the forum.  Except for [InsertResult] which is a display field.
Contractor with 10+ years of NetTalk experience looking for work.
www.linkedin.com/in/matthew-leavitt
BisWare.ca
Check out my free EasyTime Template

Matthew51

  • Full Member
  • ***
  • Posts: 152
    • View Profile
    • Email
Re: Running insert in a popup
« Reply #1 on: February 12, 2015, 03:34:03 PM »
NetTalk 8.43 btw
Contractor with 10+ years of NetTalk experience looking for work.
www.linkedin.com/in/matthew-leavitt
BisWare.ca
Check out my free EasyTime Template