Using GROUP_CONCAT (MYSQL) in BO XI Universe

Hi,
I have an error using group_concat in an universe (XI R3) : it works with a single table and a single text field query but does not work anymore :
- with a second aggregate field on the same table SUM(numeric field) + GROUP BY : the GROUP_CONCAT is automatically generated in the GROUP BY section as it should not
- with a second text field from another inner joinned table
Exception: DBD, [MySQL][ODBC 5.1 Driver][mysqld-5.0.51a-23~bpo40+1-log]Utilisation invalide de la clause GROUPState: HY000
Does anyone has ever used GROUP_CONCAT in a BO XI Universe ?
Thanks for your help.
Sebastien

Hi all,
I am facing the same issue but can not find any solution.
Have you got any update on your side ?
Thanks

Similar Messages

  • How to use a mysql built-in function with dataprovider

    hi.
    I want to use a mysql built-in function, for example, MD5() on a column when updating a table with dataprovider.
    Something like this doesn't work:
    MyDataProviderOne.setValue("tablename.field_name", "MD5('some text')");
    How should it be done?
    thanks.
    Mike.

    hi.
    thanks. this helped, but I'd like to use also different functions, that's why, I'd rather do it by MySQL built-in functions with dataprovider... Is there any way to do that?
    best regards.
    Mike.

  • Cannot connect from dreamweaver cs5.5 to mysql using the mysql connection wizard

    Cannot connect from dreamweaver cs5.5 to mysql using the mysql connection wizard error Http error 403 or 500 internal server error. I am using ubuntu mysql.
    a manual php script work fine
    <?php
    // open connection to mysql server
    $dbc = mysql_connect('localhost','root','password');
    if (!$dbc) {
                die('Not Connected' . mysql_error ());
    //select database
    $db_selected = mysql_select_db ("msinventory",$dbc);
    if (!$db_selected)
            die('Cannot Connect' . mysql_error());
    echo "TEST DONE1";
    ?>
    but the database connection wizard fails with http error 403 or 500
    i also use the HeidiSQL client and it works, the only problem is in dreamweaver.

    OK.  Did you really mean to ask this question on a ColdFusion forum, if it's DreamWeaver you're having problems with?  You're probably better off raising this on a DreamWeaver forum.  "Using the correct tool for the job" 'n'all.
    Adam

  • How to do transactions in jsp pages using Java & MySQL ?

    Hi,
    I'm a newbie..
    I'd like to know "How to do transactions in jsp pages using Java & MySQL ?"
    Platform: Windows XP, Apache Tomcat 5.5, MySQL 5, Java bean without EJB
    what are the the different types of transactions? Differences between them?Pls provide examples?
    Which among them is the best method to implement a transaction?
    Pls help me...
    thnx in advance...

    http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html

  • How can I use a mySQL database schema with numeric auto increment primary key instead of GUID?

    Hello!
    I'm using the TestStand "MySQL Insert (NI)" database schema with GUID as primary key. So everything works fine.
    But I prever using numeric values as primary key, because the database is in conjunction with another database which uses numeric values as primary key.
    Is this possible?
    Has anyone an idea how I can modify the "Generic Recordset (NI)" for use with MySQL?
    Thanks!
    Configuration:
    Microsoft Windows XP
    TestStand 3.1
    MySQL 4.1.12a
    MySQL ODBC 3.51 Driver
    Brosig

    Adam -
    The TestStand Database Logging feature does not allow you to run a separate SQL command after executing the command for a statement(table), so I do not think that you can use an auto incrementing column for the tables. There is just no way to get it back in a generic way. One option that I tried is something similar to the Oracle schema where you call a store procedure to return a sequence ID for each record that you want to add.
    So you would have to create the following sequence table in MySQL:
    CREATE TABLE sequence (id INT NOT NULL);
    INSERT INTO sequence VALUES (0);
    Then create a stored procedure as shown below that will increment the sequence value and return it in a recordset:
    CREATE PROCEDURE `getseqid`()
    BEGIN
            UPDATE sequence SET id=LAST_INSERT_ID(id+1);
            SELECT LAST_INSERT_ID();
    END
    Then update the MySQL tables to use INT primary and foreign key values, so the TestStand MySQL SQL file to create all tables would have text like this:
    CREATE TABLE UUT_RESULT
     ID    INT  PRIMARY KEY,
    ~
    CREATE TABLE STEP_RESULT
     ID    INT  PRIMARY KEY,
     UUT_RESULT   INT  NOT NULL,
    ~
    Then update the schema primary and foreign key columns in the TestStand Database Options dialog box to be INT to match the table. For the primary key columns, you will have to set the Primary Key Type to "Get Value from Recordset" and set the Primary Key Command Text to "call getseqid()". This will call the stored procedure to determine the next value to use as the ID value.
    Hope this helps...
    Scott Richardson
    National Instruments

  • How to use @prompt for stored procedure in universe

    Hi,
    I am using Bo XI R3.1 and universe was built on stored procedures and database is sql server 2005.
    I would like to show the list of values for prompts in report which they are based on parameters given for stored procedures in universe. Instead of typing the value for prompts the user should select some values for the prompt.
    I've tried in the universe putting the prompt syntax but didn't work could any one please let me know how this will be achived
    Thanks in advance,
    Eswar

    Hi Eswar,
    Please try the following steps mentioned below:
    1. Go to Insert -> click Tables and Import the table which needs to assign LOVu2019s into Universe panel.
    Objects which are created on tables may appear in inactive mode.
    2. Right click on the stored procedure -> Click on Edit stored procedures.
    3. Click on the Browse universe objects from Stored Procedure Editor. (Button avaial on the left)
    4. Select the object which you want to assign for the List of values.
    5. Enter the desired text which you want to display in the WebI reports in the Edit prompt Label.
    6. Export the Universe.
    Before doing the above steps:
    While creating for SP Univ, a parameter screen appears after selecting SP. In the "Value" field enter a dummy value and
    from the "Next Execution" drop down at the right select "Prompt me for a value".
    Regards,
    Rohit

  • Best way to update images using PHP / MySQL?

    HI
    I want to update images using PHP/MySQL, so users can update their images and maybe some other files but mainly images.
    thanks

    How messed up is this code?!
    <?php
    //connect to database
    $con = mysql_connect("testhost","testuser","pass");
    // file properies
    $file = $_FILES['image']['tmp_name'];
    if (!isset($file))
    echo "please select an image";
    else {
        $id = $_REQUEST['id_display'];
        $image = ($_FILES['image']['tmp_name']) ? file_get_contents ($_FILES['image']['tmp_name']) : '';
        $image_name = ($_FILES['image']['name']) ? addslashes($_FILES['image']['name']): '';
        $image_size = ($_FILES['image']['tmp_name']) ? getimagesize($_FILES['image']['tmp_name']): '';
        if ($image_size == FALSE)
        echo "You have not selected an image.";
        else {
            mysql_select_db("test_display", $con);
            mysql_query("UPDATE testtable SET image = '$image', imagename = '$image_name' WHERE id_display='$id'");
    ?>
    And the upload page....
    /*Update code */ /*End update code */                            

  • Configuring IdM 7 on Tomcat 5.5 to use a Mysql (5.0.41) datasource

    I've been trying, for some time now, to configure Idm 7 to use a mysql datasource using the interface provided by the lh setup coomand.
    I'm supply the following values:
    DataSource Name/Path: jdbc/wavesetDB
    Initial Context Factory: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
    I get the following error:
    com.waveset.util.ConfigurationError: Failed to load JDBC DataSource 'jdbc/wavesetDB':
    ==> javax.naming.NoInitialContextException: Cannot instantiate class: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
    I know the datasource is working as I've written a servlet that users the datasource to query the database.
    The OS is windows and jdk version is 1.4.2.
    Any help will be appreciated.
    Thanks

    Hi all
    i tried to configure MysqlDatasource on Sun Application server EE 8.2.The operating system is Solaris10. i am able to successfully create the connection pool and JDBC datasource (jdbc/trialdb) but when i ran the command
    lh setRepo -v -tDatastore
    -icom.sun.enterprise.naming.SerialInitContextFactory -fjdbc/trialdb
    -uiiop://localhost:3306
    it gives me the following exceptions/errors
    Defaulting administrator to 'configurator'.
    Defaulting credentials to 'configurator'.
    Checking 'RelationalDataStore:jdbc/trialdb'...
    java.io.FileNotFoundException: /psegApp/opt/SUNWappserver/appserver/config/secur
    ity.properties (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42
            at com.sun.enterprise.iiop.POAEJBORB.<clinit>(POAEJBORB.java:78)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:242)
            at org.omg.CORBA.ORB.create_impl(ORB.java:295)
            at org.omg.CORBA.ORB.init(ORB.java:336)
            at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
            at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
            at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitC
    ontextFactory.java:31)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
            at java.lang.Class.newInstance0(Class.java:350)
            at java.lang.Class.newInstance(Class.java:303)
            at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    54)
            at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
            at javax.naming.InitialContext.init(InitialContext.java:223)
            at javax.naming.InitialContext.<init>(InitialContext.java:197)
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:571)
            at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
    ore.java:3834)
            at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
    ava:3779)
            at com.waveset.install.RepoMan.check(RepoMan.java:1194)
            at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
            at com.waveset.install.RepoMan.main(RepoMan.java:1314)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
            at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
            at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.Command.main(Command.java:117)
    java.io.FileNotFoundException: /psegApp/opt/SUNWappserver/appserver/config/ejb.p
    roperties (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42
            at com.sun.enterprise.iiop.J2EEInitializer.<init>(J2EEInitializer.java:5
    4)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
            at java.lang.Class.newInstance0(Class.java:350)
            at java.lang.Class.newInstance(Class.java:303)
            at com.sun.corba.ee.internal.Interceptors.PIORB.registerORBInitializers(
    PIORB.java:377)
            at com.sun.corba.ee.internal.Interceptors.PIORB.parseProperties(PIORB.ja
    va:347)
            at com.sun.corba.ee.internal.TxPOA.TxPIORB.parseProperties(TxPIORB.java:
    116)
            at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:461)
            at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:156)
            at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.jav
    a:336)
            at org.omg.CORBA.ORB.init(ORB.java:337)
            at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
            at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
            at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitC
    ontextFactory.java:31)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
            at java.lang.Class.newInstance0(Class.java:350)
            at java.lang.Class.newInstance(Class.java:303)
            at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    54)
            at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
            at javax.naming.InitialContext.init(InitialContext.java:223)
            at javax.naming.InitialContext.<init>(InitialContext.java:197)
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:571)
            at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
    ore.java:3834)
            at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
    ava:3779)
            at com.waveset.install.RepoMan.check(RepoMan.java:1194)
            at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
            at com.waveset.install.RepoMan.main(RepoMan.java:1314)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
            at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
            at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.Command.main(Command.java:117)
    Warning: unable to read transaction.interoperability config property
    java.io.FileNotFoundException: /psegApp/opt/SUNWappserver/appserver/config/secur
    ity.properties (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42
            at com.sun.enterprise.iiop.security.SecurityMechanismSelector.<clinit>(S
    ecurityMechanismSelector.java:102)
            at com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLS
    ocketFactory.java:211)
            at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(Connecti
    onTable.java:73)
            at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(Connecti
    onTable.java:68)
            at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:7
    0)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.locateObject(Init
    ialNamingClient.java:769)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.getIORUsingHostIn
    fo(InitialNamingClient.java:597)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveCorbaloc(I
    nitialNamingClient.java:573)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingORBIn
    itRef(InitialNamingClient.java:544)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialRefe
    rences(InitialNamingClient.java:1080)
            at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_r
    eferences(InitialNamingClient.java:981)
            at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.ja
    va:2425)
            at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
    a:52)
            at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:583)
            at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
    ore.java:3834)
            at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
    ava:3779)
            at com.waveset.install.RepoMan.check(RepoMan.java:1194)
            at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
            at com.waveset.install.RepoMan.main(RepoMan.java:1314)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
            at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
            at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.Command.main(Command.java:117)
    javax.naming.CommunicationException: Can't find SerialContextProvider
    Failed to load JDBC DataSource 'jdbc/trialdb':
    ==> javax.naming.CommunicationException: Can't find SerialContextProvider
    com.waveset.util.ConfigurationError: Failed to load JDBC DataSource 'jdbc/triald
    b':
    ==> javax.naming.CommunicationException: Can't find SerialContextProvider
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:610)
            at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
    ore.java:3834)
            at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
    ava:3779)
            at com.waveset.install.RepoMan.check(RepoMan.java:1194)
            at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
            at com.waveset.install.RepoMan.main(RepoMan.java:1314)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
            at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
            at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.Command.main(Command.java:117)
    Caused by: javax.naming.CommunicationException: Can't find SerialContextProvider
            at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
    a:63)
            at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:583)
            ... 17 more
    Wrapped exception:
    javax.naming.CommunicationException: Can't find SerialContextProvider
            at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
    a:63)
            at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:583)
            at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
    ore.java:3834)
            at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
    ava:3779)
            at com.waveset.install.RepoMan.check(RepoMan.java:1194)
            at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
            at com.waveset.install.RepoMan.main(RepoMan.java:1314)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
            at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
            at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.waveset.util.Command.main(Command.java:117)There is no security.properties file under config directory. i checked with other installation, no such file have been created under this directory.
    Please help me where i am missing or some else step needs to be followed. i exactly followed the Sun installation manual.
    Thanks in advance.
    Edited by: Amit_Bansal on Aug 4, 2008 1:36 PM

  • CS6 Dreamweaver using PHP & MySQL - Delete Record Server Behavior?

    When I try to insert the Delete Record server behavior. I get an error message about a DeleteRecord.js file, which seems to be missing or defective.  I cannot use the server behavior.  I have a file that I developed using CS5, and it does indeed delete the record, but does not proceed to the destination I want.  I cannot change that except in the server behavior, so I'm stuck.  I have noticed that server behaviors seem to disappear without apparent cause, as it seems to have in this case.  I will appreciate any suggestions!  Is there any way to embed a call to a target page manually?  All is working WITHOUT the server behavior appearing, but I want to go to a confirmation display page that shows the record is indeed deleted, and we just return to the (now blank) delete confirmation page.  That'll drive a user bonkers!
    Thanks!
    Delete Record in CS6 Dreamweaver using PHP & MySQL?

    Well, your error message is self-explanatory.
    DW stores ServerBehaviors in 'Configuration' folder in installation directory. If one of the behavior JS files is missing/ corrupt, you'll see the error message you just did.
    I've uploaded a functional, proper version of DeleteRecord.js onto my site for you to download. Here's the link:
    http://www.sudarshan.me/adobeforum/dw/app/behavior-js/DeleteRecord.zip
    Download this file, extract it and put DeleteRecord.js file in your installation directory as follows. If prompted, 'replace' your local copy:
    Mac: Applications > Adobe Dreamweaver CS6 > Configuration > ServerBehaviors > PHP_MySQL
    Windows: C:\Users\Your User Name\AppData\Roaming\Adobe\Dreamweaver CS6\[language]\Configuration\ServerBehaviors\PHP_MySQL
    It should work as expected.
    If that still doesn't solve the problem, reset your DW preferences and cache and try doing it. Follow the instructions here to reset cache: http://forums.adobe.com/thread/494811
    Let us know how it goes.
    -ST

  • Wildcard Use in MySQL Query

    I am using PHP/MySQL with Dreamweaver CS5, v.11. I want to query my table for a color entered by the user, and return results for words like "Brown" even if there are words before or after in the table cell. E.g., :
    Silver Brown Yellow
    Grey Blue Brown
    Brown Blue Yellow
    Here is a query I made in Dreamweaver that I thought would accomplish that:
    if (isset($_GET['color'])) {
    $color_items = $_GET['color']; }
    $query_items = sprintf("SELECT * FROM Items WHERE Items.Color Like '%$color_items%'", GetSQLValueString($color_items, "text"));
    $query_limit_items = sprintf("%s LIMIT %d, %d", $query_items, $startRow_items, $maxRows_items);
    $items = mysql_query($query_limit_items, $CollectionLocal) or die(mysql_error());
    $row_items = mysql_fetch_assoc($items);
    Regardless of whether I use "$color_items", "%s", or an actual term like "brown," I am having problems.
    If I use "Like '%$color_items%'" as in the example above, it returns a syntax error message indicating that it has changed what should be "%brown%" to "0row0". In other words, it's treating my text variable like an integer.
    I tried putting making $color_items='%'.$_GET['Color'].'%', but that produces the same result.
    If I zap the single quotes from the query, it assumes that $color_items is a column name, and because there's no column called $color_items, that produces an error.
    If I don't use the GetSQLValueString formulation, and do something like this, it works:
    $query_items = "SELECT * FROM Items WHERE Color Like '%$color_items%'";
    $items = mysql_query($query_items, $CollectionLocal) or die(mysql_error());
    $row_items = mysql_fetch_assoc($items);
    $totalRows_items = mysql_num_rows($items);
    And it works in MySQL alone, as well. I want to use the GetSQLValueStrin

    I apologize that the post ends so abruptly - an error occurred and I couldn't edit it any further.
    I tried changing the variable type to "defined" and "long," and it didn't change my result.
    Can anyone advise as to how I should be constructing my variable "color_items" so that it will work with the GetSQLValueString formulation? This query is just a snippet of a larger one with numerous variables all formatted using GetSQLValueString. I'd rather not have to change the whole query. Plus I don't know that much about escape strings, and I assume GetSQLValueString is Dreamweaver's way of helping to prevent a SQL injection attack.
    Thank you!
    Elizabeth

  • Using DBD::Mysql on OS X Lion Server

    Hello together,
    I have MySQL running on Mac OS X Lion Server.
    The server was upgraded from Leopard Server so it is the Apple installed MySQL server version from Mac OS X Server 10.5.
    /usr/libexec/mysqld  Ver 5.0.67-log for apple-darwin9.0 on i686 (Source distribution)
    Now I want to install DBD::Mysql vom cpan but whatever I tried, it didn´t work.
    After googling I first I thought it might be an issue of headers and libraries so I copied /usr/local/lib/mysql and /usr/local/include/mysql from a OS X client machine, where I did install DBD::Mysql months ago.
    But I got some errors like
    dyld: Symbol not found: _mysql_init, referer: ...
    and
    dyld: lazy symbol binding failed: Symbol not found: _mysql_init, referer: ....
    (This is from appache error_log since I am have cgi scripts which use DBD::Mysql)
    Then I read some articles that it might be an issue of 32-bit an 64-bit incompatibilities.
    Could anyone give me some advice on how to get DBD::Mysql up an running or at least how to find out what the problem really is.
    Thanks in advance and best regards
    macmartin

    In the meantime I tried many differnt things.
    Finally I copied theses files from Mac OS X 10.7 client to the 10.7 Server:
    /Library/Perl/5.12/darwin-thread-multi-2level/Bundle/DBD/mysql.pm
    /Library/Perl/5.12/darwin-thread-multi-2level/DBD/mysql.pm
    /Library/Perl/5.12/darwin-thread-multi-2level/DBD/mysql/GetInfo.pm
    /Library/Perl/5.12/darwin-thread-multi-2level/DBD/mysql/INSTALL.pod
    /Library/Perl/5.12/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bs
    /Library/Perl/5.12/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
    /usr/local/lib/mysql/
    /usr/local/include/mysql
    /usr/local/mysql/lib
    So if anyone runs into the same problem one possible solution could be to set up DBD::Mysql on 10.7 client and copy the appropriate files to the server.
    Best regards
    macmartin

  • Use of MYSQL when installing Business Objects Enterprise XI 3.1

    Hello Team,
    I am quite new Business Objects and right now I am using Business Objects Enterprise XI 3.1.
    when installing BO XI 3.1, I was prompted to select the database server to be created. I chose MySQL.
    Now, I am curious to know the pupose/involvement of a database server for BO. I understand that the database is being managed/used by CMS and it has four main functions:
    Maintains security (users)
    Manages objects (folders, reports, and program objects)
    Manages servers (services)
    Manages auditing (system auditor).
    Is there any better explanation to the database and its purpose?
    what does the database schema/user holds (any database objects,tables,etc..,)?
    Does repository and database schema the same?
    Are all the report objects, users and universe being stored in the database schema?
    Thanks in advance for the reply.
    Regards,
    Kathir

    CMS handles security and routes the request to other services.
    Yes, CMS also maintains the BOE repository.
    CMS is responsible for authenticating users and groups, and keeping track of the availability of the other BusinessObjects Enterprise services. If CMS is down then users wont be able to log into BOE.
    Report Objects, Universe are stored in the Input File Repository and the instances are stored in Output File Repository server.
    In simple words, CMS is like heart of BOE.

  • Voting poll using PHP & MySQL TypeError: Error #2007: Parameter text must be non-null.

    I am getting this back:
    TypeError: Error #2007: Parameter text must be non-null.
    at flash.text::TextField/set text()
    at AS3_Flash_Poll_PHP_MySQL_fla::WholePoll_1/completeHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
    PHP code:
    <?php
    // ---------------------------------------- Section 1 -----------------------------------------------
    //  IMPORTANT!!!! Connect to MySQL database here(put your connection data here)
    mysql_connect("ginaty05.fatcowmysql.com","fall2010","@regina") or die (mysql_error());
    mysql_select_db("poll_2010") or die (mysql_error());
    // When Flash requests the totals initially we run this code
    if ($_POST['myRequest'] == "load_numbers") {
    // Query the totals from the database
        $sql1 = mysql_query("SELECT id FROM votingPoll WHERE choice='1'");
        $choice1Count = mysql_num_rows($sql1);
        $sql2 = mysql_query("SELECT id FROM votingPoll WHERE choice='2'");
        $choice2Count = mysql_num_rows($sql2);
        $sql3 = mysql_query("SELECT id FROM votingPoll WHERE choice='3'");
        $choice3Count = mysql_num_rows($sql3);
        echo "choice1Count=$choice1Count";
        echo "&choice2Count=$choice2Count";
        echo "&choice3Count=$choice3Count";
    // ---------------------------------------- Section 2 -----------------------------------------------
    // IF POSTING A USER'S CHOICE
    if ($_POST['myRequest'] == "store_choice") {
        //Obtain user IP address
        $ip = $_SERVER['REMOTE_ADDR'];
        // Create local variable from the Flash ActionScript posted variable
        $userChoice = $_POST['userChoice'];
        $sql = mysql_query("SELECT id FROM votingPoll WHERE ipaddress='$ip'");
        $rowCount = mysql_num_rows($sql);
        if ($rowCount == 1) {
    $my_msg = "You have already voted in this poll.";
    print "return_msg=$my_msg";
        } else {
    $sql_insert = mysql_query("INSERT INTO votingPoll (choice, ipaddress) VALUES('$userChoice','$ip')")  or die (mysql_error());
    $sql1 = mysql_query("SELECT * FROM votingPoll WHERE choice='1'");
    $choice1Count = mysql_num_rows($sql1);
    $sql2 = mysql_query("SELECT * FROM votingPoll WHERE choice='2'");
    $choice2Count = mysql_num_rows($sql2);
    $sql3 = mysql_query("SELECT * FROM votingPoll WHERE choice='3'");
    $choice3Count = mysql_num_rows($sql3);
    $my_msg = "Thanks for voting!";
            echo "return_msg=$my_msg";
            echo "&choice1Count=$choice1Count";
    echo "&choice2Count=$choice2Count";
    echo "&choice3Count=$choice3Count";
    ?>
    AS3 code:
    stop(); // Stop the timeline since it does not need to travel for this to run
    // Assign a variable name for our URLVariables object
    var variables1:URLVariables = new URLVariables();
    //  Build the varSend variable
    var varSend1:URLRequest = new URLRequest("parse_my_poll.php");
    varSend1.method = URLRequestMethod.POST;
    varSend1.data = variables1;
    // Build the varLoader variable
    var varLoader1:URLLoader = new URLLoader;
    varLoader1.dataFormat = URLLoaderDataFormat.VARIABLES;
    varLoader1.addEventListener(Event.COMPLETE, completeHandler1);
    // Set variable to send to PHP here for the varloader below
    variables1.myRequest = "load_numbers";  
    // Send data to php file now, and wait for response using the COMPLETE event
    varLoader1.load(varSend1);
    function completeHandler1(event:Event):void{
        count1_txt.text = "" + event.target.data.choice1Count;
        count2_txt.text = "" + event.target.data.choice2Count;
        count3_txt.text = "" + event.target.data.choice3Count;
    // hide the little processing movieclip
    processing_mc.visible = false;
    // Initialize the choiceNum variable that we will use below
    var choiceNum:Number = 0;
    // Set text formatting colors for errors and success messages
    var errorsFormat:TextFormat = new TextFormat();
    errorsFormat.color = 0xFF0000; // bright red
    var successFormat:TextFormat = new TextFormat();
    successFormat.color = 0x00FF00; // bright green
    // Button Click Functions
    function btn1Click(event:MouseEvent):void{
        choiceNum = 1;
        choice_txt.text = choice1_txt.text;
    function btn2Click(event:MouseEvent):void{
        choiceNum = 2;
        choice_txt.text = choice2_txt.text;
    function btn3Click(event:MouseEvent):void{
        choiceNum = 3;
        choice_txt.text = choice3_txt.text;
    // Button Click Listeners
    btn1.addEventListener(MouseEvent.CLICK, btn1Click);
    btn2.addEventListener(MouseEvent.CLICK, btn2Click);
    btn3.addEventListener(MouseEvent.CLICK, btn3Click);
    // Assign a variable name for our URLVariables object
    var variables:URLVariables = new URLVariables();
    //  Build the varSend variable
    var varSend:URLRequest = new URLRequest("parse_my_poll.php");
    varSend.method = URLRequestMethod.POST;
    varSend.data = variables;
    // Build the varLoader variable
    var varLoader:URLLoader = new URLLoader;
    varLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    varLoader.addEventListener(Event.COMPLETE, completeHandler);
    // Handler for PHP script completion and return
    function completeHandler(event:Event):void{
        // remove processing movieclip
        processing_mc.visible = false;
        // Clear the form fields
        choice_txt.text = "";
        choiceNum = 0;
        // Load the response from the PHP file
        status_txt.text = event.target.data.return_msg;
        status_txt.setTextFormat(errorsFormat);
        if (event.target.data.return_msg == "Thanks for voting!") {
            // Reload new values into the count texts only if we get a proper response and new values
            status_txt.setTextFormat(successFormat);
            count1_txt.text = "" + event.target.data.choice1Count;
            count2_txt.text = "" + event.target.data.choice2Count;
            count3_txt.text = "" + event.target.data.choice3Count;
    // Add an event listener for the submit button and what function to run
    vote_btn.addEventListener(MouseEvent.CLICK, ValidateAndSend);
    // Validate form fields and send the variables when submit button is clicked
    function ValidateAndSend(event:MouseEvent):void {
        //validate form fields
        if(!choice_txt.length) {  
            // if they forgot to choose before pressing the vote button
            status_txt.text = "Please choose before you press vote.";  
            status_txt.setTextFormat(errorsFormat);
        } else {
            status_txt.text = "Sending...";
            processing_mc.visible = true;
            // Ready the variables for sending
            variables.userChoice = choiceNum;
            variables.myRequest = "store_choice";  
            // Send the data to the php file
            varLoader.load(varSend);
        } // close else after form validation
    } // Close ValidateAndSend function ////////////////////////

    This error means that you are trying to set the text field but there is no data in the variable. As a first step, try to identify where this is happening, eg Is it the first call, or once you have submitted your data or only if you try to submit data second time?
    Trace out the data that is returned for both completeHandlers to see if there is a missing var. Try this for "load_numbers" and "store_choice". Do it twice for "store_choice". Do you get back what you expected?
    You could also try altering the php to return some fixed dummy variables, eg  choice1Count=11&choice2Count=22&choice3Count=33, etc. If this works then you know that the error is in the PHP.
    It looks to me like the issue is when you submit the data a second time and just get back the return_msg - the handler then tries to assign the choice1Count etc but doesn't have any count data back from the poll.php.
    Test that there is data before assigning it, eg
        if(event.target.data.choice1Count){
            count1_txt.text =  event.target.data.choice1Count;
            count2_txt.text =  event.target.data.choice2Count;
            count3_txt.text =  event.target.data.choice3Count;

  • How to use optional prompts with stored procedure universe?

    Hi Experts,
    Iu2019m working on stored procedure universe in BO XI 3.0 SP2 FP2.5 with oracle at back end. My requirement is that I have to pass 5 optional prompts in the report and we have to pass these prompts through open document link. Please tell if this can be worked out on stored procedure universe?
    Thanks in advance.

    Hi,
    Try with OpenDoc syntax as follows.
    http://<servername>:<port>/OpenDocument/opendoc/<plat
    formSpecific>?iDocID=****&sIDType=CUID&sType=wid/rpt&lsM/lsS/lsRPROMPTNAME=[V1],[V2]&sDocName=reportname&sRefresh=Y/N
    where
    server name: cms server name
    port: portno
    <platformspecific>=: for java -> openDocument.jsp
                                      for .net -> opendocument.aspx
    idocid,sDocName & cuid -> we can get report properties ( goto info view -> select report -> right click -> properties i.e. doc id, cuid and report name)
    sType -> type of report i.e webi or deski ...
    lsS -> to pass single prompt value
    lsM -> to pass multiplle values to prompt
    lsR -> range of values ....
    Note: Here prompt name should be same as the one which we used in the report. Use + if there is blank space.
    Cheers,
    Suresh Aluri.

  • How to develop using remote MySQL data?

    I need to develop an application with Flash Builder 4, but I need to develop using live data from the server?
    Can this not be done with Flash Builder 4?
    Brad Lawryk
    Adobe Community Professional: Dreamweaver
    Northern British Columbia Adobe Usergroup: Manager
    My Adobe Blog: http://blog.lawryk.com

    Okay.  Same answer really.  Most hosting providers will provide MySQL database connectivity as a default option (e.g a2 hosting).  Then when you deploy your app you are still talking to a database on the localhost (the web server) since your code is there too.  You can also write an AIR app that runs on your desktop and talks to the database on the web server using the same PHP stuff but just pointing to the remote I.P address. 
    For testing I use MAMP (mac) which gives me MySQL, Apache and PHP in one install.
    Regards
    Des.

Maybe you are looking for