cancel
Showing results for 
Search instead for 
Did you mean: 

How to put only first row as input field rest text view in webdynpro java table ?

Former Member
0 Kudos

Hi All,

i have to put

1. table first row for all the columns as input field

2. rest of the rows as text view

help me how to put input field only for the first row ? mine is NWDS 7.0

Thanks,

Ram.

Accepted Solutions (0)

Answers (1)

Answers (1)

amolgupta
Active Contributor
0 Kudos

Hi Ram,

You can not have different UI elements in 1 column for different rows.

In your case solution will be by using Input field for all rows and manipulating the readOnly property of the Input Field/s.

For example, you can have 1 more boolean Context Attribute in the node bound to the table and set the boolean (readOnly Property) to false for 1rst row and true for all other rows.

Thanks and Regards,

-Amol Gupta

Former Member
0 Kudos

Hi Amol,

             I tried that but some how on setting read only enable the rest of rows didn't look good, actually my requirement is to filter the table data according to the user input, i have 6 fields thing is i got the filter logic inside one method now what i need is on top of each column if i have one input field on action enter i can call my filter method from that i can set the retrieved results to my table.

Thanks,

Ram. 

amolgupta
Active Contributor
0 Kudos

hi Ram,

I gave the solution acccording to your query.

According to your new requirement, you need a Table filter.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0cf0997-2e08-2d10-b08e-964a2c04c...

Look for the table filter section here

http://wiki.sdn.sap.com/wiki/display/WDJava/Welcome+to+Web+Dynpro+Java!

http://wiki.sdn.sap.com/wiki/display/WDJava/Generic+Table+Filter+Code

http://wiki.sdn.sap.com/wiki/display/Snippets/Ready+Made+Table+Filter+Extension

I hope that this solves your problem.

Thanks and Regards,

-Amol Gupta

Former Member
0 Kudos

Hi Amol,

               I resolved that using table properties on filter string, thanks for your help.

Ram.