on 2012 Oct 10 1:40 AM
Hi,
In BT108H_LEA component, I want to add the assignment block of Planned Activites like we have in Opportunity screen. Planned activities is part of BTDOCFLOW. To achieve this, I did the following steps;
1- Created a Component Usage of BTDOCFLOW in BT108H_LEA.
2- Created Plugs
3- Added main window view to view set
4- In WD_USAGE_INITIALIZE method, written the following code
method WD_USAGE_INITIALIZE.
CALL METHOD SUPER->WD_USAGE_INITIALIZE
EXPORTING
IV_USAGE = IV_USAGE.
if iv_usage->usage_name EQ 'CUBTDocFlow_PA'.
iv_usage->bind_context_node( iv_controller_type = cl_bsp_wd_controller=>co_type_component
iv_target_node_name = 'BTADMINH'
iv_node_2_bind = 'PARENTNODE' ).
ENDIF.
endmethod.
5- Added the assignment block from available to displayed in configuration
Now when I open the Lead in Web UI, I can see the newly created assignment block, but it does not contain the activities data. I have created couple of activites for this lead which are coming in transcation history assignment block, but not in the one which I have created.
Could you please advise me if I am missing any step. Attached is the screenshot of Lead in Web UI.
Request clarification before answering.
Hi Sal,
The binding of PARENTNODE to BTADMINH would not be enough , you have to bind also context node BTDOCFLOW and ATTR . If you observe the Opportunity component , wd_usage_initialize method you could see the loading of custom controller BT111H_OPPT/CUBTDocFlowCuCo which will create context node BTDOCFLOWPA ( based on relation BTDocFlowPlannedAcivities with btdocflowset , observe method on_new focus ) and is bonded to Interface controller directly there itself. Similarly DOCFLOWATTRPA is bonded to ATTR context node of interface controller .
You should also try following the same approach . Create a custom controller with btadminh( bind it to component controller) , btdocflowset, btdocflowpa( bind it to component usage interface controlller context btdocflow) ,btdocflowattrpa ( bind it to component usage interface controller context ATTR). Also make sure you use same relations and methods , be careful they have used bypass buffer mode in on_new_focus of BTDOCFLOWPA. Use the same code which is present in wd_usage_initialize of bt111h_oppt.
Regards,
Nithish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sal,
try to check if you have given all the names properly, what i mean is names of the plugs are case sensitive, you have to maintain the naming conventions properly,
if everything is right try to debug the WD_USAGE_INITIALIZE () method whether the data is flowing or not.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any suggestions...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
19 | |
17 | |
3 | |
2 | |
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.