Another ComboBox implementation, #1

I'd like to propose my implementation of ComboBoxControl to those
who need to show textual/meaningful representation of somehow
coded
database column. In my case, column contains reference to row
identifier in another table. This is usual foreign-key
constrained
relation.
Please don't try to use the control 'as is', because in
goDataSource()
method it contains code for my environment only (just comment
it).
Those who have experience in Oracle PowerObjects will find
similar
properties and methods with OPO's PopupList control. I think it
was
enough convinient.
I'll be glad to get any suggestions to improve the code.
(Sorry for size of the message - class is 17K long.)
The following code shows how to use this class:
MyComboBox cbxCounName = new MyComboBox();
cbxCounName.set_DataSource(Res.A06_A1COUNT_SCHEMA+"."+Res.A06_A1C
OUNT_TABLE);
cbxCounName.set_Translation("ID AS \"ID\", NAME AS
\"ITEM\"");
cbxCounName.set_OrderBy("ORDER BY 2");
cbxCounName.set_GoDataSrcClass("a06oltp.FrmA1Count");
cbxCounName.set_GoDataSrcInParMode(MyComboBox.GO_BY_NAME);
cbxCounName.set_Db( get_DbAccess() );
cbxCounName.updateList();
// The method myComboBox.setDataItemName() fires:
// -> myComboBox._sourceControl.setText()
// -> myComboBox._sourceControl_changedUpdate()
// -> myComboBox.setSelectedById()
// So, popup-lists for cbx must be initiated already.
cbxCounName.setDataItemName( rowsetFullName+"/COUNID" );
#2 follows >
null

Hi Sandy,
I'm sorry but I think that these general question on the implementation is maybe a bit to complex to handle it in this forum. From my point of view I would recommend you to get in contact with an experienced consulting organisation which will help you to setup your system according to your requirements.
Best regards,
Christoph

