Hello everyone,
I am a new user of B4J application and I encountered a problem.
I have a Mainform from which I call a new form "frm_Load" via a button and set its properties and also assign layout "lyt_Load".
I can assign text properties to labels and text fields on new frm_Load. But I can't specify TableView columns and data.
I got an "Unknown Member SetColumns" error.
Here is my code:
Thanks for your help.
I am a new user of B4J application and I encountered a problem.
I have a Mainform from which I call a new form "frm_Load" via a button and set its properties and also assign layout "lyt_Load".
I can assign text properties to labels and text fields on new frm_Load. But I can't specify TableView columns and data.
I got an "Unknown Member SetColumns" error.
Here is my code:
DataView:
Sub btn_LoadProc_Click
'Load frm_Load
frm_Load.Initialize("frm_Load",1004,580)
frm_Load.Title = "Load procedure"
frm_Load.SetFormStyle("UNDECORATED")
frm_Load.RootPane.LoadLayout("lyt_Load")
frm_Load.Stylesheets.Add(File.GetUri(File.DirAssets, "Buttons.css"))
lbl_LoadCaption.text = "Load procedure"
'Here i got error
'DataView "tbl_LoadData" is declared in Process_Globals As B4XView
'DataView is placed in Pane on Layout lyt_Load
tbl_LoadData.SetColumns(Array As String("Procedure", "Description")
frm_Load.ShowAndWait
End Sub
Thanks for your help.