on 01-28-2015 8:04 AM
Hello Friends,
We have developed a custom view which is having a field. When we are changing the value of the field the SET method of that attribute is not getting triggered.
When i have checked the attribute is missing in FORM_FIELDS of DO_HANDLE_DATA method. On further debugging the attribute is missing in the method DISPATCH_INPUT (CL_BSP_CONTROLLER2) in lt_fields.
Kindly let me know how to proceed further/suggestions.
Regards,
Ravi Teja
Hi Ravi,
Keep debugger in the context node method SET_S_STRUCT and check when this attribute set method is called any exception is raised?
Regards,
Deepika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Deepika,
Actually above method is getting triggered after DO_HANDLE_DATA. We are missing the attribute in that method itself. So the code is not getting triggered for the attribute which is having issue. I hope that is correct.
As per my understanding from the HTTP request itself the attribute is missing. But I am not able find the place where it is happening.
One more thing when i press the 'Enter' then "Save" the value is getting saved.
Thanks,
Ravi
Hi Deepika,
Actually it should get saved which is not happening.
On further debugging the field is getting missed in the below method
CL_HTTP_REQUEST~IF_HTTP_ENTITY~GET_FORM_FIELDS_CS.
system-call ict
did
ihttp_scid_get_form_fields_cs
parameters
m_c_msg " > c handle
fields " > form fields table
m_last_error. " < return code
No further F5 also .
Any other work around guys.
Thanks,
Ravi
Hi Ravi,
Put a breakpoint in DISPATCH_INPUT & click on save.
Check m_subcontrollers variable in this method, changed field should be coming in <controller>-fields of your component controller.
If this is not coming then set method won't get called.
Let me know in case of any help.
Thanks & Regards
Richa
Hello Richa,
That thing i found from the debugging. I mentioned same in the above comments.
It is not coming under subcontroller. So it is not there in DO_HANDLE_DATA and SET method.
I want to know how these fields are getting filled. Further it is getting filled inside DISPATCH method at
CL_HTTP_REQUEST~IF_HTTP_ENTITY~GET_FORM_FIELDS_CS.
system-call ict
did
ihttp_scid_get_form_fields_cs
parameters
m_c_msg " > c handle
fields " > form fields table
m_last_error. " < return code
No further F5 also .
Any suggestion to fulfill this.
Regards,
Ravi
Hi,
Goto class 'CL_HTTP_REQUEST' and put a breakpoint in method 'IF_HTTP_ENTITY~GET_FORM_FIELDS_CS'.
This method gets called from DISPATCH_INPUT. Check whether the following code gives the changes fields in 'FIELDS' attribute -
system-call ict
did
ihttp_scid_get_form_fields_cs
parameters
m_c_msg " > c handle
fields " > form fields table
m_last_error.
Thanks & Regards
Richa
User | Count |
---|---|
4 | |
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.