How to count and display the number of records in a database table

My webpage has a list of items and their details, every item has a button
Read / Make comments that loads the item in its own page displaying
a comments form and previous comments.
This is all working fine.
I would like to add to each item information stating how many comments have
been made about that item.
Allowing the user to see before hand if it is worth while clicking on the
Read / Make comments button.
Ideally each item will have a different number of comments.
The problem I have is outputing the number of comments associated with each item.
My comments table is called guest my items table is called titles.
I'm sure mysql statement is correct -
The table guest currently has 7 comments,
Item 1 has 3 comments
Item 2 has 2 comments
Item 3 has 1 comment
Item 4 has 1 comment
When I test the query in dreamweaver
$Recordset1 = "SELECT COUNT(guest.software_id) as COUNT, titles.id FROM titles LEFT JOIN guest ON titles.id = guest.software_id GROUP BY guest.software_id";
the outoput is a list showing 2, 3, 1, 1
My problem is, getting the totals into my repeat region.
I tried the following line
<td align="left" valign="top" bgcolor="#e5f8cb">Current comments:<?php echo $row_Recordset1['COUNT']; ?></td>
resulting in all comments so far displaying 0
I have highlighted in bold the parts that I am having difficulty with.
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  if (PHP_VERSION < 6) {
    $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;
$colname_rsTitles = "-1";
if (isset($_GET['id'])) {
  $colname_rsTitles = $_GET['id'];
mysql_select_db($database_abe, $abe);
$query_rsTitles = sprintf("SELECT title, company, `description`, resources, location, url, image, keyword, copies FROM titles WHERE id = %s ORDER BY id ASC", GetSQLValueString($colname_rsTitles, "int"));
$rsTitles = mysql_query($query_rsTitles, $abe) or die(mysql_error());
$row_rsTitles = mysql_fetch_assoc($rsTitles);
$totalRows_rsTitles = "-1";
if (isset($_GET['id'])) {
  $totalRows_rsTitles = $_GET['id'];
$colname_rsTitles = "-1";
mysql_select_db($database_abe, $abe);
$query_rsTitles = sprintf("SELECT title, company, `description`, resources, location, url, image, keyword, copies FROM titles WHERE id = %s ORDER BY id ASC", GetSQLValueString($colname_rsTitles, "int"));
$rsTitles = mysql_query($query_rsTitles, $abe) or die(mysql_error());
$row_rsTitles = mysql_fetch_assoc($rsTitles);
$totalRows_rsTitles = mysql_num_rows($rsTitles);
mysql_select_db($database_abe, $abe);
$query_rs_comments = "SELECT * FROM guest";
$rs_comments = mysql_query($query_rs_comments, $abe) or die(mysql_error());
$row_rs_comments = mysql_fetch_assoc($rs_comments);
$totalRows_rs_comments = mysql_num_rows($rs_comments);
mysql_select_db($database_abe, $abe);
$query_rs_users = "SELECT * FROM users";
$rs_users = mysql_query($query_rs_users, $abe) or die(mysql_error());
$row_rs_users = mysql_fetch_assoc($rs_users);
$totalRows_rs_users = mysql_num_rows($rs_users);
mysql_select_db($database_abe, $abe);
$query_Recordset1 = "SELECT COUNT(guest.software_id) as COUNT, titles.id FROM titles LEFT JOIN guest ON titles.id = guest.software_id GROUP BY guest.software_id";
$Recordset1 = mysql_query($query_Recordset1, $abe) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
mysql_select_db($database_abe, $abe);
if(!isset($_POST['softwareLevel'])){
if (!isset($_GET['class_id'])) {
//show all software titles
$query_rsTitles = "SELECT id, title, company, `description`, resources, location, url, image, keyword, copies FROM titles ORDER BY id ASC";
}else{
//show software titles filtered by Literacy of Numeracy (using URL GET variable)
$query_rsTitles = "SELECT id, title, company, `description`, resources, location, url, image, keyword, copies FROM titles WHERE titles.class_id = ". GetSQLValueString($_GET['class_id'], "int") ." ORDER BY id ASC";
}else{
//show software titles filtered by Level (using Form POST variable)
$query_rsTitles = "SELECT id, title, company, `description`, resources, location, url, image, keyword, copies FROM titles WHERE titles.level_id = ". GetSQLValueString($_POST['softwareLevel'], "int") ." ORDER BY id ASC";
$rsTitles = mysql_query($query_rsTitles, $abe) or die(mysql_error());
$row_rsTitles = mysql_fetch_assoc($rsTitles);
$totalRows_rsTitles = mysql_num_rows($rsTitles);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php $pagetitle="ABE Software Locator"?>
<html xmlns="http://www.w3.org/1999/xhtml" >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $pagetitle ?></title>
<link rel="stylesheet" href="../../includes/styles.css" type="text/css" media="screen" />
<style type="text/css">
body {
background-color: #FFF;
</style>
</head>
<body>
<?php include("../../includes/header.php"); ?>
    <div><table width="70%" border="0" align="center" cellpadding="3" cellspacing="0">
  <tr>
    <td width="29%" height="50" align="center"><a href="software_detail.php">Back to Locator</a></td>
    <td width="50%" align="center"><a href="../../index.php">Welcome Page</a></td>
    <td width="21%" align="center"><a href="../../logout.php">Log Out</a></td>
  </tr>
  <tr>
    <td colspan="3" align="center"><strong> There Are <span class="totalrecordsnumber"><?php echo $totalRows_rsTitles ?></span>  Software Titles Listed</strong></td>
  </tr>
  <tr>
    <td> </td>
    <td> </td>
    <td> </td>
  </tr>
</table>
    <?php do { ?>
      <table width="820" border="0" align="center" cellpadding="3" cellspacing="2">
        <tr>
          <td width="206" height="200" rowspan="3" align="center" bgcolor="#FFFFFF"><img src="images/<?php echo $row_rsTitles['image']; ?>" alt="<?php echo $row_rsTitles['title']; ?>" /></td>
          <td colspan="3" align="center" bgcolor="#086b50"><h2><?php echo $row_rsTitles['title']; ?></h2></td>
        </tr>
        <tr>
          <td colspan="3" align="center" bgcolor="#f6b824"><strong>Made by:</strong> <?php echo $row_rsTitles['company']; ?></td>
        </tr>
        <tr>
          <td colspan="3" align="left" valign="top" bgcolor="#e5f8cb"><p class="ptaglineheight"><strong>Description: </strong><?php echo $row_rsTitles['description']; ?></p></td>
        </tr>
        <tr>
          <td colspan="2" align="left" valign="top" bgcolor="#e5f8cb"><span class="tabletext"><strong>Keywords</strong></span><strong>: </strong><?php echo $row_rsTitles['keyword']; ?></td>
          <td colspan="2" align="left" valign="top" bgcolor="#e5f8cb"><strong>Resources:</strong> <?php echo $row_rsTitles['resources']; ?></td>
        </tr>
        <tr>
          <td colspan="4" align="left" valign="top" bgcolor="#e5f8cb"><strong>Web Address:</strong> <a href="<?php echo $row_rsTitles['url']; ?>" target="_blank"><?php echo $row_rsTitles['url']; ?></a></td>
        </tr>
        <tr>
          <td colspan="3" align="left" valign="top" bgcolor="#e5f8cb"><strong>Is installed on:</strong> <?php echo $row_rsTitles['location']; ?></td>
          <td width="195" align="left" valign="top" bgcolor="#e5f8cb"><strong>Copies available:</strong><?php echo $row_rsTitles['copies']; ?></td>
        </tr>
        <tr>
          <td colspan="3" align="left" valign="top" bgcolor="#e5f8cb"><a href="fulltitle.php?software_id=<?php echo $row_rsTitles['id']; ?>&amp;id=<?php echo $row_rsTitles['id']; ?>">Read / Make Comments About This Software</a></td>
          <td align="left" valign="top" bgcolor="#e5f8cb">Current comments:<?php echo $row_Recordset1['COUNT']; ?></td>
        </tr>
      </table> 
      <br />
      <?php } while ($row_rsTitles = mysql_fetch_assoc($rsTitles)); ?>
    </div>
    <?php include("../../includes/footer.php"); ?>
</body>
</html>
<?php
mysql_free_result($rsTitles);
mysql_free_result($rs_comments);
mysql_free_result($rs_users);
mysql_free_result($Recordset1);

I changed the mysql as you suggested GROUP BY titles.id
and added a while loop to iterate over the data
mysql_select_db($database_abe, $abe);
$query_Recordset1 = "SELECT COUNT(guest.software_id) as COUNT, titles.id FROM titles LEFT JOIN guest ON titles.id = guest.software_id GROUP BY titles.id";
$Recordset1 = mysql_query($query_Recordset1, $abe) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
$row_Recordset1 = mysql_query($query_Recordset1) or die(mysql_error());
<td>Current comments:<?php
if($row_Recordset1)
while($row = mysql_fetch_array($row_Recordset1))
echo $row['COUNT'];
} ?></td>
The first item now displays the following,
comments:2311000000000000000000000000000
all others
comments:
the number matched the database table exactly, 30 records 4 of which have 2, 3, 1, 1 comments.
It looks as if the problem is trying to get the repeat region to pick up on it!

Similar Messages

  • Count Number of Records in Oracle Database Table

    Please help me to see if I "set" and "return" the number of records in my database table correctly (I am using the Oracle 9i):
       public int getNumberOfRecipientBeans() throws AssertionException, DatabaseException
          Connection conn = null;
          PreparedStatement stmt = null;
          String query = "SELECT count(*) FROM ContactEntry WHERE ContactTypeID = 6";
          ResultSet rs = null;
          try
             conn = DBConnection.getDBConnection();
             stmt = conn.prepareStatement( query );
             rs = stmt.executeQuery();
             // do I have to set anything here?
             if ( !rs.next() )
                throw new AssertionException("Assertion in servuce.getNumberOfRecipients");
              // Am I returning the counts here?
              return rs.getInt( 1 );
          catch( SQLException sqle )
             sqle.printStackTrace();
             throw new DatabaseException( "Error executing SQL in service.getNumberOfRecipients." );
          finally
             if ( conn != null )
                try
                   stmt.close();
                   stmt = null;
                   conn.close();
                catch( Exception Ex )
                   System.out.println( "Problem occurs while closing " + Ex );
                conn = null;

    public class MyE extends Exception {
        public MyE() {
            super(); // this line is not necessary. An empty method would suffice
        public MyE(String msg) {
            super(msg);
        // Check the API for Exception or Throwable--I may have the args backward
        public MyE(String msg, Throwable cause) {
            super(msg, cause);
        public MyE(Throwable cause) {
            super(cause);
    // Replace the log_warn() calls with appropriate logging calls for your context
    public class Closer {
        public static final void close(ResultSet closeMe) {
            if (closeMe != null) {
                try {
                    closeMe.close();
                catch (Throwable th) { log_.warn("Closing " + closeMe + ": ", th); }
        public static final void close(Statement closeMe) {
            if (closeMe != null) {
                try {
                    closeMe.close();
                catch (Throwable th) { log_.warn("Closing " + closeMe + ": ", th); }
        public static final void close(Connection closeMe) {
            if (closeMe != null) {
                try {
                    closeMe.close();
                catch (Throwable th) { log_.warn("Closing " + closeMe + ": ", th); }
        public static final void close(ResultSet rs, Statement stmt, Connection con) {
            close(rs);
            close(stmt);
            close(con);
    }

  • How to load and display the external flv video files in dynamicly and the how to control the flv fil

    How to load and display the external flv video files in dynamicly using AS 3.0
    and  How to control the flv file  add the play paus button and add seekbar.
    I have using to load the flv file following code
    var flvPlaceHolder1:MovieClip = new MovieClip();
    var vid1:Video = new Video(734, 408);
    flvPlaceHolder1.addChild(vid1);
    addChild(flvPlaceHolder1);
    flvPlaceHolder1.x = 1059;
    flvPlaceHolder1.y = 152;
    var nc1:NetConnection = new NetConnection();
    nc1.connect(null);
    var ns1:NetStream = new NetStream(nc1);
    vid1.attachNetStream(ns1);
    var listener1:Object = new Object();
    listener1.onMetaData = function(evt:Object):void {};
    ns1.client = listener1;
    ns1.play("GV-1600 TURNING.flv");
    ns1.addEventListener(NetStatusEvent.NET_STATUS, statusChanged1);
    function statusChanged1(ns1:NetStatusEvent):void
             trace(ns1.info.code);
            if (ns1.info.code == 'NetStream.Buffer.Empty')
                 trace('the video has ended');
                 removeChild(flvPlaceHolder1);
                 //trace('removeChild');
                gotoAndPlay(1786);
    then how to add the play,paus ,full screen button    and   seekbar,volumebar.

    I have to Create the flash presentation for our company product
    In this presentation the left  side the text animation are displayed then right side the our product video is displayed.
    In this presentation i need the following option :
    1, The first product video and animation is finished then the next product is played
    2, then the video displayed  (size width and height 400x300) , I click this video to increase the size(ex:1000x700)
    3, then the playing video i control  it play, stop, paus button and volume bar, seek bar.
    4, then this presentation is displayed on 42 inches LCD TV so this full presentation is run full screen.
    I have finished first two steps 1 and 2
    the following are the screen short and code:-
    code :-
    var count=0;
    var flvPlaceHolder2:MovieClip = new MovieClip();   
    var vid2:Video = new Video(734, 408);
    flvPlaceHolder2.addChild(vid2);
    addChild(flvPlaceHolder2);
    flvPlaceHolder2.x = 1059;
    flvPlaceHolder2.y = 152;
    var nc2:NetConnection = new NetConnection();
    nc2.connect(null);
    var ns2:NetStream = new NetStream(nc2);
    vid2.attachNetStream(ns2);
    var listener2:Object = new Object();
    listener2.onMetaData = function(evt:Object):void {};
    ns2.client = listener2;
    ns2.play("GS-4000.flv");
    this.addEventListener(Event.ENTER_FRAME, BtnFadeIn2);
    function BtnFadeIn2(event:Event):void
        if (this.currentFrame == 387)
            /*flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            trace('Screen size is changed');*/
            if(count==0)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            count++;
    ns2.addEventListener(NetStatusEvent.NET_STATUS, statusChanged2);
    function statusChanged2(ns2:NetStatusEvent):void
        trace(ns2.info.code);
        if (ns2.info.code == 'NetStream.Buffer.Empty')
                trace('the video has ended');
                 removeChild(flvPlaceHolder2);
                 //trace('removeChild');
                gotoAndPlay(433);
    flvPlaceHolder2.buttonMode=true;
    flvPlaceHolder2.addEventListener(MouseEvent.CLICK,home2);
    function home2(e:MouseEvent):void
        if(vid2.width==734 && vid2.height==408)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
        else
            flvPlaceHolder2.x = 1059;
            flvPlaceHolder2.y = 152;
            vid2.width=734;
            vid2.height=408;

  • Spilt the number of records in a internal table

    Hi all,
            I have a requirement where i must spilt the number of records in my internal table itab .Say if i have 2000 records , i must spilt it taking the first 990 records and doing some posting using Bapi and again take the next 990 records and do the posting .Can some one help me out.
    Good answers will be rewarded with points.

    Hi,
    You can use these instructions using two internal tables, but please be aware to not forget any line.
    REFRESH my_table2.
    APPEND LINES OF my_table FROM 1 TO 990 TO my_table2.
    CALL FUNCTION 'BAPI'....
                 (with my_table2)
    REFRESH my_table2.
    APPEND LINES OF my_table FROM 991 TO my_table2.
    CALL FUNCTION 'BAPI'....
                 (with my_table2)
    Regards,
    Mathieu

  • HOw Do I count and identify the number of groups in a groups output.

    I have a query that reads like this..
    SELECT s.spec_Sort,s.spec_ID, s.spec_Name, b.bus_Name,
    b.bus_ID
    FROM (tbl_businesses as b INNER JOIN tbl_SpecBusRel as sb ON
    b.bus_ID = sb.specbus_busid) INNER JOIN tbl_specialties as s ON
    sb.specbus_specid = s.spec_ID
    ORDER BY s.spec_Sort, b.bus_Name
    and then I am outputing like this...
    <cfoutput query="rsGetSpecialties" group="spec_Name">
    <cfif THIS IS WHAT I
    NEED)></td><td></cfif>
    <h2><a class="specialty" href="javascript;"
    onclick="dwfaq_ToggleOMaticDisplay(this,'#spec_ID#');return
    document.MM_returnValue">#spec_Name#</a></h2>
    <div id="#spec_ID#" style="display:none">
    <cfoutput><p><a
    href="#request.details#?bus_ID=#bus_ID#">#bus_Name#</a></p></cfoutput>
    </div>
    </cfoutput>
    This displays in this manner...
    Specialty
    dealer
    Specialty
    dealer1
    dealer2
    Etc...
    What I am trying to do is find out how many specialties there
    are, figure out where the middle is so I can insert a new table
    data cell and start a new column.
    Basically - two columns with the data divided in half by
    specialty NOT by the number of dealers.
    I hope that makes sense. Of course I am trying to do it w/ as
    little query action as possible. My only solution may be to have
    more than one query and the second only finds a list of the
    sepcialties that contain the dealers and then find the middle one
    and simply say if current specialty = middleSpecialty then start a
    new column.
    Thanks all,
    Chris

    Thanks for the replies. I don't need the number of occurances
    of each specialties - I simply need to know how many specialties
    there are and then split them in half.
    This may be the long way around -but it is what I did...
    <cfquery name="rsGetSpecialties" >
    SELECT s.spec_Sort,s.spec_ID, s.spec_Name, b.bus_Name,
    b.bus_ID, b.bus_Pcity, b.bus_PState
    FROM (tbl_businesses as b INNER JOIN tbl_SpecBusRel as sb ON
    b.bus_ID = sb.specbus_busid) INNER JOIN tbl_specialties as s ON
    sb.specbus_specid = s.spec_ID
    ORDER BY s.spec_Sort, b.bus_Name
    </cfquery>
    <cfset specs = valuelist(rsGetSpecialties.spec_ID)>
    <cfquery name="rsListSpecialties">
    SELECT spec_ID,spec_Name
    FROM tbl_specialties
    WHERE spec_ID in(#specs#)
    ORDER BY spec_Name
    </cfquery>
    <cfset middle = int(rsListSpecialties.recordcount/2)>
    <cfset specs = valuelist(rsListSpecialties.spec_Name)>
    <cfset middle = listgetat(#specs#,middle)>
    then displayed like this...
    <td valign="top" width="50%">
    <cfoutput query="rsGetSpecialties" group="spec_Name">
    <h2><a class="specialty" href="javascript;"
    onclick="dwfaq_ToggleOMaticDisplay(this,'#spec_ID#');return
    document.MM_returnValue">#spec_Name#</a></h2>
    <div id="#spec_ID#" style="display:none">
    <cfoutput><a
    href="#request.details#?bus_ID=#bus_ID#">#bus_Name#
    (#bus_PCity#, #bus_PState#)</a><br /></cfoutput>
    </div>
    *****This is the line that does the splitting *****
    <cfif spec_Name EQ middle></td><td
    valign="top" width="50%"></cfif>
    </cfoutput>
    </td>
    As for removing the extraneous cfoutput --> I thought that
    I needed that in order to show the material within the grouped
    data. HOw does CF know what data to repeat and what data to not
    repeat in a grouped output? I will have to look this one up some
    more.
    thanks for the help

  • How to find and display the posistion in an array list

    hi all,
    i know this is proballly simple but i have an arraylist where every time someone connects to my system it adds them to an arraylist, how can i post back somelike like hi user "1" thanks for connecting and so on. i just dont understand how to find their unique posistion in the array list and display it as a number.
    any help would be great

    So to be clear...
    You have an arraylist of connections .... for example
    ArrayList<ConnectedPeople> connPplArr = new ArrayList();And then each time someone connects you would add a connected people object to the arraylist.
    ConnectedPeople, migh contain username etc etc.
    You could then do:
    ConnectedPeople newConnection..... ;
    int index = connPplArr.indexOf( newConnection );
    if(int == -1){
        add them to your array
        index = connPplArr.size();
    return "Hello user "+ index;That what you mean?
    I know some of it is sudo code, but have I understood your problem?
    Edited by: Azzer_Mac on Apr 29, 2008 2:20 AM
    Edited by: Azzer_Mac on Apr 29, 2008 2:20 AM

  • How to generate and display the pdf form as a web dynpro abap view

    Hi,
        I filled the value in the table and displayed in the view,In that view i have one button"TOPDF".
        My requirement is,if i click that button,i want to display the table in the PDF output.
        For the above requirement,i created another view with interactive form,In that view i created one "pdf" Node and  "soure" as a attribute of Type-xstring.Then i binded the soure attribute withe "pdfdatasoure" of my interactive form  view.
        Now my doubt is how and where can i pass the table values to pdf output.
        can any body cleare my doubt with some sample code.
    Thanks in Advance.
    Regards,
    Ravi.

    Hello Ravi,
    Best would be to bind the dataSource of the InteractiveForm ui element to the parent node containing the table's data. Then specify a name of a template to be created in the templateSource and hit <enter>. Some popups later, the system will have created a template from the structure of the context. All you need to do now is to drag&drop the data structure inside the template designer to the template itself. This will result in a table. Save, activate and return the Web Dynpro view. Don't forget to unbind the pdfSource and enjoy.
    Best regards,
    Thomas

  • Give me a way to count the number of entries in a  Database Table

    Hello All,
    I am writing a code to determine the number of  entries in a SAP/Custom table.
    Can you please suggest a proper approach and a good query.
    Thanks in advance.

    Hi,
    If you want to do it in a more generic way you can do the following:
    DATA: tblname(50),
          tp_rows TYPE i.
    tblname = 'MARA'.
    SELECT COUNT(*)
    FROM (tblname)
    INTO tp_rows.
    IF sy-subrc <> 0.
      CLEAR tp_rows.
    ENDIF.
    At runtime the table is being determined and in this case it's set to MARA. The value of the number of rows is in the variable tp_rows.
    Best regards,
    Guido Koopmann

  • Number of records in a database table

    Hi,
    Is there a way to find the no of records for database tables ? I have over 1000 tables and need to find the tables without any records. I have found an FM for this requirment but it isnt of much use as i dont have developer access to the system.
    Thanks & Regards,
    Esha Raj

    Hi esha,
    This is one way. Just copy paste to get a feel.
    On the screen, in select-options, enter a few tables, and it will output the table name and the record count.
    report abc.
    data : mycount type i.
    tables : DD02L.
    select-options : tabname for dd02l-tabname no intervals.
    loop at tabname.
      select count(*)
      into mycount
      from (tabname-low).
      write :/ tabname-low , mycount.
    endloop.
    regards,
    amit m.

  • How to pull and display the document from an external storage medium?

    HI,
    We are having one external storage medium for SAP documents. In our case it is filenet server.
    My concern is .
    How can we pull the doc from the filenet server (external storage medium)?. I am in need, how and what an abap development team needs to be done?.
    Can anyone help in this regard ....to get the best logic and best technique ....!!!
    Note:
    I need to post this in ordinary abap not in webdynpro abap. I will do that. If any one get a chance to look into this and if you know .....please let me know the way.
    Thanks in advance
    Pons.
    Edited by: Ponnuchamy on May 31, 2009 1:30 AM

    in first page for user input :
    <form action="second.jsp" method="post">
    Are you happy?
    <br><input type="radio" name="radio1" value="yes" CHECKED>YES
    <br>
    <input type="radio" name="radio1" value="no">NO
    <input type="submit">
    in second.jsp output :
    Your answer is:
    <%= request.getParameter('radio1') %>
    Is it what you want to display?
    Hope that helps.

  • How-To Display the Number of Records Returned from a List to the User?

    We currently are using lists to identify accounts that meet various criteria. Because the territories vary from 4k to 60k customers the users have stated that they don't know the size of the list and therefore don't know if they need to refine the list. Currently they are exporting to Excel to look at the row count to see if they need to further refine their searches. This takes quite a while and while shuffling through many lists is a bit painful. Isn't there a way to just show the total records returned from the list down at the bottom of the screen where it allows you to see 25/50/75/100 records at a time?
    There is probably a simple way to do this but it is a large user dissatisfier at the time because we simply don't know how to make this show up. Again we are using lists and not analytics for simple lists at this time.
    - john
    Edited by: user11286597 on Jun 19, 2009 11:02 AM

    Thanks Bobb. I can't believe that one wasn't in R1 :)
    Is there a link to the items being worked in the next release by any chance?
    - john

  • How to decode and display the PDF in ADF application

    Hi All,
    I newbie to Oracle ADF,my requirement is like, In DB table encoded pdf data is available I am able to view the the encodes data in ADF app but I want to decoded pdf. In my app I decoded the encoded data but it comes as text format like' %PDF-1.4
    2 0 obj
    <<
    /CreationDate (D:20121017234301)
    /Keywords <>
    /Author ()' I looking for actual pdf format. Any help.
    Thanks
    Mani

    It would be helpful if you describe what did not work with the sample. The sample reads the pdf from a file whereas you need to load it from a blob in the DB.
    You can use my sample, which need some setup, so don't run it as is, http://tompeez.wordpress.com/2013/05/16/handling-imagesfiles-in-adf-part-4/ which shows how to do this with blobs read from the db.
    Timo

  • HOw to connect and extract the data from MS ACCESS SOURCE(Database) system

    Hi experts ,
    I have to extract the data from MS access database system using JDBC adapter will it work if Yes HOW?

    Hi Sushma,
    how to configure sendor JDBC adapter ..
    Select adapter type is JDBC..
    Give the Transport Protocol:.JDBC 2.0 (Example)............
                Message Protocol:...JDBC...........
                IAdapter Engine : Integration Server
    Processing Parameters..
    Quality of service.....(Example)..Exactly once
    Poll Interval .... Example ..10
    Query Sql statement..Example ..select * from XXXXX
    Document Name.....
    Update Sql stetement.....
    Thanks,
    Satya
    Reward points if it id useful...

  • How to count the number of records retreived through a query?

    Dear All
    I want to find the total number of records retreived for a particular query .
    does BW provide any internal count function , which can solve my requirement??
    if yes, please provide some details.
    Thanks.
    Regards,
    Pandurang.

    hi pandurang
    when u see the contents of a particular cube
    RSA1->Infocube->manage->contents
    there is a option "Output number of Hits"
    An extra keyfigure is created displaying the number of records rolled up
    Aggregating the column might just solve ur issue
    Try
    Regards
    Akshay

  • How to find the number of records in ods?

    how to find the number of records in ods?
    Pls suggest the solution apart going to the table of ods and seeing the number of records.
    Is there any program or function module to see the number of records in ods?
    For eg: SAP_INFOCUBE_DESIGNS is a program which gives the detail (number of records) of infocube.

    Hi,
    I was looking at this and found the following tables that may be of help.
    One of these tables will include a summary of the record count of all the tables in your system based on the last time each table had it's database statistics calculated:
    DBSTATTADA
    DBSTATTDB2
    DBSTATTDB4
    DBSTATTDB6
    DBSTATTINF
    DBSTATTMSS
    DBSTATTORA
    We run on an Oracle database so the table record counts can be taken from DBSTATTORA. Type in AZ in table selection field in SE16 to restrict the output to ODS (or DSO) tables only.
    The record count is at the time indicated in the timestamp field. Obviously this is not real time but should not be too out of date - if it is you may be having performance issues and should get your DBA / Basis to run a full refresh of DB stats.
    Hope this helps, alhtough not real time the table should give you a decent indication of the size of all your ODS objects (or any other table for that matter!)

Maybe you are looking for

  • Error while opening presentation services

    Hi, Currently we have a requirement that OBIEE be installed on a environment where we have OAS as the web application server. Before doing it on the environment, I decided to do the installation on the local system. As per the process, first I instal

  • Scanning in Adobe Acrobat Professional 8

    I have Windows XP - Adobe Acrobat Professional 8 - a Brother MFC-465CN printer scanner. When I want to create a .pdf from the scanner the Adobe program closes down. No error message. I can scan in other programs such as Photoshop etc.

  • My Itunes does not play quicktime

    I have the latest Itunes software version 10.6.3 but when I go to podcasts and try to play video, it tells me that my version does not support quicktime. Help! I have tried updating it but it does not seem to work.

  • Samsung LED HDTV + Samsung BlueRay Home Theater Setup...

    I just bought the systems listed above - and I'm trying to figure out how to get the TV setup to play through the Home Theater components.  I can get the Radio to play, through the speakers but I am not that familiar with setting these things up.  Mu

  • How close is the workflow & GUI in PrE 10 to PrE 8?

    Actually, I'm not sure I'm asking in the right place - is "Discussion" the same as "Forum"? It's been awhile since I've posted in the forum and things have changed a lot. I seem to be going around in circles. (You know you're in trouble when you don'