Populating mx:ComboBox with database info

Ok, so I set out on a quest to populate <mx:ComboBox with
info from a database using Flex and Ruby on Rails. I had a really
hard time finding tutorials about this subject, but using
information from a large set of tutorials and tweaking the code
over and over, I finally figured out something that works.
My model is sourcer
My controller is sourcers and contains the followign code:
class SourcersController < ApplicationController
def create
@sourcer = Sourcer.new(params[:sourcer])
@sourcer.save
render :xml => @sourcer.to_xml
end
def list
@sourcer = Sourcer.find :all
render :xml => @sourcer.to_xml
end
def update
@sourcer = Sourcer.find(params[:id])
@sourcer.update_attributes(params[:sourcer])
render :xml => @sourcer.to_xml
end
def delete
@sourcer = Sourcer.find(params[:id])
@sourcer.destroy
render :xml => @sourcer.to_xml
end
end
My migration file had this code:
class CreateSourcers < ActiveRecord::Migration
def self.up
create_table :sourcers do |t|
t.column :sourcername, :string
t.timestamps
end
end
def self.down
drop_table :sourcers
end
end
and finally the application code contained:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" >
<mx:HTTPService id="listSourcers" url="
http://localhost/sourcers/list"
useProxy="false" method="GET"/>
<mx:VDividedBox x="0" y="0" height="100%"
width="100%">
<mx:Panel width="100%" height="300" layout="vertical"
title="Create/Update Denial Reasons">
<mx:Form>
<mx:FormItem>
<mx:ComboBox
dataProvider="{listSourcers.lastResult.sourcers.sourcer}"
labelField="sourcername"
creationComplete="listSourcers.send()"/>
</mx:FormItem>
</mx:Form>
</mx:Panel>
</mx:VDividedBox>
Now this can be condensed to the following important items:
<mx:HTTPService id="listSourcers" url="
http://localhost/sourcers/list"
useProxy="false" method="GET"/>
<mx:ComboBox
dataProvider="{listSourcers.lastResult.sourcers.sourcer}"
labelField="sourcername"
creationComplete="listSourcers.send()"/>
Things to note -
- if you leave out the labelField="sourcername" in the
<mx:ComboBox> tag you will "object: Object" in the dropdown
after compile.
- if you leave out the
creationComplete="listSourcers.send()" in the <mx:ComboBox>
you will get a dropdown that is blank, but is sized correctly. Also
something to note on this line is it can be included in the
<mx:Application> tag but then if you have multiple ComboBoxes
you're going to need it in each of the <mx:ComboBox> tags.
Anyway, I hope this helps someone.

Hi,
Try logic similar to this instead:
listOfIds as String[]
for each element in
    SELECT prsnombre
    FROM nameOfYourTable
    WHERE prsrut = 12486023
do
    listOfIds[] = element.prsnombre
end
return listOfIdsThis logic assumes that "prsnombre" is the name of the attribute you want returned, "nameOfYourTable" is the table's name and "prsrut" is the attribute with one or more rows in the table that has the value 12486023.
The underscore characters in tables and columns are a bit wacky unless you are using something called Dynamic SQL. The above statement does not use Dynamic SQL and note that I did not include them in the logic. Not sure if this is your problem, but try it without the underscore characters if your logic uses the JDBC SQL syntax shown above.
Hope this helps,
Dan

