Recordset paging question

I need to display many records, and I will acheive this by using the recordset paging features, but I have content above my list that I only want visible on the first page. Is there a way to remove the surplus content on subsequent pages? If so, how?
Thanks.

Test the recordset paging value in the querystring. If it's above the range of the first page, branch around the code you don't want to execute. Include a sample of your page code if you need more specific details.

Similar Messages

  • After Creating a RecordSet using Wizard, Unable to Create RecordSet Paging - Error Occurs

    I created a record set using the wizard and it tested just fine using the test button.  So my next step was to create the "RecordSet Paging" "Move to First Record", whe I select this I get the error "Before using this Server Behavior, please create a record set"
    The record set is there, it is even checked off in the binding list as being there, yet I can not do anything, I even went in and deleted it and tried again with the same result, this is getting very annoying and is causing me a lot of extra work.
    Is this a BUG!!!
    I have seen this issue several times now.
    Running Version 11.0 build 4993
    Signed
    Frustrated!!!!!

    Hi,
    For questions regarding dynamic site development,  hop over to the following forum.  You'll get better answers there.
    Dreamweaver Application Development Forum
    http://forums.adobe.com/community/dreamweaver/dreamweaver_development?view=discussions
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Recordset paging without refresh

    Hi i have some recordset paging halfway down my page and when
    i click next prev the page refreshs and it goes to the top of the
    page which is annoying as you have to scroll down again to see the
    next set of records.
    I tried using anchors to get the page to stay where the
    paging is but i get a undynamic looking flash as it corrects
    itself.
    Is there a way to solve this?

    Hi i have some recordset paging halfway down my page and when
    i click next prev the page refreshs and it goes to the top of the
    page which is annoying as you have to scroll down again to see the
    next set of records.
    I tried using anchors to get the page to stay where the
    paging is but i get a undynamic looking flash as it corrects
    itself.
    Is there a way to solve this?

  • Spry Tabbed Panel Defaults to home page with recordset paging

    I have Spry ver. 1.6.1.  A Spry Tabbed Panel titled "Check Ride Activity Report" (Tab 6)  accesses a mysql database and shows the records in a table format.  Instead of having all the records display at once I want to limit the records displayed to a few at a time. e.g. 5 per page.   I added a recordset navigation bar and set the $maxRows_GetChkRideRecs = 5;  It works but each time the navigation bar "Next" or "Last" or "First" or "Previous" is clicked the page reloads with the default Home page Tab displayed.  The user then has to click on Tab 6  to view the new results.  The url where this can be viewed is at http://Training.reliantair.com.  Is there a way to code this tab so that Tab 6 remains the default tab once it is selected until the user selects another tab?
    I want to avoid putting another  button on the page to accomplish this as shown in the spry utils samples where the user clicks to set the default tab.
    Can this be done within the recordset paging code similar to how it is done on a form submit to keep the focus on the current tab?

    I didn't try the cookie method suggested.  The tab method listed in spry utils does work but requires an additional button, so I came up with this solution.
    In the Head of the HTML document I put this code.  It searches for the query string in the HREF when any of the record paging buttons is pressed.
    <script type="text/javascript" src="SpryURLUtils.js"></script>
    <script type="text/javascript">
    var params = Spry.Utils.getLocationParamsAsObject();
    if (location.href.indexOf("GetChkRideRecs") != -1  && location.href.indexOf("tab") == -1)
      location.href +="&tab=5#TabbedPanels1"; 
    </script>
    Then in the body of the HTML document at the bottom of the page  the tabbed panel widget is changed like this:
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1",{defaultTab: (params.tab ? params.tab:0)});
    The first time a recordset paging link is  clicked the HREF attribute of &tab=5#TabbedPanels1 is added to the location HREF.  Subsequent clicks of any of the links do not change the HREF because the code looks for "tab" and does nothing if it is found.

  • Ampersands not being encoded in recordset paging

    Trying to validate a page and it appears that the ampersands
    are not being encoded, thus not validating the page. When I create
    a link and use parameters the ampersands get encoded correctly, its
    just the next/previous links that don't appear to get encoded. Any
    ideas how to overcome this? The links in Dreamweaver are just
    variables, and I could try to replace the & in the function
    that creates them with &Amp; but I would have to do this
    everytime I used recordset paging.
    Steve

    I used the wrong syntax for the URLEncode, here is what made
    it work:
    <%
    MM_moveFirst = Server.URLEncode(MM_moveFirst)
    MM_moveLast = Server.URLEncode(MM_moveLast)
    MM_moveNext = Server.URLEncode(MM_moveNext)
    MM_movePrev = Server.URLEncode(MM_movePrev)
    %>
    Once I had sorted these I had to also sort all the other
    ones, and am still struggling to get it to validate, it seems like
    a lot of work, so will leave it for another day.

  • Recordset paging in cs3

    I am trying to use the recordset paging button in dreamweaver it seems to load right
    but when I hit next it says 0-0 zero and is empty even though the first page says there is
    517 items to look at . I am not getting to the second page and beyond for some reason I cant figure out. Is this an issue with cs3 I have cs4 as well but use cs3 on my laptop. I can post the code if need be ...

    Thanks for the helpful info.
    Brandon
    "danilocelic AdobeCommunityExpert"
    <[email protected]> wrote in
    message news:f7ll5h$1u9$[email protected]..
    > Nancy - Adobe Comm. Expert wrote:
    >> The code for
    >>> the recordsets created with CS3 appears to be
    different. Why would the
    >>> new code "break" my setup (it's not recognizing
    any sorts)?
    >>
    >>
    >> Recordset code was not updated in CS3, but rather in
    8.02 to deter SQL
    >> injection attacks. Quickly remake the recordset with
    the new version and
    >> you should be good to go.
    >
    > Nancy,
    >
    > Unfortunately, what the OP is asking for isn't possible
    with the "new
    > version" of recordset, as it assumes that all parameters
    within the SQL
    > are column value parameters, and dynamic SQL generation
    is no longer
    > supported. This has caused a number of folks )including
    Tom Muck quite
    > vociferously) to complain about the lack of versatility
    of the new
    > recordset code.
    >
    >
    >
    > Brandon, What you'll need to do is to hand edit the
    recordset after you've
    > applied it to the page. I've not tried this particular
    use case recently,
    > but it is possible that after editing that DW will no
    longer recognize
    > that the recordset is on the page.
    >
    > FWIW: You should never directly use a querystring
    parameter in your code,
    > you should always "clean" it first. IIRC The old style
    of recordsets did a
    > replace on the value replacing all single quotes with
    doubled single
    > quotes. A better way may be to have some code that
    checks for the value of
    > the querystring parameter and if it matches one of your
    column you can
    > sort on, then use a string of your own making to use
    within the SQL.
    >
    >
    > --
    > Danilo Celic
    > | Extending Knowledge Daily :
    http://CommunityMX.com/
    > | Adobe Community Expert

  • Recordset paging with two db in a single page

    I have two table to be show in a page, I can create a
    recordset paging for a table(A), but when i try create another
    recordset paging for other table(B) it changes all my other
    behaviors for my table(A). so is there any help for this?

    Create the rs for table A on one page, then create the rs for
    table B on another page, then go to the code for table B and copy
    it from the second page and paste it into the first page with table
    A.
    Have you got a connection string for both db's? If you have
    two db's, then you should have two connection strings at the top of
    the page after the first line of code.
    I have a site with three db's on a couple of pages!
    Mat

  • Recordset grouping question

    I have a recordset that looks like the following:
    Gender City Country
    Male New York USA
    Male New York USA
    Female Boston USA
    Female Quebec CAN
    Female Quebec CAN
    I'm trying to output counts of all this data so that the
    output should look like:
    Male 2
    Female 3
    New York 2
    Boston 1
    Quebec 2
    USA 3
    CAN 2
    Can anyone show me the best/most efficient way of doing this?
    Also the query pulls 3 or 4 additional columns that I need counts
    on if that makes a difference.
    Many thanks in advance!

    EDIT: Figured it out, thanks again Dan! /EDIT
    Thanks Dan. That helps a ton for queries with known finite
    column values. I use the following to get recordcounts of male vs.
    female:
    <cfquery name="masterquery" datasource="#dsn#">
    select * from demographics
    </cfquery>
    <cfquery name="allMales" dbtype="query">
    select * from masterquerywhere gender = 'Male'
    </cfquery>
    <cfquery name="allFemales" dbtype="query">
    select * from masterquerywhere gender = 'Female'
    </cfquery>
    Female:
    <cfoutput>#allFemales.recordcount#</cfoutput>
    Male: <cfoutput>#allMales.recordcount#</cfoutput>
    This returns just what I need it to. My followup question is
    how to do this on a column like City which may contain hundreds of
    different values? In the male / female example, it's no problem to
    create 2 query of queries. However, I couldn't possibly write a
    seperate query for every possible city.
    I know there has to be some looping here but I'm just not
    sure how to do this. Any thoughts?
    Again many thanks in advance!
    Incidentally, I was dramatically overanalyzing the loop code.
    Turns out it's far simpler than I had thought:
    <cfquery name="demoCityList" dbtype="query">
    select distinct (city) from GetFullDemographicInfo
    </cfquery>
    <cfloop index="i" from="1"
    to="#demoRegionList.recordcount#">
    <cfquery name="demoRegionTotal" dbtype="query">
    select count(city) as cityTotal from GetFullDemographicInfo
    where city = '#demoRegionList.city
    </cfquery>
    <cfoutput>#demoRegionList.city#</cfoutput>
    <cfoutput>#demoRegionTotal.cityTotal#</cfoutput><br/>
    </cfloop>

  • FCC  Recordset structure question.

    Hi,
    I have completed the config for scenarion File>XI>IDOC(R/3)
    After activating the File comm channel, the message coming out of XI (in sxmb_moni) has the following error
    'Parsing an empty source. Root element expected'
    I want to know:
    1> Does the Recordset-structure field names (defined in .fieldNames) need to match exactly with the Data_type structure defined in IR. Currently my Data_type in IR does not have a key field, which I have introduced in the FCC keyField parameter.
    2>I have generated all my ID config by importing 'Integration Scenario' from IR and this has resulted in Automatic Creation of HTTP, RFC, IDOC,XI Receiver channels. ( GeneratedReceiverChannel_HTTP, GeneratedReceiverChannel_RFC, GeneratedReceiverChannel_IDOC, GeneratedReceiverChannel_XI ). Do I require all of these to be active?
    Thanks and Regards
    Shirin

    HI
    FCC Paremeters:
    nameA.fieldSeparator =~
    nameA.endSeparator ='nl'
    nameA.fieldNames =text1,text2,text3,text4
    nameA.processFieldNames fromConfiguration
    nameA.lastFieldsOptional Yes
    nameA.missingLastFields Add
    nameA.additionalLastFields ignore
    ignoreRecordsetName: true
    if endSeparator = newline, then
    nameA.endSeparator = 'nl'
    nameA.fieldSeparator =~
    nameA.fieldNames = field1,field2,field3,field4
    if endSeparator = #, then
    nameA.endSeparator = #
    nameA.fieldSeparator =~
    nameA.fieldNames = field1,field2,field3,field4
    1.     NameA.missingLastfields
    If the inbound structure has less fields than specified in the configuration then the XML outbound structure is created as follows:
    ○ ignore
    Outbound structure only contains the fields in the inbound structure
    ○ add
    Outbound structure contains all fields from the configuration; the fields missing in the inbound structure are empty.
    ○ error
    Conversion is terminated due to the incomplete inbound structure. An error message is displayed.
    2. NameA.additionalLastFields
    If the inbound structure has more fields than specified in the configuration then the XML outbound structure is created as follows:
    ○ ignore
    Outbound structure only contains the fields in the inbound structure
    ○ error
    Conversion is terminated due to the incomplete inbound structure. An error message is displayed.
    The default value is ignore. If you have defined the NameA.fieldFixedLengths parameter, the default value is error.
    If you have defined the NameA.fieldFixedLengths parameter and do not set either of the parameters described above, apart from the default values, the conversion routine works the same as described under Handling Structure Deviations.
    Only once you set one of the two parameters will the other parameter be evaluated with its default value.
    To ensure a well-defined runtime behavior for variable inbound structures, we recommend that you always set both parameters.
    cheers

  • Smart paging Question , What happen if i don't enable smart paging and available Memory is about 1GB and the VM need 3GB for Booting ?

    Hi ,
    I configure a dynamic memory With 512 MB for a VM , and available memory 1GB
    what happen when I boot the VM , While it actually need 3GB for booting - Note I don't configure Smart Paging ?
    Thanks.

    You won't be able to boot at all.
    pagefile and dynamic memory only comes into play when you don't have enough memory on the host, to support the 'startup RAM' on the VM, and when the VM does a
    reboot.
    -kn
    Kristian (Virtualization and some coffee: http://kristiannese.blogspot.com )

  • Problems with recordset paging and dynamic menu displaying all the options

    Hi hope someone can help on this - I've posted the code on the FoEd Backend Blight - with no takers/success yet -
    I've created a jobs page using DWCS3 which has a dynamic drop down menu filtering the 'countries' that jobs are located in.  When I introduce a recordset page only those countries associated with the jobs on that particular page are shown in the dynamic menu above, not all of the countries listed in the database. When I get to the second page of results - again - only those jobs' countries are shown in the menu (and not the previous pages/next pages as well).
    I'd clearly like a user to be able to select from the menu of countries available for all the jobs in the database, and not just those on the page.  Any ideas?
    On a similar strain - my country menu/filter is wrapped up in a form above the list of jobs.  On loading the page, only the search and menus appear.  No jobs are shown until I hit submit.  Is there a way to have all the jobs display on first load, and then for the search/menu filter to work on the displayed jobs. I've tried altering the variables on the search to 1 from -1, and other options but I can't seem to get a page of content on first load.
    I'd really appreciate any pointers on the above, as this would help solve the final stage of my project. The full post and code can be seen on the friendsofed website under backend blight.
    Many thanks in advance.
    Matt

    I'm still stuck on getting the page to load with some actual content, however.  I'm just getting the search box and country filter displaying on first load.
    Pages 584-6 explain why you get nothing when a page first loads. Dreamweaver sets the default value to -1. The problem with trying to change the default value even to an empty string or % is that Dreamweaver's security function, GetSQLValueString() changes an empty string to NULL and wraps % in quotes, so neither will work.
    One way to display all records when the page first loads is to create another recordset that selects all records. Wrap the code in a conditional statement that checks whether the $_GET array contains any values:
    if (!$_GET) {
      // recordset to retrieve all records here
    This means that you need two repeat regions to display the results. Wrap both of them in conditional statements:
    if (isset($fullRecordsetName)) {
      // display the full recordset
    } elseif (isset($searchResultsRecordsetName)) {
      // display the search results
    You also need to wrap the mysql_free_result() statements in conditional statements at the end of the page:
    if (isset($fullRecordsetName)) mysql_free_result($fullRecordsetName);
    if (isset($searchResultsRecordsetName)) mysql_free_result($searchResultsRecordsetName);
    Another way to do it is to use just one recordset, but split the SQL query into two sections:
    $query_RecordsetName = "SELECT * FROM myTable";
    if (isset($_GET['searchTerm')) {
    $query_RecordsetName .= sprintf(" WHERE searchTerm LIKE %s",
         GetSQLValueString("%" . $colname_RecordsetName . "%", "text"));
    This uses the combined concatenation operator to add the WHERE clause to the query only if $_GET['searchTerm'] has been set. Notice that you need a space before the "WHERE".

  • Recordset paging trouble

    Hi
    I have a problem with my recordset. Im trying to add
    navigation and that shows up on first page. Ive also added count
    and this counter says its only app 600 records found. Now, I know
    that it has more than 26000 records. In my query it shows all...Why
    wont it show all in counter? The next problem is when I do a query
    it wont show navigation at all. Anyone who has a solution.

    Ive manage to show pagenavigation but all it does is that
    when I press next it goes to first page in the recordset and not
    the next query search results. Anyone??

  • Recordset pageing and unencoded ampersands in URLs

    Hi
    In DW8 the code written by the record set paging object fails w3c validation because of unencoded ampersands in URLs
    ie
    page.php?pageNum_portfolio=1&totalRows_portfolio=52
    rather than
    page.php?pageNum_portfolio=1&amp;totalRows_portfolio=52
    Can anyone advise how I resolve this?
    Has this been fixed in a later release of DW?
    Thanks
    http://www.lamtha2.co.uk/portfolio.php?pageNum_portfolio=1&totalRows_portfolio=52

    Are you using Dreamweaver 8.0.2? If not, get the updater from http://www.adobe.com/support/dreamweaver/downloads_updaters.html#dw8. You will also need to install the PHP extension fix for 8.0.2. Get it from the link in the first paragraph on the following page: http://kb2.adobe.com/cps/000/b6c2ae2a.html.
    I have just compared the code from a site made in DW 8.0.2 with one made in DW CS4. It's identical, and it correctly encodes the ampersand.
    If you're using 8.0.2, and the ampersand is not correctly encoded, it could be the version of PHP you're using. Try the following:
    <?php printf('&'); ?>
    Load that into a browser and view the source. In PHP 5.3, it outputs it as the correct HTML entity.

  • Search Result Recordset Paging

    The standard Dreamweaver Recordset Navigation Bar works well
    with the listing recordset.
    But when I tried to use it with my search result recordset, I
    had the following error message (searchgallery is the name of the
    TextField of my search bar):
    Variable SEARCHGALLERY is undefined.
    The error occurred in
    C:\ColdFusion8\wwwroot\visual_cornucopia\stunninglygorgeous.com\www\gallery.cfm:
    line 90
    88 : SELECT *
    89 : FROM image_img
    90 : WHERE image_img.filename_img LIKE '%#searchgallery#%'
    91 : OR image_img.description_img LIKE '%#searchgallery#%'
    92 : </cfquery>
    Please Help !
    Amanda Nguyen

    This was a problem with POST as soon as I changed it all to
    GET the problem went away. I haven't a clue why this happened. Went
    back a few times and the same thing happened everytime.
    Using POST on other pages in my website no problems.

  • Paging question.

    Hello Gurus,
    We have a Production 2-node RAC system, recently there have been couple crashed. Oracle says that low memory fragmentation is the reason for that. I ran statspack report for the time period just before the crash, from that i found following ...
    Virtual Memory Paging
    ~~~~~~~~~~~~~~~~~~~~~
    KB paged out per sec: 404.9
    KB paged in per sec: 2,396.9
    I know that high Page is some thing positive, but not sure whether to start trouble shotting this ... please advice.
    Thank you,
    Aditya

    To solve a problem you need to know WHAT the problem is. So just what is causing that paging? One or more processes are placing demands on memory that requires the o/s to heavily start swapping memory pages in and out of memory. Why?
    Is this because the SGA is too large to be effectively kept in memory? Is it because of a single Oracle server process running a PL/SQL procedure that abuses memory by attempting to bulk collect a million rows with a single bulk fetch? Is it the Quake Multiplayer server running secretly on the server? ;-)
    As always - solving a problem needs to have an accurate problem description. Paging is a symptom. Not the problem. You now need to find out what the problem is.

Maybe you are looking for

  • Unable to install windows 8 on the mac

    how do I install windows 8 on the Mac I tried but cannot get past windows set up . Where do you want to install windows? I have highlighted Drive 0 Partion 4 and it comes up with this We couldn't creat a new Partion or locate an existing one.

  • SAP renamed 'Purchase Order Data' tabs but it is not changed in menu bar

    In VA01/VA02/VA03  transactions,  SAP has renamed the "Purchase  Order Data" tabs at header and item level to "Order Data" but the Goto > Header   and    Goto > Item    menu paths still have "Purchase Order Data" as the name.  This is inconsistent. 

  • Illustrator CS3 installation troubles...

    Apologies in advance if my explanation seems waffly, this is not a very short story... I'm working on a Dual 2.3GHz PowerPC G5 Mac Pro with 2.5GB DDR2 SDRAM and have been using CS3 Design Standard - specifically Photoshop and Illustrator - quite happ

  • Can't get the plug-ins I download to work

    Can someone help me any of the plug-ins I download for imovie are not in their.

  • Sound Input Balance Control

    I'm looking for a way to balance sound input for making a recording to play on an iPod. One side is slightly louder. Maybe there a is a way to do this with GarageBand. There is probably a software program that can do this, but I'm not sure where to l