I'm developing a poll application. I create tables in db2 for polls, questions and users. I create a provider model in websphere web experience factory and then I use a service consumer in another model to take values. firstly I select poll names from database. I dont konw how many rows will return so I used repeated region builder then showed all polls in a table(I dont know if I can use another builder for this work). I want to put radio button before every poll name to be able to select one of them but table was creating for every row again so I cant use webAppAccess.getRequestInputs().getInputValue metod because there is many radio button group in the page.how can I solve this? Can use something except table to show data?
Pinned topic how to use database results with repeatedRegion,table,radioButton Builders
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-07-27T16:45:40Z at 2012-07-27T16:45:40Z by DGawron
DGawron 10000054HC251 Posts
Re: how to use database results with repeatedRegion,table,radioButton Builders2012-07-26T18:52:34ZThis is the accepted answer. This is the accepted answer.The model didn't contain sample data so it's hard to tell how the actual web app would be generated and behave, but here are a few high-level observations.
- You probably shouldn't be using Repeated Region. That builder is for special cases and what you describe sounds more typical (pull a result set from a DB and display it as a table). Data Page or View & Form should be used for this.
- It sounds like you want an action to occur when a poll is selected. Instead of using Radio Buttons why not just use a link or a client-side event on some column in the table to trigger the action that takes the user to the next step / screen?
CRFB_didem_okuyan 270005CRFB3 Posts
Re: how to use database results with repeatedRegion,table,radioButton Builders2012-07-27T08:49:59ZThis is the accepted answer. This is the accepted answer.
- DGawron 10000054HC
DGawron 10000054HC251 Posts
Re: how to use database results with repeatedRegion,table,radioButton Builders2012-07-27T16:45:40ZThis is the accepted answer. This is the accepted answer.
- CRFB_didem_okuyan 270005CRFB
You seems to be struggling with this model because you are trying to apply Java programming techniques to tasks where using builders and their automation is the better/easier approach. To help you along I've put together a consumer/provider sample that demonstrates how to use Data Services UI (a high-level builder than Data Page) to automate a summary and details views of sample data. A bare minimum of Java programming is used, and even this could have been avoided.