cancel
Showing results for 
Search instead for 
Did you mean: 

Html space in my tableview inputfields

Former Member
0 Kudos

Hi,

I use a tableview which contains input fields.

When I open my bsp page, data is filled correctly in the tableview but the empty input fields a filled with ' ' instead of just being empty.

This is probably due to the fact that my variables are of type c (so they are space when empty i guess). If I just output the value without setting the field to the type input, I do not have the problem.

I tried to add encode="false" but this does not seem to change anything.

Do you have an idea ?

Thanks

Sylvain

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Here is the code for the tableView :

<htmlb:tableView id       = "postes"
                 table    = "<%= it_postes %>"
                 rowCount = "3"
                 width    = "100%" >
  <htmlb:tableViewColumns>
    <htmlb:tableViewColumn columnName = "KDPOS"
                           title      = "Poste"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="SAKNR"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName = "SGTXT"
                           title      = "Désignation"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName = "KOSTL"
                           title      = "Centre de coûts"
                           type       = "INPUT"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName = "AUFNR"
                           type       = "INPUT"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName = "PSP_PNR"
                           title      = "Elément d'OTP"
                           type       = "INPUT"></htmlb:tableViewColumn>
  </htmlb:tableViewColumns>
</htmlb:tableView>

it_postes is defined as a page attribute and is a custom type. It is filled correctly at execution and the 3 fields of type input are empty.

Raja, how can I set the field type to "String" ? the type is already defined to "INPUT".

Regards

Sylvain

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You could set the inputField type to string if you used an Iterator instead of the inline tableViewColumns. However I'm not sure why your defintion shouldn't work. What release and SP level are you?

Now this is a long shot, but I noticed that you have non-Ascii7 characters in your titles. Could these possibly be forcing the tableView to do some encoding? Like I said - long shot, but any easy one to test out.

Former Member
0 Kudos

Hi Thomas,

Unfortunately, deleting non Ascii characters did not solve the problem.

I'm on Was 6.20 SP42

Regards,

Sylvain

athavanraja
Active Contributor
0 Kudos

set the input field type to "STRING"

Regards

Raja

Former Member
0 Kudos

Hi Sylvain,

Can you post your code here, so that we can have a look how you are populating the tableview & how inputfields are created.

We can give a better response then. I too have inputfields in my Tableview but they are never filled that way.

Regards,

Alwyn