MySQL variables

I want to write a MySQL query that selects a database table
based on a variable. Lets say I have three tables: 'game_data',
'image_data', and 'video_data'.
I would make a variable called 'submission_type' which gets
its value from the browser variable, 'type'. So the runtime value
of the variable should be '$_GET['type']. The 'submission_type'
variable will be either 'game', 'image', or 'video'.
This is to get an idea of how I want my query to function:
SELECT title, artist_id
FROM 'submission_type'_data
'submission_type' is where I would like the variable to be. I
just don't know how to code it to work right.
Basically if someone goes to "somepage.php?type=game", the
value of 'game' should replace the variable, 'submission_date'.
I tried to explain this the best I could; any help would be
much appreciated. Thanks.

It's interesting because there is a place in the advanced
window to add variables and give them a "default value" and
"run-time" value. Then you can just enter into the query like:
SELECT title, artist
FROM image_data
WHERE id =
variable
You don't even have to put quotes around the variable or
anything. But as soon as you try to combine the variable with
something else (e.g:
SELECT title, artist
FROM
variable_data
), it gets confused and gives me a syntax error.
I tried putting quotes around the variable and using other
different forms of possible syntax, but obviously with no prevail.
I am definitely open to any suggestions, but if nothing works
I suppose I will just enter the code manually using the GET
function. By the way, thanks for that suggestion. I haven't tried
it yet, but I think it should work.

