cancel
Showing results for 
Search instead for 
Did you mean: 

How to display form in display mode only

naimkhans_babi
Active Participant
0 Kudos

Dear firends...

My BSP applications's page which is form actually is opend in change mode by default, I want to initialize this page in display mode as default. please help me to know how could carry out this task. Any suggestion, code, article will be great help of mine.

thanking you,

Accepted Solutions (1)

Accepted Solutions (1)

guillaume-hrc
Active Contributor
0 Kudos

Hi,

Are you using tableView ?

Are you using an Iterator ?

In which design are you working ?

Hint : try to set 'X' to the parameter p_isreadonly if using an Iterator.

Best regards,

Guillaume

naimkhans_babi
Active Participant
0 Kudos

Dear Guillaume Garcia,

thanx for your reply, I am having text fields,

regards,

Naim.

guillaume-hrc
Active Contributor
0 Kudos

I think you mean HTMLB textEdit. Is that right ?

If it's the case, you have the <i>disabled</i> attribute to set to 'TRUE' in order to prevent any input by the user.

Here is the example adapted from SBSPEXT_HTMLB, page TextEdit.bsp

<htmlb:textEdit  id       = "txtEdit"
                 text     = "The quick brown fox jumped over the lazy dog."
                 disabled = "true" />

Best regards,

Guillaume

Former Member
0 Kudos

Or you do for all your htmlb elements

<%

data disabled type string value 'TRUE'.

if edit_mode ne abap_true.

disabled = 'FALSE'.

endif.

%>

<htmlb:inputField id = "id"

value = "value"

disabled = "<%= disabled %>" />

Regards.

Answers (0)