Finding # of item from recordset

Hi , just say I have a query that goes "SELECT item_name FROM
products WHERE products.drink = 'juice'" . If I get back 12 results
from this query I can make a list from a repeat region, that is
fine . If I click on one of these list items I want to go to a
detail page, again I can do this no probs. How do I carry over to
the detail page the number that the item appeared in the original
list, for example if a result was "orange" and it was the 5th one
in the list, how do I carry over the number 5 to the detail
page?

I would think the *easiest* way to go about this is to append
an additional URL variable to the link. When someone clicks on the
item name in the repeat region to go to the detail page, I imagine
that the URL looks something like this (structurally anyway!) based
on the SQL sample you gave above:
http://www.mywebsite.com/prodDetails.cfm?item_name=apple
In the repeat region, you could append another URL variable
that indicates the item's list number.
http://www.mywebsite.com/prodDetails.cfm?item_name=apple&list_num=3
How to do this, however, depends on what server-side language
you are using. ColdFusion, ASP, PHP, and JSP all work slightly
differently in this regard. If you can provide a little more about
the server-side language you're using, I could help you with
setting this output in the repeat region...well, for CFML, ASP and
PHP anyway (don't know much about JSP).
Cheers,
Craig

Similar Messages

  • Finder opens items from download stack in the background

    Hi,
    I download all my files to the standard download folder in the home directory. The problem is the following: If the application, which is currently active is NOT finder and I click on the download stack in the dock, select an item which will typically be handled by the finder (DMGs, Zips etc.), the finder window opens BEHIND the current active application. Normally I would expect that finder window would go into the foreground since I decided to access an item handled by the finder. It does not matter what application is in the foreground (Safari, Mail etc, all the same outcome).
    BUT: When the file I choose which is not handled by the finder, I get the behaviour I expected from the start. For Example: I have Safari active, open the download folder from the dock and click on, lets say, a pdf-file. The Preview application handling that file will open in the foreground and become the active application. Just the way I want it.
    I am pretty sure that this problem is not related to my setup. I could reproduce the problem on my Mac Mini and on 2 Macs in my company (all running Snow Leopard 6.2).

    For what it's worth, it seems like I've got the same issue with a bunch of Epson folders. This has come after using the install disc for an Epson printer - now, when I turn on the computer, there are 4-5 other Finder windows open, each pointing to one of the Epson applications. Like you, I can't find these in my Startup Items list.
    I just started looking around for solutions - will let you know if I find anything.
    Or did you find a solution? (At the moment somehow deleting plists seems like the right idea, but I want to find out more before I do that.)

  • How to find open item from sales order

    Hi all,
      my requirement is one sales order is there partial delivery is happened for some materials,take exampla matarial X has 100 quantity in sales order pratial delivery 50 is done, iwant to know the open order qunatity for a  material X from sales order.
    regards,
    kishore.

    hi kishore,
    in the partial delivery scenario, the sales order items always be a open.
    you can see the document flow of that document by using Tcode : VA03 then click on'update document flow' icon. then system will show the status.
    i.e  sales order is 'being processed'
      outbound delivery is completed
    billing document is completed
    and accounting document in not cleared.
    if it is helpful, then give me the points.
    Regards,
    somu.

  • I want to buy a photoshop that will move trees or remove trees etc in landscape photos, add an item from another photo etc

    I have not used any photoshop except years ago.  I am completely lacking in information.  If  I want to fix reference photos to look like I want them to look by removing aspects, like a tree, rock etc or move them within the photo, what do I need to buy?  also finding an item from one photo that I would like to add to another, such as a person, again which version must I buy.
    I do not want to do the Cloud thing which is costly, I want the least expensive means to have these tools.
    cheers!

    Wrong forum, but Photoshop Elements will do what you want.

  • I scanned an item from my computer to my documents and it said then scan was complete. However, when I searched my documents the Item was not there. Where can I find the item?

    I scanned an Item from my computer to my documents. The scan was completed.  However, when I searched in my documents, the Item was not there.
    Where can I find the item scanned?

    Most scanners default to Pictures folder or the Desktop.
    If you select All My Files and Arrange by Date Added you should be able to find the file.
    If you turn on Show Path bar and Show Status bar for your Finder Window under View in the Menu bar, when you select the file you will see the path of the file in the bottom of the Finder window.

  • Removing Item from Finder Menu

    How do I remove an item from the Finder Menu? I have the clock, airport-thingy, and power info. There is also a character palette item. displayed as an american flag. How do I remove the character palette item from the menu?

    Hi
    Hold down the cmd key and drag it off. This should
    work for most menubar icons.
    Matt
    Thank you very much! That did the trick. There is a lot I don't know. I'm glad there are people like you out there.

  • PowerShell script to find and remove duplicate items from document library

    Hi Friends,
    Please check this below script, It is finding the duplicate items and removing it. This script is not working to find the duplicate items from document
    library and remove. Can you please let me know where it is wrong.
    Add-PSSnapin microsoft.sharepoint.powershell 
    $web = Get-SPWeb -Identity "http://zapltvsspdev02:4333/bu/EXCO" 
    $list = $web.Lists["AECI Documents"] 
    $AllDuplicates = $list.Items.GetDataTable() | Group-Object INumber | where {$_.count -gt 1} 
    $count = 1 
    $max = $AllDuplicates.Count 
    foreach($duplicate in $AllDuplicates) 
    $duplicate.group | Select-Object -Skip 1 | % {$list.GetItemById($_.ID).Delete()} 
    Write-Progress -PercentComplete ($count / $max * 100) -Activity "$count duplicates removed" -Status "In Progress" 
    $count++ 
    Remove-PsSnapin Microsoft.SharePoint.PowerShell
    Note:
    In the above code, duplicates are found using the "INumber" column. 
    valmiki

    check this
    http://stackoverflow.com/questions/21337158/delete-duplicate-items-in-sharepoint-list

  • Copy alphabetically sorted items from Finder yet pastes them UNSORTED!!!

    This is weird, but if I copy some items from the Finder in list or column view (they show alphabetically sorted), they paste UNSORTED on Eudora or Word 2004, for instance. How to fix it, so that they are pasted also alphabetically sorted (A to Z)? Thanks.

    ApMaX wrote:
    Edit - Paste and match style, because if I select just Edit - Paste, then the file icons instead of the file names is what is pasted
    I used the helpful hint from above "convert to flat text (shift-command-T)"

  • Lost unknown item from Finder sidebar

    Hi,
    I just accidentally deleted an item from the Finder sidebar, under the "Devices" section. I don't know what it was but I think it may be important. Is there any way to find out?
    Thanks,
    Bruce

    Hi.
    Don't fret too much about it.  The Finder Sidebar is just one way to access items on your Mac.  Items can be added and removed from the sidebar all day, but they still reside on your hard drive.
    To see how it works in 10.8 (not sure about 10.6)  select an item, a file on your desktop for example and press ⌘T. The item should now display on the sidebar.
    To remove a sidebar item, press ⌘ while you drag the item from the sidebar and it will disappear in a puff of smoke.
    Fun, huh?   
    I hope this is helpful.
    EDIT - See this Apple link.

  • Error running maverick upgrade: You need 4.93 GB of available space to download OS X Mavericks. Remove items from your startup disk to increase available space. where do i find the startup disc?

    MAC Pro, error:You need 4.93 GB of available space to download OS X Mavericks. Remove items from your startup disk to increase available space.
    Where do I locate the startup disc?

    The startup disk is your hard drive, where you store all your programs and data. Probably named Mac HD in Finder. Read this:
    https://discussions.apple.com/message/24370185#24370185

  • Using OS X 10.6.8 on my IMac, I find that items on my message list no longer "fade" from dark to light when I click on them. I recently switched the font from Arial to Helvetica to permit me to select italics for any word. I am composing in rich text.

    Using OS X 10.6.8 on my IMac, I find that items on my message list no longer "fade" from dark to light when I click on them. I recently switched the font from Arial to Helvetica to permit me to select italics for any word. I am composing in rich text.

    Not sure why it would default to IMAP?  But any how, start the account anew, fill in the first page of info, but before clicking on the Create button, hold down the Option key until the Create button changes to read Continue.  Click continue, and proceed in a more manual process during which you can set the account type as POP.
    Ernie

  • HT3275 How do I find/restore files from items in secure home folder? How do I find/restore files that crashed when in finder of secure (File Vault) home folder?

    How do I find/restore files from items in secure (File Vault) home folder? How do I find/restore files that crashed when in finder of secure (File Vault) home folder?  When I go into Time Machine, I see earlier dates but can't see files in my User File. I have File Vault turned on and see my home folder as a sparsebundle.  Do I neede to restore this in order to see files in my home folder.  When I click on it to restore it gives me an estimated time of over 2 hours.  Also tried to restore an Excel file I was working on when computer hung, so lost it without saving or naming it.  Does it exist anyplace and can I restore it?

    Thanks. I had pretty much figured out from other posts that I had better turn off File Vault for my home folder and use a disk utility sparse bundel for little information I wanted to secure. The information about File Vault 2 in Lion was new and useful though.

  • How to find open line items from the BSID table

    Hello Guru's
    I need some fever from you......... please any one tell me that How to find the open line items from the BSID table .
    please replay ASAP..
    Regards,
    Raghunath.S

    Hi Raghunath
    BSID and BSAD are Secondary Index tables for Customer line items. All customer open items are stored in BSID table and Cleared items are stored in BSAD table.
    Regards,
    Venkat

  • Populate list from recordset on Parent/Child form

    We have a parent/child form and want to populate several lists from recordsets. We can populate the child canvas by calling a procedure from the WHEN NEW FORM INSTANCE trigger but the same code fails when trying to populate a list on the Parent canvas. If I move the code to a PRE-BLOCK trigger on the parent block, then it works. I just kept moving the code until I found something that works. Can anyone tell me why it wouldn't work from the WHEN NEW FORM INSTANCE trigger? Is PRE-BLOCK the correct place?

    WHEN-NEW-FORM-INSTANCE trigger
    Add_Orgs_Lists('HR_PERSONS.OFFICE_SYMBOL');
    PROGRAM UNIT
    PROCEDURE Add_Orgs_Lists (list_name VARCHAR2) is list_id ITEM;
         col_name VARCHAR2(80) := SUBSTR(list_name, INSTR(list_name, '.')+1);
         sql_stat VARCHAR2(2000);
         BEGIN
         --Find ID for list item.
              list_id := FIND_ITEM(list_name);
              IF ID_NULL(list_ID) THEN
                   MESSAGE('List Item ' ||list_name|| ' does not exist.');
                   RAISE FORM_TRIGGER_FAILURE;
              END IF;
         --Build the SQL statement.
         --     message('In Get_Org');
         sql_stat := 'SELECT Distinct Org_Name, Org_Name FROM HR_Organizations
         ORDER BY 1 ASC';
         Populate_the_List(list_id, sql_stat);
              EXCEPTION
                   WHEN OTHERS THEN
                        MESSAGE('Internal error occurred in Add_Orgs_List.');
                        RAISE FORM_TRIGGER_FAILURE;
    END Add_Orgs_Lists;
    PROCEDURE Populate_the_List (list_id ITEM,
                                                           sql_stat VARCHAR2) is
         group_id RecordGroup;
         outcome NUMBER;
         --List_Elements  VARCHAR2(40);
    BEGIN
              --message('In Populate_the...');     
    --Create temporary record group.
    group_id := CREATE_GROUP_FROM_QUERY('List_Elements', sql_stat);
    IF ID_NULL(group_id) THEN
         MESSAGE('Record Group could not be created in Populate_the_List.');
         RAISE FORM_TRIGGER_FAILURE;
    END IF;
    --Populate record group.
         outcome := POPULATE_GROUP(group_id);
         IF outcome <> 0 THEN
              MESSAGE('Record Group could not be populated in Populate_the_List.');
              RAISE FORM_TRIGGER_FAILURE;
         END IF;
    --Populate list item
         POPULATE_LIST(list_id, group_id);
    --Destroy the temporary record group to release resources
         DELETE_GROUP(group_id);
    EXCEPTION
         WHEN OTHERS THEN
         MESSAGE('Internal error occured in Popluate_the_List.');
         RAISE FORM_TRIGGER_FAILURE;
    END Populate_the_List;
    The error is FRM-41337 Cannot populate the list from record group. It happens when we open the form. We are using the same code to populate the lists on the child form (except the SQL statement is different) and it works correctly.
    I appreciate your help.

  • How can we remove items from the VF04 list?

    We have a long list of items in VF04 that, for various reasons (some process related, some due to errors), are not to be billed. We have looked at applying filters to the list but there is nothing really suitable to hide these individual documents e.g. we could filter out some dates where none of the items on that date are to be billed but other dates have a mix of items we want to bill and others we don't.
    I have done a search of this forum but didn't find a previous topic with a quick and simple method to remove items from the list .
    Is there a method, other than billing them or sorting each issue individually, to permanently remove individual documents from the VF04 list?
    Thanks in advance for any help.
    David

    Hi,
    David,
    Download a list of Pending delivers doc form VF04.
    Paste the list in T.Code : VL09 (Delivery reversal) and reverse the delivery.
    Then go to T.Code: VL06G Select the list of deliveries that has been reversed, select/delete all un- wanted deliveries.
    This way you can remove all unwanted pending deliveries forn Billing due list (VF04).
    Thanks & Regards,
    R.Janakiraman

Maybe you are looking for

  • How to get the last data point from a TDM file in LabVIEW?

    Hello, I am using LabVIEW to analyze some rather large TDM files, and I need a way to get only the last data point.  So far, the only way I have been able to accomplish this is by reading the entire file.  Is there a property in the TDM file or a fun

  • Macbookpro imessage contact names not listing - just numbers

    Hi there, I'm starting a new thread about this because everything I have read through has confused me. I just had a new hard-drive installed on my Macbook Pro (mid 2009) and Mavericks installed. All is great, BUT I can't get names to show up on my iM

  • IPhone 4S iOS8.1.1 error message when connecting to WhatsApp/Facebook/etc.

    Hello I have seen similar messages but for earlier versions of iOS. It is really annoying to receive the following error message: Connect to iTunes to use notifications Push. I do not dare to "reinstall" my iPhone so is there a solution to this probl

  • Downloading Oracle XE blues

    I have tried 4 times on 3 different days to download Oracle Xe and everytime I get "Sorry! In order to download products from Oracle Technology Network, you must agree to the OTN license terms. " I have checked both Agree boxes, but with the same res

  • Dataservice local AIR cache - User SQLite Query Possible??

    Hi All Does anyone know if it is possible to query against offline cachid database (created by dataservices 2.6.1 and AIR 1.5.x) So, for example I need to do something like: SELECT * from STOCKTABLE WHERE STOCKTABE.NAME LIKE %myproductname% The main