cancel
Showing results for 
Search instead for 
Did you mean: 

Component Usage in BT108H_LEA

Former Member
0 Kudos
210

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Any suggestions...