Display a record IF

Hello all!
I am trying to display one record at a time from my query of
multiple tables if the username/password entries match the entries
in the DB but am unsuccessful. The sequence starts from a list of
names, where names is hyperlink to the page where the result of the
query is displayed, but before getting to the results page, the
user has to login.
My question is how can I tell the hyperlink to go to this
specific record (ie. contactID = 34 or whatever the user's ID is)
only after entering a valid username/password. I tried
1. from the login.cfm page: if successful, go to
mypage.cfm?#contactID# (OR mypage.cfm?contactID)
2. mypage.cfm?#contactID# and mypage.cfm?contactID as the
link and both don't display the specific record. Any suggestions on
what I am missing?
TIA,
Karla

Hello All,
Here is a more detailed explanation. Sorry it took too long.
Anyway,
not sure if I need cfparam because I only want to display one
record at a time and not the entire query:
<cfparam name="MaxRows" default="1"> <cfparam name
="StartRow" default="1">
I actually have about 7 tables that I need to get information
from, displaying several columns from each of them. Is INNER JOIN a
good choice to use to display all of the info I need (all tables
except the contact list contain dates)? Anyway, here's the code
I've started:
<cfquery name="qryIndividual" datasource="dshmat">
SELECT ContactList.ContactID, ContactList.FirstName,
ContactList.LastName, BIO.InitialRef2006, BIO.Bsfty2005,
HWG.hwg2006, HWG.hwg2005
FROM (ContactList INNER JOIN BIO on
ContactList.ContactID=BIO.BioID) INNER JOIN HWG on
ContactList.ContactID=HWG.hwgID
ORDER BY ContactList.LastName
</cfquery>
This is the output that I am trying to display. But I'm stuck
as to how to tell the DB to display a specific record if username
and password are valid entries. If username is jdoe, then display
jane doe's record only.
FirstName LastName | InitialRef2006 | Bsfty2005 | hwg2006 |
hwg2005
jane doe 4/1/2006 6/5/2005 2/5/2006 8/6/2005
I have login page, and this is where I want to initiate the
query to display the right record of that individual.
Any suggestions on where to start?
TIA,
Karla

Similar Messages

  • How can I display all records as a end user?

    I am applying for jobs with the state and every week they publish a list of new positions that have just been posted on the following link: https://forms.spb.ca.gov/bulletins/weekly.cfm
    and also at http://jobs.spb.ca.gov/wvpos/search_p_ejv.cfm?classcode=5393&criteria=associate%20governme ntal
    It is a .cfm but only displays 15 records at a time, I was wondering if there is a tag or way to have it display all 300 something records at once?  My ultimate goal is to get just the full table into a excel spreadsheet while retaining the HTML formatting so the links still work.
    My thought is that the state has set it up this way to only display a set number of records at a time, the data is not private or protected, I am simply seeking a easier way to access it in aggregate.
    Thank you in advance for your suggestions and help!

    I think your best hope is to ask the author of the CFM whether they provide any web service that can get you that data when you call it.  like.
    https://forms.spb.ca.gov/webservice.cfc?method=getJobsPostings&key={key_goes_here}
    There's a chance they may be regulating performance on the resultset, and don't want to return that many records at a time, pagination or not.

  • Display all records from 4 select list

    Hi,
    trying to associate 4 select list where i could display all records from a list linked to an other list.
    1./ Created an item for each select list
    P1_employee_name
    P1_departments
    P1_employee_type
    P1_locations
    2./Set both null and default values to '-1' for each item
    3./Associated these items to source columns in the Region:
    where employee_name=:P1_employee_name
    or :P1_employee_name ='-1'
    and departments=:P1_departments
    or :P1_departments ='-1'
    and ......
    When running the report, couldn't display all records from a given list associated to an other list.
    e.g: Display all emp and type of emp for sales dept in Paris.
    Thks for your help

    I believe the issue is that you need to group your predicates such as:
    where (employee_name=:P1_employee_name
    or :P1_employee_name ='-1')
    and
    (departments=:P1_departments
    or :P1_departments ='-1')
    Also, if you are not already using the "select list with submit" type items, these work great for this case as the page will be submitted when the user changes the value of employeenam and the report will then reflect this change.

  • Form does not display all records from table

    Hi guys
    I modified one form that was based on a signle DB table. I removed certain fields from the table and added some extra fields to that table. Then based on the new table I also modified the form and removed the text items related to old fields in the table and added new text items pointing to the new fields now. II have checked all the new items properties and they have don't seem to be wrong or so. But now the problem is the form does not display all the records from the table. before it used to display all records from the table when qureied but not now. It only certain records from the table containing all new data and also old data but the form does not display other records though I don't see any obvious discrepancy. Remember that the before doing the modifications, I have table back for the old, created another table that contained new records for the new fields, and then I inserted the old records and updated the new table data in the new table with these new table values. So this way I have got my new table. Could someone help why the new modified form fails to display all records from the new table updated table though it display some of them successfully.
    Any help will be appreciated.
    Thanks

    hi
    Set the block property of "Query All Records" to "YES"
    hope it will work.
    Faisal

  • Report for displaying info record scale prices

    Hi all,
    Can any one provide me the sample code for a report  displaying info record scale prices.
    Thanks,
    Suresh

    Check t.code MEKP.

  • Report- not displaying some records in the report

    I have a query say q1 based on the query value. I am getting place holder colums obtained from a procedure. based on one of the place holder columns i want to display the data say i have place holder column err_ind if it y. i don't want to display the record in report.
    how can i do it ? ur help is much appreciated.

    Hi Praveen,
    Thanks for the response.
    Actually i did debug the program with the help of our technical guys but found nothing wrong in both the quality and the production system. We compared the program in both the systems and it seems to be same. I am exploring this issue. Will update the findings here.
    In case anyone has any suggestion please do suggest.
    Regards,
    Gokul

  • Display one record at a time

    i am trying to display one record from my database on my jsp page per time using next and previous buttons to navigate. I have tried to implement this by putting the resultset in a vector and then tried to tried to dispaly data with no success.Please somebody help ,i been at this for two days with no success.Could someone give a concreate example to guide me

    Please post all code, i dont know how to put my resultset in a vector or arraylist.
    I need a First Previous next and Last link in asp it is called recordset paging or recordset navigation.
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ include file="Connections/connEvents.jsp" %>
    <%
    int index = 0; //or wherever you wish to start
    if((String s = request.getParameter("index")) != null)
    index = Integer.parseInt(s);
    %>
    <%
    Driver DriverrsEvents = (Driver)Class.forName(connEvents_DRIVER).newInstance();
    Connection ConnrsEvents = DriverManager.getConnection(connEvents_STRING,connEvents_USERNAME,connEvents_PASSWORD);
    //PreparedStatement StatementrsEvents = ConnrsEvents.prepareStatement("SELECT * FROM hog_evenementen", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    //StatementrsEvents.setFetchSize(10);
    //ResultSet rsEvents = StatementrsEvents.executeQuery();
    PreparedStatement StatementrsEvents = ConnrsEvents.prepareStatement("SELECT * FROM hog_evenementen");
    ResultSet rsEvents = StatementrsEvents.executeQuery();
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>HD - Evenementen-beheer</title>
    <style type="text/css">
    <!--
    body {
         background-color: #333333;
    -->
    </style></head>
    <script>
    function post(actValue)
    document.MyForm.action.value = actValue ;
    document.MyForm.submit() ;
    </script>
    <body>
    <table width="60%" border="0" align="center" cellpadding="0" cellspacing="0" class="">
    <tr>
    <td><table width="100%" class="" border="0" cellpadding="6" cellspacing="0">
    <tr>
    <td width="175" align="center" valign="bottom" bgcolor="#FF6600" class="">Evenementen-beheer</td>
    <td bgcolor="#333333" class=""><span class=""><span class="formField">
    </span></span></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="6">
    <tr bgcolor="#61ABD0" class="verdana10zwart">
    <td width="4"> </td>
    <td width="512" height="29"> <span class="">Evenementenoverzicht</span></td>
    </tr>
    <tr bgcolor="#61ABD0" class="">
    <td> </td>
    <td><table width="100%" border="0" align="center" cellpadding="6" cellspacing="0">
    <tr class="">
    <td width="252" class="smallText">record 1 van 1 etc moet hier komen <br></td>
    <td width="231" align="left" class="smallText"><table width="50%" border="0" align="center">
    <tr>
    <td width="23%" align="center"> Firs </td>
    <td width="23%" align="center"> <a href="index.jsp?index=<%= (index-10)%>">Previous</a></td>
    <td width="23%" align="center"><a href="index.jsp?index=<%= (index+10)%>">Next</a></td>
    <td width="23%" align="center">Last</td>
    </tr>
    </table>
    <br>
    </td>
    </tr>
    <tr bgcolor="#CCCCCC">
    <td>Thema</td>
    <td>Datum</td>
    </tr>
                   <%
                   int rowCount = 0;
                   while(rsEvents.next() && rowCount < 10) {
              rowCount++;
                   %>
    <tr>
    <td><a href="event_crud.jsp?ID=<%= rsEvents.getObject(ID")%">"><%= rsEvents.getObject("thema")%></a></td>
    <td width="231"><%= rsEvents.getObject("datum")%></td>
    </tr>
                   <% } %>
    </table></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td bgcolor="#CCCCCC"><form action="event_frm_process.jsp" METHOD="POST" name="MyForm" id="MyForm">
    <table width="100%" border="0" cellpadding="6" cellspacing="0" class="verdana10zwart">
    <tr bgcolor="#CCCCCC">
    <td width="9"> </td>
    <td colspan="2"><span class="kop1"><br>
    Evenement toevoegen </span><span class="formField"><br>
    </span><br>
    <span class="formField"> </span></td>
    </tr>
    <tr bgcolor="#CCCCCC">
    <td width="9"> </td>
    <td width="107" class="downBorder">Thema:</td>
    <td width="383" class="downBorder"><input name="thema" type="text" id="thema"></td>
    </tr>
    <tr bgcolor="#CCCCCC">
    <td width="9"> </td>
    <td class="downBorder">Omschrijving:</td>
    <td class="downBorder"><textarea name="omschrijving" cols="40" rows="10" id="omschrijving"></textarea>
                   </td>
    </tr>
    <tr bgcolor="#CCCCCC">
    <td width="9"> </td>
    <td class="downBorder">Datum:</td>
    <td class="downBorder"><input name="datum" type="text" id="datum"></td>
    </tr>
    <tr bgcolor="#CCCCCC">
    <td width="9"> </td>
    <td class="downBorder">Tijd:</td>
    <td class="downBorder"><input name="tijd" type="text" id="tijd"></td>
    </tr>
    <tr bgcolor="#CCCCCC">
    <td width="9"> </td>
    <td class="downBorder">Lokatie:</td>
    <td class="downBorder"><input name="lokatie" type="text" id="lokatie"></td>
    </tr>
    <tr bgcolor="#CCCCCC">
    <td width="9"> </td>
    <td class="downBorder">Plaatje:</td>
    <td class="downBorder"><input name="plaatje" type="text" id="plaatje"></td>
    </tr>
    <tr bgcolor="#CCCCCC">
    <td width="9"> </td>
    <td class="downBorder"> </td>
    <td class="downBorder"><input name="insert" type="button" id="insert" onClick="post('insert');return false;" value="Evenement toevoegen"></td>
    </tr>
    <tr bgcolor="#CCCCCC">
    <td width="9"> </td>
    <td>
                   <input name="action" type="hidden" class="" id="action" value="">
    <% while(rsEvents.next()){ %>
                   <input name="ID" type="hidden" class="" id="ID" value="<%=rsEvents.getString("ID")%>">
                   <%
                   %>
                   </td>
    <td> </td>
    </tr>
    </table>
    </form></td>
    </tr>
    </table>
    </body>
    </html>
    <%
    rsEvents.close();
    StatementrsEvents.close();
    ConnrsEvents.close();
    %></a>

  • Displaying 10 records per page

    hi,
    somebody please help me.....
    i have a list of more than 20 records which i get
    from database and then i put it in session.
    i have to display 10 records per page only and
    on the same page i'd like to have links to page
    numbers to view next set of records.
    example is how googel displays its search results.
    ex. [ 1 2 3 4 5 ]
    THANKS A LOT!

    this can be done using the pagination technique.
    [email protected]

  • Database displaying all records when no records are in database

    SEARCH PAGE:
    <form id="searcMennuu" name="searcMennuu" method="post" action="VehicleListing.php">
    <select name="vehicles" id="vehicles">
    <option value="allCars" selected="selected">ALL</option>
    <option value="Sedan">Sedan</option>
    <option value="Jeep">Jeep</option>
    <option value="Motorbike">Motorbike</option> </select> <input name="radioVehicle" type="radio" id="searchSale" value="searchSale" />
    Vehicles for Sale</label>
    <label>
    <input type="radio" name="radioVehicle" id="searchRent" value="searchRent" />
    Vehicles for Rent</label> <input type="submit" name="searchButton" id="searchButton" value="Search" />
    </form> RESULTS PAGE:
    mysql_select_db($database_ddd, $ddd); $query_rsTest = "SELECT `year`, `model` FROM vehicles";
    if (isset ($_POST ['vehicles'])) {
    $parSearch = mysql_real_escape_string ($_POST['vehicles']);  if($_POST['vehicles'] == "Sedan"){
    $query_rsTest.= " WHERE vehicle_type LIKE '%$parSearch%'";
    } $rsTest = mysql_query ($query_rsTest, $ddd) or die(mysql_error());
    $row_rsTest = mysql_fetch_assoc ($rsTest);
    $totalRows_rsTest = mysql_num_rows ($rsTest); <div class="showPage"><?php echo $totalRows_rsTest ?></div><?php do { ?>
     <?php if ($totalRows_rsTest > 0) { // Show if  recordset not empty ?> 
    <div class="output" id="Results">
    <p><?php echo $row_rsTest['year']; ?></p>
    <p><?php echo $row_rsTest['model']; ?></p>
    </div>
    <?php } // Show if recordset empty ?>
    <?php } while ($row_rsTest = mysql_fetch_assoc($rsTest)); ?> 
    1. I think i found out why the hide region is not working, whenever i search for something that is not in my database or does not satisfy my search criteria the results page is displaying all records in the database. However i don't know how to fix that. Can someone please help me?
    2. Also i'm trying to find out how i would display ALL vehicles in my database either for rent or sale, i dont have a field in my database for "ALL" so i'm not sure where to start. Thanks in advance

    Which BOBJ version do you use?
    Which kind of data source are you retrieving data from?
    Regards,
    Stratos

  • Display multiple records in forms 6i

    hi every body
    will anybody plz tell me how to display multiple records in tabular view of forms 6i.for example say i have a field in a block of a form.and i have to display multiple records in another block in the same form depending upon the value of the mentioned field in the above block.
    will anybody help me??

    Why are you manually populating your data block when Oracle Forms will do this for you? Oracle Forms is tightly integrated with the Oracle Database. You should just base your Forms data block on the ISSUED table. Then you can filter the records displayed by setting the WHERE Clause property to ID = :BLOCK1.ID or you can dynamically set it with code using the SET_BLOCK_PROPERTY('BLOCK_NAME',DEFAULT_WHERE,'ID = :BLOCK.ID') built-in.
    Then, the only code you would need in your Button's When-Button-Pressed trigger would be:
    BEGIN
      GO_BLOCK('BLOCK2');
      EXECUTE_QUERY;
    END;This is the point of InoL's reply. When a Form is based on a table, you can use the "Enter Query" and "Execute Query" built-in features to query and display records.
    Sounds like you might be new to Oracle Forms development. If that is the case, you might want to go through a few Forms Tutorials to learn what Forms can do for you. ;) Just search the internet for "Oracle Forms Tutorials" and you will find many!
    Craig...

  • Query not displaying all records when execute it first tme

    Hello,
    i have an issue with the WEBI report.when i run  the report first time it's displaying only few records, but when i run the same report second time it's displaying the more records and it's correct.
    Could any one tell me why it's not displaying all records when i execute first time.
    Thanks in advance for your help.
    Regards,
    Prathap

    Which BOBJ version do you use?
    Which kind of data source are you retrieving data from?
    Regards,
    Stratos

  • Display multiple records as sub-sections in the same report.

    I am using Crystal Reports (VS-2005).
    In a report, I have various sub-sections in the Details section. Each section represents a category and is connected with SQL command which uses LEFT OUTER JOIN.
    The first section is the main section and the subsequent sections are the child sections.
    Sometimes, a sub-section (other than the first main sub-section) picks multiple records of that category. In this case the report extends to multiple pages. Each report displays one record of this sub-section.
    I want to show the the same sub-section multiple times in the same report as opposed to multiple reports that are now automatically generated by Crystal Reports.
    How to handle this issue?

    This is a .NET programming forum related to Crystal Reports. Your question is best suited for our report design forum below. Also, when you post your question it will be helpful if you use report design terminology. We have elements like Report Header, Page Header, Groups, and Details sections. Just mentioning "sections" doesn't give us a good idea about what you are attempting to do.
    Check out the grouping options and see if it helps. You might need to create a formula to help you with your grouping though.
    If you like, I can move this to the design forum.
    [SAP Crystal Reports Design|SAP Crystal Reports;

  • XL Reporter Do Not Display Blank Records

    hey all,
    I've built a standard P&L Budget report in XL Reporter with parameters for each segment of the account code as made possible by patch 02.  However, when I uncheck "Do not display blank records," the generated report lists an instance of each account for each segment that I've chosen in the parameters.
    The selections for the account segmentation don't seem to filter the accounts themselves, instead they filter the balances of each account.  Does anyone know why it only filter's the balances rather than the accounts themselves and ends up repeating the accounts for each segment selected?  Is this a bug?
    thanks in advance!
    Kevin Lee

    Hi Kevin,
    Seems that noone in this forum can answer your question. Maybe this is related to the fact that the main focus here is the SAP Business One SDK?
    In case the question is still open:
    I would recommend that you try these forums - which should fit better:
    For SAP partners only there's a forum where you can discuss implementation questions etc.:
    Got a question about customization / implementation? Maybe ask it in CPSN!
    ...and here's the SAP Business One Forum in the "SAP Community" (public to anybody):
    Re: Got a question about customization / implementation? Maybe ask it in CPSN!
    ...or you might try your luck with SAP Support?
    Bugs should anyway be reported to SAP Support!
    HTH
    Frank

  • Triger for display next record in oracle forms

    hai all,
    i want to do
    when new form opened i have to add new reord that is empty new form also my new rownum will be displayed.
    now i getting first record.
    like:
    GROUP_ROWNUM:     1
    GROUP_ID:      120130
    GROUP_NAME aaaaaaaaa
    need like:
    GROUP_ROWNUM:     7
    GROUP_ID:
    GROUP_NAME
    that can be done by
    trigger for display next record in oracle forms?
    or through property seting?
    thanks in adv,
    rcs
    --------

    YES, this block is base on the DB table
    through defualt navigational button i can go to next,last,new record
    but i want create seperate form for new entry, in that i want to display
    old rownum
    formula to get rownum automatically (i am not at all typing it is system generated)
    even though i created column group_rownum for rownum
    (i can't be typing)
    LAST_RECORD;
    NEXT_RECORD; also not getting the next rownum
    i hope now understand me
    any posible way?
    thank you for your good input
    i.e.
    SQL> DESC GROUP_MSTR1;
    Name Null? Type
    GROUP_ID NOT NULL NUMBER(10)
    GROUP_NAME NOT NULL VARCHAR2(30)
    SQL> select * from GROUP_MSTR1;
    GROUP_ID GROUP_NAME
    123 AAAAAA
    124 BBBBBBBB
    125 CCCCCCCCC
    126 DDDDDDDD
    1 eeeeeeee
    2 FFFFFFFFF
    3 ggggggg
    7 rows selected.
    SQL> select rownum, GROUP_ID, GROUP_NAME from GROUP_MSTR1;
    ROWNUM GROUP_ID GROUP_NAME
    1 123 AAAAAA
    2 124 BBBBBBBB
    3 125 CCCCCCCCC
    4 126 DDDDDDDD
    5 1 eeeeeeee
    6 2 FFFFFFFFF
    7 3 ggggggg
    7 rows selected.
    -------------

  • When we drilldown at document level it displays one record for each cube

    Dear Experts .
    The users want to see the report by status for the order detail report at document level it displays one record for each cube .
    They want to see the single line for the order quantity , Amount, Billing quantity delivery and amount along with the Sales order number , billing document number billing date , delvert date ..et in signgle line. ( Sale order DeliveryBilling)
    When we are doing on Multiprovider recording displaying from each cube.
    We have tried with Constant selections and it is not giving the required results m since these want to see by status. Due to huge data performance reasons we re unable to use it .
    Please provide your valuable inputs.
    Thanks,
    Mahesh.

    Mahesh,
    If you want to get detail data with respect to Sales order - delivery - Billing, on top of Multiprovider you can come up with Constant selection.
    But I am not clear that why constant selection is not working properly, can I have some light on that.
    Probably, you are struggling with multiple records .
    I suggest you to go with end routine and map all fields to one IC and do reporting on that single IC, then your requirement will fulfill.
    But here we need to take care of performance issues and process chain scheduling wile loading deltas.
    If Multiprovider is not working properly , then try with Infoset(If you have more than 2 ICs it not possible).
    Regards,
    rvc

  • Displaying of records unable to using GROUP BY

    Hi,
    I have a requirement where i need to display the records based upon item types:I have the records like as
    Invoice Number Item Type Amt
    23221 LI 23
    23231 SD 45
    23221 LI 11
    23221 ST 14
    I want to display as:
    Invoice Number Item Type Amt
    23221 LI 34
    23231 SD 45
    23221 ST 14
    Any help will be needful for me

    918308 wrote:
    Hi,
    I have a requirement where i need to display the records based upon item types:I have the records like as
    Invoice Number Item Type Amt
    23221 LI 23
    23231 SD 45
    23221 LI 11
    23221 ST 14
    I want to display as:
    Invoice Number Item Type Amt
    23221 LI 34
    23231 SD 45
    23221 ST 14
    Any help will be needful for meLike Karthik I wonder why you can't use GROUP BY. Using GROUP BY would be easiest. I also do not understand why when you said you can't use GROUP BY every example posted so far as used it.
    Anyway, ...
    Consider the analytic sum() function. Here is an example you can adapt to your needs - the COUNT() I am using is similar to the SUM() you need
    select distinct cd_id, count(cd_id) over (partition by cd_id)
      from m_cd_tracks
    order by 1
    CD_ID   COUNT()
    1     34
    2     32
    3     32
    4     32
    5     30The analytic COUNT() is similar to the GROUP BY COUNT() but it returns every row. DISTINCT eliminates the duplicates. The OVER () clause allows the PARTITION definition which defines the group. You can read all about the analytic functions in the online documentation.

Maybe you are looking for