Dropdown query

Hello

I use a drop-down list, in my application to filter the results.

Here is my code:

ListView:

ListView {
                            id: listView1
                            dataModel: dataModel1

                            leadingVisual: [
                                Container {
                                    id: dropDownContainer1
                                    topPadding: 20
                                    leftPadding: 20
                                    rightPadding: 20
                                    bottomPadding: 20
                                    background: Color.create("#212121")
                                    DropDown {
                                        id: dropDown1
                                        title: qsTr("Month:")
                                        Option {
                                            text: qsTr("June")
                                            value: "Brazil"
                                        }
                                        Option {
                                            text: qsTr("July")
                                            value: "July"
                                        }
                                        onSelectedIndexChanged: {
                                            dataSource1.sQuery = dropDown1.at(dropDown1.selectedIndex).value;
                                        }
                                    }
                                }
                            ]

                            contextActions: [
                                ActionSet {
                                    id: itemActionSet
                                    title: ListItemData.title
                                    subtitle: qsTr("Actions")
                                    actions: [
                                        ActionItem {
                                            title: qsTr("Add To Saved")
                                            imageSource: "asset:///IMG/ic_add_favorite.png"

                                            onTriggered: {
                                                //Add to saved tab which can then be accessed by the user
                                            }
                                        }
                                    ]
                                }
                            ]
                            listItemComponents: [
                                ListItemComponent {
                                    type: "item"
                                    StandardListItem {
                                        title: ListItemData.listItem.title
                                    }
                                }
                            ]

                            onTriggered: {
                                var selectedItem = dataModel1.data(indexPath);
                                var detail = fixtures.createObject();

                                detail.fixtureInfo = selectedItem.listItem.fixtureInfo
                                detail.dateInfo = selectedItem.listItem.dateInfo
                                detail.timeInfo = selectedItem.listItem.timeInfo
                                detail.stadiumInfo = selectedItem.listItem.stadiumInfo

                                navigationPane1.push(detail)
                            }
                        }

DataSource:

attachedObjects: [
                // Definition of the second Page, used to dynamically create the Page above.
                GroupDataModel {
                    id: dataModel1
                    sortingKeys: [ "title" ]
                    grouping: ItemGrouping.ByFullValue
                },
                DataSource {
                    id: dataSource1
                    property string sQuery: ""
                    onSQueryChanged: {
                        dataModel1.clear()
                        load()
                    }
                    source: "asset:///XML/Fixtures.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
                                dataModel1.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) {
                                    dataModel1.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 == "") {
                                dataModel1.insert(tempdata)
                            } else {
                                if (data.listItem.title.search(new RegExp(sQuery, "i")) != -1) {
                                    dataModel1.insert(tempdata)
                                }
                            }
                        }
                    }
                    onError: {
                        console.log(errorMessage)
                    }
                },

                ComponentDefinition {
                    id: fixtures
                    source: "FixturesDetail.qml"
                }
            ]
            onCreationCompleted: {
                dataSource1.load()
            }

XML


    
        
        Brazil vs Croatia
        Thursday 12 June 2014
        17:00PM (Local Time)
        Arena de Sao Paulo
        
    

What I'm trying to do, is to have the dropdown filter the results based on the month. The drop-down list is working, if the word June or July are a ListItem, but I need the sQuery to check the headers (continent title) rather than the listItem - as the words of June and July are in the headers or not an article.

As you can see in the image above, the dates are in the wrong order and only a single listItem appears which connects this question so if someone could tell me where I need to change my code to have the dates in the correct order and how to fix the listitem issue then that would be great!

So, finally, someone has an idea how to change the sQuery to find the header instead?

Thank you

I changed the value for the date as a string so that the drop down menu search rather headers

Tags: BlackBerry Developers

