Recordset navigation code bug

If you insert a Recordset Navigation Bar for a recordset called (say) Images the following code is generated (by CS6 and previous, at least):
if (isset($_GET['totalRows_rsImages'])) {
  $totalRows_rsImages = $_GET['totalRows_rsImages'];
} else {
  $all_rsImages = mysql_query($query_rsImages);
  $totalRows_rsImages = mysql_num_rows($all_rsImages);
If you later rely on a Show if Recordset is Empty/Not Empty behaviour then there is an opportunity for a (potentially malicious) command line alteration to return an incorrect result, e.g. that the recordset is not empty when it actually is. In otherwords, if someone changes or adds a url parameter called totalRows_rsImages the above code will set $totalRows_rsImages above to that value, whether or not the query has returned records.
A subsequent call to:
if ($totalRows_rsImages == 0) { // Show if recordset empty
will show the region, even if the recordset is empty.
This caught me out, and Adobe should fix it by renaming $totalRows_rsImages to something else where appropriate.

This caught me out, and Adobe should fix it by renaming
$totalRows_rsImages to something else where appropriate.
Yeah, or re-check to make sure it's within range. Not sure how that could be exploited. Forget about Adobe fixing it - they've completely discontinued support of server behaviors.

Similar Messages

  • Cannot get recordset navigation to work

    I've created a search results page with a recordset titled
    rsPhoneList. Here is the code for it that DW created:
    SELECT *
    FROM DistrictPhoneList
    WHERE EmpName LIKE %colname%
    When I run a test on it, it displays 17 of my records when I
    put in a few letters for a name and indeed there are 17 records.
    That works great. For the repeat region, I changed it to show 10
    records at a time. When I do the search, it comes up with 10
    records.
    However, the navigation bar will not work. I go to Insert,
    Dynamic Data, Recordset Paging, Recordset Navigation. It created my
    recordset navigation bar. I save and upload. When I do the search
    it shows me the first 10 records. When I click Next, it shows me an
    empty table with the correct headings, but no records. Nothing
    works, the previous, next, last. Here is the code it created:
    <table border="0">
    <tr>
    <td><?php if ($pageNum_rsPhoneNames > 0) { //
    Show if not first page ?>
    <a href="<?php printf("%s?pageNum_rsPhoneNames=%d%s",
    $currentPage, 0, $queryString_rsPhoneNames);
    ?>">First</a>
    <?php } // Show if not first page ?>
    </td>
    <td><?php if ($pageNum_rsPhoneNames > 0) { //
    Show if not first page ?>
    <a href="<?php printf("%s?pageNum_rsPhoneNames=%d%s",
    $currentPage, max(0, $pageNum_rsPhoneNames - 1),
    $queryString_rsPhoneNames); ?>">Previous</a>
    <?php } // Show if not first page ?>
    </td>
    <td><?php if ($pageNum_rsPhoneNames <
    $totalPages_rsPhoneNames) { // Show if not last page ?>
    <a href="<?php printf("%s?pageNum_rsPhoneNames=%d%s",
    $currentPage, min($totalPages_rsPhoneNames, $pageNum_rsPhoneNames +
    1), $queryString_rsPhoneNames); ?>">Next</a>
    <?php } // Show if not last page ?>
    </td>
    <td><?php if ($pageNum_rsPhoneNames <
    $totalPages_rsPhoneNames) { // Show if not last page ?>
    <a href="<?php printf("%s?pageNum_rsPhoneNames=%d%s",
    $currentPage, $totalPages_rsPhoneNames, $queryString_rsPhoneNames);
    ?>">Last</a>
    <?php } // Show if not last page ?>
    </td>
    </tr>
    </table>
    What am I doing wrong or what can I do to get it to work
    correctly and show me the rest of the records in the recordset.
    Thanks,
    --Linda

    On the search page, using Post doesn't seem to work with the
    Recordset Paging, Insert Navigation bar. I did some further reading
    and saw that someone else had the issue as well and changed to GET.
    I did that and now everything works.

  • Please Help... Recordset Navigation

    I am using a PHP/MySQL database to incorporate dynamic data
    in my website. In particular, I have a gallery of photo thumbnails
    (the thumbnails are displayed via a Recordset). When clicked on,
    each thumbnail link opens a pop-up window, which displays the name
    and full-size image of the record desired. I've tried to insert a
    Repeated Region server behavior within the pop-up to display one
    full-size picture at a time and a Recordset navigation bar to click
    through the different images. However, I can't seem to figure it
    out.
    Operating System: Mac OS X (v10.3)
    Web Server: Apache
    Browser: N/A
    Database type: MYSQL
    Application server: PHP

    Thanks for your advice, Steve! I'm not sure about the form,
    though. I'm fairly new to PHP...
    Here's the PHP code from the thumbnails page:
    <?php require_once('../../Connections/CSA.php'); ?>
    <?php
    mysql_select_db($database_CSA, $CSA);
    $query_Rides = "SELECT * FROM Rides ORDER BY id ASC";
    $Rides = mysql_query($query_Rides, $CSA) or
    die(mysql_error());
    $row_Rides = mysql_fetch_assoc($Rides);
    $totalRows_Rides = mysql_num_rows($Rides);
    ?>
    <table align="center" cellpadding="0" cellspacing="10"
    style="padding: 5px;">
    <tr>
    <?php
    $Rides_endRow = 0;
    $Rides_columns = 6; // number of columns
    $Rides_hloopRow1 = 0; // first row flag
    do {
    if($Rides_endRow == 0 && $Rides_hloopRow1++ != 0)
    echo "<tr>";
    ?>
    <td>
    <a href="display_ride.php?id=<?php echo
    $row_Rides['id']; ?>" target="_blank" alt="<?php echo
    $row_Rides['name']; ?>" title="<?php echo $row_Rides['name'];
    ?>"><img src="pictures/<?php echo $row_Rides['thumb'];
    ?>" class="ride" /></a></td>
    <?php $Rides_endRow++;
    if($Rides_endRow >= $Rides_columns) {
    ?>
    </tr>
    <?php
    $Rides_endRow = 0;
    while ($row_Rides = mysql_fetch_assoc($Rides));
    if($Rides_endRow != 0) {
    while ($Rides_endRow < $Rides_columns) {
    echo("<td> </td>");
    $Rides_endRow++;
    echo("</tr>");
    }?>
    </table>
    <?php
    mysql_free_result($Rides);
    ?>
    And here's the code from the popup window:
    <?php require_once('../../Connections/CSA.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"];
    $colname_current_Ride = "-1";
    if (isset($_GET['id'])) {
    $colname_current_Ride = $_GET['id'];
    mysql_select_db($database_CSA, $CSA);
    $query_current_Ride = sprintf("SELECT * FROM Rides WHERE id =
    %s", GetSQLValueString($colname_current_Ride, "int"));
    $current_Ride = mysql_query($query_current_Ride, $CSA) or
    die(mysql_error());
    $row_current_Ride = mysql_fetch_assoc($current_Ride);
    $totalRows_current_Ride = mysql_num_rows($current_Ride);
    $colname_next_Ride = "-1";
    if (isset($_GET['id'])) {
    $colname_next_Ride = $_GET['id'];
    mysql_select_db($database_CSA, $CSA);
    $query_next_Ride = sprintf("SELECT * FROM Rides WHERE id >
    %s ORDER BY id ASC", GetSQLValueString($colname_next_Ride, "int"));
    $next_Ride = mysql_query($query_next_Ride, $CSA) or
    die(mysql_error());
    $row_next_Ride = mysql_fetch_assoc($next_Ride);
    $totalRows_next_Ride = mysql_num_rows($next_Ride);
    $colname_previous_Ride = "-1";
    if (isset($_GET['id'])) {
    $colname_previous_Ride = $_GET['id'];
    mysql_select_db($database_CSA, $CSA);
    $query_previous_Ride = sprintf("SELECT * FROM Rides WHERE id
    < %s ORDER BY id DESC",
    GetSQLValueString($colname_previous_Ride, "int"));
    $previous_Ride = mysql_query($query_previous_Ride, $CSA) or
    die(mysql_error());
    $row_previous_Ride = mysql_fetch_assoc($previous_Ride);
    $totalRows_previous_Ride = mysql_num_rows($previous_Ride);
    $queryString_current_Ride = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
    $params = explode("&", $_SERVER['QUERY_STRING']);
    $newParams = array();
    foreach ($params as $param) {
    if (stristr($param, "pageNum_current_Ride") == false
    stristr($param, "totalRows_current_Ride") == false) {
    array_push($newParams, $param);
    if (count($newParams) != 0) {
    $queryString_current_Ride = "&" .
    htmlentities(implode("&", $newParams));
    $queryString_current_Ride =
    sprintf("&totalRows_current_Ride=%d%s",
    $totalRows_current_Ride, $queryString_current_Ride);
    ?>
    <h1 class="rideTitle" style="position: relative; top:
    10px"><?php echo $row_current_Ride['name']; ?></h1>
    <area shape="rect" coords="4,3,48,47"
    href="display_ride.php?id=<?php echo $row_previous_Ride['id'];
    ?>" id="Previous Ride" name="Previous Ride" />
    <area shape="rect" coords="47,3,99,47"
    href="display_ride.php?id=<?php echo $row_next_Ride['id'];
    ?>" id="Next Ride" name="Next Ride" />
    <area shape="rect" coords="851,3,897,47" href="#"
    onclick="self.close();" id="Close Window" name="Close Window" />
    <img src="pictures/<?php echo
    $row_current_Ride['image']; ?>" alt="<?php echo
    $row_current_Ride['image']; ?>" title="<?php echo
    $row_current_Ride['image']; ?>" class="ride" style="position:
    relative; top: -15px" />
    <!-- Hide the caption <?php echo
    $row_current_Ride['caption']; ?> -->
    <?php
    mysql_free_result($current_Ride);
    mysql_free_result($next_Ride);
    mysql_free_result($previous_Ride);
    ?>
    Again, I have a decent sense of what to do with PHP, but I'll
    use any help that I can receive. Thanks!
    Kevin

  • Recordset Navigation bar

    Hi There,
    I'm looking for a way to run the navigation through the pages smoothly. Right now it's "jumpy" and annoying.
    On this page:
    http://martinique.org/martiniquenew/discovery/towns-villages.php
    you will see the page jumping when we navigate through the towns table.
    I understand that the page re-loads itself naturally when using the Recordset Navigation Bar.
    I have added a javascript function in the buttons navigation links to make the page staying at the same level instead of going back to the top.
    Is there a way to make the page not to reload so I could have a smooth navigation?
    I would still like to insert the data from the database.
    Thanks for your help!

    boloco wrote:
    Is there a way to make the page not to reload so I could have a smooth navigation?
    I would still like to insert the data from the database.
    You would need to use Ajax to refresh the page content without reloading. One way of doing this would be to use a recordset to load all the database results into an HTML table, and then use a Master/Detail Spry Data Set. You can see an example of this in action on my website at http://foundationphp.com/dwcs4/gallery_select.php. Even on a fast connection, you will probably notice that the page first loads into a table, and immediately rebuilds. Then, whenever you click one of the descriptions on the left, the page refreshes without reloading. Dreamweaver CS4 builds most of the code automatically.

  • Cant add recordset navigation / paging...ERROR HELP

    I have the above recordset below
    $query_Recordset1 = sprintf("SELECT tk_job_title, tk_job_location, tk_job_salary, LEFT(tk_job_desc,200) as truncated_job_desc FROM think_jobsearch WHERE tk_job_title LIKE %s OR tk_job_location LIKE %%"text")%% OR tk_job_salary LIKE %s", GetSQLValueString("%" . $var_tk_job_title_Recordset1 . "%", "text"),GetSQLValueString($var_tk_job_location_Recordset1, "text"));
    $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query($query_limit_Recordset1, $hostprop) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    a syntax error is being shown on the top line
    when i tried to add a recordset navigation (below)
    <table border="0">
                      <tr>
                        <td><?php if ($pageNum_Recordset1 > 0) { // Show if not first page ?>
                            <a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, 0, $queryString_Recordset1); ?>">First</a>
                            <?php } // Show if not first page ?></td>
                        <td><?php if ($pageNum_Recordset1 > 0) { // Show if not first page ?>
                            <a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, max(0, $pageNum_Recordset1 - 1), $queryString_Recordset1); ?>">Previous</a>
                            <?php } // Show if not first page ?></td>
                        <td><?php if ($pageNum_Recordset1 < $totalPages_Recordset1) { // Show if not last page ?>
                            <a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, min($totalPages_Recordset1, $pageNum_Recordset1 + 1), $queryString_Recordset1); ?>">Next</a>
                            <?php } // Show if not last page ?></td>
                        <td><?php if ($pageNum_Recordset1 < $totalPages_Recordset1) { // Show if not last page ?>
                            <a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, $totalPages_Recordset1, $queryString_Recordset1); ?>">Last</a>
                            <?php } // Show if not last page ?></td>
                      </tr>
                  </table>

    I have the same problem. Sorry I can't add any help. Trying
    to figure this out as well.

  • Recordset Navigation

    Afternoon all,
    I am in search of a good tutorial to help me make better
    recordset navigation using CS3. I currently use the standard
    << first < previous > next > last >> type, but
    would like to do it like the pro sites, where its numbered as well
    as the next/previous links.
    I have found a nice extension by Tom Muck, which will be my
    last point of call if I can not find a good tuturial.
    Cheers,
    Steve

    Dooza,
    There are help items that help out with the display of "page
    # of #" etc. Try this out:
    http://livedocs.adobe.com/en_US/Dreamweaver/9.0/help.html?content=WSc78c5058ca073340dcda91 10b1f693f21-7971.html
    This also might help
    http://livedocs.adobe.com/en_US/Dreamweaver/9.0/help.html?content=WSc78c5058ca073340dcda91 10b1f693f21-7973.html
    If those links don't work use the help in DW and navigate to:
    Making pages dynamic/Displaying database records/Custom
    recordset navigation bars
    Hope that helps. I've been having trouble getting the
    fwd,back,prvs, first buttons to work at all. Not sure what I'm
    doing wrong.

  • Recordset Navigation Help

    Good Afternoon
    Experts:
    I have quite the dilemna this afternoon.  My application performs a simple select all records from a table to initialize navigation...previous, next, first and last. 
    However, I now have added a routine to load the last viewed record, by the
    logged on User,  in the recordset.  This now causes the original navigation
    to not be in order. 
    My Question:
    Is it possible to perform the select all records and then position a "cursor/index/reference starting point" to a value in that recordset?
    Example:
    Recordset returns:1,2,3,4,5,6,7,8,9...etc
    LastViewed = 5 so base all navigation off of 5...6 next record, 4 is previous record
    Thanks,
    Ed

    Hi Ed!
    This is impossible to implement your issue using DI-RecordSet object, but as an option i could suggest you to implement it by stored procedure (T-SQL query) and execute it by DoQuery().
    To do it you have to:
    - be able to get the last viewed record by code (or T-SQL)
    - use IDENTITY function to build an order you want
    - use UNION operator to get <i>5,6,7,8,9,1,2,3,4</i> instead of <i>1,2,3,4,5,6,7,8,9</i>

  • Inserting tabbed navigation code makes my web page not display in design view..

    Hi everyone..
    I am on Dreamweaver 8 for MAC, and was working on a couple of web pages..these pages included divs and tables. But when I tried inserting a tabbed navigation I found at:
    http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
    In a nutshell, it asked me for step 1 to:
    Step 1: Insert the        below CSS and script into the HEAD section of your page:
    <link rel="stylesheet" type="text/css" href="tabcontent.css" />
    <script type="text/javascript" src="tabcontent.js">
    * Tab Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    </script>
    The next step was this:
    Step 2: Finally, simply add the below      HTML to where you wish the Tab Content to appear on the page:
    <h3>Demo #1- Basic implementation</h3>
    <ul id="countrytabs" class="shadetabs">
    <li><a href="#" rel="country1" class="selected">Tab 1</a></li>
    <li><a href="#" rel="country2">Tab 2</a></li>
    <li><a href="#" rel="country3">Tab 3</a></li>
    <li><a href="#" rel="country4">Tab 4</a></li>
    <li><a href="http://www.dynamicdrive.com">Dynamic Drive</a></li>
    </ul>
    <div style="border:1px solid gray; width:450px; margin-bottom: 1em; padding: 10px">
    <div id="country1" class="tabcontent">
    Tab content 1 here<br />Tab content 1 here<br />
    </div>
    <div id="country2" class="tabcontent">
    Tab content 2 here<br />Tab content 2 here<br />
    </div>
    <div id="country3" class="tabcontent">
    Tab content 3 here<br />Tab content 3 here<br />
    </div>
    <div id="country4" class="tabcontent">
    Tab content 4 here<br />Tab content 4 here<br />
    </div>
    </div>
    <script type="text/javascript">
    var countries=new ddtabcontent("countrytabs")
    countries.setpersist(true)
    countries.setselectedClassTarget("link") //"link" or "linkparent"
    countries.init()
    </script>
    <p><a href="javascript:countries.cycleit('prev')" style="margin-right: 25px; text-decoration:none">Back</a> <a href="javascript: countries.expandit(3)">Click here to select last tab</a> <a href="javascript:countries.cycleit('next')" style="margin-left: 25px; text-decoration:none">Forward</a></p>
    <hr />
    Well, I did all the steps required, but when I put this inside a div I had inside a table, all of a sudden I couldnt see anything in my design view, only two tables that arent even the same size..When I take out all this code, I get back my regular page..Can I see this tabbed navigation in my design view? Unfortunately, I dont have the spry widgets since I am on Dreamweaver 8..If I preview it in both Safari and Firefox (on Mac Firefox/3.0.8) (Safari 3.2.1) I can see everything fine, including the tabbed navigation..But designing in code isnt really helpful because I want to see what it looks like in design view, in case we change things-its just easier for me to work on..So I assume there is something in this code that is making my design view show nothing..
    Update:I tried taking out the code again, but this time, I couldnt see anything again, even without this code..
    I know that I can go to validation website, and I got a lot of errors-but all the pages I have that are in the same style have those same errors too—and they display fine..its only when I insert this specific piece of code that everything goes haywire..Is it even possible to view tabbed navigations (like the one in the above link) inside of Dreamweaver Design View?
    Any help would be appreciated..

    DW8 doesn't render any dynamic content, so I'd say it's a no go. You'll just have to live with that limitation or upgrade to CS4...
    Mylenium

  • Safari 2.0 zip code bug?

    This is a problem I've started to notice on a bunch of webpages (including newegg.com) with Safari 2.0. Many times Safari will not let me enter my zip code into an HTML form field because it starts with a zero (like about half the zip codes in the U.S. northeast). Let us say my zip code is 02142 -- when I enter it in, Safair "autocorrects" it to "2142" after the control loses focus. Nothing seems to undo this, and I can't find any setting that fixes it. So the site I submit it to says, "Hey, that's not a valid zip code!" I've tried it with Firefox and Internet Explorer and neither seem to do this behavior (so I often have to leave whatever transaction I was trying to go through, open up Internet Explorer, and re-do the entire transaction -- all because Safari doesn't trust me to know what I want to type in).
    The HTML code from newegg.com which is doing this: <input name="zipcode1" type="text" size="4" maxlength="5" value=""> So it's nothing in particular about the form coding that I can tell -- it looks like Safari is just assuming that because I'm typing in a number, I can't possibly want it to start with a zero. Which is just ridiculous in a large number of contexts.
    Any way to turn this off? It is really getting irritating, and it's the sort of "application knowing what I want to do better than I do" idiocy which I think of being exclusively in the domain of Microsoft products. Which ironically don't seem to have this problem!
    NOTE: I am not using an Autofill zip code. I am just trying to enter it in manually.

    I can confirm this bug (isn't it irritating?). One solution is to use another browser; I've never had this problem in Firefox. Another would be to turn off AutoFill; even though you're not using an AutoFill entry, AutoFill seems to have this unfortunate effect on leading zeros entered manually.
    Next time you run across a page that won't take your zip code, click on Safari/Report bugs to Apple and send a bug report. Maybe if enough of us on the East Coast complain, someone will fix it.

  • Selecting code bug/wishlist (for FlexBuilder 3 Dev team)

    When i try to select a word in the mxml code by double click
    on it, sometimes can't select the hole word. I'm talking about
    spanish words in a string or a comment line. by example this string
    below (paste it in flexbuilder 3 and try to select the
    "modificación" word by double click on it... i will be
    selected only before the "ó" character):
    I hope that can be fixed in the final release of Flex
    Builder

    Hi mxmotion!
    Please log this bug in the public Flex bugbase at
    http://bugs.adobe.com/flex/
    Thanks!
    Mac

  • Is it SharePoint 2010 Code Bug - breakRoleInheritance ?

    Hi all,
    I am writing this question to discuss following issue:
    Initial Requirement        :              
    we provided a custom sub site definition with feature which break permissions at site level and new user groups are created to manage permission for this sub site and various lists under this sub site.
    4 different type of lists were provided with custom permission as per requirement.
    Code used                          :              
    web.BreakRoleInheritance(false,
    true)   
    à to break the permission
    New Requirement          :               some more new lists to be created.
    Solution Proposed          :               OOB
    Issue                                    
    when a new list is created using OOB under this sub site, permissions are shown already break in ribbon menu while all user groups are copied from root site (not from sub site).
    If however we click on inherit permission on the new list, root site crash, all user groups become unavailable.
    Similar issue found online:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/2a3525e1-5852-41e1-8815-7e772d23b306/site-collection-unavailable-after-inheriting-permissions-in-a-slist-in-a-subsite?forum=sharepointadminprevious
    Solution
    OOB
    Inherit permissions at sub site level
    Stop inheriting permission at sub site level
    Remove all not required users/groups
    è
    Now OOB new list creation will work as it should in normal scenario, i.e. permission will be inherited from sub site level.
    Code change
    web.BreakRoleInheritance(false)
    à
    will also serve the purpose and issue will be avoided
    Query
    whether this behavior is known and not an exceptional one.
    What will be the RCA called as, coding issue ?
    After a decent analysis, It looks like it’s a bug in the product and not a coding issue.
    RCA:
    As we have tried all the scenarios, we saw that bug exists only when the value of
    clearSubscopes (second parameter) is true. But according to the Microsoft:
    “If the securable object is a site, and the clearsubscopes parameter is true, the role assignments
    for all child securable objects in the current site and in the sites which inherit role assignments from the current site must be cleared and those securable objects will inherit role assignments from the current site after this call.”
    SP.SecurableObject.breakRoleInheritance(copyRoleAssignments, clearSubscopes) output:
    1st Parameter
    2nd Parameter
    site groups
    site permission
    new list groups
    new list permissions
    Bug
    TRUE
    TRUE
    copied
    break
    copied
    Break
    Yes
    TRUE
    FALSE
    copied
    break
    copied
    Inherit
    No
    FALSE
    TRUE
    clear
    break
    copied
    Break
    Yes
    FALSE
    FALSE
    clear
    break
    clear
    Inherit
    No
    SP.SecurableObject.breakRoleInheritance(copyRoleAssignments) output :
    1st Parameter
    2nd Parameter
    site groups
    site permission
    new list groups
    new list permissions
    Bug
    TRUE
    NA
    copied
    break
    copied
    Inherit
    No
    FALSE
    NA
    clear
    break
    clear
    inherit
    No

    From the errors you got, it is obvoius that you are using a JDBC-ODBC driver. Right? Now, these types of drivers have a lot of limitations, like - you should get the data in the same order as the columns in the result set, etc. The use of cursors may also be one of its limitations since it is a more complex operation than obtaining results set data. What I can suggest to you is to use a Type 4 JDBC driver for your application and read its capabilities and limitations.
    You can get a list of drivers for your DBMS at http://industry.java.sun.com/products/jdbc/drivers. And better yet, download the Oracle JDBC driver
    Hope this helps

  • Cairngorm 3 Navigation: FirstEnter bug?

    Not sure if this is a bug or not but the FirstEnter function does not get fired on the first item of a ViewStack. I have fought this "feature" of ViewStacks a lot so I totally understand. The other bummer is that if you leave the first ViewStack index and return to it, it fires the FirstEnter. Setting the VS creationPolicy to ALL certainly helps but causes a lot of other chaos and, of course, is less than ideal anyway.

    That shouldn't be the case and if it is, it's a bug. The Navigation library is supposed to invoke a FirstEnter on Landmarks at the default selection of views. i.e. it'll ask of the selectedIndex at start-up and fallsback to 0 if it cannot retrieve it. I couldn't reproduce this in my examples but could you send me or post here an isolated example that showcases your problem?

  • Possible code bug causing crash on Wine/Linux

    As I am running Linux, I don't expect support as such but thought I would offer a possible contribution to the beta program as follows:
    When starting Safari under Wine (an implementation of the Win32 API) on Linux, I get the following debug message:
    DIB_GetBitmapInfo (44): unknown/wrong size for header
    What I understand this to mean is that the Windows function GetBitmapInfo is being passed a dodgy parameter.
    This is followed by a crash for me, but I guess on Windows, is quietly ignored.
    I have seen a report on CodeProject regarding an identical crash caused by a coder setting the biSize member of the bmiHeader (BITMAPHEADERINFO) element of a BITMAPINFO structure to the incorrect size. In the example given, it had been set to sizeof(BITMAPINFO) rather than sizeof(BITMAPINFOHEADER)
    e.g.
    bmpInfo.bmiHeader.biSize = sizeof (BITMAPINFO);
    instead of
    bmpInfo.bmiHeader.biSize = sizeof (BITMAPINFOHEADER);
    For any devs. interested as to whether there may be a bug, the call stack generated by Wine, showing the offsets from the base address of coregraphics.dll (loaded at 0x6b000000) is as follows, with the crash actaully occurring at '=> 1'
    Backtrace:
    =>1 0x6b262e97 in coregraphics (+0x262e97) (0x0033ed38)
    2 0x6b0f9da4 in coregraphics (+0xf9da4) (0x0033f31c)
    3 0x6b1e0fff in coregraphics (+0x1e0fff) (0x0033f4bc)
    4 0x6b1d19ee in coregraphics (+0x1d19ee) (0x0033f578)
    As I say, I'm not expecting any feedback on this - I'm just being neighbourly I also fully accept that I may be completely wrong in my assessment of the issue.
    Dell Inspiron   Other OS  

    There was an even earlier build than the two mentioned.
    Talk about "early revisions" I guess so, and it doesn't look like there will be a unified version tomorrow.
    I recall AYM had a note about video performance and in that instance, the build on the DVD was never than what was on the hard drive and within a week or so disk drives carried the "new, improved" video on disk as well.
    There may be other changes that go hand-in-hand other than build, too. Did they look at the Boot ROM and SMC Version of the systems?
    Boot ROM Version: MP11.005C.B00
    SMC Version: 1.7f6

  • Recordset Navigation in Dreamweaver8

    Dreamweaver8 has changed the way recordsets are created from
    the ADODB.Recordset method to the ADODB.Command method. This seems
    by default to create a recordset with a forward only moving cursor.
    I would like to be able to move backwards and forwards in the
    recordset serverside as necessary. Does anybody know if there is an
    easy way to do this other than creating the recordset by hand
    coding?
    Pete

    I haven't been brave enough to update to 8.0.2 yet, but I
    think the new
    recordsets use the command object and code like:
    Set MM_Cmd = Server.CreateObject("ADODB.Command")
    MM_Cmd.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;
    Data Source= "
    & Server.MapPath("/test/db/CharonCart3.mdb")
    MM_Cmd.CommandText = "select * from Products"
    set RS=MM_Cmd.Execute
    So, instead of creating the recordset:
    set RS=MM_Cmd.Execute
    one could have
    Set RS = Server.CreateObject("ADODB.Recordset")
    RS.CursorType = 0
    RS.CursorLocation = 2
    RS.LockType = 1
    RS.Open MM_Cmd
    Jules
    http://www.charon.co.uk/charoncart
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004

  • How to save recordset by code

    Hi
    i want to save my recordset by php code in any format sql or
    xml
    can this done by iterating through the recordset and add
    every one or what ?
    thanks in advance.

    Hi Adele,
    Thanks ,I have got the email.
    and my version is 'SAP Business One 2004.2 B (7.30.224)  SP: 00  PL: 30'
    this is my code that have writed before.
    Public Sub AddUDO()
        Dim oUserObjectMD As SAPbobsCOM.UserObjectsMD
        Set oUserObjectMD = SBO_Company_DI.GetBusinessObject(oUserObjectsMD)
        oUserObjectMD.CanCancel = SAPbobsCOM.BoYesNoEnum.tYES
        oUserObjectMD.CanClose = SAPbobsCOM.BoYesNoEnum.tYES
        oUserObjectMD.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tYES
        oUserObjectMD.CanDelete = SAPbobsCOM.BoYesNoEnum.tYES
        oUserObjectMD.CanFind = SAPbobsCOM.BoYesNoEnum.tYES
        oUserObjectMD.CanLog = tNO
        oUserObjectMD.CanYearTransfer = tYES
        oUserObjectMD.ManageSeries = tYES
        oUserObjectMD.ChildTables.TableName = "APS1"
        oUserObjectMD.Code = "OAPS"
        oUserObjectMD.ManageSeries = tYES
        oUserObjectMD.Name = "OAPS"
        oUserObjectMD.ObjectType = SAPbobsCOM.BoUDOObjType.boud_Document
        oUserObjectMD.TableName = "OAPS"
        oUserObjectMD.FormColumns.FormColumnAlias = "Code"
        oUserObjectMD.FormColumns.FormColumnDescription = "Code"
        '&#23376;UDO
        lRetCode = oUserObjectMD.Add()
            '// check for errors in the process
        If lRetCode <> 0 Then
                SBO_Company_DI.GetLastError lRetCode, sErrMsg
                SBO_Application.StatusBar.SetText sErrMsg, bmt_Short, smt_Error
        Else
                SBO_Application.StatusBar.SetText "success", bmt_Short, smt_Success
        End If
        Set oUserObjectMD = Nothing
    End Sub
    and the error message is 'N' ,It's very stange.
    but why I can't find it in Tools -> User-defined-object -> default form ?
    anyway ,thanks a lot !
    Message was edited by: wei wang

Maybe you are looking for

  • How to connect MBP to Philips HD ready TV with DVI-I

    I've managed to connect my Macbook Pro (bought Jan 2013) to my Philips HD ready TV (model number 37PF5520D/10) with the following cables:- 1) Cables 4 ALL Supreme 2M DVI-I Cable / Dual Link 24+5 Pins / Gold Plated / HDTV 2) Apple Mini DisplayPort to

  • 2.1 iPhone Calendar does not sync with iCal

    iPhone 3G 2.1, MacbookPro Leopard 10.5.5, iTunes 8.0 all upgraded this week. Now, entries that I make from the iPhone will not sync to the iCal, however, entries from iCal syncs to the iPhone just fine. I tried restoring to stock Apple's 2.1 ipsw but

  • Cannot get Itunes 10 to download to macbook 10.6.8

    I cannot get Itunes 10 to download on my macbook 10.6.8. when I check for updates via itunes it tells me that there is a new version and when I go to download it my computer tells me all software is up to date. I cannot sync my iphone or ipad

  • Minimum resources for Oracle Application Express

    Hi, I'm new to the forum, and a bit confuse here trying to find an answer to what supposedly is a simple question: What kind of resources do I have to have to develop and deploy screens with Oracle Application Express? The scenario: I have this Oracl

  • EEWB - only extended in customer_h?

    Hi,   Just out of curiosity, can I extend the new field in opportunity_h, instead of customer_h table? When I use the wizard to create it, in the Business Transaction Types selection step, I ticked the "CRM Opportunity", but when completed the wizard