Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Saving on temporary table

$
0
0
Saving on temporary table
Web Connection 5.0
Saving on temporary table
10/17/2012
10:32:01 AM
3MF0MKSF4 Show this entire thread in new window
Gratar Image based on email address
From:
Luca
To:
All 
Attachments:
None
Dear friends,
I would like to bind objects of a webpage to a temporary table. I use a HiddenField to keep temporary table's name.
If I utilize only .UnbindData() in Ok_click I see data saved on temporary table, but if I utilize .oBusiness.Save() I get error (debug: THIS.oData=NULL in wwBusiness.Save method).
Please what am I doing wrong?
Thank you very much for support

FUNCTION OnLoad() WITH this .oBusiness = CREATEOBJECT("MyBusiness") IF EMPTY(.HiddenField1.Text) .HiddenField1.Text=SYS(2015) CREATE TABLE (Server.oConfig.oBackofficeprocess.cTemp+.HiddenField1.Text+".dbf") (MyName c(20)) APPEND BLANK ELSE USE (Server.oConfig.oBackofficeprocess.cTemp+.HiddenField1.Text+".dbf") IN 0 ENDIF .TextBox1.ControlSource=.HiddenField1.Text+".MyName" IF .IsPostBack=.F. SELECT (.HiddenField1.Text) .DataBind() ENDIF ENDWITH ENDFUNC FUNCTION Ok_click WITH this .UnbindData() .oBusiness.Save() ENDWITH ENDFUNC


Viewing all articles
Browse latest Browse all 10393

Trending Articles