Sorting dynamic data to display on specific web table rows.

I am building a simple appt booking application. On one page I have a table, with the first column being appt time blocks of every 15 minutes.
8:00
8:15
8:30
          and so on. I have each time as a link to book an appt passing the time as a url parameter to the booking page( that works fine).
I'm strugging with sorting appointments that exist in the database with the matching time slot on the web page table, making it visually appealing to the end user.
8:00
8:15    some existing appointment
8:30
I would be nice if a repeat region would work, matching to a hidden field with the static time value to the record returned by the SELECT,  but i'm not sure how to coorelate the two. Leaving the open appointments slots blank, making it a single view of their day.
Thanks in advance for any help!

The concept seems right but I think my grasp of implementation is off.
The appts table has the follow columns
appt_hr | clientname | type | appt_day | appt_month | appt_year
I created a table appt_tm where each column is a different 15 min time increment
tm800 | tm815 | tm830  .....and so on up till tm2100
I put in the first row for each column its time,  col (0800) , value 0800, so there would be a data pattern to match on the join. Wrote the Select statement using a LEFT JOIN, joining all time columns 0800 and so on to the one appt_hr in the appts table. The sql is fine, and the web page returns some time data only. I'm not sure how to pull over the clientnames, or if my usage of the join is off track.
Part of my join
SELECT *
FROM appt_tm LEFT JOIN (appts) ON appt_tm.tm800=appts.appt_hr AND appt_tm.tm815=appts.appt_hr AND appt_tm.tm830=appts.appt_hr AND appt_tm.tm845=appts.appt_hr AND appt_tm.tm900=appts.appt_hr AND appt_tm.tm915=appts.appt_hr AND appt_tm.tm930=appts.appt_hr AND ......
Thanks again!

