Help with "Unresolved Component" warning

I know this was asked recently, but I think the poster had different set of circumstances, because the advice offered in that thread didn't lead me to a solution. Or else I'm incompetent! Hopefully someone can help me with the issue I'm having.
Here's the scenario:
I get a "Unresolved Component" warning for syntax like this: "createObject('component', 'ss_components.application_methods')"
- 'ss_components' is a mapping on the CF Server, and the application works fine when tested
- My CFBuilder Project folder is located in a different place than the wwwroot. Wwwroot is where all the CF scripts/application files are. Within the CFBuilder project, i have a Linked Folder to the wwwroot folder.
I have the following settings in CFBuilder. Some of these settings are the way they are because I was trying various things out to try and fix this 'Unresolved' problem.:
-Preferences>ColdFusion>Server Settings> (all checked)
-Preferences>ColdFusion>Startup> Index all CFCs... (unchecked)
-Properties>ColdFusion Project>(I have my linked folder here, when I created it, I unchecked the 'Use Link Folder to Resolve CFCs)
-Local Server Settings: blank entry for "Document Root"
I'm aware of the inheretence for finding components and I don't fully understand it since I'm new to CFBuilder, but all I know is that the first place CFBuilder looks for components is Mappings defined by CFServer....  I only want it to look there, since that's the only way I ever refer to components
- Running CF Builder 2, trial on my dev machine which has:
     CF9 installed
     IIS7.5
     RDS Enabled (and works because i can browse the db in CFBuilder)
     CFBuilder was installed as an Eclipse plugin, not standalone.
Please if anyone can help me with this, i would really appreciate it. I've been trying to fix this all day! :-S
Thanks
Dan

I'm having the same problem.  If I look in the Services Browser, the component shows up correctly, but in CFB2, I get the Unresolved Component message.  Here is my code:
component output="false" extends="appname.extensions.components.core.Framework" {...}
I have a CF mapping "appname\extensions" to the folder where the code is.  I've tried just about everything with the server settings in CFB2 as well as the Project settings.  When I click on the error in the gutter, "Quick Fix" suggests to me to create "appname.appname.extensions.core.Framework", but I'm not sure why.  Any help would be great!
Thanks,
Tyler

Similar Messages

  • Help with message please:  Warning: mysql_free_result() expects parameter 1 to be resource, null given in...... line

    I would really appreciate some help with my search & results page that is now throwing up the following error:
    Warning: mysql_free_result() expects parameter 1 to be resource, null given in...... line (the line number refers to the following code:
    mysql_free_result($RSsearchforsale);
    mysql_free_result($RsSearchForSale2);
    mysql_free_result($RsSearchForSale3);
    mysql_free_result($RsSearchForSale4);
    I am new to php and am setting up a dynamic site in Dreamweaver (thanks to the Missing Manual – very helpful). I apologise in advanced for my lengthy description of the problem (perhaps get yourself a drink before continuing!)
    I have a Search page with 4 list menus where the user can select an option from ANY or ALL of the menus, if a menu is not selected the value posted to the results page will be 'zzz'.
    On the results page I have 4 recordsets, all getting the correct results, only one recordset is required to run depending on how many of the menus from the search page have been selected and a test is run before executing the sql using a SWITCH statement checking how many of the menus had passed the 'zzz' values from the Search page if you see what I mean. The results page  has Repeating Regions, Recordset Paging and Display Record Count. The exact result that I require are generated by this method.
    THE PROBLEM, when a user makes a selection the first page of 10 results is fine, but the error message above is shown at the bottom of the page, AND when the user clicks NEXT to go to the next page of results THERE ARE NO RESULTS.
    This is exactly what happens depending on how many menus selected and which recordset is used:
    4 menus selected from Search: runs RSsearchforsale, results correct but 3 error messages on 1st page relating to mysql_free_result($RsSearchForSale2),mysql_free_result($RsSearchForSale3), & mysql_free_result($RsSearchForSale4). The display record count shows correct results found. NEXT page is empty of results and still shows the correct display record count as if it should be displaying the records, also has the same 3 error messages.
    3 menus selected from Search:  runs RsSearchForSale2, results correct but 3 error messages on 1st page relating to mysql_free_result($RSsearchforsale),mysql_free_result($RsSearchForSale3), & mysql_free_result($RsSearchForSale4). The display record count shows correct number of results. NEXT page shows results from the  DEFAULT setting of the recordset and the Display record count reflects this new set of results. Also still shows the 3 mysql_free_results for RsSearchForSale2, 3 and 4.
    2 menus selected from Search: runs   RsSearchForSale3, results correct but 2 error messages on 1st page relating to  mysql_free_result($RSsearchforsale) & mysql_free_result (RsSearchForSale4). The display record count is correct. NEXT page does exactly the same as described in above 3 menus selected.
    1 menu selected from search: runs RsSearchForSale4, results correct but 1 error meaasge on 1st page, mysql_free_result($RSsearchforsale). Display record count is correct and again when NEXT page is selected does as described in above where 2 or 3 menus selected.
    If you have gotten this far without falling asleep then thank you and well done! I have pasted my code below and I know its a lot to ask but please please can you give me an idea as to where or why I have gone wrong. I felt I was so close at perfecting this search and have been working on it for weeks now. I feel sure the problem is because I have 4 recordsets on the page but I could find no other way to get the exact results I wanted from the menus.
    Looking forward to any help.
    <?php require_once('Connections/propertypages.php'); ?>
    <?php 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;
    $currentPage = $_SERVER["PHP_SELF"];
    $maxRows_RSsearchforsale = 10;
    $pageNum_RSsearchforsale = 0;
    if (isset($_GET['pageNum_RSsearchforsale'])) {
      $pageNum_RSsearchforsale = $_GET['pageNum_RSsearchforsale'];
    $startRow_RSsearchforsale = $pageNum_RSsearchforsale * $maxRows_RSsearchforsale;
    $varloc_RSsearchforsale = "mpl";
    if (isset($_POST['location'])) {
      $varloc_RSsearchforsale = $_POST['location'];
    $vartype_RSsearchforsale = "vil";
    if (isset($_POST['type'])) {
      $vartype_RSsearchforsale = $_POST['type'];
    $varprice_RSsearchforsale = "pr9";
    if (isset($_POST['price'])) {
      $varprice_RSsearchforsale = $_POST['price'];
    $varbed_RSsearchforsale = "b5";
    if (isset($_POST['beds'])) {
      $varbed_RSsearchforsale = $_POST['beds'];
    switch (true) {
    case ($varloc_RSsearchforsale != 'zzz' && $vartype_RSsearchforsale != 'zzz' && $varprice_RSsearchforsale != 'zzz' && $varbed_RSsearchforsale != 'zzz'):
    mysql_select_db($database_propertypages, $propertypages);
    $query_RSsearchforsale = sprintf("SELECT DISTINCT trueprice,`desc`, `propid`, `bathrooms`, `photo1`, locationtable.loc, typetable.style, bedtable.`number` FROM detailstable JOIN locationtable ON detailstable.location=locationtable.locid JOIN typetable ON detailstable.type=typetable.typeid JOIN pricetable ON detailstable.price=pricetable.priceid JOIN bedtable ON detailstable.beds=bedtable.bedid WHERE location=%s AND price=%s AND type=%s AND beds=%s ORDER BY detailstable.trueprice ASC", GetSQLValueString($varloc_RSsearchforsale, "text"),GetSQLValueString($varprice_RSsearchforsale, "text"),GetSQLValueString($vartype_RSsearchforsale, "text"),GetSQLValueString($varbed_RSsearchforsale, "text"));
    $query_limit_RSsearchforsale = sprintf("%s LIMIT %d, %d", $query_RSsearchforsale, $startRow_RSsearchforsale, $maxRows_RSsearchforsale);
    $RSsearchforsale = mysql_query($query_limit_RSsearchforsale, $propertypages) or die(mysql_error());
    $row_RSsearchforsale = mysql_fetch_assoc($RSsearchforsale);
    if (isset($_GET['totalRows_RSsearchforsale'])) {
      $totalRows_RSsearchforsale = $_GET['totalRows_RSsearchforsale'];
    } else {
      $all_RSsearchforsale = mysql_query($query_RSsearchforsale);
      $totalRows_RSsearchforsale = mysql_num_rows($all_RSsearchforsale);
    $totalPages_RSsearchforsale = ceil($totalRows_RSsearchforsale/$maxRows_RSsearchforsale)-1;
    $queryString_RSsearchforsale = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_RSsearchforsale") == false &&
            stristr($param, "totalRows_RSsearchforsale") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_RSsearchforsale = "&" . htmlentities(implode("&", $newParams));
    $queryString_RSsearchforsale = sprintf("&totalRows_RSsearchforsale=%d%s", $totalRows_RSsearchforsale, $queryString_RSsearchforsale); } ?>
    <?php require_once('Connections/propertypages.php'); ?>
    <?php 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;
    $currentPage = $_SERVER["PHP_SELF"];
    $maxRows_RsSearchForSale2 = 10;
    $pageNum_RsSearchForSale2 = 0;
    if (isset($_GET['pageNum_RsSearchForSale2'])) {
      $pageNum_RsSearchForSale2 = $_GET['pageNum_RsSearchForSale2'];
    $startRow_RsSearchForSale2 = $pageNum_RsSearchForSale2 * $maxRows_RsSearchForSale2;
    $varloc2_RsSearchForSale2 = "mpl";
    if (isset($_POST['location'])) {
      $varloc2_RsSearchForSale2 = $_POST['location'];
    $varprice2_RsSearchForSale2 = "p9";
    if (isset($_POST['price'])) {
      $varprice2_RsSearchForSale2 = $_POST['price'];
    $vartype2_RsSearchForSale2 = "vil";
    if (isset($_POST['type'])) {
      $vartype2_RsSearchForSale2 = $_POST['type'];
    $varbed2_RsSearchForSale2 = "b5";
    if (isset($_POST['beds'])) {
      $varbed2_RsSearchForSale2 = $_POST['beds'];
    switch (true) {
    case ($varloc2_RsSearchForSale2 == 'zzz'):
    case ($varprice2_RsSearchForSale2 == 'zzz'):
    case ($vartype2_RsSearchForSale2 == 'zzz'):
    case ($varbed2_RsSearchForSale2 == 'zzz'):
    mysql_select_db($database_propertypages, $propertypages);
    $query_RsSearchForSale2 = sprintf("SELECT DISTINCT trueprice,`desc`, `propid`, `bathrooms`, `photo1`, locationtable.loc, typetable.style, bedtable.`number` FROM detailstable JOIN locationtable ON detailstable.location=locationtable.locid JOIN typetable ON detailstable.type=typetable.typeid JOIN pricetable ON detailstable.price=pricetable.priceid JOIN bedtable ON detailstable.beds=bedtable.bedid WHERE (location=%s AND price=%s AND type=%s) OR (location=%s AND price=%s AND beds=%s) OR (location=%s AND type=%s AND beds=%s) OR (price=%s AND type=%s AND beds=%s) ORDER BY detailstable.trueprice ASC", GetSQLValueString($varloc2_RsSearchForSale2, "text"),GetSQLValueString($varprice2_RsSearchForSale2, "text"),GetSQLValueString($vartype2_RsSearchForSale2, "text"),GetSQLValueString($varloc2_RsSearchForSale2, "text"),GetSQLValueString($varprice2_RsSearchForSale2, "text"),GetSQLValueString($varbed2_RsSearchForSale2, "text"),GetSQLValueString($varloc2_RsSearchForSale2, "text"),GetSQLValueString($vartype2_RsSearchForSale2, "text"),GetSQLValueString($varbed2_RsSearchForSale2, "text"),GetSQLValueString($varprice2_RsSearchForSale2, "text"),GetSQLValueString($vartype2_RsSearchForSale2, "text"),GetSQLValueString($varbed2_RsSearchForSale2, "text"));
    $query_limit_RsSearchForSale2 = sprintf("%s LIMIT %d, %d", $query_RsSearchForSale2, $startRow_RsSearchForSale2, $maxRows_RsSearchForSale2);
    $RsSearchForSale2 = mysql_query($query_limit_RsSearchForSale2, $propertypages) or die(mysql_error());
    $row_RsSearchForSale2 = mysql_fetch_assoc($RsSearchForSale2);
    if (isset($_GET['totalRows_RsSearchForSale2'])) {
      $totalRows_RsSearchForSale2 = $_GET['totalRows_RsSearchForSale2'];
    } else {
      $all_RsSearchForSale2 = mysql_query($query_RsSearchForSale2);
      $totalRows_RsSearchForSale2 = mysql_num_rows($all_RsSearchForSale2);
    $totalPages_RsSearchForSale2 = ceil($totalRows_RsSearchForSale2/$maxRows_RsSearchForSale2)-1;
    $queryString_RsSearchForSale2 = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_RsSearchForSale2") == false &&
            stristr($param, "totalRows_RsSearchForSale2") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_RsSearchForSale2 = "&" . htmlentities(implode("&", $newParams));
    $queryString_RsSearchForSale2 = sprintf("&totalRows_RsSearchForSale2=%d%s", $totalRows_RsSearchForSale2, $queryString_RsSearchForSale2);
    }?>
    <?php require_once('Connections/propertypages.php'); ?>
    <?php 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;
    $currentPage = $_SERVER["PHP_SELF"];
    $maxRows_RsSearchForSale3 = 10;
    $pageNum_RsSearchForSale3 = 0;
    if (isset($_GET['pageNum_RsSearchForSale3'])) {
      $pageNum_RsSearchForSale3 = $_GET['pageNum_RsSearchForSale3'];
    $startRow_RsSearchForSale3 = $pageNum_RsSearchForSale3 * $maxRows_RsSearchForSale3;
    $varloc3_RsSearchForSale3 = "mpl";
    if (isset($_POST['location'])) {
      $varloc3_RsSearchForSale3 = $_POST['location'];
    $varprice3_RsSearchForSale3 = "p9";
    if (isset($_POST['price'])) {
      $varprice3_RsSearchForSale3 = $_POST['price'];
    $vartype3_RsSearchForSale3 = "vil";
    if (isset($_POST['type'])) {
      $vartype3_RsSearchForSale3 = $_POST['type'];
    $varbed3_RsSearchForSale3 = "b5";
    if (isset($_POST['beds'])) {
      $varbed3_RsSearchForSale3 = $_POST['beds'];
    switch (true) {
    case ($varloc3_RsSearchForSale3 == 'zzz' && $varprice3_RsSearchForSale3 == 'zzz'):
    case ($varprice3_RsSearchForSale3 == 'zzz' && $vartype3_RsSearchForSale3 == 'zzz'):
    case ($vartype3_RsSearchForSale3 == 'zzz' && $varbed3_RsSearchForSale3 == 'zzz' ):
    case ($varbed3_RsSearchForSale3 == 'zzz' && $varloc3_RsSearchForSale3 == 'zzz'):
    case ($varloc3_RsSearchForSale3 == 'zzz' && $vartype3_RsSearchForSale3 == 'zzz'):
    case ($varprice3_RsSearchForSale3 == 'zzz' && $varbed3_RsSearchForSale3 == 'zzz'):
    mysql_select_db($database_propertypages, $propertypages);
    $query_RsSearchForSale3 = sprintf("SELECT DISTINCT trueprice,`desc`, `propid`, `bathrooms`, `photo1`, locationtable.loc, typetable.style, bedtable.`number` FROM detailstable JOIN locationtable ON detailstable.location=locationtable.locid JOIN typetable ON detailstable.type=typetable.typeid JOIN pricetable ON detailstable.price=pricetable.priceid JOIN bedtable ON detailstable.beds=bedtable.bedid WHERE (location=%s AND price=%s) OR (location=%s AND  type=%s) OR (location=%s AND beds=%s) OR ( type=%s AND beds=%s) OR (price=%s AND type=%s) OR (price=%s AND beds=%s) ORDER BY detailstable.trueprice ASC", GetSQLValueString($varloc3_RsSearchForSale3, "text"),GetSQLValueString($varprice3_RsSearchForSale3, "text"),GetSQLValueString($varloc3_RsSearchForSale3, "text"),GetSQLValueString($vartype3_RsSearchForSale3, "text"),GetSQLValueString($varloc3_RsSearchForSale3, "text"),GetSQLValueString($varbed3_RsSearchForSale3, "text"),GetSQLValueString($vartype3_RsSearchForSale3, "text"),GetSQLValueString($varbed3_RsSearchForSale3, "text"),GetSQLValueString($varprice3_RsSearchForSale3, "text"),GetSQLValueString($vartype3_RsSearchForSale3, "text"),GetSQLValueString($varprice3_RsSearchForSale3, "text"),GetSQLValueString($varbed3_RsSearchForSale3, "text"));
    $query_limit_RsSearchForSale3 = sprintf("%s LIMIT %d, %d", $query_RsSearchForSale3, $startRow_RsSearchForSale3, $maxRows_RsSearchForSale3);
    $RsSearchForSale3 = mysql_query($query_limit_RsSearchForSale3, $propertypages) or die(mysql_error());
    $row_RsSearchForSale3 = mysql_fetch_assoc($RsSearchForSale3);
    if (isset($_GET['totalRows_RsSearchForSale3'])) {
      $totalRows_RsSearchForSale3 = $_GET['totalRows_RsSearchForSale3'];
    } else {
      $all_RsSearchForSale3 = mysql_query($query_RsSearchForSale3);
      $totalRows_RsSearchForSale3 = mysql_num_rows($all_RsSearchForSale3);
    $totalPages_RsSearchForSale3 = ceil($totalRows_RsSearchForSale3/$maxRows_RsSearchForSale3)-1;
    $queryString_RsSearchForSale3 = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_RsSearchForSale3") == false &&
            stristr($param, "totalRows_RsSearchForSale3") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_RsSearchForSale3 = "&" . htmlentities(implode("&", $newParams));
    $queryString_RsSearchForSale3 = sprintf("&totalRows_RsSearchForSale3=%d%s", $totalRows_RsSearchForSale3, $queryString_RsSearchForSale3);
    } ?>
    <?php require_once('Connections/propertypages.php'); ?>
    <?php 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;
    $currentPage = $_SERVER["PHP_SELF"];
    $maxRows_RsSearchForSale4 = 10;
    $pageNum_RsSearchForSale4 = 0;
    if (isset($_GET['pageNum_RsSearchForSale4'])) {
      $pageNum_RsSearchForSale4 = $_GET['pageNum_RsSearchForSale4'];
    $startRow_RsSearchForSale4 = $pageNum_RsSearchForSale4 * $maxRows_RsSearchForSale4;
    $varloc4_RsSearchForSale4 = "mpl";
    if (isset($_POST['location'])) {
      $varloc4_RsSearchForSale4 = $_POST['location'];
    $vartype4_RsSearchForSale4 = "vil";
    if (isset($_POST['type'])) {
      $vartype4_RsSearchForSale4 = $_POST['type'];
    $varprice4_RsSearchForSale4 = "p9";
    if (isset($_POST['price'])) {
      $varprice4_RsSearchForSale4 = $_POST['price'];
    $varbed4_RsSearchForSale4 = "b5";
    if (isset($_POST['beds'])) {
      $varbed4_RsSearchForSale4 = $_POST['beds'];
    switch (true) {
    case ($varloc4_RsSearchForSale4 == 'zzz' && $vartype4_RsSearchForSale4 =='zzz' && $varprice4_RsSearchForSale4 == 'zzz'):
    case ($varloc4_RsSearchForSale4 == 'zzz' && $varprice4_RsSearchForSale4 =='zzz' && $varbed4_RsSearchForSale4 == 'zzz'):
    case ($varloc4_RsSearchForSale4 == 'zzz' && $varbed4_RsSearchForSale4 =='zzz' && $vartype4_RsSearchForSale4 == 'zzz'):
    case ($varbed4_RsSearchForSale4 == 'zzz' && $vartype4_RsSearchForSale4 =='zzz' && $varprice4_RsSearchForSale4 == 'zzz'):
    mysql_select_db($database_propertypages, $propertypages);
    $query_RsSearchForSale4 = sprintf("SELECT DISTINCT trueprice,`desc`, `propid`, `bathrooms`, `photo1`, locationtable.loc, typetable.style, bedtable.`number` FROM detailstable JOIN locationtable ON detailstable.location=locationtable.locid JOIN typetable ON detailstable.type=typetable.typeid JOIN pricetable ON detailstable.price=pricetable.priceid JOIN bedtable ON detailstable.beds=bedtable.bedid WHERE location=%s OR price=%s OR type=%s OR beds=%s ORDER BY detailstable.trueprice ASC", GetSQLValueString($varloc4_RsSearchForSale4, "text"),GetSQLValueString($varprice4_RsSearchForSale4, "text"),GetSQLValueString($vartype4_RsSearchForSale4, "text"),GetSQLValueString($varbed4_RsSearchForSale4, "text"));
    $query_limit_RsSearchForSale4 = sprintf("%s LIMIT %d, %d", $query_RsSearchForSale4, $startRow_RsSearchForSale4, $maxRows_RsSearchForSale4);
    $RsSearchForSale4 = mysql_query($query_limit_RsSearchForSale4, $propertypages) or die(mysql_error());
    $row_RsSearchForSale4 = mysql_fetch_assoc($RsSearchForSale4);
    if (isset($_GET['totalRows_RsSearchForSale4'])) {
      $totalRows_RsSearchForSale4 = $_GET['totalRows_RsSearchForSale4'];
    } else {
      $all_RsSearchForSale4 = mysql_query($query_RsSearchForSale4);
      $totalRows_RsSearchForSale4 = mysql_num_rows($all_RsSearchForSale4);
    $totalPages_RsSearchForSale4 = ceil($totalRows_RsSearchForSale4/$maxRows_RsSearchForSale4)-1;
    $queryString_RsSearchForSale4 = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_RsSearchForSale4") == false &&
            stristr($param, "totalRows_RsSearchForSale4") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_RsSearchForSale4 = "&" . htmlentities(implode("&", $newParams));
    $queryString_RsSearchForSale4 = sprintf("&totalRows_RsSearchForSale4=%d%s", $totalRows_RsSearchForSale4, $queryString_RsSearchForSale4);
    }?>

    Hi David,
    Thank you for your reply and patience, we are getting closer in spite of me!
    Of course i needed to change the name of the recordset, i did that the first time i did it (when i got the error), the when i re did it i forgot, in my defense i was also trying to get a full understanding of the code using the W3Schools php reference and writing by the side of the code on a piece of paper what it meant in English.
    Anyway after re doing the code correctly it still displayed all the records of my database but i realised that was because i was POSTING from the search form and when i changed it to the GET method I now get results when all 4  list menus are selected from and the paging works. After reading about the POST / GET method i chose the POST option, is the GET method a better option in my circumstance?
    On my site now if the user selects from 1,2 or 3 of the menus rather than selecting the relevant records it displays the NO RESULT page, I would like my users to be able to select from all of the menus or ANY combination of the menus and find exact results for their search, for example if they only select a location and a price i want it display all records that match that location and price with any number of bedrooms and any Type of property: Perhaps this is due to how my list menus are set up, for each menu the first Item label is Location (or Beds or Type or Price) and the value i have left blank which i believe means that it will use the item label as the value, the second Item label for all menus is Any and again the value has been left blank. All other item labels have values relevant to database records.  
    I do look forward to your reply and cannot thank you enough for following this through with me, please continue to bare with me just a little more,
    best regards
    Tessimon
    Date: Wed, 11 Nov 2009 06:56:24 -0700
    From: [email protected]
    To: [email protected]
    Subject: Help with message please:  Warning: mysql_free_result() expects parameter 1 to be resource, null given in...... line
    You're not adding the WHERE clause to the SQL query. My example code uses $query_search. You need to change that variable to match the name of your recordset, i.e. $query_RSsearchforsale.
    Moreover, the WHERE clause needs to go before ORDER BY.
    $query_RSsearchforsale = "SELECT trueprice,`desc`, `propid`, `bathrooms`, `location`, `type`, `price`, `beds`, `photo1`, locationtable.loc, typetable.style, bedtable.`number` FROM detailstable JOIN locationtable ON detailstable.location=locationtable.locid JOIN typetable ON detailstable.type=typetable.typeid JOIN pricetable ON detailstable.price=pricetable.priceid JOIN bedtable ON detailstable.beds=bedtable.bedid ";
    // Set a flag to indicate whether the query has a WHERE clause
    $where = false;
    // Loop through the associatiave array of expected search values
    foreach ($expected as $var => $type) {
      if (isset($_GET[$var])) {
        $value = trim(urldecode($_GET[$var]));
        if (!empty($value)) {
          // Check if the value begins with > or <
          // If so, use it as the operator, and extract the value
          if ($value[0] == '>' || $value[0] == '<') {
            $operator = $value[0];
            $value = ltrim(substr($value, 1));
          } elseif (strtolower($type) != 'like') {
            $operator = '=';
          // Check if the WHERE clause has been added yet
          if ($where) {
            $query_RSsearchforsale .= ' AND ';
          } else {
            $query_RSsearchforsale .= ' WHERE ';
            $where = true;
          // Build the SQL query using the right operator and data type
          $type = strtolower($type);
          switch($type) {
            case 'like':
              $query_RSsearchforsale .= "`$var` LIKE " . GetSQLValueString('%' .
    $value . '%', "text");
              break;
            case 'int':
            case 'double':
            case 'date':
              $query_RSsearchforsale .= "`$var` $operator " .
    GetSQLValueString($value, "$type");
              break;
            default:
            $query_RSsearchforsale .= "`$var` = " . GetSQLValueString($value,
    "$type");
    $query_RSsearchforsale .= ' ORDER BY detailstable.trueprice ASC';
    >

  • Help with T61 monitor warning

    Whenever I use Adobe Photoshop Elements 5, or just recently installed Elements 7, I keep getting a warning at the start of the editing option that says "The monitor profile "Lenovo ThinkPad LCD Monitor" appears to be defective.  Please rerun your monitor calibration software.  It also has buttons to click "Ignore Profile" and "Use Anyway."  I don't know what this means.  I usually click the Ignore Profile button.  Can someone tell me what I need to do to resolve this warning.  And is there a Lenovo monitor calibration software?  What do I need to do to calibrate the monitor.  Thanks for any help you can give.

    I think this is just to warn you regarding your colour profile of your monitor doesn't match with that of the software, which may result in colour inconsistencies.
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • Need help with CF component call, please

    Hi!
    I've been working with component lately but still learning. In one of my logic I need to use an existing component and I'm not sure how to correctly call the function and get the return result from that.
    Can anyone help me please?
    Basically I created a component:
    <cfcomponent displayname="X">
         <CFFUNCTION name="GetNames">
           <fargument name="1" type="String" required="TRUE">
           <cfargument name="2" type="String" required="TRUE">
           <!---- I do my work here ---->
            within my logic, I need to call an existing function located at
            in a different component And I  need to use the result returned by this function.
            (see below)
            I'm not sure how to correctly call that function from here
            Can I simply do:
            <cfinvoke component="the location of Y component" method="Compare" MyVar = "MyNames" Returnresult="Z">
            <CFIF #Z# NEQ 0>
                <!---  DO something --->
           <CFELSE>
              <!--- do something else --->
           </CFIF>
         </CFFUNCTION>
    </cfcomponent>
    This is the existing componen that I need to use. It's located at the same directory:
    <cfcomponent displayname="Y">
    <!--- assuming this is the function that I need to call --->
         <CFFUNCTION name="Compare" hint="verify names">
           <cfargument name="MyVar" type="String" required="TRUE">
          <cfscript>
                some logic here
                 return return_struct;
         </cfscript>
         </CFFUNCTION>
    </cfcomponent> 
    Please advice, thank you!

    I hopo the following example will be helpful for. Please let me know if you have any questions.
    childComponent.cfc:
    <cfcomponent displayname="childComponent">
        <cffunction name="childComponentFunction" access="remote" returntype="string">
            <cfargument name="myArgument" type="string" required="yes">
            <cfset var finalString="">
            <cfinvoke component="baseComponent" method="baseComponentFunction" returnvariable="finalString">
                <cfinvokeargument name="stringArgumentToReturn" value="#arguments.myArgument#">
            </cfinvoke>
            <cfreturn finalString>
        </cffunction>
    </cfcomponent>
    baseComponent.cfc:
    <cfcomponent displayname="baseComponent">
        <cffunction name="baseComponentFunction" access="public" returntype="string">
            <cfargument name="stringArgumentToReturn" required="yes" type="string">
            <cfreturn arguments.stringArgumentToReturn>
        </cffunction>
    </cfcomponent>
    FYI - There several other methods through which we can call functions of different functions.

  • Help with cfgrid / component

    Hey everyone...
    I'm working on the following piece code
    <cfinvoke
    component="elements.assets.cf.components.Reports"
        method="pKreport"
        returnvariable="qryKres">
    </cfinvoke>
    <cfform name="Kform">
        <cfgrid name="pKreport"
            bindonload="true"
            sort="yes"
            highlighthref="yes"
            griddataalign="left"
            gridlines="yes"
            selectmode="row"
            insertbutton="Add" 
            deletebutton="Delete"
            enabled="yes"
            visible="yes"
            format="html"
            preservepageonsort="false"
            striperows="yes"
            selectonload="false"
            autowidth="false"
            pagesize="100"
    bind="cfc:elements.assets.cf.components.Reports.pKreport({cfgridpage},{cfgridpagesize},{cf gridsortcolumn},{cfgridsortdirection})">
            <cfgridcolumn name="buildingName"
                header="Building Name"
                headeralign="left"
                dataalign="left"   
                select="no"
                display="yes"
                headerbold="yes" />
            <cfgridcolumn name="allocatedSF"
                header="Allocated SF"
                headeralign="left"
                dataalign="left"   
                select="no"
                display="yes"
                headerbold="yes" />
            <cfgridcolumn name="capacity"
                header="Capacity"
                headeralign="left"
                dataalign="left"   
                select="no"
                display="yes"
                headerbold="yes" />
            <cfgridcolumn name="occupancy"
                header="Occupancy"
                headeralign="left"
                dataalign="left"   
                select="no"
                display="yes"
                headerbold="yes" />
            <cfgridcolumn name="vacancy"
                header="Vacancy"
                headeralign="left"
                dataalign="left"   
                select="no"
                display="yes"
                headerbold="yes" />
        </cfgrid>
    </cfform>
    But I keep getting the following error - and I'm not sure why...
    The specified  CFC elements.assets.cf.components.Reports could not be found.
    The path to the CFC must be  specified as a full path, or as a relative path from the current template,  without the use of mappings.
    I'm using the same component in both the cfinvoke & cfgrid -- it works fine with the cfinvoke...

    Yes the two code blocks are on the same page...
    Can you help?

  • Need help with this Generics Warning

    Hi All,
    I could not understand what the following Generics Warning means
    Type safety: The cast from Object to HashMap<String,Object> is actually checking against the erased type HashMap
    Could anyone please help me with this.
    Here is the erring line of Code :
    HashMap<FDTColumInfoKey, ColumnInfo> designMap = (HashMap<FDTColumInfoKey, ColumnInfo>)wdContext.currentContextElement().getColumnInfoMap();
    Thanks !

    SloMoe wrote:
    Hi Malcolm,
    tnx for taking time to answer my query, but doesn't Generics give an exception during compile time as opposed to Run Time ? I mean if the attributes type in the Generic definition does not match with the type of the attributes during Compile time, An exception will be thrown. So why the warning ?Because, in this case, there's no way that the compiler can check the correctness of the generics. You're telling the compiler that the object you retrieve is of the relevant generic types but the compiler can't verify it.
    That's also true with an ordinary cast from Object, of course, but if with an ordinary cast at least the run time will verify that the object is actually of the required type where the cast is made and throw a CastClassException immediately. So it's easy to debug.
    With generics the run time doesn't have access to the generics data. This is what is meant by "erasure". So it can check that the object is a HashMap when casting, but not that it contains the right type of entries. This means that, at some later point in the code, it might retrieve an object from the map and discover that it's of the wrong type, thus causing a ClassCastException in a statement with no explicit cast.

  • Help with Custom Component: Ajax and ValueChangeListener

    Hello,
    I am trying to create a custom component that triggers an update via Ajax. However, I would also like to trigger a ValueChangeListener method from the same component, however I am unsure of how to obtain and trigger the ValueChangeEvent.
    The code I have so far in the Phase Listener is:
    private void handleAjaxRequest(PhaseEvent event) {
         FacesContext context = event.getFacesContext();
            HttpServletResponse response = (HttpServletResponse)context.getExternalContext().getResponse();
            Object object = context.getExternalContext().getRequest();
            if (!(object instanceof HttpServletRequest)) {
                return;
            HttpServletRequest request = (HttpServletRequest)object;
            HttpSession session =  request.getSession();
            String requestType = request.getParameter("jsflotRequestType");
            if (requestType != null && requestType.equalsIgnoreCase("jsflotchartValueChange")) {
                 //Trigger valueChangeEvents
                 log.info("Handling JSFlot Chart Value Change Event.");
    }What I am looking for though, is some information regarding how to obtain the ValueChangeListener from the request/session objects.
    The component tag is called like this:
    <jsflot:flotChart id="valueTimeChart"
         value="#{chartMbean.chartSeries}"
         valueChangeListener="#{chartMbean.valueChangeListener}"Any help would be greatly appreciated!

    The field calculation order was not in the correct order, had a devil of a time figuring out how to get to it, in Acrobat X.
    My check boxes for shipping have the same name field but I don't see a tab for export value for the check boxes, and I have no idea how to implement your suggestions for a switch or if statement or what fields to attach them to. 
    My amatuer attempt at a shipping formula follows, I don't know if I can use a range for event value, or where to put the script, if it is even correct.
    if(event.value == "<25.01")
        nShipFee = 06;
    else if(event.value == "25.01 - 75")
        nShipFee = 11.50;
    else if(event.value == "75.01 - 125")
        nShipFee = 15;
    else if(event.value == "125.01 - 200")
        nShipFee = 20;
    else if(event.value == "200.01 - 300")
        nShipFee = 25;
    else if(event.value == "300.01 - 400")
        nShipFee = 30;
    else if(event.value == ">400")
        nShipFee = 50;

  • Help with "unchecked conversion" warning

    Hello,
    following line
    Vector devices = SomeDeviceManager.getDeviceList();
    gives a warning (when compiled in java 1.5 with -Xlint):
    found raw type: java.util.Vector
    missing type parameters for generic class java.util.Vector<E>
    When I change code to
    Vector<DeviceInfo> devices = SomeDeviceManager.getDeviceList();
    warning turns into "unchecked conversion" warning. SomeDeviceManager is from some old .jar library, so it's not possible to change getDeviceList signature.
    How can I eliminate this warning?
    Thanks.

    @SuppressWarnings("unchecked")
    - Saish

  • Help with Train component

    Hi,
    I have to implement wizard based page flow for my application and I read that we can achieve it using train component. I am not able to find documentation or examples on it.
    Does any of you know any link to documentation and/or example program for it?
    I am trying to see if train component will suffice for our needs. We have simple sequence flow, conditional branching, looping within the wizard flow (like adding repetitive items within the flow) etc.
    Thanks in advance,
    _Jp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Here are several very simple examples of the train in UIX. I don't know of any full example program.
    <ctrl:page xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el"
    xmlns:ui="http://xmlns.oracle.com/uix/ui">
    <ctrl:head>
    <html:title>&lt;train&gt; element</html:title>
    </ctrl:head>
    <ctrl:content xmlns:ui="http://xmlns.oracle.com/uix/ui">
    <stackLayout>
    <separator>
    <separator/>
    </separator>
    <contents>
    <link text="View Source"
    destination="${ctrl:eventUrl(uix, 'viewSource')}"/>
    <html:p/>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with no children or selection"/>
    <train/>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 4 children but no selection"/>
    <train>
    <contents>
    <link text="Bali"/>
    <link text="Baja"/>
    <link text="Architecture"/>
    <link text="Release"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 4 children and value=2"/>
    <train value="2">
    <contents>
    <link text="Bali"/>
    <link text="Baja"/>
    <link text="Architecture"/>
    <link text="Release"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 4 children and selectedIndex=1"/>
    <train selectedIndex="1">
    <contents>
    <link text="Bali"/>
    <link text="Baja"/>
    <link text="Architecture"/>
    <link text="Release"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 4 children and value=1 and selectedIndex=3 (value takes precedence)"/>
    <train value="1" selectedIndex="3">
    <contents>
    <link text="Bali"/>
    <link text="Baja"/>
    <link text="Architecture"/>
    <link text="Release"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 4 children and value out of bounds low"/>
    <train value="-1">
    <contents>
    <link text="Bali"/>
    <link text="Baja"/>
    <link text="Architecture"/>
    <link text="Release"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 4 children and value out of bounds high"/>
    <train selectedIndex="7">
    <contents>
    <link text="Bali"/>
    <link text="Baja"/>
    <link text="Architecture"/>
    <link text="Release"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and value=1"/>
    <train value="1">
    <contents>
    <link text="Active Step1"/>
    <link text="Next Step2"/>
    <link text="Next Step3"/>
    <link text="Next Step4"/>
    <link text="Next Step5"/>
    <link text="Next Step6"/>
    <link text="Next Step7"/>
    <link text="Next Step8"/>
    <link text="Next Step9"/>
    <link text="Next Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and value=4"/>
    <train value="4">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Active Step4"/>
    <link text="Next Step5"/>
    <link text="Next Step6"/>
    <link text="Next Step7"/>
    <link text="Next Step8"/>
    <link text="Next Step9"/>
    <link text="Next Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and value=5"/>
    <train value="5">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Active Step5"/>
    <link text="Next Step6"/>
    <link text="Next Step7"/>
    <link text="Next Step8"/>
    <link text="Next Step9"/>
    <link text="Next Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and value=6"/>
    <train value="6">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Visited Step5"/>
    <link text="Active Step6"/>
    <link text="Next Step7"/>
    <link text="Next Step8"/>
    <link text="Next Step9"/>
    <link text="Next Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and value=7"/>
    <train value="7">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Visited Step5"/>
    <link text="Visited Step6"/>
    <link text="Active Step7"/>
    <link text="Next Step8"/>
    <link text="Next Step9"/>
    <link text="Next Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and value=8"/>
    <train value="8">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Visited Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Active Step8"/>
    <link text="Next Step9"/>
    <link text="Next Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and value=9"/>
    <train value="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Visited Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Active Step9"/>
    <link text="Next Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and value=10"/>
    <train value="10">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Visited Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Visited Step9"/>
    <link text="Active Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children. User returned to step 9 (value=9, maxVisited=9)"/>
    <train value="9" maxVisited="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Visited Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Active Step9"/>
    <link text="Visited Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children. User returned to step 5 (value=5, maxVisited=9)"/>
    <train value="5" maxVisited="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Active Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Visited Step9"/>
    <link text="Visited Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 6 children. All children disabled except active step"/>
    <train value="4">
    <contents>
    <link text="Disabled Step" disabled="true"/>
    <link text="Disabled Step" disabled="true"/>
    <link text="Disabled Step" disabled="true"/>
    <link text="Active Step4"/>
    <link text="Disabled Step" disabled="true"/>
    <link text="Disabled Step" disabled="true"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 6 steps, one step disabled"/>
    <train value="5">
    <contents>
    <link text="Visited Step"/>
    <link text="Visited Step"/>
    <link text="Visited Step"/>
    <link text="Disabled Step" disabled="true"/>
    <link text="Active Step5"/>
    <link text="Next Step"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children. Step 9 Active (value=9), Steps 11 and 4 disabled"/>
    <train value="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Disabled Step4" disabled="true"/>
    <link text="Visited Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Active Step9"/>
    <link text="Next Step10"/>
    <link text="Disabled Step11" disabled="true"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children. Step 9 Active (value=9), Steps 10 and 5 disabled"/>
    <train value="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Disabled Step5" disabled="true"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Active Step9"/>
    <link text="Disabled Step10" disabled="true"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children. Step 9 Active (value=9), Steps 10 and 11 and 4 and 5 disabled"/>
    <train value="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Disabled Step4" disabled="true"/>
    <link text="Disabled Step5" disabled="true"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Active Step9"/>
    <link text="Disabled Step10" disabled="true"/>
    <link text="Disabled Step11" disabled="true"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children. User returned to step 5 (value=5, maxVisited=9) Step 6 is disabled"/>
    <train selectedIndex="4" maxVisited="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Active Step5"/>
    <link text="Disabled Step6" disabled="true"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Visited Step9"/>
    <link text="Visited Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <!-- Beginning of tests with forms. Form names need to be unique -->
    <styledText styleClass="OraHeaderSubSub"
    text="Train inside a form with validation. value=4, formSubmitted=true, id is set"/>
    <styledText styleClass="OraTipText"
    text="Expected behavior is validation for next step will occur."/>
    <form name="myForm1a">
    <contents>
    <messageTextInput name="costCenter" required="yes"
    prompt="Cost Center"/>
    <train value="4" formSubmitted="true" id="TrainControl">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Active Step4"/>
    <link text="Next Step5"/>
    <link text="Next Step6"/>
    </contents>
    </train>
    </contents>
    </form>
    <styledText styleClass="OraHeaderSubSub"
    text="Train inside a form with validation. value=4, formSubmitted=true, id is set, unvalidated=true"/>
    <styledText styleClass="OraTipText"
    text="Expected behavior is validation for next step will *not* occur because unvalidated is set to true."/>
    <form name="myForm1b">
    <contents>
    <messageTextInput name="costCenter" required="yes"
    prompt="Cost Center"/>
    <train value="4" formSubmitted="true" id="TrainControl"
    unvalidated="true">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Active Step4"/>
    <link text="Next Step5"/>
    <link text="Next Step6"/>
    </contents>
    </train>
    </contents>
    </form>
    <styledText styleClass="OraHeaderSubSub"
    text="Train inside a form with validation. value=4, formSubmitted=false, destination set"/>
    <styledText styleClass="OraTipText"
    text="Expected behavior is validation will not occur. Destination will be used in url."/>
    <form name="myForm1c">
    <contents>
    <messageTextInput name="costCenter" required="yes"
    prompt="Cost Center"/>
    <train value="4" formSubmitted="false"
    destination="http://bali.us.oracle.com/cabo/baja/release.html"
    id="TrainControl">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Active Step4"/>
    <link text="Next Step5"/>
    <link text="Next Step6"/>
    </contents>
    </train>
    </contents>
    </form>
    <styledText styleClass="OraHeaderSubSub"
    text="Train inside a form with validation. value=4, formSubmitted=false, destination not set"/>
    <styledText styleClass="OraTipText"
    text="Expected behavior is no links will show"/>
    <form name="myForm2">
    <contents>
    <messageTextInput name="costCenter" required="yes"
    prompt="Cost Center"/>
    <train value="4" formSubmitted="false">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Active Step4"/>
    <link text="Next Step5"/>
    <link text="Next Step6"/>
    </contents>
    </train>
    </contents>
    </form>
    <styledText styleClass="OraHeaderSubSub"
    text="Train outside a form with validation. formName is set. id is set"/>
    <styledText styleClass="OraTipText"
    text="Expected behavior is formName will be used, and validation will occur"/>
    <form name="testForm">
    <contents>
    <messageTextInput name="costCenter" required="yes"
    prompt="Cost Center"/>
    </contents>
    </form>
    <train value="4" formName="testForm" id="TrainControl">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Active Step4"/>
    <link text="Next Step5"/>
    <link text="Next Step6"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with no form. destination and id set"/>
    <styledText styleClass="OraTipText"
    text="Expected behavior is train has links, destination is the base url"/>
    <train value="4"
    destination="http://bali.us.oracle.com/cabo/baja/release.html"
    id="TrainSource">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Active Step4"/>
    <link text="Next Step5"/>
    <link text="Next Step6"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and destination. User returned to step 5 (value=5, maxVisited=9)"/>
    <train value="5"
    destination="http://bali.us.oracle.com/cabo/baja/release.html"
    id="TrainSource" maxVisited="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Active Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Visited Step9"/>
    <link text="Visited Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="subTrain Demo.
    To render a train which indicates that it is in a sub-process,
    use the train element and set the subTrain attribute to true.
    Here are a couple of examples: "/>
    <stackLayout>
    <contents>
    <styledText styleClass="OraDataText"
    text="&lt;train subTrain=&quot;true&quot; &gt;"/>
    <formattedText styleUsage="instruction" text="Train has 4 children."/>
    <train subTrain="true">
    <contents>
    <link text="Bali"/>
    <link text="Baja"/>
    <link text="Architecture"/>
    <link text="Release"/>
    </contents>
    </train>
    </contents>
    </stackLayout>
    <stackLayout>
    <contents>
    <styledText styleClass="OraDataText"
    text="&lt;train subTrain=&quot;true&quot; value=&quot;5&quot; maxVisited=&quot;9&quot;
    destination=&quot;http://www.oracle.com&quot;&gt; "/>
    <formattedText styleUsage="instruction"
    text="Train has 11 children. User returned to step 5 (value=5, maxVisited=9)"/>
    <train subTrain="true" value="5" destination="http://www.oracle.com"
    id="TrainSource" maxVisited="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Active Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Visited Step9"/>
    <link text="Visited Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    </contents>
    </stackLayout>
    <stackLayout>
    <contents>
    <styledText styleClass="OraDataText"
    text="Same train as above, but without the subTrain attribute set (it defaults to false)"/>
    <train value="5" destination="http://www.oracle.com"
    id="TrainSource" maxVisited="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Active Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Visited Step9"/>
    <link text="Visited Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    </contents>
    </stackLayout>
    </contents>
    </stackLayout>
    </ctrl:content>
    <ctrl:handlers>
    <ctrl:event name="*">
    <ctrl:null/>
    </ctrl:event>
    </ctrl:handlers>
    </ctrl:page>

  • Help with a JavaScript Warning

    I have created a form that added fields into total fields.  The total fields are then added together.  In another part of the form there is addition and subtraction that gives another total.   If these two totals do not equal then a number is plugged into one of two fields Over or Short according to which be the case.  My problem is that all of these fields are set for the number format with 2 decimal places but as soon as you enter the last number the warning
    "The value entered does not match the format of the field [Over] and if you click enter another message with the same wording just for Short comes up.  This happens when there is no offage.  It does not happen if there is a number to plug in the short or over fields.
    At this time it does not recalculate and the numbers that should have changed to 0 stays in place.  This causes the ending total to be off.
    There is a custom validation to not show negative numbers.  The validation that is keyed is as follows:
    // null field if number is negative
    if (event.value<0) event.value="";
    This script is keyed into the over and short fields.

    The fields involve are totals of currency.  There are 4 columns that are added together to come up with a TotalCash sum.  In another area I have a field named OldBalance that together with a field named CashIn(+) and CashOut(-) gives the sum of NewBalance.  The sum of NewBalance should equal the Sum of TotalCash if not then either the Over or the Short field should have a sum plugged, therefore; Over or Short can not show a negative number or sum a negative number.
    The calculations for the NewBalance is correct.  The calculation for TotalCash is correct.  The problem is that when you plug the number into CashOut the error messages comes up.  If you answer ok to the 2 error messages and then delete the numbers in the over or short field the Total field is correct.  If not the number that should have cleared when entering the CashOut field stays and caused the Total field to be out of balance.  I should add that if the sheet is out of balance that it will not let you clear the field.
    I tried changing the format to none and the same errors popped up.

  • Help with Coding and Warning/Error Messages

    Can someone help me with Java Language to get SAP to enter through soft warnings and errors?
    I am working to record/write a script to change orders but am hitting a road block when error messages pop up. I need to get it to enter through if the message pops up or move to the next step if not... there can be 1 error or multiples depending on the number line items.
    THANKS!

    I'm guessing that your computer is too slow to record
    real-time audio.
    Of itself it should be fine - I still use a G3 desktop to record stereo with no problems at all - though GB may add an overhead. Still, this shouldn't be happening.
    If you have other tracks playing
    while you are recording this could be an issue,
    especially if there are a lot playing.
    Yes...
    If this is the
    case then you can lock the tracks playing by pressing
    the lock icon.
    This won't make any difference to audio tracks, only to MIDI tracks, and in that case it reduces demands on the processor but increases demands on the disk - which appears to be the trouble in the first place.
    I agree that you should consider
    getting an external hard drive. You can set the
    record path to the external hard drive
    Since laptop disks are usually slower than external ones this might help - particularly if your internal drive is very full.
    which will
    free up working memory to your computer.
    No it won't, but it will take the strain off the internal disk, if that's what you mean. The memory might be an issue, which would be resolved by installing more RAM if possible.

  • Help with publishing component

    I've been working with the Strobe media playback package that I downloaded and installed as a component.  I have it loading videos and it is working fine in the Author mode, but not in publish mode.  I also downloaded a google maps package and installed which allows me to use google maps as a component, and it displays and works in the Author mode, but does not display in the publish instance.  Other changes show up fine in the publish mode, but it seems that all of the package components that Iv downloaded so far i can't see in the publish instance.  Can someone explain to me how to get these displaying in publish mode?  Thanks.
    -Jon

    Make sure you have activated the respective package from [1].  If you have already done that could you please eloborate more on the problem like where you have downloaded the package and what is the error you are getting in the publish.
    [1]  http://<host>:<port>/libs/wcm/core/content/misc.html#/etc/packages

  • Help with Loader component!

    hi, i've got a Loader component on a swf i call holder.swf
    i am loading an external.swf in this loader
    i have a variable called music in holder.swf.
    is there any way for me to access the variable music that was
    defined in holder.swf, from the externally loaded external.swf?
    in code:
    basically i have in "holder.swf"
    onClipEvent (load) {
    _root.myLoader.contentPath = "external.swf";
    _global.music=5;
    and in external.swf
    i am trying to do
    if(_root.music==5){
    do something;
    }

    Hi
    Won't using _global.music work (rather than _root.music)? I
    use various ways to load swf files and usually pass variables via
    _global.
    Don't think I've used your particualr load method
    though.

  • Since uninstalling / reinstalling iTunes I am not able to sync iPhotos with my Apple TV with the following warning message stating that this is due to a 'problem on your computer. The disk could not be read from or written to'. Please help!

    Since uninstalling / reinstalling iTunes I am not able to sync iPhotos with my Apple TV with the following warning message stating that this is due to a 'problem on your computer. The disk could not be read from or written to'. Please help!

    Welcome to Apple Discussions!
    Is all the software on your computer up to date?
    iTunes
    iPod Updater
    Also, try The Five R's
    btabz

  • Help with creating a component: auto-sizing

    I'm trying to create a lightweight component (extends UIComponent) that supports auto-sizing (aka default sizing.) Many of the Flex component's do this, for instance mx:Button will, if you do not set a size, size itself to be "large enough to hold the label text, and any icon." How can I do this with my component?
    I tried overriding measure() and setting the measured sizes (measuredWidth, measuredHeight, measuredMinWidth, measuredMinHeight) but updateDisplayList always gets called with values of 0, 0 for unscaledWidth and unscaledHeight, and the .width and .height properties always stay at 0, 0.
    I've looked over the mx:Button code quite a bit and cannot figure out how it manages to perform default/auto-sizing. Can anyone help?
    Cheers.
    -Aaron

    You could set breakpoints to see if explicitWidth/Height is getting set in some surprising way.  Could maxWidth/maxHeight be set to 0?  That could also mess it up.
    One more thing is that the component is given its size by its parent.  If the parent is 0x0 that could also cause trouble.  Or some other part of the layout logic is trumping the measuredWidth/Height.  In theory there should be a call to setActualSize or setLayoutBoundsSize.  A breakpoint there should help you figure out the logic that determined the size.

Maybe you are looking for

  • Clamshell mode and mouse not working on external monitor

    Suddenly I notice that when I put my MBP (late model 2008, Lion) in clamshell mode, my blue tooth mouse and wireless keyboard become unresponsive I think the MBP has frozen but its only that the mouse and keyboard do not respond. I have to open the M

  • Display form at UWL error " Insufficient information for generating output"

    Hi experts, I got error while use "display form" button in UWL. the error is " Insufficient information for generating output (missing printer, for ex.) " ■The ABAP call stack was: Form: USEREXIT_TOP_2 of program RPRTEF00 Form: TOP_OF_PAGE of program

  • DataGrid Conditional Row Hiding ?

    Hello Everyone, I am trying to solve this basic and simple Datagrid problem and could not find any help anywhere so I have to resort to the experts here. I have an XML with nodes that contain an attribute value that I'm checking for to decide if I sh

  • Glossy or Matte? about to make the leap, need advice ...

    I am about to finally make my much anticipated leap into the world of well, you know ... The plan is to order a 17" MBP, 2.6GHz, 200GB 7200, enhanced rez, mostly for photoshop CS3 and graphics design, and the question is: glossy or matte? All timely

  • HT201272 unable to download  a previously purchase video on my iphone

    when ever I try to download a film concern or movie on my iphone 4S I get yhis msg "unable to download movie. Elements of 4 could not be downloaded at this time."