Similar Messages

  • Populating a ComboBox with names of all Cue Points

    I'm working with Flash CS4 and ActionScript 3.  I have a .flv file with about 30 cue points created in Soundbooth.  When I run my video my listener  picks up the cue points as expected.  What I am trying to do now is populate a combobox with a list of all the cue points in the .flv file.  Seems like it should be a super easy task to access an array of all the cue points in the .flv - but so far no luck.
    I am using FLVPlayback to run my video.
    Appreciate any advice as to how to access a list of all cue points.  Thanks.

    Got it!
    For anyone else looking, here it is:
    // this assumes you have a copy of FLVPlayBack downloaded to and instanced as my_FLVPlybk
    import fl.video.*;
    my_FLVPlybk.addEventListener(MetadataEvent.METADATA_RECEIVED,
        handleMetadata);
    function handleMetadata(e:MetadataEvent):void {
        var data:Object = e.info;
        recurseTrace(data, "");
    function recurseTrace(info:Object, indent:String):void
            for (var i:* in info) {
                    if (typeof info[i] == "object") {
                           trace(indent + i + ":");
                           recurseTrace(info[i], indent + " ");
                   } else {
                           trace(indent + i + " : " + info[i]);

  • Populating text fields with previous info in drop down

    Hello.
    I am using acrobat 7... creating a fillable PDF
    The completed project cues the user with a drop down under the text field of everything anyone has ever typed in the text field before.
    How do I stop the fillable form from populating previously used info?
    Thanks

    Thanks so much..
    I knew it was easy.. I just couldn't find it!

  • Populating dynamic values in the combobox with XML form Builder.

    I am trying to  populate dynamic value in the combobox with xml form builder. I  see the document saying create property group and document property Id with respecitive values.  I am able to create the property group with system admin -> System config
    -> KM -> CM -> Global services  -> property Metadata -> groups  with new button. and I  am trying to create document property Id with value. I am not able to find the way to give  value in the property.   I am using  EP 7.0 Sp 14.  Please let me know how to sovel it

    Hi
    You can create new property metadata with System Admin > System Config > KM > CM > Global services > Property Metadata > Properties > New. Specify the values for this metadata as the ones you need to have in the combo box. Use allowed values parameter of the matadata to sepcify the values. Each metadata property will have unique property ID and you can map this property ID to your combo box in xml forms.
    Give it a try.
    Regards,
    Yoga

  • Populating selectItems with database values

    I'm looking for an example of how to populate a combo box using the selectItems tag with database records. I'd like to be able to populate the item value and item label. I am able to build an array to populate this way, but can not find a good database example. Could someone point me in the right direction?
    Thanks

    public class SQLView {
    private SQLView() { } //Prevents instantiation
    public class Field {
    public static final String id = "id";
    public static final String name = "name";
    public class ProductCategory {
    public static final String select =
    "select id, name from ProductCategory order by name";
    DataAccess.java
    public DataAccess(String confEnvName, String dataSourceName) throws Exception {
    try {
    InitialContext ic = new InitialContext();
    Context envCtx = (Context) ic.lookup(confEnvName);
    DataSource ds = (DataSource)envCtx.lookup(dataSourceName);
    name = confEnvName + '/' + dataSourceName;
    con = ds.getConnection();
    } catch (Exception ex) {
    throw new Exception("Couldn't open connection to database: " +
    dataSourceName + ' ' + ex.getMessage());
    public ResultSet getResultSet(String statement) throws SQLException {
    PreparedStatement st = con.prepareStatement(statement);
    ResultSet rs = st.executeQuery();
    return rs;
    public List resultSetToSelectItems(String statement) throws SQLException {
    List list = new ArrayList();
    ResultSet rs = getResultSet(statement);
    try {
    while (rs.next()) {
    list.add(new SelectItem(new Integer(rs.getInt(SQLView.Field.id)),
    rs.getString(SQLView.Field.name)));
    finally {
    rs.close();
    return list;
    Catalog.java
    public synchronized List getCategoryList() throws SQLException {
    if (categoryList == null) {
    categoryList = dataAccess.resultSetToSelectItems(SQLView.ProductCategory.select);
    if (!categoryList.isEmpty()) {
    categoryId = (Integer)((SelectItem)(categoryList.get(0))).getValue();
    else {
    categoryId = new Integer(0);
    return categoryList;

  • Populating ComboBox with XML data

    Hi there,
    Probably the most basic question, but I'm having a hard time with this...
    Trying to populate the ComboBox with XML data as a dataProvider.
    Here is the code snippet:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    layout="vertical"
                    creationComplete="baseDataRequest.send()">
        <mx:Script>
            <![CDATA[
                import mx.collections.XMLListCollection;
                import mx.rpc.events.ResultEvent;
                [Bindable]
                private var baseDataXML:XML;
                private function baseResultHandler(event:ResultEvent):void
                    baseDataXML = event.result.node.child as XML;
            ]]>
        </mx:Script>
        <mx:HTTPService id="baseDataRequest"
                        useProxy="false"
                        resultFormat="e4x"
                        result="baseResultHandler(event)"
                        url="XML_URL"/>
        <mx:ComboBox id="comboDemo"
                     width="390"
                     dataProvider="{baseDataXML}"
                     labelField="NodeName"/>
    </mx:Application>
    And that returns nothing, basically. I know the XML is being pulled, because if I do this:
    baseDataXML = event.result as XML;
    then I just see a single item in my ComboBox, with full XML content.
    How do I populate the ComboBox with XML contents?
    XML example:
    <root>
        <node>          <child>Child1</child>
              <child>Child2</child>
         </node>
    </root>
    Question: how do I populate the ComboBox with XML data nodes? I need <child> content to be the labelField of each combo box item...
    Thanks!
    K

         <mx:Script>
              <![CDATA[
                   var baseDataXML:XML = <root><node><child>Child1</child><child>Child2</child></node></root>;
              ]]>
         </mx:Script>
         <mx:ComboBox id="comboDemo"
                     width="390"
                     dataProvider="{baseDataXML.node.child}"
                     labelField="NodeName"/>
    Don't do:
    baseDataXML = event.result.node.child as XML;
    Instead just do:
    baseDataXML = XML(event.result);
    And in your combo:
    dataProvider="{baseDataXML.node.child}"

  • Add management server: Setup version: 7.0.9538.0 is not compatible with database version: 7.1.10226.0

    I want to add another management server to our existing SCOM environment. But whenever I run this setup on a new server I get stuck in the window for selecting the OperationsManager database. The database field stays blank and in the OpsMgrSetupWizard log
    there are lines that the setup version is not compatible with the database version. But I use the same installer as when I installed the other management servers a year ago.
    Maybe there is a newer setup installer? But I can't find it.
    [10:42:54]: Error:
    :Error:setup version: 7.0.9538.0 is not compatible with database version: 7.1.10226.0
    [10:42:54]: Info:
    :Info:Using DB command timeout = 1800 seconds.
    [10:42:54]: Info:
    :Info:isOMDatabase:  Read returned true.  so far, this is OM DB, not an empty DB
    [10:42:54]: Debug:
    :Connection was not open.  We will try to open it.
    [10:42:54]: Debug:
    :SqlConnectionReady returned True.
    [10:42:54]: Info:
    :Info:Using DB command timeout = 1800 seconds.
    [10:42:54]: Info:
    :Info:isOMDatabase:  Read did not return true.  The MG is missing. This is not OM DB
    [10:42:54]: Info:
    :Info:Using DB command timeout = 1800 seconds.
    [10:42:54]: Always:
    :Azman store table not found in OperationsManagerDW table, assuming this is an not a valid OMDB for empty DB scenario.
    [10:42:54]: Info:
    :Info:DatabaseConfigurationPage: DB connection attempt completed.
    [10:42:54]: Info:
    :Info:DatabaseConfigurationPage: DB connection attempt completed.

    Never mind, found it!
    Apparently there was a newer version of SCOM setup in msdn and someone upgraded our existing SCOM environment. Downloaded the new setup, new report viewer controls and a System
    CLR Types for Microsoft® SQL Server® 2012 and now it works!! 

  • Multiple Comboboxes with single instance of Array Collection

    First off - thanks to everyone for their contributions.  This forum provides a lot of good information.
    I'm stuck on a particular problem and I suspect I'm not thinking about the issue correctly.
    I'm developing a dynamic module that instantiates components at runtime based on an XML scheme.  Many of these components are drop-downs that are chained togther (a selection in one drives the population of the next)
    I loop through the initial XML document to create and layout the components.  I have been using a single Array Collection to populate the drop-down.  This worked fine with the chained comboboxes since I only load one combox initially.  However, when I add a couple of static combo boxes, the arraycollection seemed to be binding to the orginal combobox.  For example, if I create 3 combo boxes they have drop-down values that display all 3 lists appended together.  I was a bit surprised because I didn't think that I could bind an Array Collection.  I certainly haven't defined a Binable ArrayCollection.
    I thought I could solve the issue by simply creating a unique Array Collection at runtime - one for each element.  However, I don't think this is possible or I can't figure out how to create a new Array Collection with a dynamic name - something like this:
    I was hoping this would work -
    var newDropDown_[numOfElement]:ArrayCollection = new ArrayCollection(); 
    I've tried to use a Dictionary object to store each ArrayCollection.  I couldn't get that to work properly.
    Essentially - my code loops on the number of components to add:
    for (var i:int = 0; i < numFormElements; i++)
              for (var j:int = 0; j < numvalues; j++)
                                    var valuefield:String = 'value_' + [j+1];
                                    var obj:Object=new Object();
                                    obj.label=instFields[i][valuefield].@label;
                                    obj.data=instFields[i][valuefield].@data;
                                    newDropDown.addItemAt(obj,j);
    Then I add the components:
              var c:ComboBox = new ComboBox ();
                c.labelField='label';
                c.name=numberOfElement.toString();                                  
                c.dataProvider=    newDropDown;
                _h1.addChild(c);
                numComboDropDwns.push(c);
    I need a way of looping, getting data and populating each component independently??
    Any ideas?
    Thanks,
    John

    I went a different route and solved the issue.  For someone looking at a similar problem - this what I ended up doing:
    I just loaded one array collection with data for all of the drop-downs on the form.  I then populated each dataprovider with individual elements from the array.
    for (var i:int = 0; i < numFormElements; i++)
    for (var j:int = 0; j < numvalues; j++)
                                    var valuefield:String = 'value_' + [j+1];
                                    var obj:Object=new Object();
                                    obj.label=instFields[i][valuefield].@label;
                                    obj.data=instFields[i][valuefield].@data;
                                    newDropDown.addItemAt(obj,elementCounter);
                                    elementCounter = elementCounter + 1;
    I keep track of the element #, number of values for each element and the overall index for the array.
    Each data provider is then loaded with the subset from the array:
    for (var z:int = (_counter - _numvalues) ; z < _counter; z++)
                                var _label:String=    newDropDown.getItemAt(z).label.toString();
                                var _data:String = newDropDown.getItemAt(z).data.toString();
                                c.dataProvider.addItem({label:[_label],data:[_data]});
    This seems to work nicely - each component is created and loaded with only their data.  I spent 3 days searching for a way to create a dynamic arraycollection at runtime.  I don't think it's possible - but I'm not sure it was the best method anyway.

  • Installing EM Grid Control 10.2.0.3 with Database 10.2.0.3 On RHEL4 U3 & U4

    Note: This is not an official document, it discusses Oracle Enterprise Manager Grid Control (EMGC) installation on Redhat Linux Update 3 & Update 4 with new database NOT with an existing database. Both OS Updates were installed with FULL PACKAGE INSTALLATION option. Oracle Universal Installer creates the database automatically before creating the EMGC repository.
    •     For Linux the base version of the EMGC is 10.2.0.1 and for Windows platform it is 10.2.0.2.
    •     The database release is 10.1.0.4 with EMGC 10.2.0.1.
    •     When installed it creates three Oracle Homes: 1) db10g (database), 2) oms10g (Oracle Management Service), and 3) agent10g.
    Course of Action:
    To get to Oracle EMGC 10.2.0.3:
    •     Install EMGC 10.2.0.1      
     Upgrade Oracle Home oms10g to 10.2.0.3.
     Upgrade Oracle Home agent10g to 10.2.0.3.
    To get to Oracle Database 10g 10.2.0.3:
    •     Oracle Database 10g 10.1.0.4 will get installed by the OUI automatically
     Upgrade Oracle Database 10g to 10.2.0.1 in new Oracle DB Home.
     Upgrade new Oracle DB Home to 10.2.0.3.
    ====================================
    Installing EM Grid Control 10.2.0.1:
    ====================================
    To install EMGC 10.2.0.1 download all the three files: Linux_Grid_Control_full_102010_disk1.zip, Linux_Grid_Control_full_102010_disk2.zip, Linux_Grid_Control_full_102010_disk3.zip from http://www.oracle.com/technology/software/products/oem/htdocs/linuxsoft.html.
    If you have unzipped all the downloaded zip files in separate directories then the very first error message slammed at your face after starting the installation will be something like “OUI-10133: Invalid Staging Area. There Area No Top Level Components”. All you have to do is to unzip all the three files in the single directory (Metalink 395030.1).
    After unzipping all the files in the same directory follow the steps that are given on the follow URL.
    http://www.oracle.com/technology/obe/obe10gemgc_10202/install/install.htm
    BUT the problem is that you will be punched with few other error messages during the installation that will terminate the installation. The WORKAROUND is given below.
    There are three stages of the installation by OUI:
    1.     Installation of EM Repository Database 10.2.0.1.
    2.     Installation of EM Grid Console 10.2.0.1.
    3.     Installation of Agent 10.2.0.1.
    The first stage completes without any problem and on the OUI you will see: Oracle Enterprise Manager Repository Database 10.2.0.1.0 installed. While installing the Grid Console, during copying files for "Oracle Application Server 10g 10.1.2.0.2" at 90% OUI will pop up an error message "An error occurred during runtime." You will see lines similar to the following lines in the installation log files.
    INFO: Calling Action SpawnActions10.1.0.3.0 Spawn
    installcommand = /u01/app/oracle/product/10.2.0/oms10g/bin/OracleAS_Relink_Patch.sh
    deinstallcommand =
    WaitForCompletion = null
    INFO: Exception occured during spawning :java.io.IOException: /u01/app/oracle/product/10.2.0/oms10g/bin/OracleAS_Relink_Patch.sh: cannot execute
    INFO: Spawning the modified command :/u01/app/oracle/product/10.2.0/oms10g/bin/OracleAS_Relink_Patch.sh
    INFO: Exception thrown from action: Spawn
    Exception Name: RuntimeException
    Exception String: An error occurred during runtime.
    Exception Severity: 0
    Problem:
    There is a bug which is still being worked on by the DEV : Bug 5203165 : Abstract: CANNOT EXECUTE ../oms10g/bin/OracleAs_Relink_Patch.sh AT INSTALL
    Note that this is an unpublished bug, not viewable via Metalink. The bug apparently occurs only on RHEL4 (32bit) Update 2 and Update 3 (I faced the same thing in Update 4 as well).
    Workaround:
    •     Leave the error message as it is and change the execution permission of the script OracleAS_Relink_Patch.sh.
    $ chmod +x /u01/app/oracle/product/10.2.0/oms10g/bin/OracleAS_Relink_Patch.sh
    •     Now press Retry on the error message pop up window. The installation will resume.
    On the same stage while linking at 90% one another error message will pop up “Error in invoking target 'install' of makefile '/u01/app/oracle/product/10.2.0/oms10g/sqlplus/lib/ins_sqlplus.mk'”.
    Problem:
    Hitting bug : 5203194 :Abstract: RELINK FAILS ON 10.2 GC INSTALL -LIBCLNTSH.SO: UNDEFINED REFERENCE TO NNFGTABLE
    Bug is not published in Metalink. As per the description: Installing 10.2.0.2 Grid Control on RHEL4 Update 2 or Update 3 (I faced the same thing in Update 4 as well). This generates an error in the linking phase. The error is generated while attempting to relink sqlplus.
    Workaround:
    •     Stop installation of all components.
    •     Restart the installation and pick the option to resume the installation.
    •     This allows the installation to complete.
    If by any chance you press continue instead of stopping the installation you should get ready for the garbage OUI is going to throw at you:
    Error in invoking target 'install' of makefile '/u01/app/oracle/product/10.2.0/oms10g/network/lib/ins_net_client.mk'
    Error in invoking target 'install' of makefile '/u01/app/oracle/product/10.2.0/oms10g/network/lib/ins_nau.mk'
    Error in invoking target 'install' of makefile '/u01/app/oracle/product/10.2.0/oms10g/webcache/lib/ins_calypso.mk'
    During Setting up 'Perl Interpreter 5.6.1.0.2d'
    An error occurred during runtime
    During Setting up 'Oracle Application Server 10g 10.1.2.0.2'
    The OPMN Process Manager failed to start. Please check the logs in the /u01/app/oracle/product/10.2.0/oms10g/opmn/logs directory for the cause of failure. Once the cause of failure has been remedied, start OPMN manually and click Retry.
    HTTP Server Configuration Assistant Failed.
    OUI-25031:Some of the configuration assistants failed. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured.
    1. Check the Details panel on the Configuration Assistant Screen to see the errors resulting in the failures.
    2. Fix the errors causing these failures.
    3. Select the failed assistants and click the 'Retry' button to retry them.
    ====================================
    Upgrading EM Grid Control 10.2.0.1 to 10.2.0.3:
    ====================================
    I hope after installing EMGC 10.2.0.1 you are still intending to upgrade it..... :-D Now for that download GridControl_10.2.0.3_Linux.zip from http://www.oracle.com/technology/software/products/oem/htdocs/linuxsoft.html and follow the README.txt file included with the upgrade patch. Before starting the upgrade you will probably have to apply a patch (4329444) on the existing database (10.1.0.4). Anyway, its one of the prereq that you have to complete.
    For upgrade follow the steps given on the following URL.
    http://www.oracle.com/technology/obe/obe10gemgc_10203/patching/patching.htm
    •     Keep one thing in mind that you will have to apply the above mentioned patch twice. Once for oms10g home and once for agent10g home.
    •     Stop all the EMGC related services.
    •     When applying the patch to a particular home change the ORACLE_HOME to that home. E.g. when applying the patch on the oms10g home:
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0/oms10g
    and for agent10g home:
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0/agent10g
    ====================================
    Upgrading Database from 10.1.0.4 to 10.2.0.1:
    ====================================
    Download the file 10201_database_linux32.zip from http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201linuxsoft.html.
    •     Shutdown all the EMGC related services, the listener, and the database.
    •     Start the installation of 10.2.0.1.
    •     Since 10.2.0.1 is a base release that is why you cannot install it in the existing Oracle Home i.e. in db10g. You have to define a separate Oracle Home for the new installation say db10gR2.
    •     During the installation it will ask you to upgrade the existing database 10.1.0.4 to 10.2.0.1, click YES.
    •     Hopefully the installation will go just fine.
    ====================================
    Upgrading Database from 10.2.0.1 to 10.2.0.3:
    ====================================
    Download the file p5337014_10203_LINUX.zip from http://metalink.oracle.com.
    •     Shutdown all the EMGC related services, the listener, and the database.
    •     Start the installation of 10.2.0.3.
    •     During installation it will ask for the Oracle Home, give the new Oracle Database Home i.e. db10gR2 and proceed.
    •     Hopefully the installation will go just fine.
    •     Start the database, listener, and all the EM GC related services:
    o     $ORACLE_HOME/../oms10g/bin/emctl start em
    o     $ORACLE_HOME/../agent10g/bin/emctl start agent
    o     $ORACLE_HOME/../oms10g/opmn/bin/opmnctl startall
    •     Try accessing the EMGC through the browser http://xyz.abc.com:4889/em
    •     You will see two Oracle databases in the EMGC, the old one, 10.1.0.4 and the new one 10.2.0.3. Don’t worry it will not bother you at all. It will only occupy a GB or so. Though, you can remove it through OUI.
    Congratulations!!!! you have now Enterprise Manager Grid Control 10.2.0.3 with Database 10.2.0.3 on RHEL 4 Update 3.
    You can repeat the same exercise for RHEL4 Update 4 as well, but during pre-installation checks you will get 1 warning that:
    Checking for compat-libstdc++-296-2.96-132.7.2; found Not found. Failed <<<<
    Checking for libstdc++devel-3.4.3-22.1; found Not found. Failed <<<<
    Checking for openmotif-21-2.1.30-11; found openmotif-2.2.3-10.RHEL4.5. Failed <<<<
    Actually, these packages are already there in the OS but the higher versions. It is evident from the above messages that first it “founds” the package but due to the version conflict it says that “Not found”. All you have to do is click on the check box next to warning, it will change to User Verified or something. Now press Next and follow the same steps that we followed for Update 3.

    The quicker way is to use sofware only method to install 10204 oms and dirctly use 10203 datbase directly as a oms repository.
    Check the section Installing 'Software-Only' and Configuring Later
    http://download.oracle.com/docs/cd/B16240_01/doc/install.102/e10953/installing_em.htm#CCHGBDCB

  • Please help with database connection issue

    Hi,
    I've created a few connections and pages with a few recodsets on my local computer and am connecting fine with the database. I've uploaded the database via phpmyadmin onto a remote server and uploaded all my pages to the website and have changed the database info, user name and password in the connections folder but when I try to load the file I get a message "no database selected". I've tried various things but no luck. I'm selecting the database name but something is missing. Any help would be appreciated.
    Derek

    A bit more info: Here is the connection script as its defined in Dreamweaver: <?php
    # FileName="Connection_php_mysql.htm"
    # Type="MYSQL"
    # HTTP="true"
    $hostname_karen_product = "localhost";
    $database_karen_product = "karen";
    $username_karen_product = "root";
    $password_karen_product = "root";
    $karen_product = mysql_pconnect($hostname_karen_product, $username_karen_product, $password_karen_product) or trigger_error(mysql_error(),E_USER_ERROR);
    ?>
    Where is says mysql_pconnect, I changed the $hostname_karen_product etc to 'localhost', 'username', 'the password for the database')
    Do i need to do something different at $database_karen_product?
    I'm basically new at this and confused as to how to alter this connection script.
    Thanks
    Derek

  • Refresh combobox with custom display(Plug in)

    Hello ,
    I am using combobox with custom display(Plug in) in my application.
    i want to display value in combobox on selection of values in radio item
    sample query used in combobox like
    if :Radio_item = 1 then
    return 'SELECT NAME dropdown_display
        ,NAME search_string
        ,NAME input_display
        ,id return_value
    FROM Table_A';
    else
    return 'SELECT NAME dropdown_display
        ,NAME search_string
        ,NAME input_display
        ,id return_value
    FROM Table_B';
    end if;
    but problem is it is always showing the data from first query,it is not displaying the value from second query on changing of radio option.
    i also tried to refresh the combobox item  on change of radio item values but still it is showing the value from first query.
    please help me how to resolve this issue.
    Apex Version - 4.1.1
    Database - 11g
    Regards and thanks
    Jitendra

    Shiv wrote:
    Hi,
    I used plugin "Combobox with Custom Display".
    I have issue like
    When i entered some text in textbox and scroll down using down key of key board. That highlighted part can not scroll down with scroll.
    The demo link for above issue
    http://apex.oracle.com/pls/apex/f?p=35538:4
    kindly help me out.
    ThanksIts a bug in the plugin code and not related to APEX.
    I will look into it and fix my code to address this issue, please bookmark this page http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/combobox-with-custom-display_212.html and check for updates.
    Thanks,
    Vikram

  • Export to PDF from populated c# Dataset without Database connection

    I have Crystal Reports Developer Full version 11.5.12.1838, all versions of Visual Studio and about 100+ reports targeting printed paper.
    They were developed over the last decade with the Developer Designer (and it's predecessors) and are based on SQL Server Stored Procedures. In the past, they were produced at runtime using a MS Access VBA application that either printed them or exported them to PDF files. I have successfully converted that application to C#, however a few problems: despite loading a populated dataset and setting all parameters, the runtime still wants to refresh the dataset. That works for 95% of all reports, but some just use null values for the parameters (despite having set them correctly), others mix the sequence of the parameters (despite querying them correctly) and some don't use the provided credentials. But that is not the main problem.
    Now I need a way to produce (export to PDF) these reports at runtime based on a populated C# Dataset without database connectivity for the Crystal environment. The structure of the data in the Dataset is identical to what the stored procedure return in the development environment.
    The question is: is that possible and what do I need in terms of version, SDK etc. Any advice (sample links) would be much appreciated.

    Hi Ludek;
    Thanks for the hints. After many many hours of research and trial and error here are my findings:
    Assigning a dataset to CR does NOT work - seems CR is just ignoring it completely. What does (partially) work is assigning a DataTable, however, if you try to do that with a main report and more than ONE sub-report, it fails with likely unrelated error messages (not yet implemented).
    I took one of my reports and deleted all sub-reports. Assigned a DataTable at runtime - works fine. Added one sub-report that has a single field (picture) and loaded at runtime with a DataTable. No problem.
    Removed that subreport and added another subreport that has a single text field. All good.
    Now: having both sub-reports and having both subreports loaded from a DataTable fails. It works if one of the datasets is empty. It also works with 2 sub-reports returning text into their single field.
    The DataTables are populated from the exact same stored procedures (and data source) that are embedded in the report from the design (CR XI) - essentially this should be a swap from internal to external fetch with no consequences.
    I tried assigning using subDocument.SetDataSource and subDocument.Databas.Tables[0].SetDataSource  - no difference.
    The background of this: all my reports work just fine using VBA (Access), but that app will be retired and replaced by something C# based. In the meantime, the same report file has to work with both engines.
    If I cannot get the DataTable assignment for sub-reports to work, there is a plan-b type possibility: replacing the stored procedure for some sub-reports at runtime - which works using SubReport.Database.Tables[0].Location.= "newSPName" as long as the new sp has no parameters like the old one.
    The problem is that the new procedure has 2 parameters and I did not find a way to add them to the parameters collection (not allowed in sub-reports)
    Anything that comes to your mind ?
    Any help will be much appreciated
    Thanks
    Rolf

  • How OEM works with database

    Hi,
    We use OEM (12c),have db (11.2,10.2/1).
    How OEM works with database?
    When oem initated a job aginst  db,What are the steps preformed by OEM?What are the info updated in OEM DB and Normal DB regading jobs?And Where?
    Br

    At what point do you get this message?
    Have a look at the Windows Service. Ensure the EM Agent is running. Your database and Listener may be running, but if the Agent is not running, you will not be able to see correct status.
    Stop and start the Agent

  • Report Builder 6i  compatible with database 9i?

    We just upgraded to 9i database and all are applications are working but
    when I try to run Report Builder 6 - i try to connect to database and once I
    enter the logon info click Ok the report builder comes down. This happens on the
    runtime also. Is Report builder 6 able to run against 9i database?

    Yes, Reports 6i is very much compatible with Oracle 9i database.
    I think ur issue relates to something else.
    U can update with more info so that will be getting clear idea abt the issue.
    thanx,
    cheers,

  • BO XI R2 Change design time database info

    Hi,
    I have created a report and deploy it in the developpement BO Enterprise server (with the "Use original database logon information from the report")
    Now that this report is moving to the testing environnement I need to change those database info (with  "Use custom database logon information specified here")
    It doesn't seem to work.
    My databases are all sql server.
    This problem seem to occurs when the report is based on a stored procedure (since the full sp name is keeped  databasename.dbo.spname)
    Any idea?

    Symptom
    The Integration Kit for Baan driver displays incorrect time data in reports. The time is off by an hour between the dates marking the old Daylight Saving Time (DST) and the new DST change.
    Cause
    DST has been changed to occur earlier in the year. The Integration Kit for Baan does not pick the new settings up.
    Resolution
    There are files called ZONEFILES on the BAAN Server. These files must be already updated on the Baan server side.
    The Integration Kit for Baan installs our own version of these files in the following folder:
    \Baan\Native\lib\ZONEINFO
    on the hard drive where the Integration Kit is installed.
    Back up these files on the Crystal Reports/Business Objects XI computer, then put a copy of the ZONEFILES from the Baan Server to the computer where the Integration Kit for Baan is installed.

Maybe you are looking for

  • Add rows in User Defined Object

    Hi all, I've created a simple User Defined Object. I have a Master Data table (with the fields code and name) and a Master Data Line (with just on field itemCode) I want to use my own form to fill the information. For that I created a form, with two

  • How do I get Artwork to show up on the podcast?

    I just put up a podcast... Crave Rancho at Saddleback, and I would like artwork to show up on the track... and on the folder... how do I make that happen? Is it possible to change the Artwork, when there is a new series just for certain tracks? Any h

  • Regarding F.12

    Hi, I have a problem while executing F.12. Here the scenariou is i have done an acquisition of asset with TDS for Vendor and Tax(VAT), and Business Place defined in the line items and the document is posting correctly. But when i execute F.12 and in

  • Remove My Skype Name from Skype directory

    I don't want to receive contact request from anyone who knows my name so I wanted to change my Skype Name and change my Display Name to stop people finding me with my full name on Skype. But I read in this topic "https://support.skype.com/en/faq/FA11

  • Why authorization needed when accesing an export in excel from Bex

    Hi Experts, Before upgrade to version 7.0 when our user export a report to excel is neccessary enter user and password, the issue is that not everybody have a user therefore so they cannot see the excel. This problem is due to the icons are in the se