I have a database of articles (title of article and content of article). I want to display all the articles in a dynamic text field in this way:
For every entry, a button is created with the article’s title as its caption and the ID of the row in the database as a tag/attached value to the button. When the user clicks a button, the script attached to the button does the following:
on (release) {
//1.get the tag attached to the button which represents the ID of the corresponding article
//2.connect to the database to get the content of the article whose id is the one in (1.)
//3. display the content in a dynamic text which represents the main display area
}
The question is: How can I create these buttons on runtime and attach them a tag/ID/anything similar which can be retrieved later?