Direct query of database - add drop-down list

Hello

I created a direct request to the database and would like to represent the output in a table format. How can I add a drop-down page filter, I would like to move two columns as a page drop-down lists, and also be able to display the columns in the table.

I know how with a PivotTable, but is this also possible with a table layout?

Thank you

Here's the answer to your question: no, you can't do "drop trailers", in a table view. You can use the pivot table as described in the previous posts.

You will need to use the prompts of dashboard for your choice. You say probably, "but the guests of dashboard must be based on a column in the subject area and I can't select it because I use a live database as my source. So, how to create ask her? »

Good question. My question is, on the columns you need as the "drop down filters,' are these columns in any existing domain? I know that your application is built on-line database, but if the specific column you need for your prompt dashboard is in a domain, you can use this area to build your guest dashboard.

You can add a WHERE condition in your live database to receive presentation variables. Read below to learn how:

http://108obiee.blogspot.com/2009/11/variables-in-direct-database-requests.html

Tags: Business Intelligence

Similar Questions

  • Data from the drop-down list box database

    Hello

    I'm trying to understand how to add information from a database to a drop-down list box. I read two columns, the first is used as the element and the second for the value. There are several lines in the table, and I need an entry for each. Currently, he adds only a single entry. The vi is attached.

    Thank you

    Chris

    Hi again,

    Attach a VI... Is that what you mean?

  • Hide the fields to add fields drop-down list in the advanced search mode.

    On the drop-down list to add fields in the field of the advanced search displayed by an af:query, is there a way to hide some of the attributes? He seems to show all the attributes of the default VO.

    The fields must be visible on other pages that use the VO. Table Panel and search queries will only to display a subset of the fields in the VO.

    Assigning to the attribute Display tip to hide will not do; at least this seems to be the case, because if I do that, then, the field is not available on the data control to be placed on other pages.

    I guess I could create a separate VO just to the search page; but I try to avoid this, it invites excessive maintenance as the system grows. If no indication on how to hide a field VO on add fields while leaving the field to be displayed on other pages would be appreciated.

    Versions: JDeveloper 11.1.1.4, ADF business 11.1.1.59.23 components.

    Thank you.

    I wrote a blog post on this subject and a sample of http://tompeez.wordpress.com/2012/01/06/jdev-afquery-hide-some-attributes-from-query-panel-but-show-them-in-the-result-table/ here

    Timo

  • How to add a destination folder in the drop-down list box "send to" in Windows XP?

    One of my disks in CD does not work, so I want to add the DVD drive in the drop-down list box... I can't remember how.

    Hello

    This article can help...

    http://support.Microsoft.com/kb/310270

    Tricky

  • How to dynamically add an Option in the drop-down list?

    I have this code:

    {Drop-down list

    ID: list

    Title: 'list '.

    onCreationCompleted: {}

    opion var = new Option();

    opion. Text = "Hello";
    opion. Value = 4;

    List.Add (opion);

    }

    }

    After the launch of the application, the list is empty.

    Why my code does not work?

    It is easy to dynamically add options

    first add this to your attachedObjects:

    ComponentDefinition {
                id: optionDefinition
                Option {
                }
            }
    

    then do something like this

    var newOption = optionDefinition.createObject()
                newOption.text = ...
                newOption.value = ...
                newOption.description = ...
                newOption.selected = ....
                yourDropDown.add(newOption)
    
  • OnSelectedIndexChanged query drop-down list

    Hello

    I use a Visual of foreground, within my ListView, to allow the user to classify what country they would like to be displayed.

    leadingVisual: [
                                    Container {
                                        id: dropDownContainer
                                        topPadding: 20
                                        leftPadding: 20
                                        rightPadding: 20
                                        bottomPadding: 20
                                        background: Color.create("#212121")
                                        DropDown {
                                            id: dropDown
                                            title: qsTr("Continent:")
                                            Option {
                                                text: qsTr("All")
                                                selected: true
                                            }
                                            Option {
                                                text: qsTr("Africa")
                                            }
                                            Option {
                                                text: qsTr("Antarctica")
                                            }
                                            Option {
                                                text: qsTr("Asia")
                                            }
                                            Option {
                                                text: qsTr("Australia")
                                            }
                                            Option {
                                                text: qsTr("Europe")
                                            }
                                            Option {
                                                text: qsTr("North America")
                                            }
                                            Option {
                                                text: qsTr("South America")
                                            }
                                            onSelectedIndexChanged: {
    
                                            }
                                        }
                                    }
                                ]
    

    From now on, I'm currently not sure how not to show that the continent selected to the user.

    I have a request put in place for when the user performs a search for a country, but I can't reuse the same query to show only one continent when it is selected in the drop-down list.

    Container {
                            id: searchContainer
                            visible: false
                            background: Color.create("#212121")
                            layout: StackLayout {
                                orientation: LayoutOrientation.LeftToRight
                            }
                            leftPadding: 10.0
                            rightPadding: 10.0
                            topPadding: 15.0
                            bottomPadding: 15.0
                            TextField {
                                id: urlBar
                                layoutProperties: StackLayoutProperties {
                                    spaceQuota: 3.0
                                }
                                hintText: "Search..."
                                verticalAlignment: VerticalAlignment.Center
                                textFormat: TextFormat.Plain
                                onFocusedChanged: {
                                    if (focused == true) {
    
                                    }
                                }
                                inputMode: TextFieldInputMode.Default
                                input.submitKey: SubmitKey.Search
                                input.onSubmitted: {
                                    dataSource.sQuery = urlBar.text
                                }
                                onTextChanging: {
                                    dataSource.sQuery = urlBar.text
                                }
                            }
                            Button {
                                text: qsTr("Cancel")
                                layoutProperties: StackLayoutProperties {
                                    spaceQuota: 1.0
                                }
                                onClicked: {
                                    urlBar.text = ""
                                    dataSource.sQuery = ""
                                    searchContainer.setVisible(false)
                                }
                            }
                        }
    
                attachedObjects: [
                    // Definition of the second Page, used to dynamically create the Page above.
                    GroupDataModel {
                        id: dataModel
                        sortingKeys: [ "title" ]
                        grouping: ItemGrouping.ByFullValue
                    },
                    DataSource {
                        id: dataSource
                        property string sQuery: ""
                        onSQueryChanged: {
                            dataModel.clear()
                            load()
                        }
                        source: "asset:///XML/Countries.xml"
                        type: DataSourceType.Xml
                        remote: false
                        query: "/root/continent"
    
                        onDataLoaded: {
                            //create a temporary array tohold the data
                            var tempdata = new Array();
                            for (var i = 0; i < data.length; i ++) {
    
                                tempdata[i] = data[i]
    
                                //this is where we handle the search query
                                if (sQuery == "") {
                                    //if no query is made, we load all the data
                                    dataModel.insert(tempdata[i])
                                } else {
                                    //if the query matches any part of the country TITLE, we insert that into the list
                                    //we use a regExp to compare the search query to the COUNTRY TITLE (case insenstive)
                                    if (data[i].listItem.title.search(new RegExp(sQuery, "i")) != -1) {
                                        dataModel.insert(tempdata[i])
    
                                        //Otherwise, we do nothingand donot insert the item
                                    }
    
                                }
    
                            }
    
                            // this if statement below does the same as above,but handles the output if there is only one search result
                            if (tempdata[0] == undefined) {
                                tempdata = data
    
                                if (sQuery == "") {
                                    dataModel.insert(tempdata)
                                } else {
                                    if (data.listItem.title.search(new RegExp(sQuery, "i")) != -1) {
                                        dataModel.insert(tempdata)
                                    }
                                }
                            }
                        }
                        onError: {
                            console.log(errorMessage)
                        }
                    }
                ]
    

    Any help in creating a query on how to display only the selected option in the listview, would be great.

    Thanks in advance

    I'm not sure what goes wrong.

    leadingVisual: [
                                    Container {
                                        id: dropDownContainer
                                        topPadding: 20
                                        leftPadding: 20
                                        rightPadding: 20
                                        bottomPadding: 20
                                        background: Color.create("#212121")
                                        DropDown {
                                            id: dropDown
                                            title: qsTr("Continent:")
                                            Option {
                                                text: qsTr("Africa")
                                                value: "Africa"
                                            }
                                            Option {
                                                text: qsTr("Antarctica")
                                                value: "Antarctica"
                                            }
                                            Option {
                                                text: qsTr("Asia")
                                                value: "Asia"
                                            }
                                            Option {
                                                text: qsTr("Australia")
                                                value: "Australia"
                                            }
                                            Option {
                                                text: qsTr("Europe")
                                                value: "Europe"
                                            }
                                            Option {
                                                text: qsTr("North America")
                                                value: "North America"
                                            }
                                            Option {
                                                text: qsTr("South America")
                                                value: "South America"
                                            }
                                            onSelectedIndexChanged: {
                                                dataSource.sQuery = dropDown.at(dropDown.selectedIndex).value;
                                            }
                                        }
                                    }
                                ]
    

    When I choose an option, no data appears at all

  • Add options from a drop-down list of c ++

    In my C++ files, I have a QMap to data that I want to add a drop-down menu that I have in QML.

    I can't find examples of how to add options to a menu already existing but.  Here's what I have in my file QML right now:

    DropDown {
                        id: account
                        title : "Account"
                        enabled : true
                    }
    

    It seems it should be a fairly easy process to get the id of the drop-down list and enter the data of my inside QMap.

    Any help with this would be greatly appreciated!

    Oh, I didn't see that you do not know how to connect the logic of C++ to the UI QML, the ID of the component QML is not enough, you must set objectName: property 'dropDown' too.

    You can reach any CPP QML object like this:

    This excerpt comes from YourProjectName.cpp
    create the active document of the main.qml scene
    Set parent document created to ensure that there is overall
    application lifetime

    QmlDocument * qml = QmlDocument::create("asset:///main.qml").parent(this);

    Create the root for the UI object
    AbstractPane * root = qml->() createRootObject;
    game created the root like a scene object
    App-> setScene (root);

    and here's the findChild method
    Drop-down list * dpList = root-> findChild ("combo");

    After this line, dpList will point to the controller of the user interface.

  • Add instance with the values of the previous instance drop-down list

    Hi all!

    Need help with javascript.   I have a form that contains a radio button B when you select it, shows a subform.  Inside the subform is a table that contains a drop-down list.  The drop-down list is populated based on a previous option box A, who has been chosen and is a subset of the possible values.

    The user can click a button to create an additional instance of the subform.  It's the new instance is in the original version of the subform, and the drop-down list is not the subset of values.

    How can I get the drop-down list in the added instance view only the subset dropdown values?

    Let me know if you need more information.

    Thank you!

    Jodi

    You need to access the instance of right holders...

    Because you create new instances, you must access them using the method resolveNode()

    You can access the instance by using the 0-based index, if you are in the event to initialize the combo you can simply use 'this' instead of 'Main.PreApproved.Awardees.Table1.Row1.AwardType '.

    When you add an instance to the click event of button:

    var newAwardees = Awardees.instanceManager.addInstance (1);

    newAwardees.presence = "visible";

    newAwardees.Table1.Row1.AwardType.clearItems ();

    newAwardees.Table1.Row1.AwardType.addItem ("prize for Excellence in mentoring Faculty");

    //[...]

    DropDownList initialize event:

    If (this.length == 0) {}

    this.clearItems ();

    this.addItem ("prize for Excellence in mentoring Faculty");

    //[...]

    }

    If you change the value in the option button (which modifies the subset values):

    for (var i = 0, oLen is Main.PreApproved.Awardees.instanceManager.count; I< olen;="">

    var oneAwardees = Main.PreApproved.resolveNode ("Fellows [" + I.ToString + "]");

    oneAwardees.Table1.Row1.AwardType.clearItems ();

    oneAwardees.Table1 "Row1.AwardType.addItem ("prize for Excellence in mentoring Faculty");

    //[...]

    }

    I hope this helps!

  • 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.

  • Is it possible to add images/icons for a drop-down list box?

    I have created a form with several fields of text. The customer wants to be able to 'mark' some/all the of them with an icon (until there are only two icons of your choice)

    Due to the limit "real estate" on the form, it would help a lot if I could add these icons to a simple drop-down list. Unfortunately, I found no way to do it.

    Such an option exist?

    ... and if so, how?

    Thanks for any help or information

    No, but you can use a button to display images/graphics. If you are using JavaScript (for example, app.popUpMenuEx) to view the selections of text after you click the button, the script will mark the button icon to the corresponding selection. There are other similar types of things that would make with the buttons, but all rely on JavaScript. Note that this type of approach does not work on most mobile PDF viewers and not Adobe PDF viewers.

  • How to add a drop-down list interactive

    I want a drop-down list that will add a set of fields based on the choice of the list.

    In this case, we want users to perform their function and inspiring than selected title we need to fill specific license information. I have not found a javascript (or I don't have the skills) to get there. Forms, I've done in the past which would just hide the unnecessary fields, but is there a way to actually have the fields become active, or appear depending on the choices in the list?

    Yes, it is possible. The general code would be something like this (as a custom drop-down list field validation script):

    var field1 = this.getField("FieldName1");
    var field2 = this.getField("FieldName2");
    var field3 = this.getField("FieldName3");
    
    if (event.value=="Value1") { // Show field1, hide the rest
         field1.display = display.visible;
         field2.display = display.hidden;
         field3.display = display.hidden;
    } else if (event.value=="Value2") { // Show field1 and field2, hide the rest
         field1.display = display.visible;
         field2.display = display.visible;
         field3.display = display.hidden;
    } else if (event.value=="Value3") { // Show all fields
         field1.display = display.visible;
         field2.display = display.visible;
         field3.display = display.visible;
    } else { // hide all fields
         field1.display = display.hidden;
         field2.display = display.hidden;
         field3.display = display.hidden;
    }
    

    PS. Be sure to check the option to validate the selected value of the field drop-down immediately (under properties of the field - Options).

  • Hello experts, I use Adobe forms in SAP. My question is, is there a any restriction for additem keyword in JavaScript? I mean, even if I use the keyword additem to add the name and value of a drop-down list, it adds up to 10000 files only. Please s

    Hello experts,

    I use Adobe Forms in SAP.

    My question is, is there a any restriction for additem keyword in JavaScript?

    I mean, even if I use the keyword additem to add the name and value of a drop-down list, it adds up to 10000 files only.

    Please sugest

    A drop-down list is the bad INTERFACE design where an element can contain more than 100 entries. It is very good in tests, but absolutely unacceptable if the form must be used by a person busy doing their work. The choice of Acrobat forms are limited, but consider a list box. Despite this, there may be limits imposed by the system or the implementation.

    Better would be

    (a) stop filling after awhile the list and add an entry saying several elements not shown, running report or use better filter

    (b) be available for all filtering of course lists

  • Is this possible? Subforms appeal based on the drop-down list associated with the database

    I'm hoping to make a dynamic shape and I wonder if it's possible.

    I have a database with about 300 entries - pieces of agricultural goods and a few little bits of info on each of these properties. I want to create a form where users can choose the piece there rather than the property in a drop-down list. Based on the property they select, another menu drop down to fill with the cultures associated with this property. Then based on the selection made in this drop-down list, a specific form will be brought upward.

    For example, a person selects property #102 in the drop-down list. In the database, property #102 is associated with wheat, barley and corn, so the next drop would be complete with these three cultures. The user selects the wheat in the drop-down list and the form of wheat would be called. 

    I hope I explained that well enough.

    Is this possible? And if it's possible, how complicated to do? Assuming that I already have the database and subforms, it would be a long process from weeks to the script, or it would be simple enough?

    Yes, this could be done, here is an example that should help: Drop dependent dropdown (specimen attached)

    On the basis of selection (change event of the second menu drop-down), you can show or hide a subform.

    -Wasil

  • ADD ITEMS TO THE LIST DROP-DOWN LIST TO A TEXT FIELD (USER ENTERS THE ITEM) AND ALSO RELATED TO VALUE

    Untitled.jpg

    I have WANTED to ADD of ELEMENTS from the list drop-DOWN OF THE AREA of TEXT (the ELEMENT NAME) WHERE the USER BETWEEN of THE DESCRIPTION of POINT

    AND RELATED value SHOULD ALSO BE ADDED to THE SAME ELEMENT.

    LIKEWISE REMOVE ITEMS IN THE DROP-DOWN LIST

    PLEASE GIVE SHAPE TO SAMPLE OR JAVASCRIPT FOR THE ABOVE SCENARIO...

    INDEED USEFUL FOR MY PROJECT PLEASE SEND PDF FORM

    Hi Praveen,

    You can add items to the list in a specific order, which would be to load the elements in an array, sorting and then load in the dropdown list drop-down list.  This would be in the click event of the button Add.

    Create a table to hold all the list items, table drop-down list contains objects with a property 'displayItem' and 'value '.

    dropDownItems var = [];

    Add the new

    dropDownItems.push ({displayItem: ItemName.rawValue, value: BoundValue.rawValue});

    Add existing ones

    for (var i = 0; i)< dropdownlist1.length;="">

    {

    dropDownItems.push ({displayItem: DropDownList1.getDisplayItem (i), value: DropDownList1.getSaveItem (i)})

    }

    Sort by ascending order of displayed text

    () dropDownItems.sort

    function (a, b)

    {

    If (a.displayItem< b.displayitem)="" return="">

    If (a.displayItem > b.displayItem) return 1;

    return 0;

    });

    clear all items

    DropDownList1.clearItems ();

    load the sorted items

    for (var i = 0; i)< dropdownitems.length;="">

    {

    var dropDownItem = [i] dropDownItems;

    DropDownList1.addItem (dropDownItem.displayItem, dropDownItem.value);

    }

    clear the fields of the source

    ItemName.rawValue = null;

    BoundValue.rawValue = null;

    I added a button 'Add' sorted in my sample https://workspaces.acrobat.com/?d=OwysfJa-Q3HhPtFlgRb62g

    Concerning

    Bruce

  • How to fill out the database in the drop-down list box

    Hi all, I want to display all the data in database (c_type) column in the drop-down list box, how can I do?

    I use form 6i.

    Sorry if the question is already exist in the forum...

    Kind regards

    Maybe this helps http://andreas.weiden.orcl.over-blog.de/article-28957008.html

Maybe you are looking for