Bid-values in Bulkfiles

Hi,
I am new to BingAds-API and just now I am testing Bulkfiles.
I wonder, why most Bid-values of our keywords return with 4 fractional digits.
We pay in Euro and there are only two fractional digits.
For example: Our Bid is 0.13 and the Bulkfile-value says 0.1294 or our Bid is 0.07 and the Bulkfile-value says 0.0719
Do I really have to round before comparing with my local Data?
Regards
Jam

Hi,
I have been researching a bit and found out, that in my first example (0.1294 for 0.13) the keyword had at first an cpc of 9cent, that cpc was first increased by 15% up to 0.10cent (0.1035) an later it was again increased by 25% up to 0.13 (0.1294). Similar
at the second example.
It would be interesting to know, if the exact cpc-bid with four fractional digits is used  for auction.  If not, it would be better to return only whole cent-values as in the UI.
Thanks,
Jam

Similar Messages

  • Displaying the name of a minimum value in crosstab

    Hi,
    we have a crosstab with [Job Number] in the left column, [Quantitiy Break] as the column headers and (min[bid value]) as the measure.
    We want to display the name of the [vendor] who gave the minimum bid alongside the measure in the crosstab.
    we have tried allsorts of formula along the lines of:
    =[Vendor] Where ([Bid Value Row]=(Min([Bid Value Row])))
    =[Vendor] Where ([Bid Value Row]=(Min([Bid Value Row] ForEach ([Job Number]))))
    =[Vendor] Where ([Bid Value Row]=(Min([Bid Value Row] ForEach ([Job Number];[Quantity Break]))))
    etc
    can anyone help?
    thanks very much
    Keith

    You could try the method I use to pull this back from the database in one go...
    Create an object
    start with bidvalue (aggregated on the right level, formatted as string,
    make sure you use leading zeroes and room enough for the highest possible value)
    and concatenate the vendor after that.
    Now use right(min(new object);lenght(new object)-length bidvalue string)
    (might have tweak a bit to get the exact vendor part of the string, this is from the top of my head,
    but no doubt you'll get it to work)
    This will find the combination with the minimum bidvalue, but only return the vendor part.
    Hope this helps,
    Marianne

  • Id column values for null objects

    If I have something like the following, where B.id is mapped to an INTEGER
    column in A's table, Kodo wants to store a NULL value into the column. This
    doesn't work if the column is specified as NOT NULL. Is there a way to
    configure Kodo to use some predefined integer value instead, such as 0
    or -1?
    class A {
    int id;
    B b;
    class B {
    int id;
    A a = new A();
    a.id = 123;
    a.b = null;
    pm.makePersistent(a);
    pm.currentTransaction().commit();

    I'm not sure what you mean by "value mapping." In my case, I am mapping a
    null reference to another object. I am using application identity. Here's a
    more complete example (still very abbreviated, but hopefully complete
    enough):
    class A {
    static class Id { int id; }
    int id;
    B b;
    class B {
    static class Id { int id; }
    int id;
    int value;
    create table A (ID integer not null, BID integer not null)
    create table B (ID integer not null, VALUE integer)
    <jdo>
    <package name="test">
    <class name="A" objectid-class="A$Id">
    <extension vendor-name="kodo" key="table" value="A"/>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="data-column" value="ID"/>
    </field>
    <field name="b">
    <extension vendor-name="kodo" key="id-data-column" value="BID"/>
    </field>
    </class>
    <class name="B" objectid-class="B$Id">
    <extension vendor-name="kodo" key="table" value="B"/>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="data-column" value="ID"/>
    </field>
    <field name="value">
    <extension vendor-name="kodo" key="data-column" value="VALUE"/>
    </field>
    </class>
    </package>
    </jdo>
    A a1 = new A();
    a1.id = 123;
    a1.b = new B();
    a1.b.id = 456;
    a1.b.value = 999;
    pm.makePersistent(a1);
    A a2 = new A();
    a2.id = 789;
    a1.b = null;
    pm.makePersistent(a2);
    pm.currentTransaction().commit();
    The inserts for table A look something like this:
    insert into A (ID, BID) values (123, 456)
    insert into B (ID, VALUE) values (456, 999)
    insert into A (ID, BID) values (789, NULL)
    The NULL value fails because the column is specified as NOT NULL
    (pre-existing schema scenario).
    What I need to be able to do is specify what value gets inserted for null
    object references. Kodo is inserting NULL. I need to insert -1.

  • I work a long list. Each line has a link that I click on to work. I then click submit. It does not return to the last line worked. Goes to the begining.

    I go to the Insurance Auto Auction website to access a list of vehicles up for auction. When using "explorer" I can follow the link and set a bid value then click submit. It will return me to the last position on one the list. Firefox will sometimes doe this too but more often than not it brings me back to the top of the list. When I am looking at 300 units this becomes very frustrating.

    Try opening each link in a new Tab, and when you're done with each Tab, close it. The "list" page will be sitting exactly where you left it, ''unless that page did an automatic refresh to add newer information while you were viewing a different tab.''
    Middle-click a link
    or use { Ctrl + click }
    or right-click and use Open Link in New Tab

  • Search/Result page is incorrect, result page is blank

    Hello,
    I am designing a website for my work. Iam not very much familiar with coding and dont know what exactly is missing in the code.
    The search page filters the search criteria and on clicking the submit button, redirects to the result page which should display only the rows containing the search criteria. However, it is displaying blank in the result page with only the column names of the queried table (in the recordset)
    The search page code is :
    <?php require_once('Connections/connect.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $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;
    $colname_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $colname_Recordset1 = $_GET['Class'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $colname_Recordset1 = "-1";
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $totalRows_Recordset1 = $_GET['Class'];
    $colname_Recordset1 = "-1";
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $totalRows_Recordset1 = $_GET['Class'];
    $colname_Recordset1 = "-1";
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = "SELECT * FROM time_table";
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $totalRows_Recordset1 = $_GET['Class'];
    $colname_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $colname_Recordset1 = $_GET['Class'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);$colname_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $colname_Recordset1 = $_GET['Class'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    $query_Recordset1 = "SELECT distinct `Class` FROM time_table";
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['Rid'])) {
      $loginUsername=$_POST['Rid'];
      $password=$_POST['textfield'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "index_1 - Copy.php";
      $MM_redirectLoginFailed = "login_2.php";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_connect, $connect);
      $LoginRS__query=sprintf("SELECT reg_no, password FROM login_table WHERE reg_no=%s AND password=%s",
        GetSQLValueString($loginUsername, "int"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $connect) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
              if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;               
        if (isset($_SESSION['PrevUrl']) && false) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    ?>
    <!doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>TIME TABLE</title>
    <link rel="stylesheet" href="styles.css" type="text/css" />
    </head>
    <body onsubmit= "registerEvents()">
                                             <form name="form1" method="POST" action="<?php echo $loginFormAction; ?>">
    </form>
                                             <img class="header-image" src="images/logowhite.jpg"  style="float: left" />                    
      <header>
                  <h1><a href="/">CHRIST PRE-UNIVERSITY<span>E-SCHOOL</span></a></h1>
            <h2>EXCELLENCE IS ALL THAT MATTERS</h2>
        </header>
        <div id="body">
            <form name="form2" method="get" action="time.php">
              <p align="center">
                <strong>
                <label for="Rid">
                   <br>
                </label>
                <label for="Rid"><br>
                </label>
                <label for="sid">Class</label>
                <select name="sid" id="sid">
                  <?php
    do { 
    ?>
                  <option value="<?php echo $row_Recordset1['Class']?>"<?php if (!(strcmp($row_Recordset1['Class'], ucwords($row_Recordset1['Class'])))) {echo "selected=\"selected\"";} ?>><?php echo $row_Recordset1['Class']?></option>
                  <?php
    } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
      $rows = mysql_num_rows($Recordset1);
      if($rows > 0) {
          mysql_data_seek($Recordset1, 0);
                $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    ?>
                </select>
                <label for="Rid"><br>
                </label>
                </strong></p>
              <p align="center">
                <input name="Submit" type="submit" class="formbutton" id="Submit" value="Submit" >
              </p>
            </form>
            <section id="content">
                  <article></article>
            </section>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>
    The result page code is:
    <?php require_once('Connections/connect.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $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;
    }if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $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;
    $maxRows_Recordset1 = 10;
    $pageNum_Recordset1 = 0;
    if (isset($_GET['pageNum_Recordset1'])) {
      $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
    $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
    $colname_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $colname_Recordset1 = $_GET['Class'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query($query_limit_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    if (isset($_GET['totalRows_Recordset1'])) {
      $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
    } else {
      $all_Recordset1 = mysql_query($query_Recordset1);
      $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
    $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
    $colname_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $colname_Recordset1 = $_GET['Class'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    <!doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>TIME TABLE FOR CLASS</title>
    <link rel="stylesheet" href="styles.css" type="text/css" />
    </head>
    <body bgcolor="#CCFF99">
                        <div>
            <img src="images/logowhite.jpg" width="274" height="103" class="header-image"  style="float: left" />                    
    </div>
      <header>
        <h1 align="left"><a href="/"> SCHOOL TIME-TABLE FOR <span> THE CLASS </span></a></h1>
    </header>
      </div>
    <div align="center">
    </div>
        <p align="center"> </p>
    <p align="center"> </p>
        <div align="center">
    <p align="center"> </p>
    <table border="5" cellpadding="15" cellspacing="15">
      <tr>
        <td>Class</td>
        <td>Day</td>
        <td>1st</td>
        <td>2nd</td>
        <td>3rd</td>
        <td>4th</td>
        <td>Room No</td>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_Recordset1['Class']; ?></td>
          <td><?php echo $row_Recordset1['Day']; ?></td>
          <td><?php echo $row_Recordset1['1st']; ?></td>
          <td><?php echo $row_Recordset1['2nd']; ?></td>
          <td><?php echo $row_Recordset1['3rd']; ?></td>
          <td><?php echo $row_Recordset1['4th']; ?></td>
          <td><?php echo $row_Recordset1['Room No']; ?></td>
        </tr>
        <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
    </table>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>
    Please help me out.
    Thanks

    Thanks for your help,
    I have created both the pages again, one is a search.php another is result.php
    search.php is only used for accepting a text field which is the input of the search in database table on click of the button, and the result of the search is to be displayed in a dynamic table in result.php.
    The result field again uses a GET variable named 'Class Name', from the form field in search.php. But again, my result Page displays blank except the column names of the table. Please advice.
    search.php
    <?php require_once('Connections/connect.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $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;
    ?>
    <!doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" href="styles.css" type="text/css" />
    </head>
    <body>
                        <div>
            <img src="images/logowhite.jpg" width="274" height="103" class="header-image"  style="float: left" />                    
    </div>
      <header>
        <h1 align="left"><a href="/"> TIME TABLE FOR<span> CLASS                           </span></a></h1>
    </header>
      </div>
    <div align="center">
        </div>
        <form name="form1" method="get" action="result.php">
          <p><label>Class Name</label>
          <input name="Class Name" type="text" value="" size="15" maxlength="20">
           </p>
          <p>
            <input type="submit" name="bid" id="bid" value="Search">
          </p>
        </form>
        <p align="center"> </p>
    </body>
    </html>
    result.php
    <?php require_once('Connections/connect.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $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;
    $maxRows_Recordset1 = 10;
    $pageNum_Recordset1 = 0;
    if (isset($_GET['pageNum_Recordset1'])) {
      $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
    $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
    $colname_Recordset1 = "-1";
    if (isset($_GET['Class Name'])) {
      $colname_Recordset1 = $_GET['Class Name'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` LIKE %s ORDER BY `Class` ASC", GetSQLValueString("%" . $colname_Recordset1 . "%", "text"));
    $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query($query_limit_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    if (isset($_GET['totalRows_Recordset1'])) {
      $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
    } else {
      $all_Recordset1 = mysql_query($query_Recordset1);
      $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
    $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
    ?>
    <!doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" href="styles.css" type="text/css" />
    </head>
    <body>
                        <div>
            <img src="images/logowhite.jpg" width="274" height="103" class="header-image"  style="float: left" />                    
    </div>
      <header>
        <h1 align="left"><a href="/"> TIME TABLE SEARCH RESULT FOR<span> CLASS </span></a></h1>
    </header>
      </div>
    <div align="center">
    <table border="5">
      <tr>
        <td>Class</td>
        <td>Day</td>
        <td>1st</td>
        <td>2nd</td>
        <td>3rd</td>
        <td>4th</td>
        <td>Room No</td>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_Recordset1['Class']; ?></td>
          <td><?php echo $row_Recordset1['Day']; ?></td>
          <td><?php echo $row_Recordset1['1st']; ?></td>
          <td><?php echo $row_Recordset1['2nd']; ?></td>
          <td><?php echo $row_Recordset1['3rd']; ?></td>
          <td><?php echo $row_Recordset1['4th']; ?></td>
          <td><?php echo $row_Recordset1['Room No']; ?></td>
        </tr>
        <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
    </table>
    <p align="center"> </p>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>
    </body>
    </html>
    I followed these steps from adobe help.
    Thanks.

  • Xslt multi conditions checking.

         Hi,
    Please could you help me how I can achieve my requireemnt through xslt.
    in an xml, I will pass the belwo records
    <Main>
    <HOME RecNo="1">
                  <Articles useFilter="True"    CID="LGTS22"   BVal="MUG"/>
                <Articles useFilter="False"     CID="LGTS22"    BVal="MUG"/>
    </HOME>
    <HOME RecNo="2">
                  <Articles useFilter="False"  CID="LGTS22"    BVal="BBB"/>
                <Articles useFilter="True"    CID="XXX"    BVal="MUG"  BID="LGTS22"  />
    </HOME>
    <HOME RecNo="3">
                  <Articles useFilter="False"  CID="ABCS22"    BVal="MUG"/>
                <Articles useFilter="True"    CID="XXX"    BVal="MUG"  BID="ABCS22"  />
    </HOME>
    </Main>
    My requirement is like this.
    I will be passign the Home record to the xslt. in the xslt I need to check like this, based on Bval and useFilter I need to check the CID/BID values, as mentioned below.
    1. in the articles element if Bval is MUG, then check the value of UseFilter, if the useFilter is False then check the value of CID which is having  'LGT' value in it. then return the value as it is LGT. (first record)
    2. in the articles element if Bval is MUG, then check the value of UseFilter, if the useFilter is True then check the value of BID, not the CID attribute value which is having  'LGT' value in it. then return the value as it is LGT. (second record)
    3. If both above condtions are not met then return as nonLGT.(third record)
    Thanks.

    It's not clear whether you pass the entire document in one go or individual HOME records, and whether you want an XML output or a single text value for each record, and what this "value" should be.
    Can you clarify by giving the expected output?

  • How to persist an entity with Composite primary key

    Problem Statement:-
    Entity A have many to one relation with Entity C
    Entity B have many to one relation with Entity C
    Entity C have a composite primary key of (Entity A PK & Entity B PK)
    A --< C
    B --< C
    the entites are automatic generated by Dali tool
    @Entity
    public class C implements Serializable
         @EmbeddedId
         private C.PK pk;
         private int attribute;
         //Code
         @Embeddable
         public static class PK implements Serializable
              public int A_Id;
              public int B_Id;
              //Code
    @Entity
    public class A implements Serializable
         @Id
         private int AId;
         @OneToMany
         private Set<C> C_Collection;
         //Code
    @Entity
    public class B implements Serializable
         @Id
         private int BId;
         @OneToMany
         private Set<C> C_Collection;
         //Code
    i made a session Bean which add a new entity C
    Session
         A a = em.find(A.class, AId);
         B b = em.find(B.class, BId);
         C c = new C();
         C.PK pk = new C.PK();
         pk.AId(a.getID());
         pk.BId(b.getID());
         c.setPk(pk);
         c.setA(a);
         c.setB(b);
         c.setAttribute(12);
         em.persist(c);
    when running this code an exception is raised
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'A_ID' in 'field list'Error Code: 1054
    Call:INSERT INTO C (attribute, Aid, A_ID, B_ID, Bid) VALUES (?, ?, ?, ?, ?)
         bind => [2, 6, 6, 1, 1]
    this is logic as Table "C" has only 3 coloumns only "attribute" , "Aid" , "Bid"
    but the mapping is different as it adds the composite PK attributes to the insert statement
    if there is a sample code or how to solve this issue it would be great

    Hello Juwen,
    The problem is you are registering an object, assigning it a null pk, and then commiting the uow/transaction. TopLink uses registered objects to keep track of changes you make inorder to persist those changes on commit. So the simple fix is to not commit the UnitOfWork - call release() on it instead.
    Another solution is to use the session copyObject api. The simple form that only takes an object will work similar to registering the object as it will copy all persistent attributes but it will leave the primary key null. You can also use this method to specify a copyPolicy to customize the process. Using this method will be a bit more efficient, since a UOW makes both a working copy and a back up copy of objects registered, inorder to keep track of changes. Using the copyObject api will only make a single copy.
    Best Regards,
    Chris

  • Different G/L accounts are hitting when a create a credit memo.

    Hi Experts,
    This scenario is a Fixed Bid Contract (Fixed Bid value).
    When I create the Credit memo with reference to Invoice it is hitting the wrong accounting entries like  Unbilled Revenues instead of Unearned Revenue.
    The process here is:
    1. Creation fo contract
    2. Invoice creation with ref. to Contract.
    Customer Account -DR
    UNearned Rev -CR
    3. Credit Memo Request
    4. Credit Memo.
    When do the Credit Memo my accounting entries are:
    Domestic customer -CR
    UnBilled Revenues -DR.
    Thanks
    ANGKS

    Have you checked in Account Determination analysis in VF02- Environment - Account determination analysis- Rev. Accounts.
    It will show , why & which combination this Invoice is posted into specific G/L accounts.

  • J2ee tutorial bookstore2 example - again

    Folks,
    I've been trying to run the bookstore2 example of the j2ee tutorial.
    When I click on the start shopping link nothing happens.
    I found this in the server.log file
    [#|2005-05-11T11:26:22.353+0100|WARNING|sun-appserver-pe8.1|javax.enterprise.system.stream.err|_ThreadID=18;|
    org.apache.jasper.JasperException: /bookcatalog.jsp(39,2) The end tag "</c:forEach" is unbalanced
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:43)
    I have tried to fix this and redeploy the application but I continue to get the same error. Obviously I am not deploying this correctly. Can someone tell me the steps involved? Thanks?
    Here is the offending code.
    <c:if test="${!empty param.Add}">
    <c:set var="bid" value="${param.Add}"/>
    <jsp:setProperty name="bookDB" property="bookId" value="${bid}" />
    <c:set var="addedBook" value="${bookDB.bookDetails}" />
    <p><h3><font color="red" size="+2">
    <fmt:message key="CartAdded1"/> <em>${addedBook.title}</em> <fmt:message key="CartAdded2"/></font></h3>
    </c:forEach>
    </c:if>

    Somehow you accidentally added an incorrect tag. That section should be:
    <c:if test="${!empty param.Add}">
    <c:set var="bid" value="${param.Add}"/>
    <jsp:setProperty name="bookDB" property="bookId" value="${bid}" />
    <c:set var="addedBook" value="${bookDB.bookDetails}" />
    <p><h3><font color="red" size="+2">
    <fmt:message key="CartAdded1"/> <em>${addedBook.title}</em> <fmt:message key
    ="CartAdded2"/></font></h3>
    </c:if>
    That is, remove the </c:forEach>.
    -Ian Evans

  • JPQL Query for specific usecase, help needed

    Does anyone knows how to write the JPQL query for this specific use case.
    Take 3 tables,
    Table 1 contains bids for many auctions (Bid table)
    Table 2 Contains many auctions (Auction Table)
    Table 3 contains many users (User Table)
    I need a query to retrieve all the highest bids per auction for a particular user.
    For example if the user has bidded on 10 auctions., but for each auctions has placed 3 bids each. Following the query, I would expect to get 10 bids back, each being the highest per auction.
    A Bid has a bid value that can be used for filtering.
    Thanks
    Peter

    It would be something like the JPQL version of 'select * from bids join auctions using (auction_id) where bids.userid = ? group by auctions.auction_id order by bids.amount desc'. But this is primarily an SQL question, and only secondarily a question as to how to translate that into JPQL, which should be straightforward.

  • Concept of Open Tenders in SAP  ECC6.0

    Hi,
    I am new to the SAP club. I would like to know Whether SAP  ECC6.0  meets requirement of open tenders.  i.e Sending the RFQ to unkonwn vendors who are not even One time vendors. If it meets the requirement, can anybody give the details.
    My email: [email protected]
    [email protected]
    With regards
    MNV Ramana

    In ECC 6.0 it may/may not possible.
    But it is possible in SRM. In that they are using bidding techniques.
    For any vendor they can give the authorisation, password and time to put their Bid values instead of quotation.
    for more details pl use help.sap.com

  • Forms + jsp quick question

    hi.
    i have a question regarding forms in jsp...
    i have a page on which a productid is passed to.
    when the page is opened, it displays the details of a product which the user has selected from previous pages (e.g. bids.jsp?productid=5)
    this page displays a form on which the user enters their userid and an amount to bid.
    <form method = "post" action ="bids.jsp?<%=productid %>+<%=userid %>+<%= amount %>">
    <p>User ID: <input type = "text" name = "userid" size = "5" value = ''></p>
    <p>Bid Amount: ?<input type = text" name = "amount" size = "4" value = ''></p>
    <p><input type = "submit" value = "Place Your Bid"></p>
    </FORM>
    now, when i click submit - it gives null for the userid and the amount (i.e. it doesn't seem to take them from the form). i tried .getSession, .getAttribute, .getParameter.... so i am obviously going wrong somewhere.
    i also want to execute a query (an insert query), when submit is pressed.
    it will be like this:
    insert into bids values ('<%=userid %>', '<%= productid %>' ...... etc)
    but obviously this won't work until i can TAKE that information from my form.
    any suggestions?
    thanks a million.

    i guess the best u can do is,
    Once u ran ur query and display, put the values in the hidden tag.
    like this,
    <input type="hidden" name="p_id" value="<%= product_id %>, do that for user and the amount thru all the > jsps u'd navigate.
    so in each of ur jsp file, u can get the values using request.getParameter();
    <%-- Execute query to display the chosen product --%>
    <%
    sql = ("select productid,................................ from product where productid = '"+ product_id +"'");
    rs = stmt.executeQuery(sql);
    %>u code works fine till this part right?
    HTML table goes here
    So, the table is displayed on the page. Below the table I want my form.
    A form goes here (my form, your form, another form ??).
    The form has a PLACE BID button.
    Then I want to grab the data from that form, and execute a query based upon the data taken from the form when the PALCE BID button is pressed.So here u'll be displaying the table with the details of the product. since ur query criterion is a product_id, u'll get only a single row of info. So in the jsp page where u display these tables, have hidden tags inside ur form as I said.

  • Connecting java file to jsp

    Hi i'm working on a jsp file and i want my jsp file to access the methods in a java file of mine.I have an idea its got something to do with beans. But i have no knowledge about beans. does anyone know how i can acheive it.

    The following ( from the java tutorial with samples is downloadable) gave me the clarity in understanding how .jsp interact with classes (modified beans)
    This tutorial is available at
    http://java.sun.com
    and follow thelinks for the tutorial.
    Here Goes.....
    Home | Download | PDF | API | FAQ | Search | Feedback | History
    JavaBeans Components
    JavaBeans components are Java classes that can be easily reused and composed together into applications. Any Java class that follows certain design conventions is a JavaBeans component.
    JavaServer Pages technology directly supports using JavaBeans components with standard JSP language elements. You can easily create and initialize beans and get and set the values of their properties.
    JavaBeans Component Design Conventions
    JavaBeans component design conventions govern the properties of the class and govern the public methods that give access to the properties.
    A JavaBeans component property can be
    Read/write, read-only, or write-only
    Simple, which means it contains a single value, or indexed, which means it represents an array of values
    A property does not have to be implemented by an instance variable. It must simply be accessible using public methods that conform to the following conventions:
    For each readable property, the bean must have a method of the form
    PropertyClass getProperty() { ... }
    For each writable property, the bean must have a method of the form
    setProperty(PropertyClass pc) { ... }
    In addition to the property methods, a JavaBeans component must define a constructor that takes no parameters.
    The Duke's Bookstore application JSP pages bookstore.jsp, bookdetails.jsp, catalog.jsp, and showcart.jsp use the database.BookDB and database.BookDetails JavaBeans components. BookDB provides a JavaBeans component front end to the access object database.BookDBAO. The JSP pages showcart.jsp and cashier.jsp access the bean cart.ShoppingCart, which represents a user's shopping cart.
    The BookDB bean has two writable properties, bookId and database, and three readable properties: bookDetails, numberOfBooks, and books. These latter properties do not correspond to any instance variables but rather are a function of the bookId and database properties.
    package database;
    public class BookDB {
    private String bookId = "0";
    private BookDBAO database = null;
    public BookDB () {
    public void setBookId(String bookId) {
    this.bookId = bookId;
    public void setDatabase(BookDBAO database) {
    this.database = database;
    public BookDetails getBookDetails() throws
    BookNotFoundException {
    return (BookDetails)database.getBookDetails(bookId);
    public List getBooks() throws BooksNotFoundException {
    return database.getBooks();
    public void buyBooks(ShoppingCart cart)
    throws OrderException {
    database.buyBooks(cart);
    public int getNumberOfBooks() throws BooksNotFoundException {
    return database.getNumberOfBooks();
    Creating and Using a JavaBeans Component
    To declare that your JSP page will use a JavaBeans component, you use a jsp:useBean element. There are two forms:
    <jsp:useBean id="beanName"
    class="fully_qualified_classname" scope="scope"/>
    and
    <jsp:useBean id="beanName"
    class="fully_qualified_classname" scope="scope">
    <jsp:setProperty .../>
    </jsp:useBean>
    The second form is used when you want to include jsp:setProperty statements, described in the next section, for initializing bean properties.
    The jsp:useBean element declares that the page will use a bean that is stored within and is accessible from the specified scope, which can be application, session, request, or page. If no such bean exists, the statement creates the bean and stores it as an attribute of the scope object (see Using Scope Objects). The value of the id attribute determines the name of the bean in the scope and the identifier used to reference the bean in EL expressions, other JSP elements, and scripting expressions (see Chapter 16). The value supplied for the class attribute must be a fully qualified class name. Note that beans cannot be in the unnamed package. Thus the format of the value must be package_name.class_name.
    The following element creates an instance of mypkg.myLocales if none exists, stores it as an attribute of the application scope, and makes the bean available throughout the application by the identifier locales:
    <jsp:useBean id="locales" scope="application"
    class="mypkg.MyLocales"/>
    Setting JavaBeans Component Properties
    The standard way to set JavaBeans component properties in a JSP page is by using the jsp:setProperty element. The syntax of the jsp:setProperty element depends on the source of the property value. Table 12-3 summarizes the various ways to set a property of a JavaBeans component using the jsp:setProperty element.
    Table 12-3 Valid Bean Property Assignments from String Values Value Source Element Syntax
    String constant <jsp:setProperty name="beanName"
    property="propName" value="string constant"/>
    Request parameter <jsp:setProperty name="beanName"
    property="propName" param="paramName"/>
    Request parameter name that matches bean property <jsp:setProperty name="beanName"
    property="propName"/>
    <jsp:setProperty name="beanName"
    property="*"/>
    Expression <jsp:setProperty name="beanName"
    property="propName" value="expression"/>
    <jsp:setProperty name="beanName"
    property="propName" >
    <jsp:attribute name="value">
    expression
    </jsp:attribute>
    </jsp:setProperty>
    1. beanName must be the same as that specified for the id attribute in a useBean element.
    2. There must be a setPropName method in the JavaBeans component.
    3. paramName must be a request parameter name.
    A property set from a constant string or request parameter must have one of the types listed in Table 12-4. Because constants and request parameters are strings, the web container automatically converts the value to the property's type; the conversion applied is shown in the table.
    String values can be used to assign values to a property that has a PropertyEditor class. When that is the case, the setAsText(String) method is used. A conversion failure arises if the method throws an IllegalArgumentException.
    The value assigned to an indexed property must be an array, and the rules just described apply to the elements.
    Table 12-4 Valid Property Value Assignments from String Values Property Type Conversion on String Value
    Bean Property Uses setAsText(string-literal)
    boolean or Boolean As indicated in java.lang.Boolean.valueOf(String)
    byte or Byte As indicated in java.lang.Byte.valueOf(String)
    char or Character As indicated in java.lang.String.charAt(0)
    double or Double As indicated in java.lang.Double.valueOf(String)
    int or Integer As indicated in java.lang.Integer.valueOf(String)
    float or Float As indicated in java.lang.Float.valueOf(String)
    long or Long As indicated in java.lang.Long.valueOf(String)
    short or Short As indicated in java.lang.Short.valueOf(String)
    Object new String(string-literal)
    You use an expression to set the value of a property whose type is a compound Java programming language type. The type returned from an expression must match or be castable to the type of the property.
    The Duke's Bookstore application demonstrates how to use the setProperty element to set the current book from a request parameter in the database bean in bookstore2/web/bookdetails.jsp:
    <c:set var="bid" value="${param.bookId}"/>
    <jsp:setProperty name="bookDB" property="bookId"
    value="${bid}" />
    The following fragment from the page bookstore2/web/bookshowcart.jsp illustrates how to initialize a BookDB bean with a database object. Because the initialization is nested in a useBean element, it is executed only when the bean is created.
    <jsp:useBean id="bookDB" class="database.BookDB" scope="page">
    <jsp:setProperty name="bookDB" property="database"
    value="${bookDBAO}" />
    </jsp:useBean>
    Retrieving JavaBeans Component Properties
    The main way to retrieve JavaBeans component properties is by using the JSP EL expressions. Thus, to retrieve a book title, the Duke's Bookstore application uses the following expression:
    ${bookDB.bookDetails.title}
    Another way to retrieve component properties is to use the jsp:getProperty element. This element converts the value of the property into a String and inserts the value into the response stream:
    <jsp:getProperty name="beanName" property="propName"/>
    Note that beanName must be the same as that specified for the id attribute in a useBean element, and there must be a getPropName method in the JavaBeans component. Although the preferred approach to getting properties is to use an EL expression, the getProperty element is available if you need to disable expression evaluation.
    All of the material in The J2EE(TM) 1.4 Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.
    hope this helps
    regards,

  • 3 quick questions - Auctions

    Hello everyone, I just have 3 quick questions based on our customer needs:
    1 - Can the bid in a LAC (auction) be done in percentage and not in currency?
    2 - Using lotting, can the bid be on the lot itself instead of the itens?
    I mean, if I have done lotting with 4 itens, and the total of the lot is 500 USD for instance. Could the bidders bid on this lot instead of the itens (I would like to 'hide' the itens from them)?
    3 - Is the bid value from the auction winner replicated to the origin RFx?
    I mean, lets say on my original RFx we have 3 bids:
    1 - Vendor 1: at 8 USD
    2 - Vendor 2: at 10 USD
    3 - Vendor 3: at 6 USD
    Then, I decided to create an auction between vendor 1 and 2, and the winner is vendor number 2, with 5 USD.
    The next step is to create the Contract or Purchase Order, but is the 5 USD information sent to the RFx?
    Assuming I want to create the Contract or Purchase Order in SAP ERP, normally you create these documents based on a RFx response.. but if I have the 'old' bid on the RFx as the responses, how can I create the Contract with the auction winner price?
    Thanks for any input!
    Regards,
    Ricardo Sancio Lóra
    Brazil

    Responding myself, I think questions #3 is not possible based on this phrase from SAP documentation: "After conversion, the RFx is set to the status Completed and no further changes can be made to it."

  • Fixed values of dynamic attributes are not displayed for bid response

    Hi
    I have created a bid with dynamic attributes and have weighted the options with fixed values. I publish the Rfx (bid) and all is ok. The problem is that the fixed values are not displaying when doing a bid response.
    We are using SRM 7.0
    Can anyone help?

    No. Not yet. I think it is a bug. You should create an OSS message to SAP and ask them to pay special attention to the following code block:
    Class: /SAPSRM/CL_CH_WD_DODM_DYNATTR
    Method: /SAPSRM/IF_CLL_MAPPER~REFRESH
    At the end of the method, look for code context:
    IF lv_object_type = c_qte.
    *Set the Fixed Values Table to Invisible
        lv_visible = abap_false.

Maybe you are looking for

  • Problem with create asm disk group

    Hi all I am about configuring ASM, so I have downloaded the Grid infrastructure 11g (32 bit), I have configured and created parameters and directories. I runned the installer but get stack at the 3 step where I have to change the discovery path. I ha

  • Can't install 6.1.A.0.452 ICS Update

    I'm from Brazil, so, sorry if anything is writted wrong. Downloaded the update, then tried to install it The blue box of the update shows up, but then cellphone just reboot. A message  appears when the xperia starts: Can't install new software versio

  • WRT120N to Xbox 360 Wireless Connection

    hi, My wrt120n was working flawlessly with my xbox 360 until two weeks ago. I can connect to xbox live with no problem but it will always disconnect within 10 to 15 minutes, my PC does not have this problem. My SSID and WPA2 personal are setup proper

  • PS CC can't open PS CC psd

    I've got rather weird problem. PS CC on the desktop can't open PS CC .psd files created on my laptop (and vice versa) due to compatibility problems. The same relates to the .tif files. It's not corruption of the files, it's happening to every new-wri

  • Startup password for Oracle9i

    I am an absolute beginner with Oracle, but I want to learn how to use it. I have downloaded a copy of Oracle 9i personal edition. I believe I have installed it correctly onto a WindowsMe PC, except the Oracle Database Configuration Assistant failed t