Skip to Content
avatar image
Former Member

Get Data From Table Row

Hi All,

could anybody help me to solve my problem?

I have ceated a table in webDynpro which has only one row. I want to show the row as nonSelected and want to get the data from the table row without selecting that

row.so is it possible? If possible then how?

could anybody help me?

With Thanks & Regards

Sudip

Message was edited by: SUDIP SEN

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 17, 2006 at 11:54 AM

    HI Sudip,

    if u don't want ur first row to be selected,set the

    initializeLeadSelection proprtty of the node to 'fale'.

    sice u have only one record in the table u can access row data by using ElementAt(0) method.

    WdContext.node<nodeName>.get<nodeName>Elemenat(0).get<Attname>().

    i hope this solvs ur problem

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 17, 2006 at 11:57 AM

    Hi Sudip,

    Set the Table RowSelectable property as false in order to disable row select.

    To get data from the table you can use the following code:

    I<node name>Node myValues =wdThis.wdContext().node<node name>();

    int n = myValues.size();

    for (int i = 0; i < n; i++)

    {

    IPrivate<view name>View.I<node name>Element myElement =

    wdContext.node<node name>().get<node name>ElementAt(i);

    myElement.get<Attributename>();

    }

    Regards,

    Rajeev Ranjan

    Message was edited by: Rajeev Ranjan

    Add comment
    10|10000 characters needed characters exceeded