on 02-26-2009 11:29 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you are using the CHTMLB:CONFIGTABLE tag to display your table, you can simple set the displaymode attribute to TRUE.
cheers Carsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.