Similar Messages

  • Is mx4j-admb.jar required if using another JMX implementation?

    In Appendix F, the documentation states that neither mx4j-jmx.jar nor
    mx4j-tools.jar are required if using another JMX implementation. However,
    I'm wondering if mx4j-admb.jar also is not required if using another JMX
    implementation. Could someone clarify this?
    Thanks.
    ;ted

    Hi Ted,
    It depends on what version of Kodo you're using. Older versions (pre
    Kodo 3.2.0) do still require the mx4j-admb.jar. Newer than 3.2.0 do not
    require any mx4j-* jars to work with other JMX implementations.
    Thanks,
    Greg
    Ted M. Young wrote:
    In Appendix F, the documentation states that neither mx4j-jmx.jar nor
    mx4j-tools.jar are required if using another JMX implementation. However,
    I'm wondering if mx4j-admb.jar also is not required if using another JMX
    implementation. Could someone clarify this?
    Thanks.
    ;ted

  • Problem in popultating combobox based on input from another combobox

    i have there combo boxes when i select the first combobox ,based on the input given it must populate the second and based on the input in second combo box it must populate the third one.1->2->3.
    Actually i am having a javascript when i select the data in first combo box the information is sent to specified jsp page with parameter using onchange function and the second combo box is poplated based on the first but the third combo box in not populating based on the second.
    here is my code:
    jsp:
    <select name="recrClient" class="selectBox" id="recrClient" onchange="htmlData('BSTSRecuritmentContacts.jsp', 'client='+this.value);">
    javascript
    function stateChanged()
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    document.getElementById("contacts").innerHTML= xmlHttp.responseText;
    else
    //alert(xmlHttp.status);
    // Will populate data based on input
    function htmlData(url, qStr)
    if (url.length==0)
    document.getElementById("contacts").innerHTML="";
    return;
    xmlHttp=GetXmlHttpObject()
    if (xmlHttp==null)
    alert ("Browser does not support HTTP Request");
    return;
    if (url=="BSTSRecuritmentContacts.jsp")
    url=url+"?"+qStr;
    url=url+"&sid="+Math.random();
    xmlHttp.onreadystatechange=stateChanged;
    xmlHttp.open("GET",url,true) ;
    xmlHttp.send(null);
    if i use the same method populating the third combo box, this is not working
    please reply me and thanks in advance

    Hi there,
    What about this:
    Create a multicube with 0PA_C01 and 0PE_C01 and then you create one key figure with the total of employes (that comes from 0PA_C01) and another key figure with the total number of employes that had training (that comes from 0PE_C01) and finally you create a calculated key figure at query level that subtracts the first key figure by the second, i.e., the total number of employees - the employees that had training.
    Diogo.

  • Fill a combobox dynamically on selecting rom another combobox

    Hello,
    In my JSP, I hace 2 combo box, 1 with single selection (typeCmb) and 1 with multiple selction (itemsCmb).
    On selecting a item from typeCmb, I want to load contents of itemCmb. The contents of itemCmb will have to loaded dynamically. I can't get the concept to implement this. Can anyone help me how to achieve the goal. Both items belong to same form.
    Any help is appreciated.
    Thanks,

    Then what do I do. This is what I have coded :
       function selectionType() {
            document.sendform.listSelect.options.length = 0;
            var index = document.forms[0].emailtype.selectedIndex;  // Index of emailtype
            var data = document.forms[0].emailtype.options[index].value;    // Value of emailtype
            <%  String s="";
                int j = 0;    %>
            if (data == "TestMail") {
               size = <%=testUsers.size()%>;
               ai = 0;
               <%
                s = "";
                AdminUserBean ab = null;
                for (j=0; j < testUsers.size(); j++) {
                     ab = (AdminUserBean)testUsers.get(j);
                     s = ab.getUsername() + " : "  + ab.getEmail();
                %>
                    document.forms[0].listSelect.options[ai] = new Option("<%= s%>", "<%=ab.getEmail()%>");
                    ai = ai + 1;
                <%
                    ab = null;
                %>
            } else if(data == "CampaignMail") {
               size = <%=domains.size()%>;
               ai = 0;
               <%
                s="";
                for (j=0; j < domains.size(); j++) {
                    s = domains.get(j);
                %>
                    document.forms[0].listSelect.options[ai] = new Option("<%=s%>", "<%=s%>");
                    ai = ai + 1;
                <%
                %>
    <select onmouseout="window.status=''; return true;" onmouseover="window.status='Select Mail Type'; return true;" onchange="selectionType()" style="width: 270px; font-weight: bold;" name="emailtype">
         <option value="TestMail" selected="true">Test Mail</option>
         <option value="CampaignMail">Campaign Mail</option>
    </select>Edited by: TruptiD on Jul 29, 2010 1:43 AM

  • ComboBox inside another ComboBox

    Hi all
    I want to create some component having similar functionality as "Start" button in Windows i.e. combo box with another combo box inside but it can be located anywhere on the screen.
    Which component can I use??
    May be some code examples???
    Thanks,
    TTauruSS

    It can be PopupMenu or something else but I need to display it inside the frame not in the menu,
    e.g.
    fram.getContentPane().setLayout(null);
    JPopupMenu menu = new JPopupMenu("Menu");
    menu.add(new JMenuItem("First");
    menu.add(new JMenuItem("Second");
    menu.setBounds(100,100,100,30);
    frame.getContentPane().add(menu);
    This code places the menu at the top left corner and not according to the bounds set.
    Thanks,
    TTauruSS

  • Just another Tetris Implementation

    Again.... a tetris clone
    http://dagaenzele.tripod.com/files/tetris.zip
    Download the zip-file, extract it and start the jar-file with "java -jar tetris.jar"
    I only tested it on win2k and winxp. There might be a problem locating the images since i haven't fully implemented my "ressource-locator thing" yet.
    Feel free to have a look at the source code or modify the images. the design is still under construction
    If it works: just use the arrow-keys to navigate through the menu. there is no mouse support yet
    thanks for your reply

    (aka implementations :P) Is that the wrong word? English isn't my first language.
    Your clone is nice too.
    If you could make the mousepointer stop flickering it would be perfect :)
    no need for all those fancy graphics and fullscreen mode... mine is MUCH better, and its a applet too! lolsorry your link seems to be broken.

  • ComboBox issue

    So I am sure Jonathan groans when he sees my name pop up, but I found another ComboBox issue and I am looking for help finding a workaround.
    (I opened a JIRA - http://javafx-jira.kenai.com/browse/RT-27654)
    Seems that calling clearSelecion() on a ComboBox disallows selecting the same item that was selected when the clearSelection() was called. In my sample code, if you
    1) select 'a' - 'a' displays
    2) click reset button - 'a' disappears
    3) select 'a' - 'a' does NOT appear and it should
    The issue is major when the combobox only has a singe item
    package javafxapplication2;
    import java.net.URL;
    import java.util.ArrayList;
    import java.util.ResourceBundle;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.event.ActionEvent;
    import javafx.fxml.FXML;
    import javafx.fxml.Initializable;
    import javafx.scene.control.ComboBox;
    * @author user
    public class SampleController implements Initializable {
        @FXML
        private ComboBox<MyObject> cb;
            private ObservableList<MyObject> myList = FXCollections.observableList(new ArrayList<MyObject>());
        @FXML
        private void handleButtonAction(ActionEvent event) {
            cb.getSelectionModel().clearSelection();
        @Override
        public void initialize(URL url, ResourceBundle rb) {
            MyObject a = new MyObject("a", "A");
            MyObject b = new MyObject("b", "B");
            MyObject c = new MyObject("c", "C");
            myList.add(a);
            myList.add(b);
            myList.add(c);
            cb.setItems(myList);
        class MyObject {
            String key;
            String Value;
            public MyObject(String key, String Value) {
                this.key = key;
                this.Value = Value;
            @Override
            public String toString() {
                return key;
    <?xml version="1.0" encoding="UTF-8"?>
    <?import java.lang.*?>
    <?import java.util.*?>
    <?import javafx.collections.*?>
    <?import javafx.scene.*?>
    <?import javafx.scene.control.*?>
    <?import javafx.scene.layout.*?>
    <AnchorPane id="AnchorPane" prefHeight="200.0" prefWidth="320.0" xmlns:fx="http://javafx.com/fxml" fx:controller="javafxapplication2.SampleController">
      <children>
        <ComboBox fx:id="cb" layoutX="82.0" layoutY="78.0" prefWidth="160.0">
          <items>
          </items>
        </ComboBox>
        <Button onAction="#handleButtonAction" layoutX="130.0" layoutY="137.0" mnemonicParsing="false" text="Reset" />
      </children>
    </AnchorPane>

    Hi. Here is a workaround.
    //Modified  initialize method.  Added a null object to the list:
      @Override
        public void initialize(URL url, ResourceBundle rb) {
            MyObject a = new MyObject("a", "A");
            MyObject b = new MyObject("b", "B");
            MyObject c = new MyObject("c", "C");
            myList.add(a);
            myList.add(b);
            myList.add(c);
            myList.add(null);   
            cb.setItems(myList);
          Modified handleButtonAction(ActionEvent event) method:
    private void handleButtonAction(ActionEvent event) {
             cb.getSelectionModel().selectLast();
             cb.getSelectionModel().clearSelection();
        }

  • Getting a variable value from another class

    Is there any way to get the value of a variable from another class? I have a file that calls another that does some checking then gives a true or false. The place the checking is done is inside an ActionListener I want to use that value in the file that calls the second. Any help would be great.

    in 'another class', implement a method,
    public boolean isCheckedOutOK( Object obj )
    do the comparison in that method (use a suitable argument)

  • Error while creating a custom combobox for Spark DataGrid

    I am getting the following run time error:
    Error: Required skin part openButton cannot be found.
        atspark.components.supportClasses::SkinnableComponent/findSkinParts() [E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\componen ts\supportClasses\SkinnableComponent.as:671]
        atspark.components.supportClasses::SkinnableComponent/attachSkin()[E: \dev\hero_private_beta\frameworks\projects\spark\src\spark\components\ supportClasses\SkinnableComponent.as:646]
        atspark.components.supportClasses::SkinnableComponent/validateSkinCha nge()[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\com ponents\supportClasses\SkinnableComponent.as:406]
        atspark.components.supportClasses::SkinnableComponent/commitPropertie s()[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\compo nents\supportClasses\SkinnableComponent.as:420]
         atspark.components.supportClasses::ListBase/commitProperties()[E:\dev  \hero_private_beta\frameworks\projects\spark\src\spark\components\supp  ortClasses\ListBase.as:808]
        atspark.components::List/commitProperties()[E:\dev\hero_private_beta\ frameworks\projects\spark\src\spark\components\List.as:954]
        atspark.components.supportClasses::DropDownListBase/commitProperties( )[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\compone nts\supportClasses\DropDownListBase.as:504]
        atspark.components::ComboBox/commitProperties()[E:\dev\hero_private_b eta\frameworks\projects\spark\src\spark\components\ComboBox.as:644]
        atmx.core::UIComponent/validateProperties()[E:\dev\hero_private_beta\ frameworks\projects\framework\src\mx\core\UIComponent.as:8095]
         atmx.managers::LayoutManager/validateClient()[E:\dev\hero_private_bet  a\frameworks\projects\framework\src\mx\managers\LayoutManager.as:934]
        atmx.core::UIComponent/validateNow()[E:\dev\hero_private_beta\framewo rks\projects\framework\src\mx\core\UIComponent.as:7953]
        atspark.components.supportClasses::GridLayout/layoutItemRenderer()[E: \dev\hero_private_beta\frameworks\projects\spark\src\spark\components\ supportClasses\GridLayout.as:1808]
        atspark.components.supportClasses::GridLayout/createTypicalItemRender er()[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\comp onents\supportClasses\GridLayout.as:460]
        atspark.components.supportClasses::GridLayout/updateTypicalCellSizes( )[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\compone nts\supportClasses\GridLayout.as:514]
        atspark.components.supportClasses::GridLayout/layoutColumns()[E:\dev\ hero_private_beta\frameworks\projects\spark\src\spark\components\suppo rtClasses\GridLayout.as:570]
        atspark.components.supportClasses::GridLayout/measure()[E:\dev\hero_p rivate_beta\frameworks\projects\spark\src\spark\components\supportClas ses\GridLayout.as:230]
         atspark.components.supportClasses::GroupBase/measure()[E:\dev\hero_pr  ivate_beta\frameworks\projects\spark\src\spark\components\supportClass  es\GroupBase.as:1109]
        atmx.core::UIComponent/measureSizes()[E:\dev\hero_private_beta\framew orks\projects\framework\src\mx\core\UIComponent.as:8383]
        atmx.core::UIComponent/validateSize()[E:\dev\hero_private_beta\framew orks\projects\framework\src\mx\core\UIComponent.as:8307]
        atspark.components::Group/validateSize()[E:\dev\hero_private_beta\fra meworks\projects\spark\src\spark\components\Group.as:956]
        atmx.managers::LayoutManager/validateSize()[E:\dev\hero_private_beta\ frameworks\projects\framework\src\mx\managers\LayoutManager.as:659]
        atmx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\hero_priv ate_beta\frameworks\projects\framework\src\mx\managers\LayoutManager.a s:793]
        atmx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\h ero_private_beta\frameworks\projects\framework\src\mx\managers\LayoutM anager.as:1157]
    Here is my combobox:
    package
        import mx.controls.listClasses.BaseListData;
        import mx.controls.listClasses.IDropInListItemRenderer;
        import spark.components.ComboBox;
        public class sparkComboRendererDataGrid extends ComboBox implements IDropInListItemRenderer
            public function sparkComboRendererDataGrid()
                super();
            public function get listData():BaseListData
                return null;
            public function set listData(value:BaseListData):void
            override public function set dataProvider(value:Object):void
                super.dataProvider = value;
                // This may get called before dataProvider is set, so make sure not null and has entries
                if (value!=null && value.length)
                    // Got it, set flag
                    bDataProviderSet = true;              
    and here is the implementation:
    var PersonnelPerson:ClassFactory = new ClassFactory(sparkComboRendererDataGrid);
    PersonnelPerson.properties = {labelField : "person", dataProvider :
    new XMLListCollection(dataList.consistcrew)};
    var col:GridColumn = GridColumn(personnel.columns.getItemAt(0));                   
    col.itemRenderer = PersonnelPerson;
    Please help.
    Thanks

    Actually, after adding the following code it started working:
    import spark.skins.spark.DropDownListSkin;
    override public function stylesInitialized():void
          super.stylesInitialized();
          this.setStyle("skinClass", DropDownListSkin);

  • Problem in passing data from 1 screen to another using BBP_DOC_CHANGE_BADI.

    Hi Experts,
    i am new to the SRM, i am facing problem in passing data from one screen to another.
    my requirement is that when we select one shopping cart and press the PROPOSE SOURCES OF SUPPLY button, we will fetch all the contracts that are attached to the shopping cart.
    we have implemented a BADI implementation of BBP_SOS_BADI (method BBP_SOS_CHECK) for passing some changed values to the contracts of the shopping cart into the popup screen that is displayed when we press PROPOSE SOURCES OF SUPPLY button and when we select any contract and press ASSIGN ONLY button in the popup screen the badi BBP_DOC_CHANGE_BADI is triggered.
    i have implemented another BADI implementation of BBP_DOC_CHANGE_BADI for fetching the selected contract and pass the values to another screen, but the problem is that when we select one contract and press the assign only button we are fetching the wrong contract number ( that is in the BADI method BB_SC_CHANGE parameter IT_ITEM we are fetching the wrong contract), if we again do the same procedure for the second time we are getting the correct contract.
    i am unable to understand why we are getting the wrong contract in the first time( that is we are getting contract other than the selected one).
    as per my understanding i think when we are passing data to the popup screen using BBP_DOC_CHANGE_BADI we are not updating the shopping cart with the changed data.
    can anyone tell me how we can update the SHOPPING CART with the changed contracts data, i have used BBP_PD_SC_UPDATE, BBP_PD_SC_SAVE and other shopping cart FM but nothing is happening.
    Thanks
    Tanveer

    Hello,
    What version of SRM are you on?  Have you check for OSS Notes?  I have had trouble with BBP_DOC_CHANGE_BADI but it was because of other issues.  The BADI works pretty well and it is called almost every time something happens to the shopping cart.
    I have noticed that sometimes that values are not changed til the second calling of the BADI.  I have yet understand why but I think it has to do with prompt processing. Usually, we train our requisitioners to click the 'Check'  button to flush things out.
    I don't know if I was helpful.... another thought.... could there be an error caught by BBP_DOC_CHECK_BADI that is preventing change in BBP_DOC_CHANGE_BADI?
    Regards, Dean.

  • Netweaver's ORM library and JPA implementation. How to use EclipseLink?

    Hi,
    I'm migrating from Glassfish to Netweaver and when I deploy my EAR on Netweaver I'm receiving the following exception.  I have two questions.  1) TABLE_PER_CLASS is supported in EclipseLink but for some reason Netweaver isn't using it as the JPA implementation.  Why? 2) What is the com.sap.engine.services.orpersistence.model.ormappingmodel package and how do I avoid using it because it seems to be reading my annotations when I just want it to ignore it and let EclipseLink handle things?
    I'm using Netweaver Composition Environment 7.1 and found this little FAQ on the topic:
    https://wiki.sdn.sap.com/wiki/display/Java/JavaEE5+FAQ#JavaEE5FAQ-1.190
    It says:
    Can I use another JPA implementation on top of Java EE 5 Edition?
    By design this feature is supported, however it has not been tested in this release. For future releases it is planned to test the SAP NetWeaver AS Java with other available JPA providers.
    Not even sure if it's applicable here since the FAQ entry isn't related to CE.
         Description:
              1. [ERROR CODE DPL.DS.5402] JLinEE reported following erros for JavaEE/calendar-ear application.
    ERRORS:
    Model Creator: Error during model creation occured: com.sap.engine.services.orpersistence.model.ormappingmodel.ORMException: Unsupported inheritance strategy TABLE_PER_CLASS
         at com.sap.engine.services.orpersistence.model.ormappingmodel.impl.ORMUtils.getInheritanceStrategy(ORMUtils.java:1252)
         at com.sap.engine.services.orpersistence.model.ormappingmodel.impl.ORMappingModelCreatorImpl.parsePersistentClass(ORMappingModelCreatorImpl.java:831)
    Thanks, any help is appreciated.
    Edited by: Zarar Siddiqi on Jul 24, 2009 5:32 PM

    I should add that I've gone through the steps outlined in this article:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60642a88-95fe-2b10-d387-a245d48fc257
    I've properly configured a Heavy Resource and tested it through telnet so I know its installed properly.  However, I still get the same exception.   In my persistence.xml I've specified EclipseLink as the persistence provider:
        <persistence-unit name="mainDatabase">
            <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
            <jta-data-source>jdbc/Main</jta-data-source>
    I'm wondering what I'm missing because Netweaver is still using SAP JPA and not EclipseLink.
    Thanks.

  • ComboBox in grid

    Here is my column:
    <mx:DataGridColumn 
    headerText="Name" editorDataField="selectedValue"
    width="
    {accounts.width*.9}"
    dataField="
    ccompany">
    </mx:DataGridColumn>
    ItemEditor:
    [Bindable]
     var availAccounsEditor:ClassFactory = new ClassFactory(comboItemRenderer); 
    private function populateSalesRepsAccounts(resultXML:XML, dummy:Object):void{ 
    var availAccounts:DataGridColumn = accounts.columns[0];availAccounsEditor.properties = {labelField :
    "ccompany", dataProvider : resultXML.customers};availAccounts.itemEditor = availAccounsEditor;
    ItemEditor:
    package 
    modulecode{
    import flash.events.Event; 
    import mx.collections.*;  
    import mx.controls.*;  
    import mx.controls.listClasses.*;  
    import mx.events.*; 
    public class comboItemRenderer extends ComboBox implements IDropInListItemRenderer {
    private var _selectedValue:String; 
    private var bSelectedValueSet:Boolean = false;  
    private var bDataProviderSet:Boolean = false;  
    public var dataProviderCopy:Object = new Object;  
    public function comboItemRenderer(){
    super();}
    override public function set dataProvider(value:Object):void {
    super.dataProvider = value;  
    // This may get called before dataProvider is set, so make sure not null and has entries  
    if (value!=null && value.length){
    // Got it, set flag bDataProviderSet =
    true;}
    // Override committ, this may be called repeatedly  
    override protected function commitProperties():void{
    // invoke ComboBox version  
    super.commitProperties();  
    // If value set and have dataProvider  
    if (bSelectedValueSet && bDataProviderSet){
    // Set flag to false so code won't be called until selectedValue is set again bSelectedValueSet=
    false; 
    // Loop through dataProvider  
    for (var i:int=0;i<this.dataProvider.length;i++){
    // Get this item's data  
    var item:String = dataProvider[i][DataGrid(listData.owner).columns[listData.columnIndex].dataField]; 
    // Check if is selectedValue  
    if(item == _selectedValue){
    // Yes, set selectedIndex  
    this.selectedIndex = i;  
    break;}
    override public function set data(value:Object):void{
    super.data = value; selectedValue = value[DataGrid(listData.owner).columns[listData.columnIndex].dataField];
    // set for selectedValue  
    public function set selectedValue(s:String):void{
    // Set flag bSelectedValueSet =
    true; 
    // Save value _selectedValue = s;
    // Invalidate to force commit invalidateProperties();
    public function get selectedValue():String{
    return _selectedValue;}
    How do set the the selected from combobox value back to dataGrid?
    Thanks

    Hi Lan
    Try This For Matrix......
    'For Adding Values
      oColumn = oColumns.Add(&quot;Drink&quot;, SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
            oColumn.TitleObject.Caption = &quot;Drink&quot;
            oColumn.Width = 100
            'Add Valid Values
            oColumn.ValidValues.Add(&quot;Cola&quot;, &quot;&quot;)
            oColumn.ValidValues.Add(&quot;7up&quot;, &quot;&quot;)
            oColumn.ValidValues.Add(&quot;Fanta&quot;, &quot;&quot;)
            oColumn.ValidValues.Add(&quot;Orange Juice&quot;, &quot;&quot;)
            oColumn.ValidValues.Add(&quot;Water&quot;, &quot;&quot;)
            oColumn.ValidValues.Add(&quot;Lemonade&quot;, &quot;&quot;)
            oColumn.ValidValues.Add(&quot;Ice Tea&quot;, &quot;&quot;)
            oColumn.ValidValues.Add(&quot;Coffee&quot;, &quot;&quot;)
    'For selected Value
    Dim ocombo As SAPbouiCOM.ComboBox
                Dim oform As SAPbouiCOM.Form
                Dim omat As SAPbouiCOM.Matrix
                oform = SBO_Application.Forms.Item(&quot;MOR1&quot;)
                omat = oform.Items.Item(&quot;mat&quot;).Specific
                ocombo = omat.Columns.Item(&quot;Drink&quot;).Cells.Item(1).Specific
                ocombo.Select(&quot;Fanta&quot;, SAPbouiCOM.BoSearchKey.psk_ByValue)
    Thanks
    Shafi

  • ComboBox Jumplist

    I have a ComboBox implemented, however I am binding several hundred elements to this.
    What is the recommended way for selecting from such a large list? Ideally I would like to be able to navigate the items via a Application list type JumpList when the ComboBox is activated.

    Did you try using
    IList in order to bind to your ComboBox?
    Reference
    Binding List<string>to ComboBox</string>
    Happy Coding!

  • Combobox populate from HTTPService query

    I got this working with static XML files, but now its not
    working with HTTPService! I'm having problems getting a ComboBox to
    fill up with dynamic data from an SQL query which spits back XML
    data. I am basically filling one ComboBox based on the selection
    from another ComboBox. On startup, I call this method:
    public function loadSystems(serv:HTTPService, s:String) :
    void {
    var params:Object = {};
    params[s] = s;
    serv.send(params);
    To fill in the first ComboBox, which is defined as:
    <mx:ComboBox minWidth="130" maxWidth="130" id="mainSys"
    dataProvider="{sysOps.lastResult.system.data}"
    change="fillComboBox(mainSys, subSys, 'subsystem', subOps,
    sysIDs)" rowCount="10" />
    It fills up fine, but the fillComboBox method (below) comes
    up with a null result and fails
    // fill destination combobox based on selection from src
    combobox
    public function fillComboBox(src:ComboBox, dest:ComboBox,
    arg:String,
    serv:HTTPService, idArray:ArrayCollection) : void {
    var ind:int = src.selectedIndex;
    // choose ID from the ID array with the selecetedIndex
    var select:String = idArray.getItemAt(ind) as String;
    var params:Object = {};
    params[select] = select;
    params[arg] = arg;
    serv.send(params);
    dest.dataProvider = serv.lastResult.system.data; //
    serv.lastResult is null
    I know the server side is getting valid arguments in params
    and is spitting out valid XML so the problem is on the Flex side.
    Any ideas or help would be greatly appreciated. Thanks!

    Although caching is a common problem, that is not the cause
    of your problem. In Flex, all HTTPService calls are asynchronous,
    which means you cannot call the service and set the result in the
    same function like you are doing in your fillComboBox method. You
    need to add an event listener and get the result in a different
    method. However, in your function you are also passing the
    destination which complicates things. Instead of passing the
    destination, you could try passing a function that will assign the
    result to the component you want dynamically:
    change="fillComboBox(mainSys, setSubSys, 'subsystem', subOps,
    sysIDs)"
    public function fillComboBox(src:ComboBox,
    resultFunction:Function, arg:String, serv:HTTPService,
    idArray:ArrayCollection) : void
    serv.addEventListener(ResultEvent.RESULT,resultFunction);
    private function setSubSys(evt:ResultEvent):void {
    subSys.dataProvider = evt.result.system.data;
    In general, it makes debugging much easier if you avoid
    binding HTTPService results directly to components and instead use
    a listener function where you can examine the result data for any
    problems.
    Vygo

  • Problem while implementing note 1034868 for MAM 3.0

    Hi,
    I have another problem implementing this note. As described in that note at point no. 3. I'm not able to activate text elements for "RALM_ME_EQUI_FULL_DOWNLOAD_SD".
    I receive an error "Error during activation" --> Message no. EU837
    I've looked for it but found nothing. Any idea?
    Thank you!
    Regards,
    Florian

    Hi Martin,
    as we work with the standard SAP function module, we have restored first the last active version for the texts because there was a inconsistence, which we have found under the debugging and next the texts were activated successfully without this inconsistency.
    I hope this helps a bit.
    Regards,
    Florian

Maybe you are looking for

  • How i read the file

    For each jsp file my parser create a java file. It also create a map file which holds information as which line number in java corresponds to which line number in jsp as some statements are being added by the parser. Now i have also generated a bdf f

  • INDesign CS3 won't install

    I've been searching threads for days now and nothing i try works I am trying to install CS3 on a G5 Mac, OSX 10.4.11. I have CS on this computer, tried the CS4 trial, decided to stay with CS3 which I am had on a deceased computer that din't have any

  • Thinkpad Yoga Wlan Probleme mit Wlan im Tablet mode

    hallo, ich habe ein riesen Problem mit meinem Thinkpad Yoga. Habe eine Crucial MX100 eingebaut und Windows 8.1 installiert. Das Problem macht bei mir das Wlan, klappe ich es in den Tabletmode bricht die Verbindung soofort ab. Hebe ich das Display lei

  • MDM integration without Solution Manager

    Hi All, I hope we can have MDM implementation without solution manager. (Please correct me if I am wrong.) Can anybody explain me the concerns if I don't have solution manager in my MDM implementation framework. Customising Steps to integrate all the

  • 2lis_03_um can not be filled

    Hi, gurus here. I am filling the setup table of 2lis_03_um in AIME ECC PRD. I've finished the filling job of 2LIS_03_BF and it's OK. But the filling job of 2lis_03_um can not be started, I checked it in SM50, nothing happened. The info of status is e