cancel
Showing results for 
Search instead for 
Did you mean: 

TableView Iterator - Inputfield and Image in one cell???

Former Member
0 Kudos

Hi,

I've got I little problem maybe easy to solute but I didn't get it rigth yet.

I've got a tableview in Lineselection mode, on Click I like to get my date

fields as inputfields and net to the datefields a icon SAVE.

I fits and works but their is allways a carriage return between my inputfield

and the icon and I don't like this - anybody know how to solute??

Many thanks Matthias

Coding:

GET_COLUMN_DEFINITIONS:

  append initial line to p_column_definitions assigning add( element = endda_save ).

        p_replacement_bee = endda_bee.

      endif.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Matthias,

I've got problem same as you had.

I've some difficulty during the definitions of type of endda, endda_save and endda_bee.

It is correct :

DATA: endda TYPE REF TO cl_htmlb_inputfield.

DATA: endda_save TYPE REF TO cl_htmlb_image.

DATA: endda_bee TYPE REF TO cl_bsp_bee_table.

?

I've tried with theese but it doesn't work.

Many thanks,

Luca

Former Member
0 Kudos

Ops,

I forgot the :

CREATE OBJECT endda .

CREATE OBJECT endda_save .

CREATE OBJECT endda_bee.

Now it is all ok.

Only small problem on showhelp dispay (empty popup without any calendar)

Thanks a lot,

Luca

former_member181879
Active Contributor
0 Kudos

Hallo Matthias,

"solute"? Not in any dictionary I checked. Maybe "solve"? Puzzled. But I suspect I know what your question is.

If you look at the source code of the HTML you will see about what happens. You can also build a simple BSP page with inputfield (must be of type date with showHelp!) plus the image. It has nothing to do with iterator.

When the inputField is rendered, it is usually rendered as

. However, once you request showHelp, then we have to place that nice little icon next to the inputField. And this is done with a sequence:

  



Problem is that in HTML is a block sequence, and browser will always do a break after this HTML element. (You can check this in that very good HTML book you have on your table, at about the place where I have my dictionary.)

So now the browser "breaks" (moves to new line) after our sequence, and then your image lands effectively below inputField.

How to solve? You must render out an additional to put all of that stuff onto one line.

Prototype code (I assume you are using cl_bsp_bee_table):

  endda_bee->add_html( html = '

' level = 1 ).
  endda_bee->add( element = endda level = 1 ).
  endda_bee->add_html( html = '

' level = 1 ).
  endda_bee->add( element = endda_save level = 1 ).
  endda_bee->add_html( html = '

' level = 1 ).

You could consider to add border, cell padding and spacing, etc to the

sequence.

Would recommend the level parameter as well, even if optional. One day it might be really needed to get formatting correct (when default of 1 is not the correct value).

brian

Former Member
0 Kudos

Hi Brian,

many thanks for your help and your first lesson in using correct english

But what about the HTML Book I have on my table did I missing something??

Until next question Matthias

former_member181879
Active Contributor
0 Kudos

Hallo Matthias,

You are welcome. The English you should not take to seriously. It is also about the 3rd language I learned. Usually I am able to pick up small mistakes in sentences, and from knowing something about the writing (mother tongue, country, etc) can mentally correct the text while reading. Your text left me puzzled.

But the HTML/HTTP book is more serious. A deep knowledge always comes from reading. Unfortunately I have no real excellent book to recommend (I must admit I always google for answers), but still believe that for background reading an excellent book is the only way to go. Maybe you find a book to recommend!

until the next answer, brian