Similar Questions

  • 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

  • SQL that passes to the procedure as a parameter query

    I'm trying to accomplish what seems so simple and yet I can't do things. I want to pass a sql query via a parameter to a procedure. In this procedure, I want to loop through the results and create options for a selection list. I tried to use EXECUTE IMMEDIATELY, sliders, SYS_REFCURSOR, etc, but nothing seems to be quite right. Any ideas on how to achieve this? Thank you!


    PROCEDURE Dropdown
    (
      nam
    IN VARCHAR2,
      qry
    IN VARCHAR2,
    )
    IS
      html VARCHAR2
    (1000);
    BEGIN
      html
    := '<select id="test" name="test">';

     
    /* ?? */

      html
    := html || '<option value="' || val || '">' || descrip ||'</option>';

      html
    := html || '</select>';
      htp
    .p(html); 
    END Dropdown;

    A variation would be to use DBMS_SQL to ANALYZE and DESCRIBE the results.

    In this way, you can check to make sure that you have found a SELECT statement that returns only 2 columns.

    MK

  • Dissect of Eloqua own AdWords Landing Page and URL with query string parameters, please!

    I presume that for AdWords landing pages are one of the most common types in use. I'm at a new company and try to create an approach that uses the latest methods. HAFS is gradually, and a large part of the information contained in the Topliners is old (2011) as these popular posts

    What is the best way to track Google adwords through Sales Force?
    How to capture Sources referring to forms and Landing Pages using query strings

    and the references using javascript to analyze the parameters in the screens that is 2009 and is not exactly what Eloqua uses today.

    I started to look at what Eloqua uses in its own marketing efforts and saw the potentially useful parts and parts that are confusing. I thought it would be useful if someone could dissect the code of the landing page and explain how each part of the code is. I'm OK with short descriptions and references to other articles or messages to explain the different parts that have not changed.

    Here's a page url to use. I added 'x' before each additional parameter then click top ruin the campaign stats.

    http://demand.Eloqua.com/LP=3461?elqoffer=xGartnerMQ & GoogleCampaign = xEloqua & SLS = xPPC_Google_Eloqua_2012 & gclid = xCKGFzcHyh7YCFQThQgod7lMAyg

    Here are some specific questions that I hope can be answered:

    • What you rely on Google to deliver you in their reports vs. what you capture discrete parameters: elqoffer, GoogleCampaign and sls
    • You use the gclid itself? How?
    • Is there a new better method for parsing of URLS and using hidden fields settings?
    • How do you use Eloqua cookies at the same time to send the form of Adwords?
    • You dynamically change the landing page?

    Thank you!

    Hi Mike,.

    I'm on the Ops of Eloqua Marketing team and can shed light on some of your questions.  I hope this helps!

    • What you rely on Google to deliver you in their reports vs. what you capture discrete parameters: elqoffer, GoogleCampaign and sls

    • elqoffer - we use elqoffer to indicate that the offer is valid for adword.  The value we deliver is used for many things.  Of course, we use it for reporting purposes, but we also set up our steps to use this value in a hidden field to redirect to the appropriate page supply once the form and also send the appropriate autoresponder of form processing.  We set up a dropdown list (aka select list) cards offer URL values (for the page of the offer) and another list of choices cards offer values to email ID (for the answering machine).
    • elqchannel - we also usually include a query string for the elqchannel who tells us the General source of the Contact (e.g. Google, Bing, etc.).
    • SLS - is essentially the Source of lead (sls = source of specific lead).  We use it to fill a hidden fields that reach "lead Source - Original" and 'Lead Source - the most recent'.  For us, the source of the specific lead is a very granular (and non-General, such as 'research') but includes a lot of information based on a strict naming convention.
    • That's what we use Eloqua to adwords, but we also use an SEO company to help us optimize our search spend.  To do this, they provide their own tracking code we put on the landing page initial as well as the page of the offer (ie. confirmation page).  To get the code on our LP, we use the cloud "Static content" component that allows you to place any custom code you want in the body of the HTML code.  Unfortunately, I don't have details on what exactly is captured with this code, or how it is used.
  • You use the gclid itself? How?
    • I don't know the answer to this one.  It's someone else on our team that works closely with an SEO company, so I think they know.
  • Is there a new better method for parsing of URLS and using hidden fields settings?
    • YES!  You may have noticed, we have some Javascript on our landing page that does a few things.  First of all, he did a Web data search in Eloqua to see if you are a known visitor and if so, we can pre-fill the form with information we already know the visitor.  The other thing is the JS is populate our hidden fields with the values of query string.  We started to do this before I had a cloud component that eliminates the need for JS custom.  You can use Form Population App to do all that for you.
  • How do you use Eloqua cookies at the same time to send the form of Adwords?
    • I'm not 100% sure I know what you're asking here, but my answer to the previous question can also respond to this one.  Data search Web first checks the Eloqua cookie to retrieve your email address, and then it uses this email address to search for your Contact field values and pre-fill the form.
  • You dynamically change the landing page?
    • We're not changing dynamically the landing page.  Usually, a visitor to click through to an Eloqua email or visit a page PURL.  Dynamically present the offer page based on the value of the query string for "elqoffer."  Looking for an application Cloud released in the coming days that will allow you to place the dynamic content on this initial landing page based on your cookie.
  • The way we structure our campaigns is based on the balance between reporting requirements while maintaining their operational efficiency.  For example, we do want to create a new campaign for each offer that we have.  That would quickly overwhelm our team.  For 2013, we have created 3 campaigns:

    1 research

    2. 3rd party Emails

    3 display ads

    Each of these campaigns have only 1 formula on it (one for research, one for email and display ads).  Each offer has its own landing page (see screenshot below).  The campaign of the report combined with the data of the form layout give us the requirements we need to understand what is working and what is not.

    TIP: If you have custom data objects, you can also consider creating one that seizes all shipments form for each of your forms in 1 place.  This way, you need only 1 set of data instead of individual export for each form of export.

    Example of a search campaign:

  • Return each value only once using cfloop query

    Hello

    I have a code that fills a cfselect list dynamically and then fills a second list based on these values. Everything seems to work fine, except that all values are taken from the database, and there are duplicates in the majority of cases. For example, the 1S1W is displayed in the dropdown value 10 times, where I'll settle it there once.

    Is it possible to have one of each value in my list?

    < isDefined ('form.select_Main_Group') cfif >

    < cfset page.select_Main_Group = form.select_Main_Group >

    < / cfif >

    < cfoutput >

    < name of the form = "DropDown" method = "post" >

    <!--> query DB for the first descent to the bottom of the list

    < CFQUERY name = "get_Main_Group" datasource = "ds" dbtype = "odbc" >

    SELECT *.

    FROM slco_sire.dbo.area_reference_plats_doc INNER JOIN slco_sire.dbo.area_reference_plats_page

    ON slco_sire.dbo.area_reference_plats_doc.doc_id = slco_sire.dbo.area_reference_plats_page.doc_id

    ORDER BY page_description

    < / CFQUERY >

    <!--> first drop-down list

    <! - VIEW the onChange event of javascript in the select tag, it's what sends the form after the first selection - >

    < select name = "select_Main_Group" required = "yes" onchange = "this.form.submit ()" >

    < option > select Township/range < / option >

    <!-dynamically populate the first drop drop down based on the get_Main_Group query->

    <!-NOTICE the CFIF in the option tag, that said, if the first selection has occurred, display the chosen option when pages are reloaded->

    < cfloop query = "get_Main_Group" >

    < option value = "" #SECTION # "< cfif isDefined ('form.select_Main_Group') > < selected cfif form.select_Main_Group eq ' #SECTION # ' > < / cfif > < / cfif > > #TOWNSHIP_RANGE # < / option >"

    < / cfloop >

    < / select >

    < p >

    <! - if the first selection has been made, see the second dropdown menu with the appropriate results - >

    < isDefined ('page.select_Main_Group') cfif >

    <! - query DB for second drop to the bottom of the list, based on the selected item in the list - >

    < cfquery name = "get_Sub_Group" datasource = "ds" dbtype = "odbc" >

    SELECT TOWNSHIP_RANGE, SECTION

    FROM slco_sire.dbo.area_reference_plats_doc INNER JOIN slco_sire.dbo.area_reference_plats_page

    ON slco_sire.dbo.area_reference_plats_doc.doc_id = slco_sire.dbo.area_reference_plats_page.doc_id

    WHERE the ARTICLE = ' #page.select_Main_Group # '.

    < / cfquery >

    <!--> the second drop down menu

    < select name = "select_Sub_Group" required = "yes" >

    Section select < option > < / option >

    <! - dynamically fill the second fall to the bottom of the list based on the get_Sub_Group query - >

    < cfloop query = "get_Sub_Group" >

    < option value = "#SECTION #" > #SECTION # < / option >

    < / cfloop >

    < / select >

    < / cfif >

    < / make >

    < / cfoutput >

    Emily,

    Easy fix.  Use the same approach you did to determine when the second menu drop-down.  Change this line:

    action = "by_TRS_results_arps_2.cfm" > ""

    to these:

  • How to add additional buttons, the fields in the query Panel

    I have a layout where I need to search for employees working under a Manager

    I have a search criteria where I can choose coach in a menu drop-down so that the data of employees under him appears


    Now I need to add a field more in search as assign to the manager who is a drop down

    And I need add two buttons Reassign, Deassign the search criteria


    So that when I select my manager current employees under him if poster and when I select the value of the entitlement and Manager dropdown in search criteria and click on the button to re-allocate employees are they assigned to this new manager... If I click on delete the key assignment those employees will get current Manager deassigned

    And also once the results displayed in table I have to have a checkbox for each record where I can select the checkbox and reassign or deassing only employees


    How to add additional buttons, fields for the Commission to request... I slipped and dropped my display criteria in the query with table Panel

    Hello

    a query Panel is for query and do not update documents. You can add buttons to the toolbar facet

    See: http://download.oracle.com/docs/cd/E21764_01/apirefs.1111/e12419/tagdoc/af_query.html

    but not the query itself on the ground

    Frank

  • Select Drop Down Menu recordset query.

    I'm looking to use a dynamic drop-down menu to query a Recordset... I use Colfusion to import a MS Access database that contains the following fields: 'Date template', 'Name', 'Points' and 'target '.  Whenever updates to the database, the field 'model' contains the date and time, the model has been run.  I figured out how to create a drop-down Dynamics using SELECT DISTINCT 'model date' and have also figured out how to create the dynamic recordset to display display the data 'Name', 'Points' and 'target '.

    I want the user to select the "Date of model" in the drop-down menu, press "submit" button and then have the appropriate 'Name', 'Points' and 'Target' data surveyed and below.

    The application must take the selection in the drop-down list of 'model date' and then query the fields 'name', 'points' and 'target' for this particular "date model.

    I admit that my knowledge of SQL and Coldfusion is not the best, but it seems that it is a fairly simple task and miss me just one or two pieces of gear and put everything.

    The database essentially looks like this:

    Date pattern... Name... Points of... Goal

    01/08/2010-08:00... DOE... 1, 250... 5.55%

    01/08/2010-08:00... DOE... 850... 2.35%

    01/08/2010-08:00... Bill Smith... 11, 832... -123,23%

    2010-08-02 09:02... DOE... 1, 323... 6.67%

    2010-08-02 09:02... DOE... 1: 001... 3.21%

    2010-08-02 09:02... Bill Smith... 10, 235... -110.26%


    The drop-down list shows only "model dates."

    01/08/2010-08:00

    02/08/2010 09:02

    For example, if on 01/08/2010 08:00 has been selected in the drop-down list, I want the following text is displayed:

    Name.................. Points of... Goal

    John Doe... 1, 250... 5.55%

    Jane Doe... 850.......................2.35%

    Bill Smith... 11, 832... -123,23%

    For any help or suggestion would be greatly appreciated!

    Thank you

    Mike

    My second paragraph speaks only to display the filtered data, so I guess that's what you're looking for, but not yet quite sure based on what are the other answers.

    But I'm on anyway-

    On your first page, note the instance name of your drop down menu, for example "ModelDate".  Make sure that it is in a form and set the form action on the page where you want to display your data, set the form POST action.

    On the results page, create a table with cells for each of the data items to display. Create a recordset that you can do in Simple mode. Allow to select all and the value of the fall of filter down to the database field that contains the Date of your model. In the box on the right, select "=". the next list dropdown selct "Variable form" and the name of the variable type in the name of the instance of falling down on the first page.

    I may not have the terminology right it's memory.

    On the data tab, expand your recordset and locate each of the database fields to display.  Drag each of them to the cell in the table on the page where you want it to display.  The cells in a table should be in a linear row.

    Now select the table row buy by selecting the TR tag in the tags just above the properties panel.  In the server behaviors tab, select the region of repetition and "All Records"

    Publish your pages and test!

  • Adding an if / missing peramiters in the cfswitch to a query statement

    Hello;

    I am trying to add a function to a page I made. There a lot of things, so I'll try and give you the basic function I am trying to add... and as few of the other logic as possible.

    I want to add a drop down menu on this page, I have 2 querys by running. one, running the drop... Here's the code for that:

    < name CFQUERY = "cata" datasource = "" #APPLICATION.dataSource # "cachedwithin =" #CreateTimeSpan (0, 6, 0, 0) # ">"
    Select subName, subID
    OF merchSubCat
    ORDER BY subName
    < / CFQUERY >

    < form Name = 'box' method = "get" Action = "wallProduct.cfm? id = #subID #" >
    < select name = "CategoryID" size = "1" class = "selectstyle" onChange = "category.submit (); ">
    < option value = "" >--select a category--< / option >
    < request CFOUTPUT = "cata" >
    < option value = "#subID #" > #subName # < / option >
    < / CFOUTPUT >
    < / select > < / make >

    OK, pretty simple. He takes the news of my db and makes a small menu out of it. Click on one of the selections, and it'll pass a url.id on the same page. This complaint is the main, that runs the page. I need to serve the first Recordset by default, and if you select in the dropdown menu, the records according to will be brough. Here's my query to add this feature.

    < name cfquery = "getMerch" datasource = "#APPLICATION.dataSource #" >
    MerchID SELECT, MerchName, MerchDescription, MerchPrice, MYFile, subID, CategoryID
    OF goods
    WHERE
    < cfif isDefined ("#url.id #") >
    < cfswitch expression = "#url.id #" >
    < cfcase value = "1" > subID = 1 < / cfcase >
    < cfcase value = "2" > subID = 2 < / cfcase >
    < cfcase value = "3" > subID = 3 < / cfcase >
    < / cfswitch >
    < cfelse >
    subID = 1
    < / cfif >

    < / cfquery >

    When loading my page, there is no ID in the url, and my code is not like that and throwing an error as such:

    Item ID is not defined in the URL.

    The error occurred in C:\Websites\187914kg3\magWall\wallProduct.cfm: line 19
    17 : FROM Merchandise
    18 : WHERE
    19 : <cfif isDefined ("#url.id#")>
    20 : <cfswitch expression="#url.id#">
    21 : <cfcase value="1">subID = 1</cfcase>
    

    That's my problem, and I'm sure it's something stupid, that I forget ehre. I did this b4. How to make it work so that by default, subID = 1 appears when the page loads, and the others are displayed when you use the menu drop down.

    I also talked to the other logic on this page. There is a following n button to perform this query, but also a cfswitch to invert the order of the folders, using ORDERBY in my query. But I want to get this dropdown menu to operate before adding it to this logic.

    can someone help me? I have a mental block about this problem.

    Thank you.

    Well that really doesn't change anything.  You mix a few variables scope limited with unscoped variables earlier.  I would have just added the expanses of original code.

    Speaking as to the 89 line which is a table cell (which you have...).  How did the error line related to the request code and form that you posted?

  • Dropdown Menu problem Dynamics

    Hi all

    Hope someone can help me with this little problem. I am filling a form of dynamic dropdown menu using data from my database. Store values in a single column of my database... However, there are duplicated in some records and no name in other names and I want that my drop-down menu to display only one option at a time... then...

    Rather than view this:

    option01
    option01
    option02
    option03
    option03

    I just like it to appear:
    option01
    option02
    option03

    My SQL to query the database is:

    SELECT *.
    OF databasetable
    WHERE databasefield IS NOT NULL
    ORDER BY databasefield ASC

    But what I need is something like:
    SELECT *.
    OF databasetable
    WHERE databasefield IS NOT NULL and does not multiple records with the same value
    ORDER BY databasefield ASC

    Problem is that I don't know the code to achieve and does not multiple records with the same value

    Any help much appreciated.
    Steve

    Dave

    Thank you very much... I've knew the SEPARATE command but could not work out where in the code is to be placed. As always a simple answer when you know how, but it takes someone competent and friendly enough to help others.

    Dave, your help is much appreciated.
    Steve

  • Deleting saved af:query search entry behind strange leaves

    Hello

    I'm using ADF Faces 11 g with MDS configured as shown:
    http://Biemond.blogspot.com/2009/07/customize-and-personalize-your-JSF.html

    I also applied the config fix mentioned in the release notes to activate persistent saved searches:
    http://www.Oracle.com/technology/products/jdev/htdocs/11/11.1.1.1/KnownIssues.html#cust8

    I now connect on my application do the following:
    1. create a new search by adding criteria using my component af:query
    2. click on 'Save' and give research a name for example "My New Query" (only option checked is "Run automatically")
    3. Select a different drop down list 'Saved Search' query (so that "My New Query" is not selected)
    4. open the "Saved Search" dropdown and choose 'Customize... '. »
    5 Select 'My New Query' and click 'Remove', then confirm the deletion.
    6. click 'OK' to close the 'Customize saved searches', then again open the drop down list 'Saved Search' and choose 'Customize... '. »
    7. I now see an entry in the list of "Saved searches": __DefaultViewCriteria__

    Whenever I have repeat steps 1 to 7 (create a new search and delete it), I see another entry into the area to customize saved searches called: __DefaultViewCriteria__. I can't delete these entries, but when I disconnect, and then reconnect, erroneous entries have disappeared.

    If someone else can replicate this? Looks like a bug to me.

    Yes, it is a bug.

    It was reported in bug 8740244 - DELETED SAVED QUERY NAME SHOWS upward in SEARCH LIST of the TIME with the HELP of MDS
    (not published)

    Found another issue by working on the fix for this. When you delete a
    saved query, in the 'Personalized Saved Search' dialog box selectOneChoiceList
    a '__DefaultViewCriteria__' option appears. And the number of the model
    option increases as you save and delete more requests. For example, if you have
    deleted 3 query there are 3 options of '__DefaultViewCriteria__ '.

    This will be fixed in the next version of JDeveloper (11.1.1.2.0 - no date official yet).

    Kind regards

    Didier.

  • run query region only on click of a button

    Hello
    I have been out of reach of APEX for a while now. what I want to achieve can be simple. Here's what I'm looking for.

    I have a page that contains a region with several dropdowns (Items) for the user to filter. the default value for all drop-down lists is "ALL". When loading this page drop-down menus are default to 'ALL' and my query is written so that it displays results has these default values. It is as good as any 'where condition"in the query. the user can make choices of drop-down menus and press the button named "SELECT" to display the filtered results. everything is good and works.

    what I want is, when the page is loaded I don't want the query to run for "ALL". This is a request for a long time and no one cares for the results with the filters set to 'ALL '. I want just the filters to appear on the page. the user can click just "SELECT" to see all results or filter on the "SELECT" and drop-down menus to display the filtered results.

    entries how to carry out what are appreciated.

    I hope I am clear.

    Thank you

    I would create a button that triggers a process that executes the query. For example:

    QUERY_RESULTS is tha region contains the results of your query.
    P1_RUN_QUERY would be the name of button
    RUN_QUERY would be the value REQUEST button
    P1_Select_A, P1_Select_B, P1_Select_C are your drop-down lists
    SHOW_REGION application, set to 0

    You can create a region based on the following pl/sql query:

    Select * from t_mystuff t
    where t.criteria: =: P1_Select_A and
    t.criteria_2: =: P1_Select_B and
    t.criteria_3: =: P1_Select_C

    Then, set a condition on the region so that it shows only when SHOW_REGION = 1

    A process page can be assigned to run when you press P1_RUN_QUERY, who runs an anonymous PL/SQL block, something like this:

    Start

    If: SHOW_REGION: = 0 then
    : SHOW_REGION: = 1
    ON THE OTHER
    : SHOW_REGION: = 0
    end if;

    end;

    Management would be subordinated to the RUN_QUERY request and would branch to the same page that has the QUERY_RESULTS region.

  • (Updated report) SQL query - may not know how to make one

    Hi people,

    Can someone tell me how to make a report where the data can be updated? Not an interactive report, SQL report that selects a single row. The only options in the menu dropdown I see are "SQL query" and 'SQL Query (body of function from PL/SQL returning SQL query)', but I have a report elsewhere that says: this type are "SQL Query (updated report)", but I do not remember how :(

    Thank you very much

    -Adam

    Hi Adam,.

    An updated report is a 'tabular form' - see: http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10497/frm_tabular.htm#CHDFBHDB

    Andy

  • Why should I uncheck responder OCSP query servers to confirm the current validity of certificates to access the site Web of Yahoo?

    If I check the servers of responder ocsp query I get the error message sec_error_ocsp_old_response. If I uncheck that box yahoo charge very well

    Hello, can check you that your system clock is set to correct date, time, and time zone? -> time.is

  • When you type a query in the bar always double the third letter, for example, research, if I want to write a 'youtube' written "youutube" what to do, help

    When you type a query in the bar always double the third letter, for example, research, if I want to write a 'youtube' written "youutube" what to do, help

    Hello chilli.willi, try Firefox Safe Mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • How to get rid of the stupid list dropdown in the search box

    How to get rid of the stupid list dropdown in the search box

    If you want to restore the window previously used independently to manage search engines, you can enable or disable this pref to false with a middle-click on the topic: config page.

    • topic: config page: browser.search.showOneOffButtons = false

    Close and restart Firefox to force change.

Maybe you are looking for