on 10-02-2012 9:34 AM
Hello Experts,
I am using OVP component. In my application i have a List GUIBB. In this list GUIBB i have column that is input box.
Now new requirement came that is column should be Input Box when i am in change or Edit mode. Once i click save button my GUIBB becomes Read Only. At this time my column should become Link To Action field in the List. And on click of this some action should be fired.
Is this possible. If so How?
Please Reply.
Regards,
Ajeet Pratap Singh
Hi Ajeet,
This is possible to change.
In List UIBB we know method GET_DATA for this method we have some Attributes for your Scenario
you need to use the parameter IT_SELECTED_FIELDS type FPMGB_T_SELECTED_FIELDS.
As you'll have many fields in LIST uibb.
try to read the particular field from IT_SELECTED_FIELDS based on field example 'KUNNR' using READ statement in abap.
write this code on SAVE action.
METHOD if_fpm_guibb_tree~get_data.
data ls_SELECTED_FIELD type FPMGB_S_SELECTED_FIELDS.
ls_SELECTED_FIELD-NAME = 'KUNNR'.
ls_SELECTED_FIELD-DISPLAY_TYPE = 'LA'. " Before save it was IN i.e, inputfield.
append ls_SELECTED_FIELD to IT_SELECTED_FIELDS.
EV_FIELD_USAGE_CHANGED = abap_true.
CT_FIELD_USAGE = abap_true.
Endmethod.
This will help you.
Regards
Madhukiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ajeet,
I have not checked that its an importing parameter.
But according to me we cant change a UI column from button to input field or any either in WDA or in FPM.
There is one way to achieve this.
Create a two columns one is INPUTFIELD and LINKTOACTION.
When your in change or edit mode make INPUTFIELD column as visible and LINKTOACTION column as invisible.
when you click on SAVE make INPUTFIELD column as invisible and LINKTOACTION column as visible.
This will help you.
Regards
Madhukiran.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.