Similar Messages

  • To restrict the number of data columns displayed in BW Web report

    Hi,
    In the corresponding Bex query i am using 'Start Time' characteristic in the row. In the BW Web template i don't want the 'Start Time' to be displayed when i execute.
    I tried to restrict the number of data columns displayed in the web item table properties but that did not help
    Can i get some help
    Thanks,
    Mala

    Hi Mala,
    You can try out the following: Create a view on your query and in that view remove the Start Time char from the drilldown. Use this view as a data provider in the web template.
    Hope this helps...

  • Reading XML file into Dynamic Node and Display its output as Table.

    Hi All,
    Following is the output of XML file:
       <Company>
         <Employee>
              <Name>John</Name>
              <Age>23</Age>
              <***>Male</***>
              <Location>Frankfurt</Location>
         </Employee>
         <Employee>
              <Name>Tina</Name>
              <Age>21</Age>
              <***>Female</***>
              <Location>Boston</Location>
         </Employee>
         <Department>
              <Name>Sales</Name>
              <HQ>Chicago</HQ>
              <Emplyoees>2300</Employees>
         </Department>     
    I'm able to read the output through DOM parser. But How do I convert this into dynamic node and display this in Web dynpro as Table?
    Any pointers in this regard will be great help?
    Thanks
    Srikant

    Hi Maksim,
    I've used your example and its now helping as there is kind of agreement on that I'll be knowing the structure of Xml and I can fill the nodes.
    But suppose if you have Xml has following structure :
    <?xml version="1.0" encoding="utf-8"?><DATA>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">CONTRACT</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">CREDIT</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">EMPRESS</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">PAYMENT</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">PRICE</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    </DATA>
    How we will do in this case?
    Can we have something similar using DOM? Also what is the best method for displaying data being sent in form of XML. And generalize it for cases like this.
    Thanks
    Srikant

  • How to call javascript function with dynamic data in display tag

    Hi,
    Iam new to pagination concept. Iam using display tag to display rows in jsp by strtus.
    I have a problem when calling the javascript function using ahref in attribute in display tag.
    <bean:define name="form1" property="EditDetails.List" id="ListDisplay"/>
    <display:table name="pageScope.ListDisplay" cellpadding="0" cellspacing="1" pagesize="10" partialList="false" size="listSize" requestURI="">
    <display:column property="poNo" href='javascript:searchEditDetails("./submitOrder.do? actionID=getMISLoadEdit&poNumberSel=<%=((com.po.bean.EditDetails)poListDisplay).getNo()%>&statusIdSelected=<%=((com.po.bean.EditDetails)ListDisplay).getStatusId()%>")'
    title="Number"/>                         
    <display:column property="strDate"title="Date" />
    <display:column property="orderValue"title="Order Value(INR)"/>
    <display:column property="stringRequestedDeliveryDate"title="Suggested Delivery Date"/>
    <display:column property="statusDescription" title="Status" />
    </display:table>
    The above code display the data in row format is working fine when I click the No It thow javascript error and its not redirecting to the other page.
    When I try this with ordinary struts its working fine the code is:
    <logic:iterate id="polist" name="Form1" property="EditDetails.List" indexId="i" type="com.bean.EditDetails">
    <tr>
    <td ><a href="javascript:searchEditDetails("./submitOrder.do?actionID=getMISLoadEdit&NumberSel=<%=((com.bean.EditDetails)polist).getNo()%>&statusIdSelected=<%=((com.bean.EditDetails)polist).getStatusId()%>")"><html:hidden name="polist" property="No" write="true" /></a>     </td>
    <td><html:hidden name="polist" property="strDate" write="true" /></td>
    <td><html:hidden name="polist" property="orderValue" write="true" /></td>
    <td><html:hidden name="polist" property="stringRequestedDeliveryDate" write="true" />     </td>
    <td><html:hidden name="polist" property="statusDescription" write="true" /></td>
    </tr>
    </logic:iterate>
    Please help me how to call javascript with dynamic data.
    Thanks in advance

    The ADF Mobile Container Utilities API may be used from JavaScript or Java.
    Application Container APIs - 11g Release 2 (11.1.2.4.0)

  • Create image of XSTRING data and display it in Web Dynpro

    Hello,
    I am trying to dynamically display an image in a Web Dynpro ABAP Image-Control. The problem is that the data is stored in the DB as XSTRING and I can't find a Method for example to create a new object in the MIME-Repository of the data which is read out of the DB at runtime.
    I have already converted the XSTRING into w3mime-Format with the function module RSFO_XSTRING_TO_MIME, but the Control needs a string of a url to display the image (for example to a MIME-Object of the component or a link to a file on the ITS).
    Is there somehow a possibility to do this?
    Thanks for your help,
    Kolja
    Solved this way: See /people/brian.mckellar/blog/2003/09/30/bsp-in-depth-writing-an-http-handler
    Message was edited by: Kolja Ewering

    Hi you may go through the below post to find what could be a better way to do that.
    http://forum.java.sun.com/thread.jspa?threadID=5163829
    REGARDS,
    RaHuL

  • Rdl file Tablix sorting. dynamical data columns.

    Hi ,
    we are having Tablix with 5 columns of data. in that first 3 column data is a static and remaining two columns data will be calculated and populated dynamically on the 4,5 column. it is working fine but when i sort the any of the first 3 columns it is showing
    the wrong data in the 4,5 th columns.
    can any one help how to over come this.
    Advance thanks.
    Vijay

    Hi Vijay,
    If I understand correctly, the values in the fourth and fifth column change dynamically based on the static values in the first three columns in your report. And then you set the sort expression for the data region or for each group, including the details group
    in a tablix data region.
    I tested the issue in my test environment in the basis of my understanding. I have set the expression in the fourth and fifth column and set the sorting of tablix based on the fifth static column. When running the report, there is no issue.
    To resolve your matter, please post the report design and the expression in sorting option’s screenshot to the forum.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Snow Leopard Dashcode - dynamic data source for search via web API

    I'm making a dual product dashcode project, for safari and mobile safari. I have a dataSource that is a web API that takes a couple of variables to return results in JSON format. When the safari product launches, it's set up to ping the API with a set of parameters and populate an itemsList in my left sidebar. I have a search field above that itemsList. Now I can get the search field to:
    1. take the contents of the search field and construct a new URL from it.
    2. go out and ask for results from pinging the API via an XMLHTTPRequest.
    3. eval the contents and be ready to put it into the itemsList...
    the questions I have are:
    1. Where do I put the evaluated JSON results? DC.dataModel.dataSource.content ?
    2. What's the trigger to get my itemsList to reload the data?
    Here's the relevant search handler function code:
    function mySearchHandler(event)
    // Values you provide
    var searchFieldValue = document.getElementById("search"); // replace with ID of search field
    // Search field code
    searchFieldValue = searchFieldValue.value;
    // Values you provide
    // The feed to fetch
    var feedURL = "http://myurl.com/api.php?searchfortext="+ searchFieldValue + "&resultformat=json";
    var onloadHandler = function() { xmlLoaded(xmlRequest); }; // The function to call when the feed is loaded; currently calls the XMLHttpRequest load snippet
    // XMLHttpRequest setup code
    var xmlRequest = new XMLHttpRequest();
    xmlRequest.onload = onloadHandler;
    xmlRequest.open("GET", feedURL);
    xmlRequest.setRequestHeader("Cache-Control", "no-cache");
    xmlRequest.send(null);
    and then in my xmlLoaded function, I figured it would be something like this:
    function xmlLoaded(xmlRequest)
    if (xmlRequest.status == 200) {
    //' xmlRequest.responseText has what I want in it. Where do I put it? I thought it was here:
    DC.dataModel.dataSource.content = eval(xmlRequest.responseText);
    // or was it here? Neither of these seem to work.
    // DC.dataModel.itemsList.setContent(DC.dataModel.dataSource.content);
    // Then what, get the itemsList.object and tell it to reload itself... ? Doesn't work for me. :-
    document.getElementById("itemsList").object.reloadData();
    else {
    alert("Error fetching data: HTTP status " + xmlRequest.status);
    But... this doesn't work. I can evaluate DC.dataModel.dataSource.content and I can see my new search results sitting there. But I can't get my itemsList to refresh the display and load up what the web API gave it. How does this work in snow leopard dashcode?

    CrashPlan is a beast prone to ruining any other purpose on the server. I'd highly recommend moving it to it's own dedicated machine, like a mac mini. When I use CrashPlan that's my preference.
    You can find more information about mds by looking at it's man page, mds(8) and the man pages of it's related utility mdutil(1). Your mds database is likely corrupt. You have a few options. Wipe and reindex your metadata stores and/or turn indexing off on volumes that you don't need it.
    http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/ 10.6/man8/mds.8.html
    http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/ 10.6/man1/mdutil.1.html
    Gil

  • Hi wanna display as 3 in table row

    Hi, Still in categories and subcategories: my below component
    is displaying the code as tree menu:
    <cfcomponent name="Categories">
    <cffunction name="getCats">
    <!--- Parent ID --->
    <cfargument name="parent" type="numeric">
    <!--- Query for Children of Parent --->
    <cfquery name="cats" datasource="#request.dsn#">
    SELECT * FROM
    categories
    WHERE parentid = <cfqueryparam cfsqltype="cf_sql_numeric"
    value="#arguments.parent#">
    </cfquery>
    <!--- Create Output --->
    <cfif cats.recordcount GT 0>
    <cfset output = "<ul>">
    <!--- Loop over all items --->
    <cfloop query="cats">
    <cfset output = "#output# <li><a
    href='a.cfm?id=#cats.catID#'>#cats.category#</a>">
    <!--- Check Children of this item --->
    <cfif cats.recordcount GT 0>
    <cfset output = "#output# #CreateObject('component',
    'wrap').getCats(cats.catid)#">
    </cfif>
    <cfset output = "#output#</li>">
    </cfloop>
    <cfset output = "#output#</ul>">
    <cfreturn output />
    </cfif>
    </cffunction>
    </cfcomponent>
    And what i was tryng is that for every category a <td>
    should be created and then i should add something like <cfif
    query.currentRow MOD 3>
    it should move to the next <td> TAG.
    Till Here but the problem is i am trying to doin may be say
    stupid way.
    under category in one <TD> if that category have
    subcats. then it should display them as ul and li. and like this:
    i created a table generation but getting into problems while
    plugging it in the cfc:
    here is of my auto table generation:
    <table align="center" width="100%" border="0">
    <cfif variables.newrow EQ true>
    <tr>
    </cfif>
    <td>My CFC Code Goes Here</td>
    <cfif query.currentRow MOD 4 EQ 0>
    </tr>
    <cfset variables.newrow = true>
    <cfelse>
    <cfset variables.newrow = false>
    </cfif>
    <tr>
    </table>
    </div>
    </cfoutput>

    It would be much simpler if you got all your data before you
    attempt to display it. Plus it appears that you can get all the
    data you need with a single query.

  • Display the background of table row alternatively and hiding cell border

    Hi all,
    I am trying to display the background of the table using different color alternative and at same time I need to hide the border of all cells.
    What I found in <af:table> is using bandingInterval="1" banding="row", but how can I set the background color? And how to hide the cell border?
    Or if there is a thing like row index so that I can mod it like rowIndex%2==0 in every column to determine the inlineStyle?
    Thanks.
    Shawn

    <af:table value="..." var="row" varStatus="status">
      <af:column inlineStyle="#{status.index % 2 > 0.5 ? 'border:none;' : ''}">
      </af:column>
    </af:table>For some reason, EL operation always seems to return a double, so the condition has to be defined with that in mind.
    Regards,
    ~ Simon

  • How do I get time & date for specific web sites visits from the fire fox history?

    how do I get history information for the time and date I went to specific web sites from firefox?

    The 'View' menu at the top, select Sidebar > History. At the right top of the sidebar that appears, click "View" button, select "View by date" or "View by date and site".

  • Linking dynamic data records to URL

    I created a record set then use the record the record set to create a dynamic data to display all the records of that table from the database.
    I want to know how to link each record from the table to different URL when displaying
    I have like five fields in the the table i wan to use the name of each record as a link to anothe different url'Thanks

    Microsoft Access is not designed for REALLY large data sets, and only grief can come from trying to make a product do what it was not designed for.
    The product is superb for working with data on SQL Server. It provides a very complete SQL implementation of its own which allows the local microcomputer to be "much more than just a dumb terminal." The workstation and the remote server really can
    "divide and conquer" with both parties being well equipped to do real work.
    I would encourage you to plan from the outset to use some SQL-based server technology as your primary data store. But do not limit your review only to Microsoft's offering! There are half-a-dozen strong contenders and you should systematically look at all of
    them. These tools are designed to handle the data and transaction volumes you envision and can work very well with Access.
    Of course, there is a hard 2GB limit on MDB files, and performance degrades well before that.  Now, that's imported data. 
    You can certainly link to many large data sources, and the links won't take up much memory at all.  Again, use good judgment and use the right tool for the job.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • How fit data into dynamic data?

    Hello,
    I'm having problems when i want to convert the data that i adquired using VISA to dynamic data. The Dataset consist of one row/column with relative time stamps (elapsed measurement time), and up to 30 channels of data. How do i do this?
    Thank you for the help
    Solved!
    Go to Solution.

    You should stay way from using Express VIs. They do you now good. And a beginners very often make a code mess by using them. You will be far better of by using traditional Labview. And not some flimflam that NI have glued ontop of Labview using very cheap glue. If you go to toolbar and help, and select example finder. You can search for examples. Just type in xy in search field and you will find many examples. Then I started using Labview I learned a lot by searching in the example database then I was stuck or in doubt. By the way always have concept help on then using Labview (ctrl+h). This and example finder is your best Labview helpers 
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How to display contents of one table and update another one

    Hi all
    My requirement is the following:
    - Three tables, guard, site and guard_site where guard_site shows which guards are linked to a particular site and vice-versa
    - I need to create one front-end where i allow all guards to be linked with a particular site
    - so the panel must show all guards available (so get display data from guard table) and then i need to introduce a row selector, which allows user to select whichever guards he/she wants
    - There will be a save button and upon pressing it, i will create an entry on the guards_site table for the selected guards against the siteId provided when user goes to this page.
    - Also upon loading this page if there are already any linked guards these must show as ticked in the row selector.
    so I first attempted using a Tabular form or a form on a table/view, but it then forces me to select a table to update, which is not what i want, the data i display is from guard table, which is not the table i want to update... so I then tried a blank page and I created a SQL Query report region... but it doesn't allow me to add a row selector (even if I have added a button on the region).
    Any ideas?
    Regards and thanks
    Jose
    Ps- im using version Application Express 4.0.2.00.09 that came with Oracle Database Express Edition 11g

    Jose,
    Three tables, guard, site and guard_site where guard_site shows which guards are linked to a particular site and vice-versaso I first attempted using a Tabular form or a form on a table/view, but it then forces me to select a table to update, which is not what i want, the data i display is from guard table, which is not the table i want to update...>
    Maybe I am not understanding what you are trying to do but it appears that the table guard_site is the table you should be updating. Doesn't the guard_site table contain foreign keys from both the guard and site tables?
    Jeff

  • Ajx problem with jsp .not able to show  ajax response data in table rows

    hi evryone
    i m new to ajax .i m not able solve this problem .pls help if anyone understood my problem
    probelm scenario is like this:
    take a example of shopping page where a field amount changes every time (time interval) ,the amount data is coming from database .ok...
    this i m trying to do with ajax and want to display the value in table rows one by one ..but response whihc i m getting is different .....same value is diaplying in evry rows .which i dont want
    the output it coming now is:like this
    item amount
    item 1 20
    item2 20
    item 3 20
    i want like thi s
    item amount
    item 1 20
    item2 30
    item 3 40
    even in database the value is 20,30,40
    here is the code of two jsp page
    one is ajaxitem_amount.jsp
    <%
    try
    stmt3 = con.createStatement();
    String itemQ="select item_ref_id,quantity from item_master where shop_ref_id="+shopid+" and (status is null or status<>'w') order by item_ref_id";
    //out.println(railQ);
    rs_details=stmt3.executeQuery(itemQ);
    while(rs_details.next())
    item2 = rs_details.getInt("ITEM_REF_ID");
    v.add(new Integer(item2));
    String aString = Integer.toString(item2);
    itemids.add(aString);
    Enumeration enum = v.elements();
    for (j=0; j<v.size(); j++)
    //out.println("v[" + j + "] = " + v.elementAt(j));
    sql3="select max(shop_amount) from shop_floor_temp where item_ref_id="+v.elementAt(j);
    rs_bid=stmt3.executeQuery(sql3);
    if(rs_price.next())
    last_price=rs_price.getDouble(1);
    if(last_price != 0)
    lprice= last_price;
    else
    lprice=1;
    out.print("<response>");
    out.print(lprice+"|");
    out.print("</response>");
    out.print("\n");
    catch(Exception ex)
    out.print("ERROR"+ex);
    // out.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
    _another is main shopping
    <td bgcolor="#C5B9AB" width="10%" align="center">
    <strong><font face="Verdana" size="2">Last price</font></strong>
    int tabrowcounter=0;
    while(rs_details.next())//some query
    tabrowcounter++;
    //*some more data is displayed here one by one all are working instead of this which i am calling from another page ajaxitem_amount.jsp page*
    <td bgcolor='<%=colorjava%>' width="50%" align="center">
    <div id="responseimage<%=tabrowcounter%>"></div>
    <div id="responseOutput<%=tabrowcounter%>"></div>
    <SCRIPT LANGUAGE="JavaScript">
    function createXHR<%=tabrowcounter%>()
    try { return new XMLHttpRequest(); } catch(e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch (e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch (e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
    try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
    alert("XMLHttpRequest not supported");
    return null;
    function sendRequest<%=tabrowcounter%>()
    document.getElementById('responseimage<%=tabrowcounter%>').innerHTML ="<IMG SRC='load.gif'> ";
    document.getElementById('responseimage<%=tabrowcounter%>').style.display = 'block';
    document.getElementById('responseOutput<%=tabrowcounter%>').style.display = 'none'
    var url="ajaxauct_floor.jsp";
    var xhr = createXHR<%=tabrowcounter%>();
    if (xhr)
    xhr.open("get",url,true);
    xhr.onreadystatechange = function()
    handleResponse<%=tabrowcounter%>(xhr);
    xhr.send(null);
    function handleResponse<%=tabrowcounter%>(xhr)
    if (xhr.readyState == 4 && xhr.status == 200)
    try
    var data = xhr.responseText.split("|");
    //document.write(data);
    //updatePage<%=tabrowcounter%>(xhr.responseText);
    //document.write(xhr.responseText);
    setTimeout('sendRequest<%=tabrowcounter%>()',10000);
    for(var x=0;x<data.length-1;x++)
    //alert(data);
    document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[x];
    document.getElementById('responseimage<%=tabrowcounter%>').style.display = 'none'; // HIDE
    document.getElementById('responseOutput<%=tabrowcounter%>').style.display = 'block'
    //document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[0];
    //document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[0];
    catch(e)
    alert('1 '+e)
    sendRequest<%=tabrowcounter%>();
    </SCRIPT>
    </td>
    </tr></table>
    if anyone have understood my problem pls help me .i have tried lot but not working .anyone genius here ?thnak you

    thanks baluc
    thanks for correcting me and giving me a good advice .anyway i m trying make you understand once again ...
    if you have understood this time please do reply .else i m sorry for placing wrong question ....
    hi everyone
    I m new to Ajax .I m not able solve this problem .pals help if anyone understood my problem
    problem scenario is like this:
    take a example of shopping page where a field amount changes every time (time interval) ,the amount field* (this data is coming from database )
    this I m trying to do with Ajax and want to display the value in table rows one by one ..But response which I m getting is different.....same value is displaying in every rows .which I don't want
    The output it coming now is: like this
    item amount
    item 1 20
    item2 20
    item 3 20
    I want like this s
    item amount
    item 1 20
    item2 30
    item 3 40
    even in database the value is 20,30,40
    here is the code of jsp page
    one page is ajaxitemamount.jsp_*
    <%
    try
    stmt3 = con.createStatement();
    String itemQ="select item_ref_id,quantity from item_master where shop_ref_id="+shopid+" and (status is null or status<>'w') order by item_ref_id";
    //out.println(railQ);
    rs_details=stmt3.executeQuery(itemQ);
    while(rs_details.next())
    item2 = rs_details.getInt("ITEM_REF_ID");
    v.add(new Integer(item2));
    String aString = Integer.toString(item2);
    itemids.add(aString);
    Enumeration enum = v.elements();
    for (j=0; j<v.size(); j++)
    //out.println("v[" + j + "] = " + v.elementAt(j));
    sql3="select max(shop_amount) from shop_floor_temp where item_ref_id="+v.elementAt(j);
    rs_bid=stmt3.executeQuery(sql3);
    if(rs_price.next())
    last_price=rs_price.getDouble(1);
    if(last_price != 0)
    lprice= last_price;
    else
    lprice=1;
    out.print("<response>");
    out.print(lprice+"|");
    out.print("</response>");
    out.print("\n");
    catch(Exception ex)
    out.print("ERROR"+ex);
    // out.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
    another is main shopping page page 2*
    <td bgcolor="#C5B9AB" width="10%" align="center">
    <strong><font face="Verdana" size="2">Last price</font></strong>
    int tabrowcounter=0;
    while(rs_details.next())//some query
    tabrowcounter++;
    <td bgcolor='<%=colorjava%>' width="50%" align="center">
    <div id="responseimage<%=tabrowcounter%>"></div>
    <div id="responseOutput<%=tabrowcounter%>"></div>
    <SCRIPT LANGUAGE="JavaScript">
    function createXHR<%=tabrowcounter%>()
    try { return new XMLHttpRequest(); } catch(e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch (e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch (e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
    try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
    alert("XMLHttpRequest not supported");
    return null;
    function sendRequest<%=tabrowcounter%>()
    document.getElementById('responseimage<%=tabrowcounter%>').innerHTML ="<IMG SRC='load.gif'> ";
    document.getElementById('responseimage<%=tabrowcounter%>').style.display = 'block';
    document.getElementById('responseOutput<%=tabrowcounter%>').style.display = 'none'
    var url="ajaxauct_floor.jsp";
    var xhr = createXHR<%=tabrowcounter%>();
    if (xhr)
    xhr.open("get",url,true);
    xhr.onreadystatechange = function()
    handleResponse<%=tabrowcounter%>(xhr);
    xhr.send(null);
    function handleResponse<%=tabrowcounter%>(xhr)
    if (xhr.readyState == 4 && xhr.status == 200)
    try
    var data = xhr.responseText.split("|");
    //document.write(data);
    //updatePage<%=tabrowcounter%>(xhr.responseText);
    //document.write(xhr.responseText);
    setTimeout('sendRequest<%=tabrowcounter%>()',10000);
    for(var x=0;x<data.length-1;x++)
    //alert(data);
    document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[x];
    document.getElementById('responseimage<%=tabrowcounter%>').style.display = 'none'; // HIDE
    document.getElementById('responseOutput<%=tabrowcounter%>').style.display = 'block'
    //document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[0];
    //document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[0];
    catch(e)
    alert('1 '+e)
    sendRequest<%=tabrowcounter%>();
    </SCRIPT>
    </td>
    </tr></table>
    if anyone have understood my problem please help me .i have tried lot but not working .anyone genius here ?thank you

  • No Data to display in Application failure report for a specific Application

    Hi ,
    For a specific application,Application failure report showing no data to display but for the same application other reports shows value.
    Application failure reports seems to work fine for some other application except few.Need to know the root cause.
    Kindly help us to sort this issue.
    Thanks & Regards,
    Preethi S

    Hi,
    Is there any error message when you run Application Failure Analysis report for the specific application?
    Does this application have any failure alerts?
    You may also look into operation manager even logs to check is there any errors or warnings.
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

Maybe you are looking for