editable drop-down list - something line in Access

Hi all

I'm trying to convert a MS Access application to APEX. In the access application, there is a text field with a dropdown list. The application of populating drop-down list is the following:

SELECT DISTINCT CARS. Model CARS CAR BUYING. Model;

As I understand it, it will allow me to select one of the existing values in the menu drop down, but also add a new simply by typing the value in the field its self.

Is there such an option with APEX? It seems that drop-down lists in the APEX are created based on the data static or dynamic, is there a simple way to add new values to the list?

Thank you for your time,

DanielD

Hello Daniel,.

You can use a PopUp LOV selection of existing models. If you enter a different model for a car that is added to the Table of cars, and will be available for the next use of the context menu.

Greetings,
Roel

http://roelhartman.blogspot.com/
http://www.bloggingaboutoracle.org/
http://www.Logica.com/

Tags: Database

Similar Questions

  • Problem of editable drop-down list.

    Hi all

    • Here's the question. I have a list/menu editable drop-down list in a table. The table is hidden when the page is loaded. When the user clicks on the link to open the table, editable drop-down list is only 1 or 2 pixels wide. How can I get the editable drop down to open up the prescribed 300px?

    Here is the code:

    < select name = "CGSector1" id = "CGSector1" wdg:subtype = "DynamicInput" wdg:type = "widget" wdg:recordset = "rsCGSectors" wdg:displayfield = "CGSectors" wdg:valuefield = "CGSectors" wdg:norec = '150' wdg:singleclickselect = "yes" wdg:defaultoptiontext = "" wdg: don't restrict = "" wdg:ext = "php" style = ' width: 300px "wdg:fakeattribute =" <? " PHP WDG_registerRecordInsert ("connStr_xxxxxx", "rsCGSectors", "CGSectors", "CGSectors");? > "> < / select >"

    Thank you.

    Brian

    As this problem is not directly related to the MEASUREMENT, but assumingly rather to such aspects as defined (if any) width of the table initially hidden, please give a link to the page code in its entirety (or page) to help others to find the possible reason.

    However, it is worth mentioning "editable dropdown" ADDT´s is generated on-the-fly using AJAX features some owners as well (including rendering style), then maybe the style you setting defined here just gets ignored when the surrounding 'container' (aka table) becomes hidden - for example - using features from another library like JQuery AJAX that is certainly incompatible with that ADDT´s own implementation of AJAX.

    See you soon,.

    Günter

  • Editable drop down list

    Hello!

    I use editable in Dreamweaver drop down list

    Application Panel, server behaviors > + > Developer Toolbox > form controls > editable dropdown

    That was a GREAT option, but I must add 1 option, when I'm about to ADD an item to the list, all you can do is to add 1 point for 1 column in a database.

    Struture of database:

    ListId userid listItem listitemValue

    But all I can get it to update is listItem , I need to be able to when the "ADD THIS" button is pressed, I can add value to USERID also, is - it possible? I tried the deap immersed in it, but some things I just don't understand that far down.

    Any help would be greatly appreciated!

    See you soon and thank you in advance.

    Justin

    Okay, I totally misunderstood. Sorry for the confusion. I'm afraid I'm not much help on this particular function. Some features I really ripped and modified, this isn't one of them.

    This does not resemble one of the simplest to change unlike some other functions.

    Before you try to enter the information on how to break it down, is long there all the info that you are trying to update of chance is a certain type of default or incremental, name something that can be hardcoded?... or is it unique as a visitor, so you're pulling every time? Ex: User1, user2 vs.   sally101, david2009, etc..

    If this is not the case, there are several lines of variable change of setting and function to change at first glance.

    I can watch it later, but the variables are not yet in that the same insert feature page.

    Here's the key in WDG_recordsetInsert.php line,

    $sql = "INSERT INTO". $vars ['table']. ' (' . KT_escapeFieldName ($Vars ['updatefield']). THE VALUES ') ('.) KT_escapeForSql ($text, 'STRING_TYPE'). ')';

    but the reactive power seems to come out of a table in ' WDG_functions.inc.php: here are the variables of the function for the function to insert above

    $WDG_sessInsTest = & $_SESSION ['WDG_sessInsTest'];

    [$WDG_sessInsTest] = array)

    "conn"-online $connectionName,

    "rsName"-online $rsName,

    'table'-online $sqlTable,

    "idfield"-online $idField,

    "METTREAJOURCHAMP"-online $updateField);

    This table can be modified (at first glance), but I can't promise that reactive power will carry through because I see exactly where this table is used again.

    As I said, if the values you need are something you could hard code start and increment, you can easily change the function "insert in" above.

    I could also play around with a few data of $_POST and data Session vars and see if you can put these lines in the SQL above.

    Sorry I can't be more help on this one.

  • drop-down list - option line break

    Is it possible to add a line break to a drop down list?

    Or change the width of the drop-down list when the user clicks to view the options?

    Some of the text I have is very long and you can't read it all.

    With the help of this question, I could get this job.

    https://forums.Adobe.com/message/2208564#2208564

    Displaying the XML Source Code and adding
    to produce a carriage return.

  • [JS] Editable drop-down list

    Is it possible to have a drop down menu which is editable you get when you click on save the preset in the new Document dialog box?

    CS3 and CS4 ScriptUI

    Here is what I use:

        HarbsUI.TextComboBox = function(container,listItems,selection,width,indent){
            var fld;
            container = container.add('group');
            this.width = width || 100;
            this.selection = selection || 0;
            this.listItems = listItems || [];
            this.text = this.listItems[this.selection] || '';
            this.indent = indent || 0;
            container.indent = this.indent;
            container.orientation = 'stack';
            container.alignChildren = 'left';
            fld = container.add("edittext");
            var dd = container.add("dropdownlist",undefined,undefined,{items:this.listItems});
            dd.selection=this.selection;
            dd.preferredSize.width = this.width;
            var fld2 = container.add("edittext");
            fld.text =this.text;
            fld.preferredSize.width = this.width-20;
            fld2.text =this.text;
            fld2.preferredSize.width = this.width-20;
            fld.onChanging = function(){
                fld2.text = fld.text;
            }
            fld2.onChanging = function(){
                fld.text = fld2.text;
            }
            dd.onChange = function(){
                fld.text = dd.selection.text;
                fld2.text = dd.selection.text;
            }
            return fld;
        }
    

    Substances

  • In Muse - edit drop-down list does not

    I'm sorry for this basic but application works on near final site and edit function will no longer work.  Am I missing something very basic - the impression that I somehow "off."

    Thanks in advance for any help.

    John

    Thanks for the reply. Resolved to uninstall and install.  Now works.

  • How to change or remove a line from a drop down list?

    I have a spreadsheet Numbers drop down box that shows the 3 lines of the text when I start typing the text in the cell. I have to enter the same text 3 times during the construction of the document. How can I remove 2 of these lines of text?

    Hi Brudduh,

    Click the cell that contains the context menu,

    Click on the brush to Format to open the Format Inspector and click cell.

    The Inspector displays the menu items in the context Menu in this cell.

    • To remove a menu item: click on the item to select. Click the button below the list.
    • To edit an item: double-click on the item to select content. Modify if needed.
    • To add an item: click on the button +. Type the content of the element.

    To use the same drop-down list in a different cell:

    • Click the cell that contains the menu to select. Copy.
    • Select the cells to the same menu. Dough.

    Kind regards

    Barry

  • I disabled the menu and cannot access the drop-down list to get back them

    I disabled all the menus to make a screenshot and now I can't access the drop-down list to get back them

    This has happened

    Just once or twice

    is today

    You can hide the menu bar in Firefox 3.6 on Windows, on "view > toolbars" or via the contextual right click menu on a toolbar.
    Press in and hold the Alt key to display the menu bar.
    Go to "view > toolbars", right click on the menu bar, or press Alt + V T to select the toolbars to show or hide.

    See also what happened to the file, edit and view menus?

  • Access a drop-down list component created in fom runtime C++

    Hello everyone.

    I included a file "Settings.qml" as a ComponentDefinition in my file "main.qml" as follows:

    *******************************
    main.qml
    *******************************
    
    Page {
        id: page
    
        //App menu
        Menu.definition: MenuDefinition {
            settingsAction: SettingsActionItem {
                title: "Settings"
                imageSource: "asset:///icons/ic_settings.png"
                onTriggered: {
                    var settings = settingsSheet.createObject(_cam);
                    settings.open();
                }
            }
        }
    
        //Main container
        Container {        Camera {            id: cameraQML            objectName: "cameraQML"        }    }
    
        //Attached objects
        attachedObjects: [
            //*****this is the component definition****
            ComponentDefinition {
                id: settingsSheet
                source: "Settings.qml"
            }
        ]
    }
    

    Then, in the "Settings.qml" file, I have something like that.

    On the crack of onCreationCompleted I call you access of wich C++ function to the cameraQML component and gets the available resolution values and add them to the drop down list component.

    ***********************Settings.qml***********************
    
    Sheet {
        id: settingsSheet
        objectName: "settingsSheet"
        peekEnabled: true
        content: Page {        Container {            DropDown {
                    title: "Capture Resolution"
                    objectName: "resolution"
    
                    options: [
                        Option {
                            text: "16:9"
                            value: 16/9
                        }
                    ]
    
                    onCreationCompleted: {
                        _cam.loadResolutionValues();
                    }
    
                    onSelectedValueChanged: {
                        //_cam.selectResolution(selectedValue);
                    }
                }
            }    }}
    

    The PROBLEM comes when I try to access the menu item drop down because, even if I get error when you call the function findChild(), I do when I try to add Options by calling the add() function:

    ******************applicationui.cpp******************
    
    AbstractPane* root;Camera* cameraQML;DropDown* resolutionsDD;
    
    void AppliactionUI::ApplicationUI() {    //code...    QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);    qml->setContextProperty("_cam", this);    root = qml->createRootObject();    cameraQML = root->findChild("camera");    //code...}void ApplicationUI::loadResolutionValues() {
        QVariantList reslist = camaraQML->supportedCaptureResolutions(CameraMode::Photo);
                    //**I don't get error by calling this function
            resolutionsDD = root->findChild("resolution");
    
            //**The app do crashes when calling any of these three functions
        //resolutionsDD->setTitle("Choose an option");        //resolutionsDD->removeAll();
        //resolutionsDD->remove(resolutionsDD->at(0));    for (int i = 0; i < reslist.count(); i++) {
            qDebug()<<"QVatiant value:"<add(Option::create().text(res.width()+"x"+res.height()).value(reslist[i]));
        }
    }
    

    I thought it was a problem with the type of value, I was put in the service. value() when you create an option, but then I realized that, while trying to change the title from the drop-down list, or delete i ' ts options that the application crashed also.

    This makes me think that the problem is that I'm not a correct reference for component drop-down menu QML due to the fact that this drop-down list does not exist when the application starts and is created until the user opens the Settings.qml file. Also, I think that this is a problem with all that stuff parent and child, but of course, it's just a feeling.

    I'd really appreciate your help on this type of problem. I'm not experienced enough to know what is the right way to get a reference of work to the drop down list component in question in a situation like this

    Thank you very much in advance!

    P.D. I'm sorry, I know that my English is not very good. Hope you do not misunderstand

    Hello
    Very probably findChild returns NULL and a NULL pointer dereference causes the crash. I remember there was problems with findChild during the use of the leaves.

    Try from the drop-down list directly to the function as an argument:

    (1) in applicationui.cpp:

    After:
    QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    
    Add:
        // This is needed for passing DropDown in function parameters from QML to C++
        qmlRegisterType("bb.cascades", 1, 0, "DropDown");
    

    (2) modify the function declaration for:

    Q_INVOKABLE void loadResolutionValues(bb::cascades::DropDown *dropDown);
    

    (3) in QML:

    DropDown {
      id: dropDown
      ...
      onCreationCompleted: {
         _cam.loadResolutionValues(dropDown)
    
         // _cam.loadResolutionValues(this) // maybe this will also work, but I haven't checked
    
      }
    }
    
  • Drop Down List index - my script does not recognize the leader line in my function

    Community AE script-

    I'm a designer not a programmer naked with me.  I just try something simple, no baby and I cannot for the life of make me this simple script to work.

    I saw the script adds FAST and thought I would try to imitate this script for me as a challenge.  I watched videos of David Torno on Pro video Coalition and a simple example Script UI.  I searched for my answer on these here forums and tried to combine a simple script to examples within these forums and may not have to recognize clues to my drop-DOWN LIST down.  Here's my simple script:

    {

    function myScript (thisObj) {}

    function myScript_buildUI (thisObj) {}

    var myPanel = (thisObj instanceof Panel)? thisObj: new window ('palette', 'Add', undefined, {resizable: true});

    res = "group {orientation: 'row', alignment: ["fill","fill"] alignChildren: ["fill","fill"],------}»

    groupOne: group {orientation: 'row', alignment: ["fill", "fill"] alignChildren: ['fill', 'top'],------}

    myStaticText: StaticText {text:'New:'}, \

    myDropDownList: DropDownList {properties: {items: ['solid', 'Light']}}, \

    },\

    groupTwo: group {orientation: 'row', alignment: ["fill", "fill"] alignChildren: ['fill', 'top'],------}

    MyButton: button {text: 'Add'}, \

    },\

    }";

    myPanel.grp = myPanel.add (res);

    Default values

    myPanel.grp.groupOne.myDropDownList.selection = 0;

    myPanel.grp.groupTwo.myButton.onClick = myButtonClick;

    Design of Control Panel

    myPanel.layout.layout (true);

    myPanel.grp.minimumSize = myPanel.grp.size;

    Make the resizable Panel

    myPanel.layout.resize ();

    myPanel.onResizing = myPanel.onResize = function() {this.layout.resize ()};

    Return myPanel;

    }

    function myButtonClick() {}

    var app.project.activeItem = myComp;

    If (myComp! = null & & myComp instanceof CompItem) {}

    If (myPanel.grp.groupOne.myDropDownList.selection.index == 0) {}

    myComp.layers.addSolid ([0,0,0], "MySolid", myComp.width, myComp.height, 1)

    } Else if (myPanel.grp.groupOne.myDropDownList.selection.index == 2) {}

    myComp.layers.addLight ("Light", [myComp.width/2, myComp.height/2]);

    }

    }

    }

    Make a floating window

    var myScriptPal = myScript_buildUI (thisObj);

    If ((myScriptPal! = null) & & (myScriptPal instanceof window)) {}

    myScriptPal.center ();

    myScriptPal.show ();

    }

    }

    myScript (this);

    }

    If I comment out the lines

    If (myPanel.grp.groupOne.myDropDownList.selection.index == 0) { and If (myPanel.grp.groupOne.myDropDownList.selection.index == 1) { }}

    the script will add the SOLID and LIGHT.  But it will never work with these active lines - Add button does nothing.

    I could just make use of onChange with the drop-down list, but I want to understand how onClick actions of connection in the drop-down list.

    I copied this piece of the forum script and modified to work with my script, but nothing seems to work:

    buttonOne.onClick = onButtonOneClick;

    function onButtonOneClick() {}

    If (myPalette.dropdownlistOne.selection.index == 0) {}

    to do this

    } else {}

    This instead

    }

    }

    Can someone take a look at my script at the top of the page and tell me why this won't work?  I pretty much pulled out the last piece of hair I have on this - simple problem?

    Thank you in advance.

    Your click of button function does not know what "myPanel. You could do something like this inside the function:

    var this.parent.parent.parent = myPanel;

    There are other ways to do it, maybe as a global variable that maintains the reference of the Panel.

    In addition, your second if looking for selection.index == 2 instead of 1.

    Dan

  • XLATLONGNAME from the drop-down list should be a default value in the edit box

    Hello


    I have two fields in a grid, one named "TEST_Type" and one is named 'TEST_Name' edit box
    Use cases, TEST_Name by default will be TEST_Type in Drop Down.

    "TEST_Type" is the translation of edition Table and 'TEST_Name' will contain XLATLONGNAME.

    I do drag XLATLONGNAME of PSXLATITEM table in my grid and make related field and "TEST_Type" a related control field.

    Show LongName according to the value "TEST_Type.

    If the field 'TEST_Name' RowInit, I wrote

    If GetRow(). IsNew and
    No (MYRecord.TEST_NAME. Value) then
    MYRecord.TEST_NAME. Value = GetRow(). GetRecord (Record.PSXLATITEM). GetField (Field.XLATLONGNAME). Value;
    End - If;


    It gives an error

    "Class line method GetRecord account PSXLATITEM is not valid. (2 268)

    MYRecord.TEST_NAME. RowInit

    The recording has been used as a parameter of the specified method. It is not valid for the current object. »

    What is the problem?

    Is there a better solution for this use case?


    Thanks in advance

    I think you mix a few think upwards.

    The drop is on a class with the values of translate. So, when you set the property to the field from the drop-down list page to view the longxlatitem, you are finished.

    If you want to copy the xlatlongvalue for some reason any other areas, use instead the domain object properties.

    & dropdownlownlist = getrecord([YOUR_RECORD]).getfield ([YOUR_FIELD]);
    VALUE = & dropdownlownlist. LongTranslateValue;

    Kind regards

    Halin

  • My list of selection includes values that are long enough. Can I do the drop-down list "wrap text" so that it is not on one line?

    According to the title. My drop-down list offers entire sentences, which sometimes extend over the entire page that I don't like. Can I do extend over several lines instead?

    Daniel Jakes wrote:

    According to the title. My drop-down list offers entire sentences, which sometimes extend over the entire page that I don't like. Can I do extend over several lines instead?

    Lol this is not possible in the standard selection lists. The element plugin Select2 can support this, but this looks like a redesign of the interface user is really necessary. Radio buttons or check boxes are a better choice to make selections of the options with long descriptions. Redesign/reformulation of the interface would be the best approach. What are these options? Why are they used?

  • When exporting my image in LR I select my brand of water in the drop-down list. Then I need to select 'Edit watermark' since the same drop-down menu in order to replace it. When I do that and click 'done' the watermark disappears in the export me

    When exporting my image in LR I select my brand of water in the drop-down list. Then I need to select 'Edit watermark' since the same drop-down menu in order to replace it. When I do that and click 'done' the watermark disappears in the box menu to export. When I click on "Export" the image exports WITHOUT my watermark. Help, please. As I did about everything that has been suggested in this forum and I still have this problem.

    I saw that too. For now, the workaround is that if you select 'Edit watermark,' when you are done editing be sure to reselect the same watermark. If you do not, the watermark menu will be empty.

    It seems to be a known bug that occurs only in the current version. If all goes well, it can be fixed in the next update. There is a page for her on the Photoshop/Lightroom Feedback site. I've added my vote to the page:

    LIGHTROOM CC - watermark on the question of export

  • How can I add multi line selection in a drop-down list

    I just started with Acrobat DC. Everything is simple, until it isn't. I try to add items to my drop-down list. It's easy. I'm trying to make the choice of multi line. It is an inspection report and the choice will not fit on a single line. So after making the choice, can not read the answer. Thank you-Tim

    It is possible to do it, but only with a script and it's a kind of buggy. In other words, not really a good idea.

  • from the drop-down list selection to multi-line output

    I am trying to create a pdf form with Adobe XPro, where I will have multiple delivery addresses. I want to have is that the user can select the correct recipient group in the drop-down list.

    Given that the drop-down lists pdf format are just simple lines the drop-down list selection could only display the name of the company (e.g., COMPANY A) and selecting the company wanted to, this would trigger the whole address (multiline) to appear as described below (on another text field is ok if necessary)

    THE COMPANY

    StreetAddress 1

    City of ZIP-1234

    Does anyone have an easy solution for this?

    I have created a sample form for you, please look at attachment.

    PDF form does exactly what you want.

Maybe you are looking for