Skip to Content
author's profile photo Former Member
Former Member

Dropdown boxes

Hi, as newbie to the CRM Web, I have encountered with some challenges.

One of them is creating a dropdown box field.

The cookbook describes how to create a dropdown box for an existing field, but I need to create a dropdown box for a new context attribute (when no custom controller is available), what seems to little problematic..

May you please describe the full procedure of adding dropdown box to new context attribute (includes the creation of custom controller, if necessary)?

Thanks in advance,

Shai

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 22, 2008 at 08:39 AM

    Hello Anupam,

    The consultants cookbook describes creating of dropdown box using the create attribute wizard (while checking the "for dropdown box" checkbox).

    One of the wizard steps requires a custom controller. However, I don't have any. Can you describe the steps of creating a suitable custom controller?

    Do you suggest writing the code directly in the html instead of using custom controller, anyway?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2008 at 09:43 AM

    Shalom Shai,

    There is an example code at BuPaDetailB2B view.

    Goto HTML in this view and look how are SAP impliment an Address Version dropdownbox.

    All you have to do is create and fill a table that has atleast 2 fields key and description and assign this table to Drodownbox->table attribute.

    Good Luck

    Eli Steklov

    Please Reward Points if it Helped 😊

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2008 at 03:09 PM

    Hi,

    In the htm code of the view, redefine the field as dropdown field.

    ex: <crmic:dropdownListBox id = "Your field"

    and for the

    attribute, table = "<%= lt_fieldvalues %>"

    you can write the code for lt_fieldvalues even in htm code..

    hope that helps..

    Thanks,

    Sreekanth

    Edited by: Sreekantha Gorla on Jan 17, 2008 4:09 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2008 at 02:02 PM

    Thank you both.

    However, you have described a method of filling the dropdown values table manually (Using select query and local internal table definition).

    I have understood that there is a standard way of generating dropdown boxes automatically out of BOL attribute. Is it possible?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello,

      The drop down list box field will refer to a BOl attribute.That means a field of a BOL entity will appear as a DDLB in UI.

      To make that field appear in the UI as DDLB you have to follow some steps.In the consultants cookbook you will find the detail steps on how to make a field DDLB.

      And when you need to populate the DDLB with you own values then you have to write some select or call some function modules or method of some class which will fetch you the values which you want to be there in the DDLB.

      In short you can create a DDLB from a BOL attribute(make a BOL attribute appear as a DDLB in the UI) but to populate the DDLB with values at runtime you need to write some select or call some other class or FM.

      I hope this is helpful.

      Kindly reward points if you fidn this info helpful.

      Thanks & Regards

      Anupam

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.