CONFUSION ON SELECTING DATABASE

The code given below is working as desired on
local/developing machine, while it is not returning same results on
remote server. The user authenticates, returns his/her personalized
options (e.g. name etc.), but when user click on 'log out' link it
returns an error 'No database selected'. Please look at code and
suggest to solve the issue.
Regards

Nasik posted in macromedia.dreamweaver.appdev:
> $logoutGoTo = "../../index.php?node=bye&lang=us-en";
> if ($logoutGoTo) {
> header("Location: $logoutGoTo");
> exit;
> }
Two points.
1. Where are you selecting the database? If you have
mysql_select_db()
in a different section of the code, say in the log in
section, you
might want to move it to just under session_start() here. Or
just
before mysql_query().
2. You're already inside the ($_GET['out']=="true")
condition, so the
above if condition seems redundant.
Mark A. Boyd
Keep-On-Learnin' :)

Similar Messages

  • Send E-mail of selected databases to selected Mail profiles

    Hi All,
    I want to send e-mails to selected users from selected databases and hosts in Oracle Enterprise Manager 11g?
    How do i configure this issue?
    Regards,
    Edited by: user5199319 on Jun 21, 2012 6:43 AM

    Please follow the doc
    http://docs.oracle.com/cd/E11857_01/em.111/e16790/notification.htm#BABJFFCJ

  • Error in new/select database connection

    i am new at sql developer. i am getting the following error in new/select database connection
    I have filled the following details
    Connection Name : hr_orcl
    Username : hr
    Password : hr
    Connection Typer: Basic, Role: Default
    Hostname: localhost
    Port : 1521
    SID : orcl
    I click on TEST & get the following error message displayed
    " Status : Failure -Test failed: Listener refused connection with the following error:ORA-12505, TNS:listener does not currently know of SID given in connec desciptor"

    Hi,
    You don't say if you actually have a local database installed. If not, you need too. If you already do, then the most common case is Oracle 10g or 11g Express Edition. In that case the default SID is XE, as noted in the following similar thread:
    Re: Connecting to Oracle Database 10g Express Edition
    If you need to install a database, you can get 10g or 11g XE here:
    http://www.oracle.com/technetwork/database/express-edition/downloads/index.html
    The 10g XE release has a smaller memory and disk footprint if that makes a difference to you.
    Regards,
    Gary
    SQL Developer Team

  • Gridbag layout error at "new/select database connection" frame

    Hi,
    I'm running SQLDev at Win XP sp 2.
    When I expands the "new/select database connection" frame it behaves really strange and the top left pane becomes smaller instead of bigger! :-) This makes it impossible to see and reach all connection settings.
    Just a GUI-bugg - but annoying and probably one of first experiencies new users will have of SQLDev...
    best regards and keep up the good work
    /Robert, Karlstad

    Hi,
    You don't say if you actually have a local database installed. If not, you need too. If you already do, then the most common case is Oracle 10g or 11g Express Edition. In that case the default SID is XE, as noted in the following similar thread:
    Re: Connecting to Oracle Database 10g Express Edition
    If you need to install a database, you can get 10g or 11g XE here:
    http://www.oracle.com/technetwork/database/express-edition/downloads/index.html
    The 10g XE release has a smaller memory and disk footprint if that makes a difference to you.
    Regards,
    Gary
    SQL Developer Team

  • A confused newbie: SQLServer database vs. ORACLE Tablespace

    Guys, excuse me for asking some surely stupid questions, but I'm really confused.
    In SQLServer, I can simply create a new database and it has it's own physical files. This means that - for example - it is really trivial to have multiple releases of the same database setup concurrently.
    In Oracle, I'm simply blown away at the complexity of this seemingly simple requirement. Here are some of the problems I have doing this with Orcale:
    - I can create a second tablespace but then my sequences clash with sequences already in place for tables in the other table space
    - I can't simply drop a tablespace and the sequences drop too
    - I don't know how to connect to a new database (somehow I seem to have to create a listener too)
    OK, I doubt that Oracle is so useless, I'm far more convinced that the "useless" attribute is better suited to my Oracle skills. That is why I can't wait to get some pointers to how I can achieve what I want to achieve useing Oracle.
    Pete
    Message was edited by:
    petehug

    A tablespace is just a logical collection of objects that happen to reside in the data file, so there is technically no reason that you would need separate tablespaces here. Probably a good idea for organizational purposes, but not strictly necessary.
    If we're going to set up version 5.12 of the database...
    1) Create the tablespace (optional). Note that the exact syntax will depend on how you've configured your database (i.e. whether you're using Oracle Managed Files, ASM, etc).
    CREATE TABLESPACE ts_lima_512_md
      DATAFILE 'ts_lima_512_md.dbf' SIZE 100M;2) Create the user/ schema
    CREATE USER lima_512_md
      IDENTIFEID BY <<password>>
      DEFAULT TABLESPACE ts_lima_512_md;3) Log in as the user you just created and create whatever objects you need to create. Assuming you don't specify a tablespace in your DDL, the default tablespace for the user will be used. Otherwise, it would be perfectly valid to have different users/ schemas own objects of the same name in the same tablespace.
    4) Create a role that gives other users whatever permissions they'll need on objects and grant the role those privileges, i.e. for read-only access to tables
    CREATE ROLE lima_512_md_read_only;
    FOR x IN (SELECT * FROM user_tables)
    LOOP
      EXECUTE IMMEDIATE 'GRANT SELECT ON lima_512_md.' ||
                                    x.table_name ||
                                    ' TO lima_512_md_read_only';
    END LOOP;5) Grant this role to whatever other users you'd like
    GRANT lima_512_md_read_only TO scott;6) Now, you can log in as scott, set the current_schema in the session, and query any of the tables in the LIMA_512_MD schema.
    Justin

  • Oracle 11g Installation How to select Database Character Set

    Hi,
    I am Installing oracle 11g R2. After installation I had verified the character set it was AL16UTF16 but I wants to set AL32UTF8 charater set at the time of oracle installation only. I can't see the character set setting opetion at the time of installation because I am selecting the installation option " Install database softerware only" and after installation of oracle software manually I am creating the database. Please help me how can I set the character set at the time of oracle installation or at the time of database creation.
    My question is-
    How can I set the AL32UTF8 character set in above scenario?
    Why It is showing AL16UTF16 character set even I did not define any thing?

    But is there any choice to set the NLS_CHARACTERSET at the time of manually database creation. Actually For creating the database i am using one shell script for seting the parameter values in init.ora file so can I set the parameter at that level(at the time of creating init.ora using manually database creation). like
    ## Original init.ora file created by manual database creation tool on ${DATE}.
    *.aq_tm_processes=0
    *.background_dump_dest='$ORACLE_BASE/admin/$ORACLE_SID/bdump'
    *.compatible='10.2.0'
    *.control_files='/$db_file_loc/oradata/$ORACLE_SID/control01.ctl','/$db_file_loc/oradata/$ORACLE_SID/control02.ctl','/$db_file_loc/oradata/$ORACLE_SID/control03.ctl'
    *.core_dump_dest='$ORACLE_BASE/admin/$ORACLE_SID/cdump'
    *.db_block_size=8192
    *.db_cache_size=104857600
    *.db_domain='$server_name'
    *.db_file_multiblock_read_count=8
    *.db_name='$ORACLE_SID'
    *.fast_start_mttr_target=300
    *.instance_name='$ORACLE_SID'
    *.java_pool_size=16777216
    *.job_queue_processes=4
    *.large_pool_size=16777216
    *.log_archive_dest='/u05/oradata/$ORACLE_SID'
    *.log_archive_format='$ORACLE_SID_%s_%t_%r.arc'
    *.olap_page_pool_size=4194304
    *.open_cursors=500
    *.optimizer_index_cost_adj=50
    *.pga_aggregate_target=536870912
    *.processes=1500
    *.query_rewrite_enabled='TRUE'
    *.remote_login_passwordfile='EXCLUSIVE'
    *.shared_pool_size=83886080
    *.sort_area_size=1048576
    *.sga_max_size=1048576000
    *.sga_target=536870912
    *.star_transformation_enabled='TRUE'
    *.timed_statistics=TRUE
    *.undo_management='AUTO'
    *.undo_retention=10800
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='$ORACLE_BASE/admin/$ORACLE_SID/udump'
    *.utl_file_dir='/export/home/oracle/utlfiles'
    **.nls_characterset='AL32UTF8'*
    EOF
    Is it correct?

  • Problem: Select  Database  to get  X highest entries in reagrd to one field

    Hi Forum,
    I have a problem regarding a complicated (at least for me) Select statement. It uses a customer Z-table to read certain data.
    But my goal is to read only a certain number of top entries per store.
    The number can change from one run to the other.
    To make it clearer here is the simplified defintion of the database table
    MANDT
    LOCNR
    DELTAVERS
    LOCNR is a store and DELTAVERS is a version (simple counter 001,002,..)of that entry. Both fields are key fields.
    Of course there additional fields with values that I interested in. But they are left out here to let focus on the problem.
    My goal is to read a certain #number of top DELTAVERS (versions) for each LOCNR(Store). I do not know the stores or the # of DELTAVERS.
    The select should provide a internal table showing the X highest DELTAVERS with the related store
    e.g. A Select that should show the 3 highest DELTAVERS per Store LOCNR, if available
    LOCNR: DELTAVERS:
    N001 0013
    N001 0023
    N001 0024
    B235 0021
    B235 0056
    Note: In this example B235 has only two entries
    Code:
         l_having_by_cond = "count( DELTAVERS ) le  3".
           SELECT
                      locnr
                      deltavers
                      FROM z_locnr_version
                      APPENDING CORRESPONDING FIELDS OF TABLE
                      lt_locnr_version                 
                      GROUP BY locnr deltavers
                      HAVING (l_having_by_cond).
                      ORDER BY locnr deltavers DESCENDING.
    lt_locnr_version should hold the desired result.
    It seems to use the count for all entries and not just for each LOCNR.
    Hoiw can I achive that the internal table holds the three highest DELTAVERS for each LOCNR (Store).
    Or what would be the best solution here !? Remember we talking here about 1000+ Stores.
    Please help !!
    Thanks in advance,
    Chris

    Hi Forum
    me again, I believe that I somewhat missunderstood the concept of GROUP BY and HAVING clause.
    Both might prove completely useless in this case.
    Would actually aa simple UP TO N ROWS do the tricking providing that the Select is done per store !?
    How can I ensure that it gets always the TOP N entries!??
    Thanks,
    Chris
    > Hi Forum,
    >
    > I have a problem regarding a complicated (at least
    > for me) Select statement. It uses a customer Z-table
    > to read certain data.
    >
    > But my goal is to read only a certain number of top
    > entries per store.
    > The number can change from one run to the other.
    >
    > To make it clearer here is the simplified defintion
    > of the database table

    > MANDT
    > LOCNR
    > DELTAVERS

    >
    >
    > LOCNR is a store and DELTAVERS is a version (simple
    > counter 001,002,..)of that entry. Both fields are key
    > fields.
    > Of course there additional fields with values that I
    > interested in. But they are left out here to let
    > focus on the problem.
    >
    > My goal is to read a certain #number of top DELTAVERS
    > (versions) for each LOCNR(Store). I do not know the
    > stores or the # of DELTAVERS.
    >
    > The select should provide a internal table showing
    > the X highest DELTAVERS with the related store
    >
    > e.g. A Select that should show the 3 highest
    > DELTAVERS per Store LOCNR, if available
    >
    >
    > LOCNR: DELTAVERS:
    > N001 0013
    > N001 0023
    > N001 0024
    > B235 0021
    > B235 0056
    > ....
    >
    >
    >
    > Note: In this example B235 has only two entries
    >
    >
    >
    > Code:
    >
    >            
    >      l_having_by_cond = "count( DELTAVERS ) le  3".
    >
    >        SELECT
    >                   locnr
    >                   deltavers
    >
    >                   FROM z_locnr_version
    >                  
    > APPENDING CORRESPONDING FIELDS OF
    > SPONDING FIELDS OF TABLE
    >                   lt_locnr_version                 
    >                
    >                   GROUP BY locnr deltavers
    >                   HAVING (l_having_by_cond).
    > ORDER BY locnr deltavers
    > BY locnr deltavers DESCENDING.

    >
    >
    > lt_locnr_version should hold the desired result.
    >
    > It seems to use the count for all entries and not
    > just for each LOCNR.
    > Hoiw can I achive that the internal table holds the
    > three highest DELTAVERS for each LOCNR (Store).
    >
    > Or what would be the best solution here !? Remember
    > we talking here about 1000+ Stores.
    >
    > Please help !!
    >
    > Thanks in advance,
    >
    > Chris

  • Confusion in Select query having a inner join on single table

    Hi,
    I was going through coding and came a accross a select query which has a inner join on a single table. I am getting confused while analysing this . Please someone can help me analysing this query.
    select
            m~MATERIAL
            s~NUMERATOR s~DENOMINTR
            m~GROSS_WT  m~UNIT_OF_WT
          into table itab
          from ( table1as s
           inner join table1 as m
           on  m~MATERIAL = s~MATERIAL
          and m~MAT_UNIT = 'CS'
          and m~SOURSYSTEM = s~SOURSYSTEM )
          where s~MAT_UNIT = 'EA'
             and s~SOURSYSTEM = 'LD'
             and s~OBJVERS = 'A'
             and s~MATERIAL IN ( Select mat_sales
                from Table2  group by mat_sales ).
    Thank you
    Kusuma

    I don't see any use of the INNER JOIN here.
    But what's the meaning of the last selection clause?
    s~MATERIAL IN ( Select mat_sales
                from Table2  group by mat_sales ).
    Is that native SQL or something?
    Pushpraj

  • List sql backups in a folder then restore the selected backup to the selected database

    Hi
    I'm created a script that lists the backups in a folder then allows user input to select a backup.
    It then needs to list the sql database on a specific server and accepts user input.
    I can list the backups as follows
    $Dir = get-childitem $CurDir -recurse
    $List = $Dir | where {$_.extension -eq ".bak"}
    $List | format-table name
    but what I want to know is how to format the list to have a number for the selection next to it?
    How can I get a list of the sql databases on the server.
    Thanks
    Wayne

    Hi Wayne,
    I’m writing to just check in to see
    if the suggestions were helpful. If you need further help, please feel free to reply this post directly so we will be notified to follow it up.
    If you have
    any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

  • Confused, which MySQL database to connect to: local (WAMP), or remote?

    Hello, new to dynamic sites, have successfully installed WAMP and set up my local/testing/remote sites in DW CS4.  Most tutorials I've found recommend making the "MySQL Connection" in Dreamweaver to the local (WAMP) installation of MySQL, which I am able to do.  But my remote site already has an existing MySQL database and tables.  So should I be making the MySQL Connection to the remote database instead?  Or exporting the remote server's database and importing it locally for development purposes?  What's the best practice?
    If making the connection to my local database is recommended, how do I transfer any changes that I make on my local db to the remote database?  Do I need to export locally & import to the remote db, using phpmyadmin, every time I make changes to the local database?
    If making the connection to my remote database is recommended, I have 2 questions: 1) do I even need my local WAMP MySQL database for anything?  and 2)  I was able to connect to my remote MySQL, (first got "MySQL ERROR 1045 Access Denied", but then went into my remote server via CPanel, found the "Remote MySQL" function, and entered my long current domain name as a new Access Host), but since I'm at a home office without a static IP, will I have to keep going into CPanel and entering in a new Access Host every time my IP address changes?
    Apologies for the confusion.  Any pointers to recommended best practices would be much appreciated.
    - Frank

    > 2)  I was able to connect to my remote MySQL, (first got "MySQL ERROR  1045
    > Access Denied", but then went into my remote server via CPanel,  found the
    > "Remote MySQL" function, and entered my long current domain  name as a new
    > Access Host), but since I'm at a home office without a static IP,
    > will I have to keep going into CPanel and entering in a new  Access Host every time
    > my IP address changes?
    Update: my IP address changed slightly yesterday and I was denied remote MySQL access again.  Went back to CPanel and modified my Access Host domain with a few wildcard characters (blah-blah-blah-%%%%.dsl.bell.ca).  That got me back in.  Is this what most people who want remote MySQL access do?  Is it a (significant) security risk?
    Or do most people without static IPs just not bother with remote MySQL access?

  • MySQL Connection - Select Database - HTTP Error Code 405 Method Not Allowed?

    We've set up a MySQL database with our host and can connect to that, and create, edit, delete tables using HeidiSQL, without a problem.
    However when we attempt to set up the connection in the Databases tab of our Applications panel in Dreamweaver we receive the following error:
    HTTP Error Code 405 Method Not Allowed
    We have entered the following in the MySQL Connection box:
    Name: <name of our connection>
    Server: <IP address of our database>
    Username: <our database username>
    Password: <our database password>
    Database:
    When we click the "Select" option next to the Database field, that's when we receive the above mentioned error.
    We noticed that there was a fix posted by Adobe at:
    http://www.macromedia.com/support/dreamweaver/ts/documents/err405.htm
    ...but that link is long since dead, however it does seem to indicate that Adobe are/were aware of this issue.
    Can anyone help?  We're trying to move from Classic ASP / MSSQL to PHP / MySQL but have hit a barrier right from the off, which isn't very encouraging.  Hope someone can ease our concerns with PHP and MySQL.
    Much appreciated.
    NJ

    Thank you SnakEyez02.
    I had the Testing Server set to Local/Network but didn't have MySQL installed locally.  Changed that setting to FTP and it picked up on the database correctly.
    When using MSSQL it doesn't matter whether you choose Local/Network or FTP it just picks up the online database regardless.  I guess this must just be a difference between it and MySQL.
    Thanks for the advice.  Much appreciated.
    NJ

  • MySql Selecting Database returns HTTP 500 Internal Server Error

    The Test returns success and my database is displayed in the Bindings section but there are still errors when selecting the 'Select' Button

    The most likely cause is that MMHTTPDB.php and mysql.php scripts are not created inside the _mmServerScripts folder. Have a look  here Using the Server Behaviors extension to enable Server Behaviors & DB features in Dreamweaver CC - YouTube

  • 10g Locks Up when selecting database field for optimistic locking

    As the subject says, when I attempt to select the database field for optimistic locking, JDeveloper locks up and I have to kill it with the task manager.
    Should I post problems with TopLink in 10g in this forum or the TopLink forum?

    I finally hit this StackOverflowError again. This happens sometimes when I select the Locking tab on a class where the locking field has already been selected. Here is the top of the stack trace:
    java.lang.StackOverflowError
         at java.util.TreeMap$KeyIterator.next(TreeMap.java:1047)
         at java.util.TreeMap.buildFromSorted(TreeMap.java:1588)
         at java.util.TreeMap.buildFromSorted(TreeMap.java:1534)
         at java.util.TreeMap.addAllForTreeSet(TreeMap.java:1492)
         at java.util.TreeSet.addAll(TreeSet.java:247)
         at java.util.TreeSet.<init>(TreeSet.java:138)
         at oracle.toplink.workbench.model.desc.MWClassDescriptor.getAssociatedTablesCopy(MWClassDescriptor.java:377)
         at oracle.toplink.workbench.model.desc.MWClassDescriptor.getSecondaryTablesCopy(MWClassDescriptor.java:698)
         at oracle.toplink.workbench.model.desc.MWClassDescriptor.hasMultipleTables(MWClassDescriptor.java:796)
         at oracle.toplink.workbench.ui.labels.DatabaseFieldLabel.isMultiTable(DatabaseFieldLabel.java:120)
         at oracle.toplink.workbench.ui.labels.DatabaseFieldLabel.installUI(DatabaseFieldLabel.java:93)
         at oracle.toplink.uitools.cell.BasicLabel.prepareLabel(BasicLabel.java:953)
         at oracle.toplink.uitools.cell.BasicLabel.getListCellRendererComponent(BasicLabel.java:611)
         at oracle.toplink.uitools.plaf.basic.BasicListChooserUI$RendererWrapper.getListCellRendererComponent(BasicListChooserUI.java:1104)
         at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1147)
         at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1097)
         at javax.swing.plaf.basic.BasicListUI$ListSelectionHandler.valueChanged(BasicListUI.java:1465)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
         at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:402)
         at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:411)
         at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:435)
         at javax.swing.JList.setSelectedIndex(JList.java:1730)
         at javax.swing.plaf.basic.BasicComboPopup.setListSelection(BasicComboPopup.java:998)
         at javax.swing.plaf.basic.BasicComboPopup.access$000(BasicComboPopup.java:43)
         at javax.swing.plaf.basic.BasicComboPopup$ItemHandler.itemStateChanged(BasicComboPopup.java:782)
         at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1161)
         at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1218)
         at oracle.toplink.uitools.ComboBox.selectedItemChanged(ComboBox.java:512)
         at javax.swing.JComboBox.contentsChanged(JComboBox.java:1265)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
         at oracle.toplink.uitools.plaf.basic.BasicListChooserUI$ComboBoxModel.fireContentsChanged(BasicListChooserUI.java:598)
         at oracle.toplink.uitools.plaf.basic.BasicListChooserUI$ListDataHandler.contentsChanged(BasicListChooserUI.java:842)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
         at oracle.toplink.uitools.DefaultListModel.setSelectedItem(DefaultListModel.java:830)
         at oracle.toplink.uitools.DefaultListModel.removeAll(DefaultListModel.java:529)
         at oracle.toplink.uitools.DefaultListModel.replace(DefaultListModel.java:724)
         at oracle.toplink.uitools.ListChooser.setData(ListChooser.java:747)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.populateOptimisticFieldChooser(DescriptorPropertiesLockingPage.java:333)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.propertyChange(DescriptorPropertiesLockingPage.java:342)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:216)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:230)
         at oracle.toplink.workbench.tools.AbstractModel.firePropertyChange(AbstractModel.java:70)
         at oracle.toplink.workbench.model.desc.MWDescriptorLockingPolicy.setLockField(MWDescriptorLockingPolicy.java:117)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage$ActionHandler.actionPerformed(DescriptorPropertiesLockingPage.java:471)
         at oracle.toplink.uitools.Chooser.fireActionEvent(Chooser.java:305)
         at oracle.toplink.uitools.ListChooser$ListDataHandler.contentsChanged(ListChooser.java:1382)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
         at oracle.toplink.uitools.DefaultListModel.setSelectedItem(DefaultListModel.java:830)
         at oracle.toplink.uitools.DefaultListModel.replace(DefaultListModel.java:732)
         at oracle.toplink.uitools.ListChooser.setData(ListChooser.java:747)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.populateOptimisticFieldChooser(DescriptorPropertiesLockingPage.java:333)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.propertyChange(DescriptorPropertiesLockingPage.java:342)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:216)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:230)
         at oracle.toplink.workbench.tools.AbstractModel.firePropertyChange(AbstractModel.java:70)
         at oracle.toplink.workbench.model.desc.MWDescriptorLockingPolicy.setLockField(MWDescriptorLockingPolicy.java:117)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage$ActionHandler.actionPerformed(DescriptorPropertiesLockingPage.java:471)
         at oracle.toplink.uitools.Chooser.fireActionEvent(Chooser.java:305)
         at oracle.toplink.uitools.ListChooser$ListDataHandler.contentsChanged(ListChooser.java:1382)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
         at oracle.toplink.uitools.DefaultListModel.setSelectedItem(DefaultListModel.java:830)
         at oracle.toplink.uitools.DefaultListModel.replace(DefaultListModel.java:732)
         at oracle.toplink.uitools.ListChooser.setData(ListChooser.java:747)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.populateOptimisticFieldChooser(DescriptorPropertiesLockingPage.java:333)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.propertyChange(DescriptorPropertiesLockingPage.java:342)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:216)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:230)
         at oracle.toplink.workbench.tools.AbstractModel.firePropertyChange(AbstractModel.java:70)
         at oracle.toplink.workbench.model.desc.MWDescriptorLockingPolicy.setLockField(MWDescriptorLockingPolicy.java:117)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage$ActionHandler.actionPerformed(DescriptorPropertiesLockingPage.java:471)
         at oracle.toplink.uitools.Chooser.fireActionEvent(Chooser.java:305)
         at oracle.toplink.uitools.ListChooser$ListDataHandler.contentsChanged(ListChooser.java:1382)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
    ...

  • Selecting database fields

    I have a database with lots of records of contacts, and have defined a field as email addresses. How do I select - for the purpose of copying - just the email address fields from all the records?

    Hi Walter,
    Welcome to the discussions and the AppleWorks forum.
    In a database document, Select All will select all of the data in a single record if you have the insertion point in that field, or will select all of the data in all of the visible fields in all of the visible records if the insertion point is not in a field when the selection is made.
    The key word there is "visible".
    To select the contents of a single field in multiple records, you need to make that field the only visible field.
    That's done by creating a New Layout containing only that field. Here's the process:
    Open the DB.
    Go Layout > Layout (this puts you in Layout mode, necessary for a later step)
    Go Layout > New Layout...
    Name the layour "emails only"
    Choose Blank, click OK
    Go Layout > Insert field
    Choose your email field from the list presented. Click Insert
    You'll see the field and it's label (name) appear on the layout.
    If you don't want the field name on the layout, click on it (the one on the left), then press the delete key.
    Click and drag the Body boundary up to a position close under the email field. (The boundary controls how much space each record takes on the page or screen. )
    Go Layout > Browse to return to Browse mode and see the results.
    Go Layout > Layout 1 to return to the original layout that shows all the fields,
    OR Layout > List to see the data on a spreadsheet-like grid.
    Go Layout > emails only to see (and select and copy) only the email addresses.
    Regards,
    Barry

  • How to Select Database Path via labview

    Hello gurus...........
        I am new user in labview. I want read and write in database through labivew . I have
    done read and write program. Now I want choose database storage path through labview .
    I tried differnt ways but I couldn't.
    First read and write program i did via UDL file path .Now i want Directly choose ".mdb" file path.
    I dont know how to do ......
    So if you know please help me.....
    Thanks advance
    Regards
    Arunkumar M
    India

    I think the way the database connectivity toolkit works, it is expecting the database to already exist. The function you are calling creates a table so it probably errors if the file doesn't exist. If you google 'create access database programmatically' you may be able to find something useful for creating a new access database file. Don't forget that you also have the native File I/O functions in LabVIEW for copying/moving files on disk.
    For the connection string...there's a handy website here: http://www.connectionstrings.com/
    I think you can also open a connection file (UDL) in notepad?

Maybe you are looking for