NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Matthew51 on February 12, 2015, 03:18:20 PM

Title: Running insert in a popup
Post by: Matthew51 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.
Title: Re: Running insert in a popup
Post by: Matthew51 on February 12, 2015, 03:34:03 PM
NetTalk 8.43 btw