Skip to Content

Change Inputfield to not editable

I want to change the status from a columnfield to not editable.

IF m_maut_row_ref->flag_ok = 'X'.

p_replacement_bee = cl_htmlb_tableviewcolumn=>factory(

columnname = 'MAUT_GEB'

edit = 'FALSE' ).

ENDIF.

but when i do this i get a white field not a grey with the value.

anyone can help ?

thx

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 11, 2005 at 08:52 AM

    Hi Marcel,

    you want to disable the inputfield, but in fact you are just setting a parameter for the tableview column.

    The "edit" parameter for the column just controls the ability of this column whether its content should be editable or not, BUT just in case the whole table row is set to edit_mode (note the parameter P_EDIT_MODE for the method render_cell_start, in case you are using an iterator).

    What you want to do is - according to your problem description - to display a disabled inputfield in the column. To do so you should get familiar with tableview iterators where you can control rendering of the whole tableview, its rows, cells and contents.

    See these weblogs for iterator info:

    <a href="/people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators:///people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator

    <a href="/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator:///people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator

    Add a comment
    10|10000 characters needed characters exceeded

    • <i>The request->get_form_field( name ) don't work on this server.

      i had debugged the methode get_form_field. I get an error number. M_LAST_ERROR = 20.</i>

      We very (very!) seldomly experience errors at the level of the HTTP request. In this case, I would seriously recommend OSS message, queue BC-CST-IC.

      brian

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.