cancel
Showing results for 
Search instead for 
Did you mean: 

Create DDLB

Former Member
0 Kudos

Hi everyone,

Do you have a list of steps to create a DDLB in Web UI screen?

Thanks in advance

Dave

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dave,

If you want to implement a DDLB for a field in Web UI, you basically need 3 steps:

1. Implement GET_P method of field to specify field as DDLB (picklist) with following code:

CASE iv_property.

WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.

rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.

ENDCASE.

2. Create new Class Attribute in Context Node Implementation Class:

GR_DDLB (instance attribute, private) TYPE REF TO CL_CRM_UIU_DDLB

3. Implement GET_V method of field to populate the DDLB:

E.g. DATA: lt_ddlb TYPE bsp_wd_dropdown_table,

ls_ddlb TYPE bsp_wd_dropdown_line.

IF gr_ddlb IS NOT BOUND.

CREATE OBJECT gr_ddlb EXPORTING iv_source_type = 'T'. "(T stands for Table)

" FIll Table lt_ddlb with key and value fields that you want in DDLB

...

gr_ddlb->set_selection_table( lt_ddlb ).

ENDIF.

rv_valuehelp_descriptor = gr_ddlb.

Kind regards,

Carl

Edited by: Carl Boden on Feb 28, 2011 2:12 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If you want to add new fields to Web UI, please read this article:

/people/vikash.krishna/blog/2009/07/14/crm-70-how-to--4-adding-custom-fields-with-the-new-application-enhancement-tool-aet

Hope this helps.

Regards,

Bhushan