on 08-08-2012 3:32 PM
Hi Experts,
I am enhancing the webdynpro component DPR_DET_DATA_TASK_O with two checxboxes. I added two fields in CI_DPR_TASK for that and binded these to the atrribute in webdynpro component with checkboxes.
I need to save the value of these checkboxes (If checked then 'X') into the table DPR_TASK. But the value is not getting updated into the table DPR_TASK.
I am setting the value of check box like :
lo_el_viewdata
->set_attribute().
Please suggect me the solution to update the table with the value of checboxes.
Thanks ,
Akhilesh Bhagat
Hi Akhilesh
I have not done this for quite some time. I recall that you have to do some additional enhancements in the component controller. See note 1471647.
The symptom in the note does not match exactly your description. But I recall that it might also your problem (and if not, it will be necessary anyway to get the functionality properly working.
Best regards
Thorsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Akhilesh,
best reagrds
Christoph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christoph / Thorsten,
Thanks , Now the valve is updating into tha table DPR_TASK.
But now I am facingthe another problem.
Based on check box the value is updaing the table but when I closing project and then again reopening this the check boxes are unchecked????
Checkbox should be checked based on the table DPR_TASK.
If value is 'X' in the table then the check box should be checked in the Cpro subtask lavel.
Please help me.
Regards,
Akhilesh Bhagat.
Hi Akhilesh,
for the first problem (checkbox unchecked): I don't have any immediate suggestion. If you have updated the mapping etc, it should work.
for the second problem: Do I understand it correctly that you want to set the flag for all subtasks of a given task automatically (and also revoke it)?
For that requirement you could create a BAdi implementation for DPR_EVENTS and react on the event that a task has been changed. In the event handler for the event you can determine all subtasks (and the subtasks for those again) and set the flag. Disadvantage is that you do not have the information what was changed. So you might have a bit of "overhead". That should not be a problem for small projects. But you should nevertheless keep it in mind (especially if the projects are not small, but big). I guess you will find some way to avoid the "overhead", but not straight forward. The other idea would be to "inherit" the flag only during save in an implementation of a subsystem (see CL_DPR_DEMO_SUBSYSTEM). But then the user would not immediately see the change on the UI.
Best regards
Thorsten
User | Count |
---|---|
9 | |
7 | |
3 | |
2 | |
2 | |
2 | |
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.