B4J Question ABMaterial CRUD & PostGRESQL

wangondu

Member
Licensed User
Longtime User
Hey

Am trying a simple web application whereby my back end is PostGRESQL, Am looking for thread to guide on ABMaterial CRUD
 

alwaysbusy

Expert
Licensed User
Longtime User
You have to first grab the component (see the demo apps). You must get all its parents too to get to the component (e.g. if the parent is a container, you first have to get the container and then the component from that container)

Example for a component added to a page:
B4X:
Dim myInput AS ABMInput = page.component("myInput")
dim variable as String = myInput.Text

For a table, it is slightly different (untested code as I'm not on my PC right now):
B4X:
Dim myTable as ABMTable = page.Component("myTable")
Dim myInput as ABMInput
for i = 0 to 10
   myInput = myTable.GetComponent(i, "myInput")    
   dim variable as String = myInput.Text
next
 
Upvote 0

wangondu

Member
Licensed User
Longtime User
Yester i managed to populate combo with data i queried from PostGRESQL am now asking how can i populate ABMTable using resultset
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…