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