<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Create combo box in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636497#M1091623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I create a combo box into the selection screen of a program, like the combo box where someone excecute the transactions????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2008 21:49:38 GMT</pubDate>
    <dc:creator>michael_teran</dc:creator>
    <dc:date>2008-10-16T21:49:38Z</dc:date>
    <item>
      <title>Create combo box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636497#M1091623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I create a combo box into the selection screen of a program, like the combo box where someone excecute the transactions????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 21:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636497#M1091623</guid>
      <dc:creator>michael_teran</dc:creator>
      <dc:date>2008-10-16T21:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636498#M1091624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create in the Screen Layout from SE51. Create a input field. Double click on it to go to its attributes window. You see the name 'Dropdown' on it. Select list box there. Rest of it we need to code in the program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 21:55:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636498#M1091624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T21:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636499#M1091625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. But I want to create that on the selection screen. How can I do that?????????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 22:42:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636499#M1091625</guid>
      <dc:creator>michael_teran</dc:creator>
      <dc:date>2008-10-16T22:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636500#M1091626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you can declare in the selection screen parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    parameters: p_param1 type &amp;lt;data type&amp;gt;&lt;/P&gt;&lt;P&gt;                         as listbox visible length &amp;lt;len&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 23:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636500#M1091626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T23:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636501#M1091627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reference Here!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : VRM. &lt;/P&gt;&lt;P&gt;  DATA : TEL_VALUE TYPE VRM_VALUES WITH HEADER LINE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH : TEL_VALUE.&lt;/P&gt;&lt;P&gt;**********************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DATA BINDING 부분&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;**********************************************************&lt;/P&gt;&lt;P&gt;"  SELECT BUKRS BUKRS INTO (TEL_VALUE-KEY, TEL_VALUE-TEXT)"&lt;/P&gt;&lt;P&gt;    FROM BKPF.&lt;/P&gt;&lt;P&gt;    APPEND TEL_VALUE.&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;*LISTBOX FUNCTION&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;  CALL FUNCTION 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      ID                    = 'TXTTEL1'&lt;/P&gt;&lt;P&gt;      VALUES                = TEL_VALUE[] &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ID_ILLEGAL_NAME       = 1 &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                = 2 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            . &lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 00:43:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636501#M1091627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T00:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636502#M1091628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;search with key word &lt;STRONG&gt;VRM_SET_VALUES&lt;/STRONG&gt; in the forum for more sample codes and how to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 03:02:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636502#M1091628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T03:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636503#M1091629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A combo box is a control that maintains a list of objects but displays one at a time to the user. A regular combo box is equipped with a rectangular text area and a down-pointing arrow. To use the combo box, the user clicks the arrow, which displays its list of items. Then the user clicks one item from the list and the list retracts like a plastic. The item the user would have selected would display in the text box side of the control. To perform a different selection, the user uses the same process. Practically, there are different variations of the combo box control depending on the programmer's goal. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a combo box in MS .Net application, you can use the ComboBox class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating a combo box might not be the most difficult thing to do but when the user has performed a different selection, you will usually need to know what item the user selected. A combo box maintains its list of items by their text or their indexes. You can use the same ability to retrieve either the text or the index of the item that was selected.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start Microsoft Visual Studio .NET &lt;/P&gt;&lt;P&gt;On the Start Page, click New Project (alternatively, on the main menu, you can click File -&amp;gt; New -&amp;gt; Project...) &lt;/P&gt;&lt;P&gt;On the New Project dialog box, in the Project Types tree list, click Visual C++ Projects &lt;/P&gt;&lt;P&gt;In the Templates list, click Managed C++ Empty Project &lt;/P&gt;&lt;P&gt;In the Name edit box, replace the &amp;lt;Enter name&amp;gt; content with ComboBox Example &lt;/P&gt;&lt;P&gt;In the Location combo box, accept the suggestion or type your own. If you don't have any, type C:\Programs\MSVC.NET &lt;/P&gt;&lt;P&gt;Click OK &lt;/P&gt;&lt;P&gt;On the main menu, click Project -&amp;gt; Add New Item... &lt;/P&gt;&lt;P&gt;In the Add New Item dialog box, in the Templates list, click C++ File &lt;/P&gt;&lt;P&gt;In the Name box, replace &amp;lt;Enter name&amp;gt; with Main and click OK &lt;/P&gt;&lt;P&gt;Replace the contents of the empty file with the following:&lt;/P&gt;&lt;P&gt;  #using &amp;lt;mscorlib.dll&amp;gt;&lt;/P&gt;&lt;P&gt;#using &amp;lt;System.dll&amp;gt;&lt;/P&gt;&lt;P&gt;#using &amp;lt;System.Drawing.dll&amp;gt;&lt;/P&gt;&lt;P&gt;#using &amp;lt;System.Windows.Forms.dll&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using namespace System;&lt;/P&gt;&lt;P&gt;using namespace System::Drawing;&lt;/P&gt;&lt;P&gt;using namespace System::Windows::Forms;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__gc class SimpleForm : public Form&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="public"&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SimpleForm::SimpleForm()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;	// The caption of the form&lt;/P&gt;&lt;P&gt;	this-&amp;gt;Text = S"Combo Box Example";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	// Use the instance of the combo box to initialize the class&lt;/P&gt;&lt;P&gt;	cboCountries = new ComboBox;&lt;/P&gt;&lt;P&gt;	// Specify where to position the combo box&lt;/P&gt;&lt;P&gt;	cboCountries-&amp;gt;Location = Point(16, 16);&lt;/P&gt;&lt;P&gt;	// Add each item to the combo box&lt;/P&gt;&lt;P&gt;	cboCountries-&amp;gt;Items-&amp;gt;Add(S"Gabon");&lt;/P&gt;&lt;P&gt;	cboCountries-&amp;gt;Items-&amp;gt;Add(S"Senegal");&lt;/P&gt;&lt;P&gt;	cboCountries-&amp;gt;Items-&amp;gt;Add(S"Botswana");&lt;/P&gt;&lt;P&gt;	cboCountries-&amp;gt;Items-&amp;gt;Add(S"Zambia");&lt;/P&gt;&lt;P&gt;	cboCountries-&amp;gt;Items-&amp;gt;Add(S"Lesotho");&lt;/P&gt;&lt;P&gt;	// Specify which item to display when the combo box comes up&lt;/P&gt;&lt;P&gt;	cboCountries-&amp;gt;Text = S"Senegal";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	// After creating the control, add it to the&lt;/P&gt;&lt;P&gt;	// group of controls of the form&lt;/P&gt;&lt;P&gt;	this-&amp;gt;Controls-&amp;gt;Add(cboCountries);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int __stdcall WinMain()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;	SimpleForm *SF = new SimpleForm();&lt;/P&gt;&lt;P&gt;	Application::Run(SF);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test the application and return to MSVC &lt;/P&gt;&lt;P&gt;To retrieve the text of the item that was selected and display it in a label, change the source file as follows:&lt;/P&gt;&lt;P&gt;  #using &amp;lt;mscorlib.dll&amp;gt;&lt;/P&gt;&lt;P&gt;#using &amp;lt;System.dll&amp;gt;&lt;/P&gt;&lt;P&gt;#using &amp;lt;System.Drawing.dll&amp;gt;&lt;/P&gt;&lt;P&gt;#using &amp;lt;System.Windows.Forms.dll&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using namespace System;&lt;/P&gt;&lt;P&gt;using namespace System::Drawing;&lt;/P&gt;&lt;P&gt;using namespace System::Windows::Forms;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__gc class SimpleForm : public Form&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="public"&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SimpleForm::SimpleForm()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;	// The caption of the form&lt;/P&gt;&lt;P&gt;	this-&amp;gt;Text = S"Combo Box Example";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	// Use the instance of the combo box to initialize the class&lt;/P&gt;&lt;P&gt;	cboCountries = new ComboBox;&lt;/P&gt;&lt;P&gt;	// Specify where to position the combo box&lt;/P&gt;&lt;P&gt;	cboCountries-&amp;gt;Location = Point(16, 16);&lt;/P&gt;&lt;P&gt;	// Add each item to the combo box&lt;/P&gt;&lt;P&gt;	cboCountries-&amp;gt;Items-&amp;gt;Add(S"Gabon");&lt;/P&gt;&lt;P&gt;	cboCountries-&amp;gt;Items-&amp;gt;Add(S"Senegal");&lt;/P&gt;&lt;P&gt;	cboCountries-&amp;gt;Items-&amp;gt;Add(S"Botswana");&lt;/P&gt;&lt;P&gt;	cboCountries-&amp;gt;Items-&amp;gt;Add(S"Zambia");&lt;/P&gt;&lt;P&gt;	cboCountries-&amp;gt;Items-&amp;gt;Add(S"Lesotho");&lt;/P&gt;&lt;P&gt;	// Specify which item to display when the combo box comes up&lt;/P&gt;&lt;P&gt;	cboCountries-&amp;gt;Text = S"Senegal";&lt;/P&gt;&lt;P&gt;	cboCountries-&amp;gt;add_SelectedIndexChanged(new EventHandler(this, SelectionChanged));&lt;/P&gt;&lt;P&gt;	// After creating the control, add it to the&lt;/P&gt;&lt;P&gt;	// group of controls of the form&lt;/P&gt;&lt;P&gt;	this-&amp;gt;Controls-&amp;gt;Add(cboCountries);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	lblItemSelected = new Label;&lt;/P&gt;&lt;P&gt;	lblItemSelected-&amp;gt;Location = Point(16, 48);&lt;/P&gt;&lt;P&gt;	lblItemSelected-&amp;gt;AutoSize = true;&lt;/P&gt;&lt;P&gt;	lblItemSelected-&amp;gt;Text = S"Senegal";&lt;/P&gt;&lt;P&gt;	this-&amp;gt;Controls-&amp;gt;Add(lblItemSelected);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void SimpleForm::SelectionChanged(Object *Sender, EventArgs *Args)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;	lblItemSelected-&amp;gt;Text = cboCountries-&amp;gt;Text;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int __stdcall WinMain()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;	SimpleForm *SF = new SimpleForm();&lt;/P&gt;&lt;P&gt;	Application::Run(SF);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test the application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2008 15:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636503#M1091629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-18T15:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create combo box</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636504#M1091630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new in SAP Portal, I want to create a combo box to add links in it, and I would like how to do it since the creation of the object till add values within of it&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 20:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-combo-box/m-p/4636504#M1091630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T20:02:39Z</dc:date>
    </item>
  </channel>
</rss>

