Populate combobox2 From database WHERE combobox1.text = something

I want to populate combobox2 from database WHERE combobox1.text = something. Here is the code I have and also I am using datable so I want to keep it that way
private void cbCompany_SelectedIndexChanged(object sender, EventArgs e)
            this.cmpLocationTableAdapter.FillLocbyCmp(this.shahiemsDataSet.cmpLocation, cbCompany.SelectedText.ToString());
            cbLocation.DataSource = shahiemsDataSet.cmpLocation;

The result is a blank combobox2(cbLocation).
Hello,
Did you mean that the combobox2 bound to the datatable cbLocation, but it didn't contain any item, right?
If so, it seems that the method FillLocbyCmp didn't fill any data to that datatable, to troubleshoot this case, we need to check the following tips.
1. Whether the database for that dataAdapter contains any data, and whether you connected to the right database.
2. Whether that database could get any result filtering by that text value.
3. Whether that method could get that datatable filt succeccfully.
Since we could not get code about that FillLocbyCmp method, if possible, you could share them with us.
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Populate ComboBox from database - NOT using Flex Data Services

    Hi there,
    We are using CF with Flex but are not using the Flex Data
    Service. I'm very much a newb and I'm having trouble finding any
    information on how to populate controles from a database without
    using Flex Data Service. Any help would be greatly appreciated.
    First I have a page... JobSearch.mxml that contains a combo
    box that I want to populate with the job_id and job_title from a
    MSSQL database.
    In Flex in the RDS DataView I used the "Create CFC" Wizard
    which generated "job.cfc" and "jobGateway.cfc". It also generated
    "job.as".
    The CF Function that selects the data appears to be defaulted
    and called "load" and the .as function is called simply "job".
    So, that all looks great. But I can't find any information on
    what I need to have on my JobSearch.mxml to actually get this data
    into the comboBox.
    I did:
    <mx:Script>
    <![CDATA[
    [Bindable]
    public var jobData:job = null;
    ]]>
    </mx:Script>
    And then:
    <mx:ComboBox
    text="{jobData.job_title}"></mx:ComboBox>
    But I'm being told "Type was not found or was not a
    complie-time constant: job"
    I guess I'm missing something, or doing something way
    wrong... I just don't know enough of Flex at this point to know
    what it is.
    Thanks!
    April

    Using php or asp is not an option, as we are a Cold Fusion
    House.
    I was looking at an article on Ben Forta's blog (
    http://www.forta.com/blog/index.cfm?mode=e&entry=1786)
    and following his example I did this... only it doesn't work:
    I'm very very new to Flash and we are using ColdFusion but
    are not using Flex Data Services. I've been trying to figure out
    how to populate a combobox from a database and I'm just not having
    any luck.
    My project is called "PreTraffic". I have my main file as
    "JobSearch.mxml" and a folder under the root named "cfc" with a
    file called "job.cfc".
    job.cfc contains the following code:
    <cfcomponent>
    <!--- Get jobs --->
    <cffunction name="GetJob" access="remote"
    returntype="query" output="false">
    <cfset var job="">
    <cfset var results="">
    <cfquery datasource="discsdev" name="job">
    SELECT job_id, job_title
    FROM job
    WHERE status = 'O'
    ORDER BY job_title
    </cfquery>
    <cfquery dbtype="query" name="results">
    SELECT job_title AS label, job_id AS data
    FROM job
    ORDER BY label
    </cfquery>
    <cfreturn results>
    </cffunction>
    </cfcomponent>
    And JobSearch.mxml has the following code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*"
    layout="absolute"
    backgroundGradientColors="[#ffffff, #d0d0d0]"
    creationComplete="InitApp()">
    <mx:Style source="style.css" />
    <mx:Script>
    <![CDATA[
    public function InitApp():void {
    jobSvc.GetJob();
    ]]>
    </mx:Script>
    <!-- ColdFusion CFC (via AMF) -->
    <mx:RemoteObject id="jobSvc" destination="PreTraffic"
    showBusyCursor="true" />
    <mx:VBox label="Job History" width="100%" height="100%"
    x="10" y="92">
    <mx:Label text="Search jobs by"/>
    <mx:Form label="Task" width="100%">
    <mx:FormItem label="Job Name:">
    <mx:ComboBox id="jobNameCB"
    dataProvider="{jobSvc.GetJob.results}"></mx:ComboBox>
    </mx:FormItem>
    </mx:Form>
    <mx:HBox>
    <mx:Button label="Search"/>
    <mx:Button label="Clear"/>
    </mx:HBox>
    </mx:VBox>
    </mx:Application>
    My Compiler thingy points to:
    -services
    "/Volumes/flexwwwroot/WEB-INF/flex/job-services-config.xml" -locale
    en_US
    and job-services-config.xml contains the following code:
    <destination id="PreTraffic">
    <channels>
    <channel ref="my-cfamf"/>
    </channels>
    <properties>
    <source>flex.pretraffic.cfc.job</source>
    <lowercase-keys>true</lowercase-keys>
    </properties>
    </destination>
    Well, when I run the app... the combobox is not populated...
    Can anyone help with what I've done wrong?
    Thanks!
    April

  • Populate List from Database (Very Strange Behaviour)

    Dear Fellows,
    I have developed a from which has two lists One for Major (say) and Other for Minor (say), thesr minors are based on the value of Major.
    Now I have developed this system on Windows XP Professional, Developer/2000 6i and Oracle 8i (release 8.1.7).
    Major list is populated from database and it shows all major values now using 'when_list_change' trigger the minor list is populated from the database based on the value of major list. Interestingly enough it is working fine without any problem.
    Now I have deployed the software to Windows 2000 Professional/Server (tried on both), Developer/2000 6i and Oracle 8.0.5, but strangly the lists are not working now. First list (major) is still working but the other dependent lists are not working.
    Another strange thing is that it populate the second list for one particular value (only at times).
    The logic is that I have used a program unit to which i am passing 'list element' and 'query' and call it for each list in the when-list-change trigge.
    Now its a very strange behaviour, I don't know what to do?
    Your cooperation will be highly appreciated.
    regards.

    rolrollerx wrote:
    Hi,
    I have Nokia N8 (a great phone, btw) with Symbian Anna. I wanted to download the maps. But the PC Ovi Suite is just busy forever, without downloading anything (I used Performance Monitor to find out it was doing nothing for hours).
    As I have unlimited data plan from my phone, I decided to try updating directly from the phone instead. It successfully downloaded the list of maps, but when I selected one of them
    "No Wi-Fi network available. Please configure a WiFi access point in the phone Internet destination settings."
    Why should I do that? I have a working connection on that phone (as evidenced by the successful download of the list of maps). So now, I am stuck. How can I download the maps?
    Well, the suggestion is there. Use a router.
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • Populate Datagrid from database

    Using Adobe Flex Builder 3 Beta 2, I have successfully used
    the Data Source Explorer window to connect to the Northwind and
    Pubs database on my SQL 2005 server. I can see the schemas and
    tables, etc. I understand that currently I cannot simply drag and
    drop the fields into the datagrid (which would be nice) so how do I
    'wire up' a table to the data grid? Is there an example which you
    can refer me to (with source) that would explain that? I've
    successfully wired up a webservice, but not to a database listed in
    the Data Source Explorer. If there were an example that showed a
    CRUD data grid, that would help.

    Just to give you an update as to where I am and where I'm
    hung up, I was able to make a little bit of progress but not too
    far.
    1. I created a Flex Project (Web application) and specify
    Applcation Server Type: ASP.net.
    2. Next, I have the choice of specifying 'Use ASP .NET
    Development Server' or 'Use Internet Information Services (IIS). At
    the 'Usa ASP .NET Development Server', the error message at the top
    of this wizard window says (X) You don't have ASP .NET Development
    Server Installed. [Well, it may not be running but I do have it
    installed as part of the .NET 2.0 Framework.. it does exist]. So,
    because of the error, I have no choice but to use the alternate
    option, 'Use Internet Information Services (IIS).
    3. I specify my Web Application Root: d:\Flex3
    Projects\TestProj3 (I manually have to create the folder).
    4. I speciy my Web Application URL:
    http://localhost
    5. I click the Finish button.
    Note... I've already selected my Connectivity using the Data
    Source Explorer (which is available by selecting the following in
    Flex Builder: Windows, Otherviews, Connectivity, Data Source
    Explorer, and then adding in a database connection at my MS SQL
    2005 server, specifying username and password).
    6. Next, from Flex Builder, I select: Data, Create
    Application from Database, and specify the current project,
    connection (in my case, Northwind) and the employee table, etc. I
    click NEXT.
    7. I can select C# with web services or Visual Basic with Web
    Services, so I select Visual Basic.
    8. Select Finish.
    OK at this point, a lot of code (action script, webservices,
    etc. is auto-generated for me - kewl.. just like Dreamweaver :-)
    Now I'm ready to run the application.
    But wait - I know it won't run because I note that the ASP
    .NET Development Server is not running. However - I can start it
    from the windows command line.
    First thing I do is stop my local IIS server which is using
    Port 80.
    Next thing I do is open a windows command line and navigate
    to my .Net 2.0 Framework directory:
    cd \WINDOWS\Microsoft.NET\Framework\v2.0.50727
    and then I run the ASP .NET Web server at the same path that
    my application (above) is written to (again, typed in the command
    line window).
    start /b webdev.webserver /port:80 /path:"D:\Flex3
    Projects\TestProj3\bin"
    Finally, from the Flex Builder window, I right-click on the
    auto-build Employee.mxml table and select 'Run application'.
    After a few moments an Internet Explorer window comes up. I
    believe it says:
    http://localhost/bin/Employees.html
    and I change it to read:
    http://localhost/Employees.html
    and it runs.. well it runs, but with 'An unexpected error
    occured and it has been logged.'
    So that's as far as I have gotten but it does write the code.
    So am I to assume that whether I do this by hand or use the
    'auto-generated code' that I will be using WebServices to read and
    write from the MS SQL 2005 database?
    I would much rather my Flex Application open a connection to
    the database directly and send SQL statements. I'm guessing that
    might not be possible without some driver? Perhaps thats were Adobe
    Live Cycle comes in?
    Any insight (frm anyone) would be helpful. Thank you.

  • Hiding first record from database in input text fields.

    Hi,
    I have 2 pages, a main page and a popup page. The main page has attributes from a VO in the form of input texts (I just dragged individual attributes) and a link that brings up the popup page. On the popup page I have an ADF Search Form and a Read-Only Table with selection. A user is able to search for records in the database then select the result and submit that row back to the main page which populates the input texts. When you first load the main page, the input texts that are linked to the VO iterator are already populated with the first row in the database. Is there a way to hide these values (but not the entire text fields) until after the user has searched from the popup?
    Thanks in advance.

    Hi,
    thanks much for the replies. Luc, I tried adding that Refreshcondition to the iterator in the pagedef and the result was when I ran the page, the textboxes and record would be gone but the label remained (close but I still need the empty box to show). Also, after running a search in the dialog box and submitting the result back to the main page, the values would still not show up, it just looked the same as when I first run the page.
    Did I put the RefreshCondition in the wrong place, or is it something else?
    Thanks again.

  • Populate JCombo from Database

    I have a code that populates Combo box from a db and its ok. however, the items are displayed enclosed in brackets i.e. instead of seeing
    Coptic Hospital
    i see
    [Coptic Hospital]
    i dont want to see the brackets. here's the code
        public void getSp(){
        String query="SELECT Provider FROM `smartmain`.`providers` p ";
        JDataBase db=new JDataBase();
        providers=db.getData(query);
        for(int i=0;i<providers.size();i++){
         ComboSp.addItem(providers.elementAt(i));
        }getData is a function in JDataBase class.
           public Vector getData(String query) {
             int no_rows=0;
             if (connection == null || statement == null) {
               System.err.println("There is no database to execute the query.");
               return new Vector();
           try {
               resultSet = statement.executeQuery(query);
               metaData = resultSet.getMetaData();
               int numberOfColumns =  metaData.getColumnCount();
               columnNames = new String[numberOfColumns];
              // Get the column names and cache them.
               // Then we can close the connection.
               for(int column = 0; column < numberOfColumns; column++) {
                   columnNames[column] = metaData.getColumnLabel(column+1);
               // Get all rows.
               rows = new Vector();
               while (resultSet.next()) {
                    no_rows++;
                   Vector newRow = new Vector();
                   for (int i = 1; i <= numberOfColumns; i++) {
                       newRow.addElement(resultSet.getObject(i));
                   rows.addElement(newRow);
           catch (SQLException ex) {
               System.out.println(query);
               System.err.println(ex);
           return rows;
       }how should i remove them?

    Your getData() function is returning a Vector of Vectors, so you are adding a Vector to your combo box model. A Vector's toString() method will return its contents in [] brackets.

  • Sending data from database to a Text file..??????

    hi guys i am having trouble sending records from a database to a .txt file,
    (the database is on my local machine)
    the code so far is below, when i compile, it compiles with no problems but when i run it it gives me errors....the errors are below....
    any advice or help will be appreaciated ...tc
    =============================================================================================
    code:
    =============================================================================================
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.math.*;
    import javax.swing.border.*;
    import java.awt.event.*;
    public class DataOut extends JFrame {
    public DataOut()
    try
    // Connect to the Database
    //connection object created using DriverManager class
    //carpark is the name of the database
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection connect =DriverManager.getConnection("jdbc:odbc:carpark");
         // Read data from a table
    String sql = "SELECT * FROM member";
    Statement stmt = connect.createStatement();
    ResultSet rset = stmt.executeQuery("SELECT dds, dss, t, s FROM member");
    String str = "";
    while (rset.next()) {
    str += rset.getInt(1)+" "+ rset.getString(2)+" "+ rset.getFloat(3)+" "+rset.getInt(4)+"n";
    byte buf[] = str.getBytes();
    OutputStream fp = new FileOutputStream("file.txt");
    fp.write(buf);
    fp.close();
    rset.close();
    stmt.close();
    connect.close();
    catch(Exception e) {
    e.printStackTrace();
    this.setSize(450,260);
    this.setLocation(500,200);
    public static void main(String[] args)
    DataOut frame = new DataOut();
    ==========================================================================================================
    ===========================================================
    error:
    ===========================================================
    C:\Users\giga\Desktop>javac DataOut.java
    C:\Users\giga\Desktop>java DataOut
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Invalid characte
    r value for cast specification on column number 1 (dds)
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
    at sun.jdbc.odbc.JdbcOdbc.SQLGetDataInteger(JdbcOdbc.java:3811)
    at sun.jdbc.odbc.JdbcOdbcResultSet.getDataInteger(JdbcOdbcResultSet.java
    :5638)
    at sun.jdbc.odbc.JdbcOdbcResultSet.getInt(JdbcOdbcResultSet.java:583)
    at DataOut.<init>(DataOut.java:32)
    at DataOut.main(DataOut.java:54)
    C:\Users\giga\Desktop>java DataOut
    ===============================================================
    all the best..

    thx a lot it works...
    when it outputsto the txt file,, the data is all in one line...how can i seperate the output..sothat after it does one record the next record starts on a new line in the txt file...
    i know i have to edit this bit of the code but i am not sure which part...if that makes sense...
    ResultSet rset = stmt.executeQuery("SELECT dds, dss, t, s FROM member");
    String str = "";
    while (rset.next()) {
    str += "First name: "+ rset.getObject(1)+"\n" + " Second name: "+ rset.getObject(2)+" Third data: "+ rset.getObject(3)+" Fourth data: "+rset.getObject(4);
    i have tried "\n" but it seems not to work..

  • How to populate values from database into a Combo Box?

    Hi,
    How to display all the values of a field of a database table in a combo box inside a grid in B1 user defined form?
    Regards,
    Sudeshna.

    Hi,
    If you are trying to do this on a system form (I gues this is your case, reading the other question), for example Sales Orders, and you want to show the values from a User Defined Table (UDT), you just need to add a User Defined Field on Marketing Documents Line level, and say it is linked to the UDT.
    SBO will automatically show the combo with the values on the Code field of the UDT.
    Regards,
    Ibai Peña
    Sorry, I didn´t read the post well.
    What you could do is each time the form is loaded, read the values from the table, and asign them as Valid Values for the combobox column. You can do this programatically, or using XML (which is recommended becouse of better performance).
    Message was edited by: Ibai Peña

  • Populate Array from Database!

    I have this working manually, but please need help creating this from a DB Connection and populating the Array with the results.
    I just need help with populating "DestinationItem[]" from the SQL below
    DestinationBean.java
    //  Manual Array works but I need this to be populated from DB using the below Query and DB Connection info.
        private DestinationItem[] destinationResults = new DestinationItem[]{
                new DestinationItem("58285", "Dodge Grand Caravan"),
                new DestinationItem("57605", "Dodge SX 2.0"),
                new DestinationItem("58265", "Chrysler 300 Touring")
        public DestinationItem[] getdestinationResults() {
            return destinationResults;
        public class DestinationItem {
            String destid;
            String commdefid;
            public DestinationItem(String destid, String commdefid) {
                this.destid = destid;
                this.commdefid = commdefid;
    // Getter/Setter below
    // END
    I need to take this DB Connection Logic and populate the "DestinationItem[]" Array above and I need help.
    //DBConnection
    public static ArrayList<CustomerBean> getCustomer() {
            try {
                Class.forName("oracle.jdbc.OracleDriver").newInstance();
                Connection con = DriverManager.getConnection("jdbc:oracle:thin:", "BLAH", "BLAH");
                PreparedStatement ps = con.prepareStatement("select destination_id, commdef_id from BLAH.destination");
                ArrayList<CustomerBean> al = new ArrayList<CustomerBean>();
                ResultSet rs = ps.executeQuery();
                boolean found = false;
                while (rs.next()) {
                    CustomerBean e = new CustomerBean();
                    e.setDestId(rs.getString("destination_id"));
                    e.setDestId(rs.getString("commdef_id"));
                    al.add(e);
                    found = true;
                rs.close();
                if (found) {
                    return al;
                } else {
                    return null; // no entires found
            } catch (Exception e) {
                System.out.println("Error In getCustomer() -->" + e.getMessage());
                return (null);

    I have this working manually, but please need help creating this from a DB Connection and populating the Array with the results.
    What does 'working manually' mean?
    What PROBLEM are you having? The code you posted appears to ALREADY populate an ArrayList with the results.
    I just need help with populating "DestinationItem[]" from the SQL below
    Are you asking how to convert the ArrayList returned by the'getCustomer' method into an array?
    Just use the 'toArray' method of ArrayList. See the Java API
    ArrayList (Java Platform SE 7 )
    public Object[] toArray()
    Returns an array containing all of the elements in this list in proper sequence (from first to last element). 
    The returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array). The caller is thus free to modify the returned array. 
    This method acts as bridge between array-based and collection-based APIs.
    Why do you have one class named DestinationBean' and another one just like it named 'CustomerBean'?
    I need to take this DB Connection Logic and populate the "DestinationItem[]" Array above and I need help.
    What is it you need help with?
    The 'getCustomer' method ALREADY populates an ArrayList. So just convert the ArrayList to an array using 'toArray'.
    public static ArrayList<CustomerBean> getCustomer() {
    I don't understand what problem you are having.
                Class.forName("oracle.jdbc.OracleDriver").newInstance();
    Remove that line - that hasn't been used for years.  
                boolean found = false;
    Remove that code and ALL references to 'found'. You created an empty ArrayList when you started. If it is still empty when you are done then there are NO results. Just return an empty array (preferable).
    Let the caller handle an empty ArrayList.
    You already have code that appears to get a collection of items.
    Explain EXACTLY what your problem is. Why can't you just use the code you posted?

  • List Creation From Database Table

    I have a form that has two data blocks based on database tables:
    Block #1 = ORDER_LINE
    Block #2 = ORDER_CODE
    The ORDER_LINE block has an item in it that corresponds to an item in the ORDER_CODE block. I want to create a TLIST for this item in the ORDER_LINE block that populates the list from the values for the corresponding item in the ORDER_CODE block. I know that I can use the POPULATE_LIST built in and need a record group, etc, but I have not been able to make any of this work. Can anyone provide good instructions on how to do this? I find the On Line Help within Forms to be totally useless.
    Thanks.

    976798 wrote:
    --Hello..I want to ask that How to bind a list item with  table values? this below code does not populate items from database to list item.Pls any body give me solution.
    declare
         group_id RecordGroup;
         list_id Item:=Find_Item('LST_CLASS');
         status number;
    begin
         group_id:=Create_Group_From_Query('Answer_List','select CLASS_ID,CLASS_NM from CLASS_MSTR');
         status:=Populate_Group('Answer_List');
         message(to_char(status));
         Populate_List(list_id,group_id);
         end;Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Oracle Forums FAQ
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>How to ask questions the smart way
    </ul>
    Following these simple guidelines will ensure you have a positive experience in any forum; not just this one!
    Check this link: How to Dynamically Populate a Pop List ?
    Hope this helps
    Hamid
    If someone's response is helpful or correct, please mark it accordingly.

  • E-Mail Generating from database error ORA-06502: PL/SQL:

    Hello,
    I have write script for generating HTML formated email from database (11g).
    when text body increase 4000 char it generating error
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at "EXPORT.REALIZATIONHTML", line 56 ORA
    how i can resolve it.
    I also try with LONG
    Thanks

    Thanks for reply.
    I try with CLOB, Reason is that message body have almost 1000 recode and length(message) have more than 8000 characters even more than 10000
    how i can resolve it , which data type I have to use
    Thanks

  • Populate textInput from DataGrid

    Please help!
    My DataGrid has "FIELD_NAME" and "FIELD_VALUES" columns.
    My TextInput objects has to match id names from "FIELD_NAME"
    columns, and populate value from "FIELD_VALUES" column into text.
    How I can do this?
    Thank you very much!
    Slava

    Sorry for the messed up cut and paste.
    private function itemClickEvent(event:ListEvent):void
    if(event.columnIndex < 0)
    //can't do anything
    else
    var
    selectedVIPName:String=event.currentTarget.selectedItem.VIPName;
    var
    selectedVIPAddress:String=event.currentTarget.selectedItem.VIPAddress;
    var
    selectedExternalAddress:String=event.currentTarget.selectedItem.ExternalAddress;
    var selectedvid:String=event.currentTarget.selectedItem.vid;
    vipname_inp.text=String(selectedVIPName);
    vipaddress_inp.text=String(selectedVIPAddress);
    external_inp.text=String(selectedExternalAddress);
    vid_inp.text=String(selectedvid);
    <mx:DataGrid id="dg" dataProvider="{lc}" width="100%"
    height="100%" rowHeight="20" itemClick="itemClickEvent(event);"
    >
    <mx:columns>
    <mx:DataGridColumn headerText="VID" dataField="vid"
    visible="False" />
    <mx:DataGridColumn headerText="VIP Name"
    dataField="VIPName" />
    <mx:DataGridColumn headerText="VIP Address"
    dataField="VIPAddress"/>
    <mx:DataGridColumn headerText="External Address"
    dataField="ExternalAddress"/>
    </mx:columns>
    </mx:DataGrid>

  • Getting  10th oldest  from database

    Getting the oldest persons name from a database is easy.
    SELECT name
    FROM database
    WHERE dob = ( SELECT MIN(dob) FROM database ) ;
    but how would you get the 10th oldest or 100th oldest
    Regards

    Hi,
    Because of you can have more than one with the same age in database, you need to use dense_rank() function :
    SQL> select name,age, rank() over(order by age asc) from age;
    NAME              AGE RANK()OVER(ORDERBYAGEASC)
    TOTO               10                         1
    TRUC               10                         1
    TITI               20                         3
    TUTU               20                         3
    SQL> With previous code, if I search the second oldest, I found nothing... also the following query can help :
    SQL> select name,age, dense_rank() over(order by age asc) from age;
    NAME              AGE DENSE_RANK()OVER(ORDERBYAGEASC)
    TOTO               10                               1
    TRUC               10                               1
    TITI               20                               2
    TUTU               20                               2
    HTH,
    Nicolas.
    Message was edited by:
    N. Gasparotto
    In my queries, I replace yougest by oldest like requirements, sorry.

  • How to populate a field from database through personalization

    I need to populate value of a field from database on self service transaction web page. This field is not configured as EIT or SIT, nor available in seeded transaction.I need to know abt creating some item through personalization where i can write a query . This item will execute the query and display the returned value on the page or something on the similar line.
    Thanks in advance,
    Tanveer

    This workaround should be used as a one time approach till you move to 11.5.10 CU3.
    Here are the details,
    You just need to add the following tags inside the site or function level customization document, remember it should be either site or function only no other levels are supported for adding a new item.
    before adding the following tags you need to find out the following details,
    1. what is the last item in the advancedTable, column or columnGroup in the base metadata. Do not conside the columns inside the columnGroups for this, just the last item which might be a column or a columngroup. Get the if of that item.
    2. You should know what is the view instance and viewattribute you will be attaching
    3. Remember you can only add columns through personalization and not columnGroups.
    4. Replace the appropriate values for the properties amrked with {...} with your own values. You can change the other properties to reflect any specific requirement you want. Make sure you provide correct values.
    <insert after="{the id you got from step 1}">
    <oa:column id="{yourid}" adminCustomizable="true" bandingShade="none"
    cellNoWrapFormat="false" columnDataFormat="textFormat" displayGrid="true"
    rendered="true" scope="." totalValue="false" userCustomizable="false"
    xmlns:oa="http://xmlns.oracle.com/oa">
    <ui:columnHeader xmlns:ui="http://xmlns.oracle.com/uix/ui">
    <oa:sortableHeader id="{yourid}" adminCustomizable="true"
    cellNoWrapFormat="false" initSortSeq="none" prompt="{your prompt}"
    rendered="true" required="no" scope="." sortState="no"
    userCustomizable="false"/>
    </ui:columnHeader>
    <ui:contents xmlns:ui="http://xmlns.oracle.com/uix/ui">
    <oa:messageStyledText id="{yourid}" adminCustomizable="true"
    cellNoWrapFormat="false" dataType="VARCHAR2" initSortSeq="none" queryable="false" rendered="true" required="no" scope="."
    selectiveSearchCriteria="false"
    serverUnvalidated="false" sortState="no" tipType="none" totalValue="false"
    userCustomizable="false" vAlign="middle" viewAttr="{your view attribute}" viewName="{your view instance name}"
    warnAboutChanges="true"/>
    </ui:contents>
    </oa:column>
    </insert>
    You can insert these tags at the end of any existing tags within the <modifications>
    </modifications> tag in the document.

  • Sharepoint List to Telerik Grid, Where data is not coming from database into List.

    SharePoint List to Telerik Grid, Where data is not coming from database into List.
    Here, i have a SharePoint list , where configurable text are stored, using some utility.
    I want to convert that SharePoint list into Telerik grid, with all Editable Option which i have in SharePoint.

    I know little about Telerik Grid, only find following article about Telerik integrate with SharePoint:
    http://www.telerik.com/help/aspnet-ajax/moss-spradlistview_designer_general.html
    a similar question:
    http://www.telerik.com/forums/how-to-bind-to-a-sharepoint-list-using-radgrid
    Thanks,
    Qiao Wei

Maybe you are looking for

  • Parent and Child query in a report

    Hi I need some help with the following I have a report, the first query in the data model extracts a number of licence holders and a column called condits. This column can look like this 0102040516 I then create a Formula Column called CF_1 which use

  • Color profile (one more....)

    Hi, after quite a lot of reading, I am still struggling to have my web site photos look good on windows pc's. I use Aperture 1.5.6. I shoot Adobe1998 JPEGs with a Nikon D300 and I am exporting my web gallery in the sRGB colorspace but when I look at

  • Anyone able to share photos to AppleTV from Lion Server?

    I cannot get my AppleTV to see my photos in iPhoto (using iTunes photo sharing capabilities) running on Lion Server.  Called Apple - no solution.  tried various reinstalls, configs, permission and access changes - no go. 

  • Creation of similar fixed assets

    Hello I am using a bapi bapi_fixedasset_create1to create similar assets, but its only creating a similar asset even though i am passing '8', it should create 8 assets. Please suggest if i need to use some different BAPI or the importing parameter of

  • Problems only on main user account, No problems on new test account.

    Hi, I am not sure how to describe the problem I am having other than to say take a look at the pictures and video and see if you can help guess whats causing it. http://www.youtube.com/watch?v=kN9FYRVgcv0 http://picasaweb.google.com/BenLeeke/BlankBox