Skip to Content
author's profile photo Former Member
Former Member

Not able to accesss Table Veiw Values

Hi All,

I have created a Tableview and the values are displayed perfectly. I have used vectors to populate the rows and columns.

Vector colName = new Vector();
colName.addElement("Description");
colName.addElement("Due");
colName.addElement("Expected");
colName.addElement("Completed");
Vector data = get_dates();
model = new DefaultTableViewModel(data, colName);

Im trying to retrieve values using

 public IPageContext context = this.getPageContext();
loopcount = 0;
for (int i = firstrow; i <= lastrow_model; i++) {
loopcount = loopcount + 1;
AbstractDataType data_des=context.getDataForComponentId   
("titleTableView","Description",loopcount);
}

<b>But Im getting data_desc as null.</b>

Why is this happening and what wrong im doing. How can I get values from table. Im in process of adding new row to the table. Any help is appreciated.

Thanks,

Praveen

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 14, 2005 at 08:00 PM

    I've solved it on my own. Now I'm able to access values. But I have button called add and when I click on the add button I wanted to know the easiest way of adding a row to the existing model. Or do I have to re-create entire model.

    Thanks,

    Praveen

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.