on 2015 Apr 29 9:06 PM
Hi,
I have a task to make Location field mandatory if the importance is high in Appointment.
For this i enhanced BT126H_APPT/ApptDetails in the context node Btactivityh GET_P_ACT_LOCATION i did the coding.It is working fine.
Now the problem is
1) Importance->high Location->mandt Fine.
2)Importance->low Location->Not mandt. Here mandatory mark(*) is getting is removed but field is getting highlighted with red color.
I have attached screen shot
Can any body please tell me how can i handle this?
Thanks,
Hari.
Redifine DO_FINISH_INPUT method of the view(IMPL) class and write following lines of code in that method.
DATA : lv_message_service TYPE REF TO cl_bsp_wd_message_service.
global_messages->delete_message( condition =cl_bsp_wd_view_controller=>co_mandatory_field_empty ).
lv_message_service = me->view_manager->get_message_service( ).
CALL METHOD lv_message_service->remove_fields_state
EXPORTING
iv_page_id = me->component_id.
Regards,
Ritesh Chetwani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hari,
Try debugging the GET_EMPTY_MANDATORY_FIELDS method of IMPL class. It returns a table, if the table has your field, try redefining the method, call the super and delete the entry based on your condition.
Thanks,
Pratheek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hari,
Please provide your code what you have wrote in get_p method and one more thing open the component and view go to config tab click on technical property of that field check whether the field is checked with the display mandatory property or not if the field is checked then unchecked that property.
Thanks & Regards,
Srinivas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivas,
Thanks for reply.In get p method i have written code to make Location mandatory according to the importance.It is working fine.
And Location is not mandatory in configuration.In run time if the importance is high Location will show mandatory mark.
If the Importance is not High mandt mark is getting removed.
But the problem is in previous it is mandatory(now not) so field is getting highlighted with red color .Please check the screen shot of original post.
Thanks,
Hari.
User | Count |
---|---|
25 | |
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.