Similar Messages

  • Mysql Variable issue

    I am passing a what will soon be my search variable into php from flash. The issue is when I need to search for something that needs to find a string value in quotes it fails.
    Below is the like field variable declared in flash
    LikeField = "Model_Profile.Gender = \'m\' ";
    This is how I am capturing my like field in php.
    $LikeField=mysql_real_escape_string($_POST['likefield']);
    Below is my query
    "SELECT count(*) AS Total FROM Model_Profile, Models  WHERE  Model_Profile.Model_ID = Models.Model_ID AND Models.Active = 1 AND {$LikeField}"
    For some reason it just doesn't seem to like the single quotes on the m, but I need them there to execute. Tracing the flash variables passed it outputs this likefield=Model%5FProfile%2EGender%20%3D%20%27m%27
    If I put the query in below it works fine, so I know it's not an issue with my query, misspelling etc.
    "SELECT count(*) AS Total FROM Model_Profile, Models  WHERE  Model_Profile.Model_ID = Models.Model_ID AND Models.Active = 1 AND Model_Profile.Gender = 'm' "
    If pass this value from flash I get a result
    LikeField = "Model_Profile.Active = 1 ";
    I am stump and don't know where the issue is at the moment.

    It's difficult to give detailed advice without knowing exactly what's going on with this app and how it's going to be implemented.  Personally I like to use stored procedures with MySQL, it helps avoid SQL Injection attacks and it also eliminates the need to deal with quote literals when building a SQL string on the fly.
    From the details you did post, it appears that your query alows the user to include or exclude the Gender feature.  How does it handle a situation in which the Gender is not set, so it's not equal to 'm' or 'f'?  Does it simply exclude that field from the WHERE clause?
    One of the biggest limitations of MySQL stored procedures is that they don't allow for default values for their parameters.  But you can program around this in the PHP call by including a default value in your PHP code that would be overridden by input from the user in the search form.
    If I were going to develop this search, I'd try to limit what I'm passing from Flash to PHP as much as possible.  I'd start with my stored procedure:
    DELIMITER $$
    DROP PROCEDURE IF EXISTS `db_name`.`sp_name` $$
    CREATE DEFINER=`root`@`%` PROCDEURE `sp_name`(prmGender varchar(1))
    BEGIN
         SELECT COUNT(*) AS Total FROM Model_Profile, Models  WHERE  Model_Profile.Model_ID = Models.Model_ID AND
    Models.Active = 1 AND Model_Profile.Gender LIKE prmGender;
    END $$
    DELIMITER ;
    In my PHP code that calls this stored procedure I'd create a variable for the gender selection and set it to '%' (the MySQL wildcard character) and override it if a specific gender was selected by the user.
    This set up allows you to ignore the whole issue of dealing with quotation marks - simply pass the appropriate letter from Flash and pass it into the gender variable in PHP, which you would assign to the stored procedure call.  I hope this is somewhat helpful, if not please provide a bit more detail on your efforts and perhaps I can provide a better option.  Good luck! 

  • MYSQL variable issues

    When creating a record set in a php document Dreamweaver
    seems to incorrectly wrap the order by variable in single quotes.
    For example at run time Dreamweaver returns the MySql statement
    select * from table order by 'var'
    This does not order the output. It should be
    select * from table order by var (no quotes on the var)
    Is there some fix for this or is anyone experiencing this
    issue?
    Thanks
    Wally

    There appears to be a glitch in the DW conversion of variable
    names when creating mysql queries in a php document.
    DW uses the following function to strip slashes and escape
    special characters when creating the query. Unfortunately this
    function also escapes the sort and order variables in the mysql
    statement - which places single quotes around the variables and
    makes them inoperable. This does not work.
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "", $theNotDefinedValue = "")
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
    : $theValue;
    $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    "'" : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    return $theValue;
    I was able to fix this problem by inserting an additional
    variable type into the function definition which then allows for
    the sort and order vars to be defined as 'other' and then passed
    without the enclosing single quotes yet still check for special
    characters. This works
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "", $theNotDefinedValue = "")
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
    : $theValue;
    $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    "'" : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    case "other":
    $theValue = ($theValue != "") ? $theValue : "NULL";
    break;
    return $theValue;

  • More Cf + MySQL 5 + Unicode/UTF-8 Problems

    Here is the problem:
    I am using a MySQL database that store data in Unicode/UTF-8
    (the website/database are in Lao).
    Settings:
    CF 7.0.2
    MySQL 5.0.26
    MySQL Defaults: latin1_swedish_ci collation, latin1 encoding
    Database Defaults: utf8_general_ci collation, utf8 encoding
    These are same on my local computer and on the host
    (HostNexus)
    The only difference is that my CF uses
    mysql-connector-java-3.1.10 driver while the host uses MySQL 3.x
    driver (org.gjt.mm.mysql.Driver class).
    On my local computer everything works just fine, even without
    any extra CF DSN settings (i.e. connection string and/or JDBC URL
    do not need the useUnicode=true&characterEncoding=UTF-8 strings
    added to show Lao text properly).
    On the host, even with the
    useUnicode=true&characterEncoding=UTF-8 added (I have even
    tried adding
    &connectionCollation=utf8_unicode_ci&characterSetResults=utf8
    to the line as well), I only get ??????? instead of Lao text from
    the db.
    The cfm pages have <cfprocessingdirective> and
    <cfcontent> tags set to utf-8 and also have html <meta>
    set to utf-8. ALl static Lao text in cfm pages shows just fine.
    Is this the problem with the MySQL driver used by the host?
    Has anyone encountered this before? Is there some other setting I
    have to emply with the org.gjt.mm.mysql.Driver class on the host?
    Please help!

    Thanks for your reply/comments, Paul!
    I also think it must be the db driver used on the host... I
    just don't understand why the DSN connection string
    (useUnicode=true&characterEncoding=UTF-8 [btw, doesn't really
    matter utf8 or UTF-8 - works with both; I think the proper way
    actually is UTF-8, since that is the encosing's name used in
    Java...]) wouldn't work with it??? I have the hosting tech support
    totally puzzled over this.
    Don't know if you can help any more, but I have added answers
    to your questions in the quoted text below.
    quote:
    Sabaidee wrote:
    > Here is the problem:
    > I am using a MySQL database that store data in
    Unicode/UTF-8 (the
    > website/database are in Lao).
    well that's certainly different.
    I mean, they are in Lao language, not that they are hosted in
    Laos.
    > Database Defaults: utf8_general_ci collation, utf8
    encoding
    how was the data entered? how was it uploaded to the host?
    could the data have
    been corrupted loading or uploading to the host?
    The data was entered locally, then dumped into a .sql file using
    utf8 charset and then the dump imported into the db on the host,
    once again with utf8 charset. I know the data in the database is
    correct: when I browse the db tables with phpMyAdmin, all Lao text
    in the db is displayed in proper Lao...
    > The only difference is that my CF uses
    mysql-connector-java-3.1.10 driver
    > while the host uses MySQL 3.x driver
    (org.gjt.mm.mysql.Driver class).
    and does that driver support mysql 5 and/or unicode?
    I am sure it does support MySQL5, as I have other MySQL5
    databases hosted there and they work fine. I am not sure if it
    supports Unicode, though.... I am actually more and more sure it
    does not... The strange this is, I am not able to find the java
    class that driver is stored in to try and test using it on my local
    server... I have asked the host to email me the .jar file they are
    using, but have not heard back from them yet...
    > On my local computer everything works just fine, even
    without any extra CF DSN
    > settings (i.e. connection string and/or JDBC URL do not
    need the
    > useUnicode=true&characterEncoding=UTF-8 strings
    added to show Lao text
    > properly).
    and what happens if you do use those? what locale for the
    local server?
    If I use just that line, nothing changes (apart from the 2 mysql
    variables which then default to uft8 instead of latin1) -
    everything works just fine locally.
    The only difference I have noticed between MySQL setup on my
    local comp and on the host is that on my comp the
    character_set_results var is not set (shows [empty string]), but on
    the host it is set to latin1. When I set it to latin1 on my local
    comp using &characterSetResults=ISO8859_1 in the JDBC URL
    string, I get exactly same problem as on the host: all ???????
    instead of Lao text from db. If it is not set, or set to utf8,
    everything works just fine.
    For some reason, we are unable to make it work on the host:
    whatever you add to the JDBC URL string or enter in the Connection
    String box in CF Admin is simply ignored...
    Do you know if this is a particular problem of the driver
    used on the host?
    > The cfm pages have <cfprocessingdirective> and
    <cfcontent> tags set to utf-8
    > and also have html <meta> set to utf-8. ALl static
    Lao text in cfm pages
    > shows just fine.
    db driver then.
    I think so too...

  • Servlets , Commons FileUpload , MySQL and large file trouble

    Hey Guys,
    I am trying to upload files from a servlet handled page using jakarta commons file upload library into MySQL. I could not upload a 40M file . I can upload smaller size, 1-5 M , haven't tried 10-20 M sizes. MySQL variable for size is set to 64M.
    any clues would help a lot !
    thanks,
    AZ

    sabre, what about changing the
    max_allowed_packet value?I'm not sure this would help since we don't know what the symptoms of the failure are. I suspect that the OP is first trying to load the whole file into memory before writing any of it to MySQL.
    If you look at the MySQL manual you see
    "Both the client and the server have their own max_allowed_packet variable, so if you want to handle big packets, you must increase this variable both in the client and in the server."
    so just changing the client may not work anyway.

  • HS connection to MySQL fails for large table

    Hello,
    I have set up an HS to a MySql 3.51 dabatabe using an ODBC DNS. My Oracle box has version 10.2.0.1 running in Windows 2003 R2. MySQL version is 4.1.22 running on a different machine with the same OS.
    I completed the connection through a database link, which works fine in SQLPLUS when selecting small MySQL Tables. However, I keep getting an out of memory error when selecting certain large table from the MySQL database. Previously, I had tested the DNS and ran the same SELECT in Access and it doesn't give any error. This is the error thrown by SQLPLUS:
    SQL> select * from progressnotes@mysql_rmg where "encounterID" = 224720;
    select * from progressnotes@mysql_rmg where "encounterID" = 224720
    ERROR at line 1:
    ORA-00942: table or view does not exist
    [Generic Connectivity Using ODBC][MySQL][ODBC 3.51
        Driver][mysqld-4.1.22-community-nt]Lost connection to MySQL server during query
    (SQL State: S1T00; SQL Code: 2013)
    ORA-02063: preceding 2 lines from MYSQL_RMG
    I traced the HS connection and here is the result from the .trc file:
    Oracle Corporation --- THURSDAY JUN 12 2008 11:19:51.809
    Heterogeneous Agent Release
    10.2.0.1.0
    (0) [Generic Connectivity Using ODBC] version: 4.6.1.0.0070
    (0) connect string is: defTdpName=MYSQL_RMG;SYNTAX=(ORACLE8_HOA, BASED_ON=ORACLE8,
    (0) IDENTIFIER_QUOTE_CHAR="",
    (0) CASE_SENSITIVE=CASE_SENSITIVE_QUOTE);BINDING=<navobj><binding><datasources><da-
    (0) tasource name='MYSQL_RMG' type='ODBC'
    (0) connect='MYSQL_RMG'><driverProperties/></datasource></datasources><remoteMachi-
    (0) nes/><environment><optimizer noFlattener='true'/><misc year2000Policy='-1'
    (0) consumerApi='1' sessionBehavior='4'/><queryProcessor parserDepth='2000'
    (0) tokenSize='1000' noInsertParameterization='true'
    noThreadedReadAhead='true'
    (0) noCommandReuse='true'/></environment></binding></navobj>
    (0) ORACLE GENERIC GATEWAY Log File Started at 2008-06-12T11:19:51
    (0) hoadtab(26); Entered.
    (0) Table 1 - PROGRESSNOTES
    (0) [MySQL][ODBC 3.51 Driver][mysqld-4.1.22-community-nt]MySQL client ran out of
    (0) memory (SQL State: S1T00; SQL Code: 2008)
    (0) (Last message occurred 2 times)
    (0)
    (0) hoapars(15); Entered.
    (0) Sql Text is:
    (0) SELECT * FROM "PROGRESSNOTES"
    (0) [MySQL][ODBC 3.51 Driver][mysqld-4.1.22-community-nt]Lost connection to MySQL
    (0) server during query (SQL State: S1T00; SQL Code: 2013)
    (0) (Last message occurred 2 times)
    (0)
    (0) [A00D] Failed to open table MYSQL_RMG:PROGRESSNOTES
    (0)
    (0) [MySQL][ODBC 3.51 Driver]MySQL server has gone away (SQL State: S1T00; SQL
    (0) Code: 2006)
    (0) (Last message occurred 2 times)
    (0)
    (0) [MySQL][ODBC 3.51 Driver]MySQL server has gone away (SQL State: S1T00; SQL
    (0) Code: 2006)
    (0) (Last message occurred 2 times)
    (0)
    (0) [S1000] [9013]General error in nvITrans_Commit - rc = -1. Please refer to the
    (0) log file for details.
    (0) [MySQL][ODBC 3.51 Driver]MySQL server has gone away (SQL State: S1T00; SQL
    (0) Code: 2006)
    (0) (Last message occurred 2 times)
    (0)
    (0) [S1000] [9013]General error in nvITrans_Rollback - rc = -1. Please refer to
    (0) the log file for details.
    (0) Closing log file at THU JUN 12 11:20:38 2008.
    I have read the MySQL documentation and apparently there's a "Don't Cache Result (forward only cursors)" parameter in the ODBC DNS that needs to be checked in order to cache the results in the MySQL server side instead of the Driver side, but checking that parameter doesn't work for the HS connection. Instead, the SQLPLUS session throws the following message when selecting the same large table:
    SQL> select * from progressnotes@mysql_rmg where "encounterID" = 224720;
    select * from progressnotes@mysql_rmg where "encounterID" = 224720
    ERROR at line 1:
    ORA-02068: following severe error from MYSQL_RMG
    ORA-28511: lost RPC connection to heterogeneous remote agent using
    SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.0.0.120)(PORT=1521))(CONNECT_DATA=(SID=MYSQL_RMG)))
    Curiously enough, after checking the parameter, the Access connection through the DNS ODBS seems to improve!
    Is there an aditional parameter that needs to be set up in the inithsodbc.ora perhaps? These are current HS paramters:
    # HS init parameters
    HS_FDS_CONNECT_INFO = MYSQL_RMG
    HS_FDS_TRACE_LEVEL = ON
    My SID_LIST_LISTENER entry is:
    (SID_DESC =
    (PROGRAM = HSODBC)
    (SID_NAME = MYSQL_RMG)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    Finally, here is my TNSNAMES.ORA entry for the HS connection:
    MYSQL_RMG =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.120)(PORT = 1521))
    (CONNECT_DATA =
    (SID = MYSQL_RMG)
    (HS = OK)
    Your advice will be greatly appeciated,
    Thanks,
    Luis
    Message was edited by:
    lmconsite

    First of all please be aware HSODBC V10 has been desupported and DG4ODBC should be used instead.
    The root cause the problem you describe could be related to a timeout of the ODBC driver (especially while taking care of the comment: it happens only for larger tables):
    (0) [MySQL][ODBC 3.51 Driver]MySQL server has gone away (SQL State: S1T00; SQL
    (0) Code: 2006)
    indicates the Driver or the DB abends the connection due to a timeout.
    Check out the wait_timeout mysql variable on the server and increase it.

  • MySQL optimization tips for IDM repo?

    I am running IDM 7.1 and MySQL 5.0.45 for the repository on RHEL 4. I understand that idm is storing large xml strings in the mysql repository so typical mysql optimization may not apply. I have 2 cpu and 4G ram and when initially loading data from file into the repo performance is slow. Are there any mysql variables I should set to impove performance and load time?

    indie_idm pretty much hit the nail on the head :) We started with 4GB and then upgraded to 8GB in our server and it runs pretty well now.
    I've been working on some settings over the last couple versions and currently with 7.1.1 the following appear to work great. I'm not a DBA or MySQL expert but with a lot of trial-and-error have significantly improved our performance. Once I dumped 15k AD Accounts and 100k LDAP Accounts into IDM it was miserable, took 3 days to Sync LDAP! Now with these settings takes a handful of hours:
    [mysqld]
    port = 3306
    socket = /tmp/mysql.sock
    skip-locking
    key_buffer = 512M
    max_allowed_packet = 16M
    table_cache = 512
    sort_buffer_size = 512M
    read_buffer_size = 8M
    read_rnd_buffer_size = 8M
    myisam_sort_buffer_size = 512M
    thread_cache_size = 8
    query_cache_size = 64M
    # Try number of CPU's*2 for thread_concurrency
    thread_concurrency = 16
    # You can set .._buffer_pool_size up to 50 - 80 %
    # of RAM but beware of setting memory usage too high
    innodb_buffer_pool_size = 2G
    innodb_additional_mem_pool_size = 20M
    innodb_log_buffer_size = 8M
    innodb_flush_log_at_trx_commit = 1
    innodb_lock_wait_timeout = 120
    [mysqldump]
    quick
    max_allowed_packet = 16M
    [isamchk]
    key_buffer = 256M
    sort_buffer_size = 256M
    read_buffer = 2M
    write_buffer = 2M
    [myisamchk]
    key_buffer = 256M
    sort_buffer_size = 256M
    read_buffer = 2M
    write_buffer = 2M

  • New FAQ Entry on JVM Parameters for Large Cache Sizes

    I've posted a new [FAQ entry|http://www.oracle.com/technology/products/berkeley-db/faq/je_faq.html#60] on JVM parameters for large cache sizes. The text of it is as follows:
    What JVM parameters should I consider when tuning an application with a large cache size?
    If your application has a large cache size, tuning the Java GC may be necessary. You will almost certainly be using a 64b JVM (i.e. -d64), the -server option, and setting your heap and stack sizes with -Xmx and -Xms. Be sure that you don't set the cache size too close to the heap size so that your application has plenty of room for its data and to avoided excessive full GC's. We have found that the Concurrent Mark Sweep GC is generally the best in this environment since it yields more predictable GC results. This can be enabled with -XX:+UseConcMarkSweepGC.
    Best practices dictates that you disable System.gc() calls with -XX:-DisableExplicitGC.
    Other JVM options which may prove useful are -XX:NewSize (start with 512m or 1024m as a value), -XX:MaxNewSize (try 1024m as a value), and -XX:CMSInitiatingOccupancyFraction=55. NewSize is typically tuned in relationship to the overall heap size so if you specify this parameter you will also need to provide a -Xmx value. A convenient way of specifying this in relative terms is to use -XX:NewRatio. The values we've suggested are only starting points. The actual values will vary depending on the runtime characteristics of the application.
    You may also want to refer to the following articles:
    * Java SE 6 HotSpot Virtual Machine Garbage Collection Tuning
    * The most complete list of -XX options for Java 6 JVM
    * My Favorite Hotspot JVM Flags
    Edited by: Charles Lamb on Oct 22, 2009 9:13 AM

    First of all please be aware HSODBC V10 has been desupported and DG4ODBC should be used instead.
    The root cause the problem you describe could be related to a timeout of the ODBC driver (especially while taking care of the comment: it happens only for larger tables):
    (0) [MySQL][ODBC 3.51 Driver]MySQL server has gone away (SQL State: S1T00; SQL
    (0) Code: 2006)
    indicates the Driver or the DB abends the connection due to a timeout.
    Check out the wait_timeout mysql variable on the server and increase it.

  • What SQL statement is element JoinTables equivalent of?

    Here is a example of JoinTables, I just can't understand how to join those tables together? I mean if the JoinTables is equivalent of :
    select a.value,b.value,c.value
    from v_binlog_cache_size a,v_Binlog_cache_disk_use b, v_Binlog_cache_use c
    where a.Variable_name='binlog_cache_size' and b.Variable_name='Binlog_cache_disk_use' and c.Variable_name='Binlog_cache_use';
    <Metric NAME="BinlogCache" TYPE="TABLE">
    <Display>
    <Label NLSID="mmd_bc_BinlogCache">BinlogCache</Label>
    </Display>
    <TableDescriptor>
    <ColumnDescriptor NAME="binlog_cache_size" TYPE="NUMBER">
    <Display>
    <Label NLSID="mmd_bc_binlog_cache_size">binlog_cache_size</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="Binlog_cache_disk_use" TYPE="NUMBER" TRANSIENT="TRUE">
    <Display>
    <Label NLSID="mmd_bc_Binlog_cache_disk_use">Binlog_cache_disk_use</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="Binlog_cache_use" TYPE="NUMBER" TRANSIENT="TRUE">
    <Display>
    <Label NLSID="mmd_bc_Binlog_cache_use">Binlog_cache_use</Label>
    </Display>
    </ColumnDescriptor>
    </TableDescriptor>
    <ExecutionDescriptor>
    <GetTable NAME="MysqlStatusAndVariables"/>
    <GetView NAME="v_binlog_cache_size" FROM_TABLE="MysqlStatusAndVariables">
    <Filter COLUMN_NAME="Variable_name" OPERATOR="EQ">binlog_cache_size</Filter>
    </GetView>
    <GetView NAME="v_Binlog_cache_disk_use" FROM_TABLE="MysqlStatusAndVariables">
    <Filter COLUMN_NAME="Variable_name" OPERATOR="EQ">Binlog_cache_disk_use</Filter>
    </GetView>
    <GetView NAME="v_Binlog_cache_use" FROM_TABLE="MysqlStatusAndVariables">
    <Filter COLUMN_NAME="Variable_name" OPERATOR="EQ">Binlog_cache_use</Filter>
    </GetView>
    <JoinTables NAME="v_result" OUTER="TRUE">
    <Table NAME="v_binlog_cache_size" />
    <Table NAME="v_Binlog_cache_disk_use" />
    <Table NAME="v_Binlog_cache_use" />
    <Column NAME="binlog_cache_size" COLUMN_NAME="Value" TABLE_NAME="v_binlog_cache_size" />
    <Column NAME="Binlog_cache_disk_use" COLUMN_NAME="Value" TABLE_NAME="v_Binlog_cache_disk_use" />
    <Column NAME="Binlog_cache_use" COLUMN_NAME="Value" TABLE_NAME="v_Binlog_cache_use" />
    </JoinTables>
    </ExecutionDescriptor>
    </Metric>
    If I change the ExecutionDescriptor part to those code as below, is that also has the same result?
    <ExecutionDescriptor>
    <GetTable NAME="MysqlStatusAndVariables"/>
    <GetView NAME="v_binlog_cache_size" FROM_TABLE="MysqlStatusAndVariables">
    <Filter COLUMN_NAME="Variable_name" OPERATOR="EQ">binlog_cache_size</Filter>
    <Column NAME="binlog_cache_size" COLUMN_NAME="Value" TABLE_NAME="v_binlog_cache_size" />
    </GetView>
    <GetView NAME="v_Binlog_cache_disk_use" FROM_TABLE="MysqlStatusAndVariables">
    <Filter COLUMN_NAME="Variable_name" OPERATOR="EQ">Binlog_cache_disk_use</Filter>
    <Column NAME="Binlog_cache_disk_use" COLUMN_NAME="Value" TABLE_NAME="v_Binlog_cache_disk_use" />
    </GetView>
    <GetView NAME="v_Binlog_cache_use" FROM_TABLE="MysqlStatusAndVariables">
    <Filter COLUMN_NAME="Variable_name" OPERATOR="EQ">Binlog_cache_use</Filter>
    <Column NAME="Binlog_cache_use" COLUMN_NAME="Value" TABLE_NAME="v_Binlog_cache_use" />
    </GetView>
    </ExecutionDescriptor>
    Thanks,
    Satine
    Edited by: Satine on Apr 13, 2009 7:43 PM

    Here is four metric definitions: "MysqlStatus", "MysqlVariables", "MysqlStatusAndVariables", "BinlogCache".
    <Metric NAME="MysqlStatus" TYPE="TABLE" HELP="NO_HELP" USAGE_TYPE="HIDDEN_COLLECT">
    <Display>
    <Label NLSID="mmd_ms">Mysql Status</Label>
    <Description NLSID="mmd_ms_desc">Describes Mysql Status</Description>
    </Display>
    <TableDescriptor>
    <ColumnDescriptor NAME="Variable_name" TYPE="STRING" IS_KEY="TRUE">
    <Display>
    <Label NLSID="mmd_ms_Variable_name">Variable_name</Label>
    <Description NLSID="mmd_ms_Variable_name_desc"> The Variable_name. </Description>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="Value" TYPE="STRING" IS_KEY="FALSE">
    <Display>
    <Label NLSID="mmd_ms_Value">Value</Label>
    <Description NLSID="mmd_ms_Value_desc"> The Value. </Description>
    </Display>
    </ColumnDescriptor>
    </TableDescriptor>
    <QueryDescriptor FETCHLET_ID="OSLineToken">
    <Property NAME="emdRoot" SCOPE="SYSTEMGLOBAL">emdRoot</Property>
    <Property NAME="scriptsDir" SCOPE="SYSTEMGLOBAL">scriptsDir</Property>
    <Property NAME="perlBin" SCOPE="SYSTEMGLOBAL">perlBin</Property>
    <Property NAME="host" SCOPE="INSTANCE" OPTIONAL="TRUE">host</Property>
    <Property NAME="port" SCOPE="INSTANCE" OPTIONAL="TRUE">port</Property>
    <Property NAME="uname" SCOPE="INSTANCE" OPTIONAL="TRUE">uname</Property>
    <Property NAME="pass" SCOPE="INSTANCE" OPTIONAL="TRUE">pass</Property>
    <Property NAME="mysqlhome" SCOPE="INSTANCE">mysqlhome</Property>
    <!--<Property NAME="thescript" SCOPE="INSTANCE">thescript</Property>-->
    <Property NAME="showstatus" SCOPE="INSTANCE">showstatus</Property>
    <Property NAME="mydelimiter" SCOPE="INSTANCE">mydelimiter</Property>
    <Property NAME="command" SCOPE="GLOBAL">"%perlBin%/perl" "%scriptsDir%/emx/%TYPE%/mysqlmon.pl" "%mysqlhome%" "%showstatus%" "%mydelimiter%" "%host%" "%port%" "%uname%" "%pass%"</Property>
    <Property NAME="delimiter" SCOPE="GLOBAL">%mydelimiter%</Property>
    <Property NAME="startsWith" SCOPE="GLOBAL">em_result=</Property>
    <Property NAME="errStartsWith" SCOPE="GLOBAL">em_error=</Property>
    <!--<Property NAME="EM_METRIC_TIMEOUT" SCOPE="GLOBAL">60</Property>-->
    </QueryDescriptor>
    </Metric>
    <Metric NAME="MysqlVariables" TYPE="TABLE" HELP="NO_HELP" USAGE_TYPE="HIDDEN_COLLECT">
    <Display>
    <Label NLSID="mmd_mv">Mysql Variables</Label>
    <Description NLSID="mmd_mv_desc">Describes Mysql Variables</Description>
    </Display>
    <TableDescriptor>
    <ColumnDescriptor NAME="Variable_name" TYPE="STRING" IS_KEY="TRUE">
    <Display>
    <Label NLSID="mmd_mv_Variable_name">Variable_name</Label>
    <Description NLSID="mmd_mv_Variable_name_desc"> The Variable_name. </Description>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="Value" TYPE="STRING" IS_KEY="FALSE">
    <Display>
    <Label NLSID="mmd_mv_Value">Value</Label>
    <Description NLSID="mmd_mv_Value_desc"> The Value. </Description>
    </Display>
    </ColumnDescriptor>
    </TableDescriptor>
    <QueryDescriptor FETCHLET_ID="OSLineToken">
    <Property NAME="emdRoot" SCOPE="SYSTEMGLOBAL">emdRoot</Property>
    <Property NAME="scriptsDir" SCOPE="SYSTEMGLOBAL">scriptsDir</Property>
    <Property NAME="perlBin" SCOPE="SYSTEMGLOBAL">perlBin</Property>
    <Property NAME="host" SCOPE="INSTANCE" OPTIONAL="TRUE">host</Property>
    <Property NAME="port" SCOPE="INSTANCE" OPTIONAL="TRUE">port</Property>
    <Property NAME="uname" SCOPE="INSTANCE" OPTIONAL="TRUE">uname</Property>
    <Property NAME="pass" SCOPE="INSTANCE" OPTIONAL="TRUE">pass</Property>
    <Property NAME="mysqlhome" SCOPE="INSTANCE">mysqlhome</Property>
    <!--<Property NAME="thescript" SCOPE="INSTANCE">thescript</Property>-->
    <Property NAME="showvariables" SCOPE="INSTANCE">showvariables</Property>
    <Property NAME="mydelimiter" SCOPE="INSTANCE">mydelimiter</Property>
    <Property NAME="command" SCOPE="GLOBAL">"%perlBin%/perl" "%scriptsDir%/emx/%TYPE%/mysqlmon.pl" "%mysqlhome%" "%showvariables%" "%mydelimiter%" "%host%" "%port%" "%uname%" "%pass%"</Property>
    <Property NAME="delimiter" SCOPE="GLOBAL">%mydelimiter%</Property>
    <Property NAME="startsWith" SCOPE="GLOBAL">em_result=</Property>
    <Property NAME="errStartsWith" SCOPE="GLOBAL">em_error=</Property>
    <!--<Property NAME="EM_METRIC_TIMEOUT" SCOPE="GLOBAL">60</Property>-->
    </QueryDescriptor>
    </Metric>
    <!-- Join the infomation of status and variables together -->
    <Metric NAME="MysqlStatusAndVariables" TYPE="TABLE" HELP="NO_HELP" USAGE_TYPE="HIDDEN_COLLECT">
    <Display>
    <Label NLSID="mmd_msv">Mysql Status and Variables</Label>
    <Description NLSID="mmd_msv_desc">Describes Mysql Status and Variables</Description>
    </Display>
    <TableDescriptor>
    <ColumnDescriptor NAME="Variable_name" TYPE="STRING" IS_KEY="TRUE">
    <Display>
    <Label NLSID="mmd_msv_Variable_name">Variable_name</Label>
    <Description NLSID="mmd_msv_Variable_name_desc"> The Variable_name. </Description>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="Value" TYPE="STRING" IS_KEY="FALSE">
    <Display>
    <Label NLSID="mmd_msv_Value">Value</Label>
    <Description NLSID="mmd_msv_Value_desc"> The Value. </Description>
    </Display>
    </ColumnDescriptor>
    </TableDescriptor>
    <ExecutionDescriptor>
    <GetTable NAME="MysqlStatus" USE_CACHE="TRUE"/>
    <GetTable NAME="MysqlVariables" USE_CACHE="TRUE"/>
    <Union NAME="result">
    <Table NAME="MysqlStatus" />
    <Table NAME="MysqlVariables" />
    </Union>
    </ExecutionDescriptor>
    </Metric>
    <Metric NAME="BinlogCache" TYPE="TABLE">
    <Display>
    <Label NLSID="mmd_bc_BinlogCache">BinlogCache</Label>
    </Display>
    <TableDescriptor>
    <ColumnDescriptor NAME="binlog_cache_size" TYPE="NUMBER">
    <Display>
    <Label NLSID="mmd_bc_binlog_cache_size">binlog_cache_size</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="Binlog_cache_disk_use" TYPE="NUMBER" TRANSIENT="TRUE">
    <Display>
    <Label NLSID="mmd_bc_Binlog_cache_disk_use">Binlog_cache_disk_use</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="Binlog_cache_use" TYPE="NUMBER" TRANSIENT="TRUE">
    <Display>
    <Label NLSID="mmd_bc_Binlog_cache_use">Binlog_cache_use</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="Binlog_cache_disk_use_d" TYPE="NUMBER"
    COMPUTE_EXPR="((Binlog_cache_disk_use >= _Binlog_cache_disk_use) ? 0 : 4294967295) + (Binlog_cache_disk_use - _Binlog_cache_disk_use)">
    <Display>
    <Label NLSID="mmd_bc_Binlog_cache_disk_use_d">Binlog_cache_disk_use_d</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="Binlog_cache_use_d" TYPE="NUMBER" TRANSIENT="TRUE"
    COMPUTE_EXPR="((Binlog_cache_use >= _Binlog_cache_use) ? 0 : 4294967295) + (Binlog_cache_use - _Binlog_cache_use)">
    <Display>
    <Label NLSID="mmd_bc_Binlog_cache_use_d">Binlog_cache_use_d</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="Binlog_cache_hit_ratio_d" TYPE="NUMBER"
    COMPUTE_EXPR="(Binlog_cache_use_d != 0) ? ( (1 - Binlog_cache_disk_use_d / Binlog_cache_use_d) * 100.0 ) : 100">
    <Display>
    <Label NLSID="mmd_bc_Binlog_cache_hit_radio_d">Binlog_cache_hit_ratio_d(%)</Label>
    </Display>
    </ColumnDescriptor>
    </TableDescriptor>
    <ExecutionDescriptor>
    <GetTable NAME="MysqlStatusAndVariables"/>
    <GetView NAME="v_binlog_cache_size" FROM_TABLE="MysqlStatusAndVariables">
    <Filter COLUMN_NAME="Variable_name" OPERATOR="EQ">binlog_cache_size</Filter>
    </GetView>
    <GetView NAME="v_Binlog_cache_disk_use" FROM_TABLE="MysqlStatusAndVariables">
    <Filter COLUMN_NAME="Variable_name" OPERATOR="EQ">Binlog_cache_disk_use</Filter>
    </GetView>
    <GetView NAME="v_Binlog_cache_use" FROM_TABLE="MysqlStatusAndVariables">
    <Filter COLUMN_NAME="Variable_name" OPERATOR="EQ">Binlog_cache_use</Filter>
    </GetView>
    <JoinTables NAME="v_result" OUTER="TRUE">
    <Table NAME="v_binlog_cache_size" />
    <Table NAME="v_Binlog_cache_disk_use" />
    <Table NAME="v_Binlog_cache_use" />
    <Column NAME="binlog_cache_size" COLUMN_NAME="Value" TABLE_NAME="v_binlog_cache_size" />
    <Column NAME="Binlog_cache_disk_use" COLUMN_NAME="Value" TABLE_NAME="v_Binlog_cache_disk_use" />
    <Column NAME="Binlog_cache_use" COLUMN_NAME="Value" TABLE_NAME="v_Binlog_cache_use" />
    </JoinTables>
    </ExecutionDescriptor>
    </Metric>
    Edited by: Satine on Apr 22, 2009 12:16 AM

  • Read from text file to save into mysql db/text variable

    hi
    how do I read from a text file and assign the content to a variable. Cause i want to store the text file in a mysql database.
    any help are greatly appreciated. thanks in advance

    hi
    how do I read from a text file and assign the content to a variable. Cause then i want to store the text file in a mysql database.
    here's how i declared the fileoutputstream....
    FileOutputStream out = new FileOutputStream("D:/FYP/keypair/" + emailID + ".ciphered.asc");
    next is how do I store the content of the text file into a string variable?
    thanks...any help are greatly appreciated...

  • MySQL - In a Query, Using a Variable as a Table Name

    Hello,
    The code I have attached works. However, I would like to
    replace the table name "tractors" with the variable "$result". How
    do I do this? (It doesn't work if I just type "$result" where
    "tractors" is.)
    Thanks,
    John

    ArizonaJohn wrote:
    > The code I have attached works. However, I would like to
    replace the table
    > name "tractors" with the variable "$result". How do I do
    this?
    You can't. In the code you have given $result is a MySQL
    database result
    resource. You need to extract the actual value from the
    result resource
    in the same way as you have done by using
    mysql_fetch_array().
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS4",
    "PHP Solutions" & "PHP Object-Oriented Solutions"
    http://foundationphp.com/

  • How to insert a bean variable into MySql using jsp

    Hi, I have a problem that I have been trying to work out for ages..unsuccessfully.
    My web-site takes 2 inputs off a user...does a calculation on them and returns the result to the user.
    I want to then use another jsp page that will take this result and insert it into a database...
    My class code for this is :
    public void updateRepmax(String userName, String repmax) throws SQLException, Exception{
         if(con != null){
         try{
         PreparedStatement update;
         update = con.prepareStatement("UPDATE repmax SET Benchpress = ?, WHERE Member_Name = ?");
         update.setString(1, repmax);
         update.setString(2, userName);
         update.execute();
         } catch(SQLException sqle){
         error = "SQLException: could not update repmax";
         throw new SQLException(error);
         catch(Exception e){
         error = "An exception occured while updating repmax";
         throw new Exception(error);
         } else {
         error = "Exception: connection to database was lost";
         throw new Exception(error);
    My JSP is :
    <%@page import="java.sql.*, placement.*"%>
    <jsp:useBean id="conn" class="placement.DBConnect" />
    <jsp:useBean id="query" class="placement.DBQuery" />
    <jsp:useBean id="bpcalc" class="placement.repmaxBean" />
    <jsp:useBean id="userin" class="placement.User" />
    <html>
    <head><title>Update Repmax</title></head>
    <body>
    <%
    conn.connect();
         String repmax = bpcalc.getRepmax();
         String userName = userin.getUserName();
    query.setCon(conn.getCon());
         query.updateRepmax();
    conn.disconnect();
    %>
         </body>
         </html>
    The variable I am tryin to insert is repmax ,in the class that does the calculation the repmax is a double so I assume that is my first problem(how can this be changed to allow it to insert?)....any help you have to offer would be greatly appreciated... 

    Thanks for your reply sathishkb,
    I am not actually receiving any error message,
    The jsp page is processed and the code seems to be correct however the table in my mysql database is not updated.. my JDBC drivers are working correctly etc.
    I expect that the problem is in my JSP page but dont know what it is
    I have removed that comma in my update statement
    I no longer have the problem of the variable being of type touble as I altered my other code to convert the variable from double to string
    jsp is now:
    <%@page contentType="text/html"%>
    <%@page import="java.sql.*, placement.*"%>
    <jsp:useBean id="conn" class="placement.DBConnect" />
    <jsp:useBean id="update" class="placement.DBQuery" />
    <jsp:useBean id="bpcalc" class="placement.repmaxBean" />
    <jsp:useBean id="currentuser" class="placement.currentuserBean" />
    <html>
    <head><title>Insert Into Repmax</title></head>
    <body>
    <%
    String repmax = bpcalc.repmax;
    String userName =currentuser.name;
    conn.connect();
         update.setCon(conn.getCon());
         update.updateRepmax(repmax,Username);
    conn.disconnect();
    %>
         </body>
         </html>
    the segment of my bean code is :
    public void updateRepmax(String repmax,String userName) throws SQLException, Exception{
         if(con != null){
         try{
         PreparedStatement update;
         update = con.prepareStatement("UPDATE repmax set Benchpress = ? WHERE Member_Name= ?");
         update.setString(1,repmax);
         update.setString(2,userName);
         update.execute();
         } catch(SQLException sqle){
         error = "SQLException: could not update employer";
         throw new SQLException(error);
         catch(Exception e){
         error = "An exception occured while updating employer";
         throw new Exception(error);
         } else {
         error = "Exception: connection to database was lost";
         throw new Exception(error);
    }

  • Record Set Variables used in PHP and MYSQL model

    PHP MYSQL server model.
    I'e been using dreamweaver for ages and have allways admired
    how well they have kept compatibility between versions. The recent
    8.02 release was a little bit of a shock when I had to start
    rewriting all my PHP MYSQL recordset queries!
    In the bulk of my SQL queries I detect on of two states for a
    query parameter and in some queries the parameters are used more
    then once. By creating a single variable in for the recordset I've
    allways been able to check and recheck the single variable in the
    query using the standard recordset. Now in version 8.02 I am
    getting the error: Missing type for variable:colname
    So where:
    SELECT *
    FROM links
    WHERE LinkID = colname or colname=-1
    ORDER BY `Level` DESC
    used to work it does not work any more!
    I'm being forced to rewrite the query:
    SELECT *
    FROM links
    WHERE colname in (-1,LinkID)
    ORDER BY `Level` DESC
    Simple enough but where the queries get more complex the more
    variables I have to define!
    This is not Cool! Can we get a bug fix for this so that I
    dont have to rewrite all my queries!
    P.S. Since when did anyone say that the Dreamweaver was SQL
    injection safe! This issue should have been resolved back in the
    Ultradev days! I guess Kudos goes to Adobe for finally trying to
    address one of the biggest glaring issues dreamweaver has had since
    it's inception. I was allways kinda upset that I was forced to pass
    variables as text to sprintf when I knew they where numbers!
    If I Look at the resultant code now I'm sure the result
    sprintf will still be using %s instead of optionally specifying one
    of the many diferent types (
    % - a literal percent character. No argument is required.
    b - the argument is treated as an integer, and presented as a
    binary number.
    c - the argument is treated as an integer, and presented as
    the character with that ASCII value.
    d - the argument is treated as an integer, and presented as a
    (signed) decimal number.
    e - the argument is treated as scientific notation (e.g.
    1.2e+2).
    u - the argument is treated as an integer, and presented as
    an unsigned decimal number.
    f - the argument is treated as a float, and presented as a
    floating-point number (locale aware).
    F - the argument is treated as a float, and presented as a
    floating-point number (non-locale aware). Available since PHP
    4.3.10 and PHP 5.0.3.
    o - the argument is treated as an integer, and presented as
    an octal number.
    s - the argument is treated as and presented as a string.
    x - the argument is treated as an integer and presented as a
    hexadecimal number (with lowercase letters).
    X - the argument is treated as an integer and presented as a
    hexadecimal number (with uppercase letters).
    This would further protect a query from being SQL Injected!
    I'd hope that Adobe would enable a Site specfic setting or
    something that would change the behaviour to match the passed
    parameter to sprintf with the specified variable type (I'd guess
    best practice to be Numeric be type f Text be type s and Date as
    type s as well)

    Start by saying bump.
    I've still no word from Adobe if they are doing anything with
    this problem. Any one had any replys from Adobe on it? Any one
    found a work around with recoding queries?

  • Concat java variable to a MySql select statement and exeucte

    Hi,
    I am trying to append a variable to a MySql select statement.
    Overview: I need to retrieve data from a MySql database with a java variable as a reference and select the data in the database based on that variable.
    CODE THAT I CURRENTLY HAVE:
    // Declare variables
    Connection conn = null;
    Statement st = null;
    Resultset rs2 = null;
    String st2 = null;
    String keyid = null;
    // Connect to database
    try {
          Class.forName("org.gjt.mm.mysql.Driver").newInstance();
          conn = DriverManager.getConnection("jdbc:mysql://" + mysql_host + ":3306/" + mysql_database, mysql_login, mysql_password);
          st = conn.createStatement();
          // Select data in Database with hanging equal sign
          st2 = ("SELECT * FROM table WHERE keyid= ");
          // Append keyid to hanging equal sign of select statement
          rs2 = st.executeQuery(st2 + keyid);
    }This is not working when I try to display the data.

    What is not working about it? Is there an error message? Stack Trace?
    Where do you get the value of keyId from?
    I would suggest that you use a prepared statement rather than building up a sql string like this. It prevents sql injection attacks
    // Declare variables
    Connection conn = null;
    PreparedStatement stmt = null;
    Resultset rs2 = null;
    String sql= null;
    String keyid = null;
    // Connect to database
    try {
          Class.forName("org.gjt.mm.mysql.Driver").newInstance();
          conn = DriverManager.getConnection("jdbc:mysql://" + mysql_host + ":3306/" + mysql_database, mysql_login, mysql_password);
          // Select data in Database with place holder for parameter
          sql = "SELECT * FROM table WHERE keyid= ?";
           // prepare the statement
          stmt = conn.prepareStatement(sql);
          // set the value of key id to use with the query
          stmt.setString(1, keyId);
          // run the query
          rs2 = st.executeQuery();
    catch (Exception e){
      System.out.println("An error occurred " + e.getMessage());
      e.printStackTrace();
    finally{
      if (rs2 != null) try { rs2.close(); } catch(SQLException ex){}
      if (stmt != null) try { stmt.close(); } catch(SQLException ex){}
      if (conn != null) try { con.close(); } catch(SQLException ex){}
    }

  • [php+mysql] how to use variables in a select statement?

    Hi all,
    I'm searching for a way to use a variable in the select
    statement of mysql
    query.
    I have this variable that can contain:
    $var=field_1 field_2 field5
    or
    $var=field3 field4 field8
    so, the variable content is not always the same.
    I would like to filter a table selecting only the columns
    specified by the
    current $var content.
    Is this possible to do something like this?
    $var=field1 field5 field10
    SELECT string_to_array($var)
    FROM mytable
    ORDER BY mysortfield ASC
    Or, is there another way to select columns dynamically?
    Thanks for any suggestion.
    tony

    Hi all,
    I'm searching for a way to use a variable in the select
    statement of mysql
    query.
    I have this variable that can contain:
    $var=field_1 field_2 field5
    or
    $var=field3 field4 field8
    so, the variable content is not always the same.
    I would like to filter a table selecting only the columns
    specified by the
    current $var content.
    Is this possible to do something like this?
    $var=field1 field5 field10
    SELECT string_to_array($var)
    FROM mytable
    ORDER BY mysortfield ASC
    Or, is there another way to select columns dynamically?
    Thanks for any suggestion.
    tony

Maybe you are looking for

  • Vendor balance write off

    Hi All, Just would understand how this bussiness scenario is usually handled in SAP AP. We have a liability for 1000. The vendor agreed that we can settle it at 500., hence a payment is created for 500. So to make the vendor account outstanding balan

  • Can't Add CHIP to Catalog and Can't delete Catalog from page

    Hi experts:     I'm working on Renewal configuration. I create some customize pages and add some CHIPs into it. It works normally before.     But after we upgrade the EA-HR component from 607 to 608, I can't add chip to catalog and can't delete catal

  • Drag and drop to textinput?

    Hello, I'd like to be able to drag from a mx:List and drop into an mx:textinput. is this possible? I've tried setting <mx:textinput dropEnabled="true"> but the compiler doesn't like it... Anyone have any clues? Cheers, Nick

  • Importing Enhanced Content CD

    I inserted an Enhanced Content CD into the cd/dvd drive on my MacBook Pro today in an attempt to import it into my iTunes library. iTunes does not recognize the CD at all and will not import any songs from it. When I open the CD in the finder, all I

  • Unable to download ver 10 & 11 flash player

    flash player had crash some of the website and I uninstall it. Thought of re donwload the older version 10 but it keep prompt me to download the newest and unable to download the older. The newest version fails to initialize. What can I do? I had als