on 04-02-2009 10:20 AM
Hi
I have a requirement where in i have to change the type of a standard field. It is a field with F4 help. My requirement is to change that field to a free text (input field). I have tried commenting the code in the get_p and get_v methods of the attribute. Doing this changes the field to a dropdown field with values in the F4 help now in the dropdown. i have also tried changing the code in Get_P method of the attribute. It is still not working. Can anyone help and guide me in doing that.
Thanks and Regards,
Radhika Chuttani
Hi,
This issue has been solved. The rv_valuehelp descriptor for that attribute was being retreived from the code written in the method get_v_s_struct of that context node. It had to be restricted there.
Thanks and Regards,
Radhika Chuttani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The propertt comes as input only if i specify in get_P the attribute as 'field_type_text', but in this case, it does not display the box for the field.
Thanks and Regards,
Radhiika Chuttani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I guess we cannot change the type in UI configuration of that field. If we can, how do we do that, beacuse i find that property diabled for the field.
Thanks and Regards,
Radhika Chuttani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This still brings am F4 help for that field.
Thanks and Regards,
Radhika Chuttani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is the F4 help working ?
See, we give the outbound plug to the Value Help Descriptor in V method. If we are not writing any code there, the F4 will not work and F4 should not come either.
Now, in the P method we make it as Input field and UI Config too.
If this is done, it should work. I am not sure from where else is it picking the field property.
Hi
The type of the field is picklist if i chk in the ui config. if i change it in the get_p method to 'field_type_text' , the the type changes to input field but the ui does not display anything for the corresponding field , just the label.
Thanks and Regards,
Radhika Chuttani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I tried that even. Doing this changes the field to a dropdown field.
Thanks and Regards,
Radhika Chuttani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Masood,
Thanks for the reply. The code which u have written was there initially in the get_P method.
I tried using 'field_type_text' also. This also does not work.
Thanks and Regards,
Radhika Chuttani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Redefine the Get_V method and write nothing there !
Redefine the Get_P method and paste this code.
CASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_input.
ENDCASE.
The Property for F4 and normal field will be same cl_bsp_dlc_view_descriptor=>field_type_input.
The only difference is for F4 help, GET_V method has some code to call the Outbound Plug.
If you want a DDLB.
CASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.
ENDCASE.
Cheers,
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.
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.