cancel
Showing results for 
Search instead for 
Did you mean: 

How to set a view in display mode??

Former Member
0 Kudos

Hi,

I have created a new view in overview page of BT111H_OPPT.

This view is of table type and associated with value node .

I am able to display contents of table on UI but they are in editable mode.

I need them in display mode .

How to achieve this functionlaity??

Any suggestions will be helpful.

thanks

kanika

Accepted Solutions (0)

Answers (6)

Answers (6)

0 Kudos

I think the simplest way is to use method reset of the context node class.

You can easily implement such a line in the DO_PREPARE_OUTPUT method:

me->view_group_context->reset( ).


Regards
Lukasz

Former Member
0 Kudos

Hi Kanika,

There are 2 ways:

In the configuration of your view you can set the fields as display mode.

In the method get_i* of your atributtes you can disable the field too.

I think the better solution is using the configuration.

Best regards,

Caíque Escaler

Former Member
0 Kudos

Hi kanika,

I haven't come across any method in UI to make a view in diplay mode,but there are methods to make a view editable.

Since you say your view is a table view, all the table view context nodes have CL_BSP_WD_CONTEXT_NODE_TV as super class. You can redefine method GET_I_T_TABLE and make RV_DISABLED = X irrespective of column or row index. This will disable all the rows and columns at one go.

This is easier than disabling attribute by attribute.You can test by making RV_DISABLED = X in debugging.

Regards,

Masood Imrani S.

CarstenKasper
Active Contributor
0 Kudos

When you are using the CHTMLB:CONFIGTABLE tag to display your table, you can simple set the displaymode attribute to TRUE.

cheers Carsten

Former Member
0 Kudos

Hi...

You can try setting the variable <view_area>-display_mode in the call_view of the method in the view implementation class after checking if the view is the one added by you.

Hope this helps...

padma_guda
Participant
0 Kudos

Hi Kanika,

For each attribute of the view in the value node, in the get_i method, set the parameter

rv_disabled = 'TRUE'.

This should solve your problem.

Regards,

Padma