Help on jsp code to display data in same page using using ajax ?

Is there any jsp code to display in same page using using ajax ?

Re: need help on how to display data in same jsp page. Locking.

Similar Messages

  • Not able to display data in separate columns using Unicode encoding

    Hi,
    Iam using Unicode encoding in my Java appln to support Japanese characters while downloading CSV report. But using the Unicode encoding displays all data in the first column of Excel sheet.
    Please let me know how to display data in different columns using Unicode encoding in Excel sheet.
    This is an urgent need. Please help me out.

    Hi,
    I have no problem with item :P15_EV_LCL this is having a value my probem here is i am using java script to display the value in different color based on the condtion case
    eg:
    select
    case
    TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2)
    = :P15_EV_LCL
    then
    span style="background-color:lightgreen"
    || TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    else
    span style="background-color:yellow"
    || TRUNC(
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    end "Effort"
    from actuals Z
    If i dont use this <Span style="Background-color:color"> i am able to generate data in excel sheet if i use this color coding i am not able to get data in spread sheet.
    Please suggest
    Thanks
    Sudhir
    Edited by: Sudhir_N on Mar 23, 2009 10:00 PM

  • Not able to display data in different columns using Unicode encoding

    Hi,
    Iam using Unicode encoding in my Java appln to support Japanese characters while downloading CSV report. But using the Unicode encoding displays all data in the first column of Excel sheet.
    Please let me know how to display data in different columns using Unicode encoding in Excel sheet.

    Hi Venkat,
    After extracting data into DSO check the request whether active or not.
    Check data in DSO in contents.
    If is there any restrictions on info providers in Queries.
    Let us know status clearly.......
    Reg
    Pra

  • Display data in log file using PL/SQL procedure

    Just as srw.message is used in Oracle RDF Reports to display data in log file in Oracle Apps, similarly how it is possible to display data in log file using PL/SQL procedure?
    Please also mention the syntax too.

    Pl post details of OS, database and EBS versions.
    You will need to invoke the seeded FND_LOG procedure - see previous discussions on this topic
    Enable debug for pl/sql
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_LOG&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    HTH
    Srini

  • Smart forms- when i print a report it print main window data on same page

    hi,
    when i print a report it print main window data on same page .
    i.e. if data is more then one page then it shows data page wise on computer screen but when i print it print all data on same only one page by over wrriting .
    pl. help why it is happening
    i create page in page i set next page and in second page give first page.
    mukesh

    mukesh,
    what happened to this: smart form
    close that please.
    by the way,did you tried with what i suggested?
    lets say mainwindow in 1st page.
    copy the first page to second page.
    now.
    for 1st page: next page is : page2
    for page2: next page is also : page2

  • How to print different  header & item data in new pages using smart forms.

    Hi,
    In smart forms I am trying to print header data & their item data. But there are more than one header data for a given input.
    I want to print all the different header data with their item data in new pages using smart forms. Can any one please help to solve the issue.. Its very urgent for me..
    Regards,
    Brajesh

    Hi
    U need to use control break statements to acheive ur requirement.
    Regards,
    Priya

  • Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount 28

    Post Author: tadj188#
    CA Forum: Formula
    Needed: Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount > 28
    Background:
    1) Report SQL is created with unions to have detail lines continue on a page, until it reaches page footer or report footer, rather than using  subreports.    A subreport report is now essentially a group1a, group1b, etc. (containing column headers and other data within the the report    with their respective detail lines).  I had multiple subreports and each subreport became one union.
    Created and tested, already:
    1) I have calculated @TotalLineForEachOfTheSameGroup, now I need to sum of the individual same group totals to get the total line count on a page.
    Issue:
    1) I need this to create break on a certain line before, it dribbles in to a pre-printed area.
    Other Ideas Appreciated:
    1) Groups/detail lines break inconveniently(dribble) into the pre-printed area, looking for alternatives for above situation.
    Thank you.
    Tadj

    export all image of each page try like this
    var myDoc = app.activeDocument;
    var myFolder = myDoc.filePath;
    var myImage = myDoc.allGraphics;
    for (var i=0; myImage.length>i; i++){
        app.select(myImage[i]);
        var MyImageNmae  = myImage[i].itemLink.name;
        app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
        app.jpegExportPreferences.exportResolution = 300;
           app.selection[0].exportFile(ExportFormat.JPG, File(myFolder+"/"+MyImageNmae+".JPEG"), false);
        alert(myImage[i].itemLink.name)

  • Process error message: Display on the same page

    When I create a before header process and that has an error, the error message shows up on a page by itself with the OK button. This takes away the context of the error
    Similar to how validations have the option of displaying inline on the same page, is there a way to have the process error message display on the same page?
    Thanks

    I just want to display the error message on the same page, thats all. I dont want a error page with just the error since it takes away all the context.
    Well what do you want to do, you can set a item to
    hold a message and display that item in a region
    when this_exception then
    :P20_ERROR_MESSGE := 'Something went wrong here';So, P20_ERROR_MESSAGE would be a hidden item on the page?
    Then display the item in a region.How can I display that hidden item in the region? So the region would just have this read-only text box in it? But then it wont be hidden? I guess I can conditionally display the region only if the error message is not null?

  • Need little help with JPA code and displaying database data into tables

    Hello Everyone,
    I am using java6 and Netbeans 6.1 on Windows XP platform.
    This is probably very simple but have'nt been able to figure it out yet. I am using the Travel Java Databse included in NB6 as a learning tool.
    I have a JComboBox connected to Person Table and want to display a Trip table from using the selected item from theJcombobox. In other words, Trip table shows only the Person selected from the Jcombobox.
    If someone could point me on the right direction how to code JPA code or how to use NB6 GUI to accomplish this.
    Thanks

    The w and wi are just table aliases that make it easier to
    referrence those tables by column when joining multiple tables
    (avoids having to prefix column names with the entire table name,
    etc.) When doing a self-join (joining a table to itself), the use
    of table aliases is
    required, otherwise you would have no other way to tell
    which column belonged to which "instance" of table.
    The query itself is pretty simple. It is just using a
    correlated subquery to select only those instances of
    workstationApps where the count of appID instances in
    workstationAppIndex is less than the amount specified in the
    maxConcurrentInstalls for the same appID.
    Also, I do see what you are doing with #form.searchType#, I
    was just making sure that it was what you really intended to do.
    Phil

  • Help with if/else in displaying data - (possibly foreach)

    Hello all,
    I've been trying to set something up, and I'm having difficulty getting it to work.
    Lines 84-111 have become my biggest difficulty.  I've got an if/else statement set up so that if one record has an image located on the localhost that image is pulled up.  The way I have it now, this works great.
    If I swap lines 93-96 with 102-105, and just tweek line 90, I can get it to work if the image is located on an alias and not the localhost.
    The problem is that if I have it like it is now, I can't get both to work at the same time.  So, I'm trying to get the if/else statement to apply to each record that is being pulled up.  It seems like what it is doing now is choosing which part of the if/else statement it needs to use for the first record, and then applies that for all records.
    Is there a way to have it coded like it is now for the if/else statement (because I want to be able to add multiple alias' and just check to see if the image is on the localhost or not); but have the image be displayed no matter if the image is located on the localhost or an alias?
    The following is what I've got so far:
    <?php
    $search = $_GET['series'];
    $query_begin=" SELECT * FROM movies WHERE movie_name_series = '$search' ";
    $search_begin = mysql_query($query_begin) or die(mysql_error());
    $row_begin = mysql_fetch_assoc($search_begin);
    if($row_begin == 0){
    ?>
    <script type="text/javascript"><!--
    setTimeout('Redirect()',0000);
    function Redirect()
      location.href = 'index.php?content=noresult';
    // --></script>
    <?php
    else
                    $query_display = "SELECT * from series WHERE series_id = '$search'";
           $result_display = mysql_query($query_display);
           $row_display = mysql_fetch_array($result_display, MYSQL_ASSOC);
              $series_id = $row_diaplay['series_id'];
              $series_name = $row_display['series_name'];
        ?>
    <h2>All Movies in our Library categorized in the series <?php echo $series_name ?></h2>
    <br />
    <div style="float: left; width: auto">
        Click on the name of the movie to edit the movie.
    </div>
         <br />
            <hr size="1" noshade="noshade" />
      <br />
    <?php
    $query="SELECT * FROM movies
      INNER JOIN family_rating ON movies.movie_star_rating=family_rating.star_id
      INNER JOIN alias ON movies.alias=alias.alias_id
      INNER JOIN parent_alert ON movies.parent_alert=parent_alert.alert_id
      INNER JOIN rating ON movies.movie_rating=rating.rating_id
      WHERE movies.movie_name_series='$search'
      ORDER BY movies.movie_name ASC";
    $result= mysql_query($query)or die (mysql_error());
    while($row=mysql_fetch_array($result)){
    // Display the data
    ?>
        <table width="200" style="margin: 20px">
        <tr align="center">
      <td valign="top">
       <h1 style="font-size: 12px"><?php echo $row['movie_name']; ?></h1>
            </td>
        </tr>
        <tr align="center">
      <td valign="top" style="width: 100%; border-bottom: ridge #FFF; border-left: ridge #FFF; background: url(assets/images/transback.png) repeat; padding: 10px">
       <a class="ToolText" onMouseOver="javascript:this.className='ToolTextHover'" onMouseOut="javascript:this.className='ToolText'">
       <style media="screen" type="text/css">
              #coverart {
                display: block;
                width: 110px;
                height: 150px;
              #coverart:hover {
                background: url("assets/icons/play_movie.png") no-repeat 0 0;
              background-size: 110px;
             </style>
            <p>
             <form action="index.php?content=play_movie" method="post">
                <input type="hidden" value="<?php echo $row['movie_id']; ?>" name="movie" />
             <input type="hidden" value="<?php echo $row['warning'] ?>" name="warning" />
                                        <?php
              if ($row['alias_name']='localhost') {
             ?>
                                        <input onmouseover='this.src="assets/icons/play_movie.png"'
                                         onmouseout='this.src="movies/coverart/<?php echo $row['art']; ?>"'
                                        type="image" src="movies/coverart/<?php echo $row['art']; ?>"
                                        style="border: none" height="150" width="110" />
                                        <?php
              }else{
               ?>
                                        <input onmouseover='this.src="assets/icons/play_movie.png"'
                                         onmouseout='this.src="http://<?php echo $row['ip_address']; ?>/<?php echo $row['alias_name']; ?>/coverart/<?php echo $row['art']; ?>"'
             type="image" src="http://<?php echo $row['ip_address']; ?>/<?php echo $row['alias_name']; ?>/coverart/<?php echo $row['art']; ?>"
                                        style="border: none" height="150" width="110" />
                                        <?php
              ?>
                </form>
                                        </p>
                                    <span><h2 align="center"><?php echo $row['movie_name']; ?></h2>
            <?php echo $row['rating_name']; ?>
                                    <h4><?php echo $row['description']; ?></h4>
            <?php
             if($row['parent_alert']='1') {
              ?>
            <p align"center"><img src="assets/icons/<?php echo $row['alert_file_name']; ?>"></p></span>
                                    <?php
             } else {
             ?>
                </a>
                <img src="assets/icons/s_<?php echo $row['star_file_name']; ?>" />
            </td>
    </tr>
        </table>
    <?
    ?>
    I've looked through a number of tutorials and it's been indicated to use a for each loop.  However, I can't seem to get this to work.  Is there anything I can do to get this to work the way I am trying to?  Is it a problem with my if/else or do I need a for each?  If I need a for each, how do I do that?
    Thanks.

    Thank you for your reply.  I apologize for not being as clear as I needed to be, so I'll try and explain better.
    I've got a page that pulls up some records from a database, where I've got an if / else statement as part of the section where it displays the data.
                                        <?php
              if ($row['alias_name']='localhost') {
             ?>
                                        <input onmouseover='this.src="assets/icons/play_movie.png"'
                                         onmouseout='this.src="movies/coverart/<?php echo $row['art']; ?>"'
                                        type="image" src="movies/coverart/<?php echo $row['art']; ?>"
                                        style="border: none" height="150" width="110" />
                                        <?php
              }else{
               ?>
                                        <input onmouseover='this.src="assets/icons/play_movie.png"'
                                         onmouseout='this.src="http://<?php echo $row['ip_address']; ?>/<?php echo $row['alias_name']; ?>/coverart/<?php echo $row['art']; ?>"'
             type="image" src="http://<?php echo $row['ip_address']; ?>/<?php echo $row['alias_name']; ?>/coverart/<?php echo $row['art']; ?>"
                                        style="border: none" height="150" width="110" />
                                        <?php
              ?>
    When the records are pulled, it seems like only the first part of the if / else statement is being applied to every record that is being pulled. The problem is if I've got records like the following:
    Record one - (file on the host computer)
    needs to be displayed from the condition
    src="movies/coverart/<?php echo $row['art']; ?>"
    Record two - (file on networked external hard drive)
    needs to be displayed from the condition
    src="http://<?php echo $row['ip_address']; ?>/<?php echo $row['alias_name']; ?>/coverart/<?php echo $row['art']; ?>
    The way it's coded now, only record one will display the image (record two will not display the image).  If I swap the order of the conditions, only record two will display the image (record one will not display the image).
    How do I get both record one and record two to display the image when both appear on the same page from a single search query?
    If I still did not explain it well enough, please let me know and I will try and do better.  Again, thank you for your help.

  • Need Help in finding FM for displaying date as output EX:april-07

    Hi All,
    I have a problem in displaying date for example:
    If i give period as 4 and year as 2007,
    the output should be displayed as april-07.
    Can any one help me out in finding a solution.
    Thanks in advance.

    MONTH_NAMES_GET  will give you the month name
    FUNCTION MODULES
    http://www.erpgenie.com/abap/functions.htm
    http://www.sapdevelopment.co.uk/fmodules/fmssap.htm
    http://www.erpgenie.com/abap/index.htm
    http://www.geocities.com/victorav15/sapr3/abapfun.html
    Rewards if useful...........
    Minal
    Message was edited by:
            Minal Nampalliwar

  • Automatically displaying date of last page change

    I think I remember seeing this a year or so ago, but I can't find it.
    Is there a way to grab the date that a page was last modified and display that on the page? It seems like there should be and easy way, since the information shows up in the developer reports.
    I have the following query which works in SQL*Plus:
    select max(audit_date) from flows_020000.WWV_FLOW_BUILDER_AUDIT_TRAIL
    where flow_id = 130
    and page_id = 306
    but in a page definition I get an 'insufficient privileges' message.
    I'd to avoid granting select privileges on the table, as I'd then have to remember to redo it with each new version of ApEx as well. And since I can't get the above to work yet, I'm not sure if I could substitute strings like &APP_ID. and &PAGE_ID. into the where clause, so this could just be a Page 0 item instead of hard coding it onto each page.
    Any ideas what I'm missing? (Other than when I purge my logs)
    Thanks,
    Bill Ferguson

    (Almost) a couple of small typos in the first select statement.
    First, somehow I wound up with two create table lines. Not sure why, but get rid of one. Next, This bit of code didn't have the other DISTINCT in it (I guess somehow I copied the older version, dunno).
    So, here's the correct version:
    CREATE TABLE LAST_WEB_APP_CHANGE AS (
    SELECT DISTINCT pk_field, short_name workspace, NAME app_name, app_id, page_num, last_change_date, flow_user
    FROM (SELECT DISTINCT pk_field, app_id, page_num , lv last_change_date
    FROM (SELECT short_name|| LPAD (NVL (flow_id, 0), 6, 0)
    || LPAD (NVL (page_id, 0), 6, 0) pk_field,
    flow_id app_id, page_id page_num,
    last_value(audit_date) OVER (PARTITION BY flow_id, page_id) AS lv
    FROM flows_020000.wwv_flow_builder_audit_trail c,
                                  flows_020000.wwv_flow_companies
    WHERE c.flow_id = flow_id
    AND c.page_id = page_id
    AND security_group_id = provisioning_company_id
                   GROUP BY short_name, flow_id, page_id, security_group_id, audit_date) a
    WHERE page_num IS NOT NULL),
              flows_020000.wwv_flow_builder_audit_trail a,
              flows_020000.wwv_flow_companies c,
              flows_020000.wwv_flow_models m
    WHERE a.flow_id = app_id
    AND page_id = page_num
    AND last_change_date = audit_date
    AND a.security_group_id = c.provisioning_company_id
    AND a.security_group_id = m.security_group_id
    AND short_name = '<your workspace name>'
    Just to be sure, I retested again this morning and this one does grab (and create) the last changed record in the audit trail and stores it into whatever table name you chooes (if you edit it).
    As Vikas said in an earlier post, it best (probably) to do this on each parsing schema, since each parsing schema can have multiple apps associted with it, and it can become a can of works creating a generic schema accessible to all.
    Anyway, after the table is created and populated for each schema, then it's easy to create a page to to handle insert/update/deletes for the future maintainability of the data.
    Personally, I'm leaning towards a variation of the above code associated with a button, to update the information, maybe a drop table followed by the above code? I need to experiment some.
    But, you can create a Page 0 hidden item, I called mine :P0_LAST_CHANGE_DATE, with a SQL source of :
    select TO_CHAR (last_change_date, 'DD-MON-RRRR HH24:MI:SS') last_change_date
    from LAST_WEB_APP_CHANGE
    where app_id = &APP_ID.
    and page_num = &APP_PAGE_ID.
    Then, on each page's footer, I have the statement:
    Page Last Changed: &P0_LAST_CHANGE_DATE.
    Variations of the above can also be used to display who changed it last (the flow_user field).
    Now, each page will display the date of last change (almost) painlessly). I just need to periodically go out and maintain the table. Maybe a scheduled job run each night?
    Somebody want to supply an example of how to do that?
    Bill Ferguson

  • Display data on ADF table using a VO binded to a message.properties file

    Hi,
    I want to display data in a JSPX page using ADF table which is based on a ViewObject. The attributes of the ViewObject should get it's value from a abc.properties file(static file).How can i achieve this.
    thanks in advance.
    regards,
    Himanshu.

    Hi Himanshu,
    When you create a VO based on static values, all of the records from your VO are generated into the MessageBundel.properties file like this
    devguide.entity.ViewObj.SL_0_0=1
    devguide.entity.ViewObj.SL_0_1=<val1>
    devguide.entity.ViewObj.SL_0_2=<val2>
    devguide.entity.ViewObj.SL_1_0=2
    devguide.entity.ViewObj.SL_1_1=<val1>
    devguide.entity.ViewObj.SL_1_2=<val2>
    You could add more lines to the properties files maintaining the same pattern. Also noticed that you can read all the values from a CSV file as well.
    The last resource is to programmatically read the file and start creating new rows on the VO, which won't use any of the declarative tools for VOs.
    -Juan Camilo.

  • Reusing the same jsp include multiple times on the same page

    If someone knows a way out of this
    I'd like to print out 2 records of the same data type I have a JSP include which does that.
    Now my issue is how to use the same include twice on the same page
    Ideally I would like to do the following:
    <%
    request.setAttribute("person", person1);
    %>
    <jsp:include page="./person.jsp"/>
    <%
    request.setAttribute("person", person2);
    %>
    <jsp:include page="./person.jsp"/>
    And in person.jsp
    I could have
    <h:inputText name=#{person.name}/>
    This fails in the updateModel phase - And I realize why it's failing. There really is no person managed bean.
    It's just that I am at a kind of loss as to what I need to do now -
    Am missing something or is it just impossible to use jsp:includes the way Ive tried to?

    I do not understand, have you created a backing bean named person? Have you defined it in your config file?
    Please copy/paster your backing bean code and config file.
    Normally, you can set directly the value of the bean by using some java code in your jsp instead of setting the request attribute.

  • How do i get the selected index in jsp from a select "in the same page!!!"

    i dont if it si possible but i want to get the selected index form a select implmenting javascript jsp an html something like this:
    html:select property="slcLocation" onchange="updateList(this.form)">
    <% for (int i=0; i< user.getNumLocaliza();i++)
    out.println("<option selected>" + user.getLocation(i,1));
    %>
    </html:select> </div></td>
    ...

    i try it in the same page but it fails, the code is:
    <html:select property="slcLocation" onchange="document.location.href='cajaApertura.jsp?slcLocation='+this.options[this.selectedIndex].value">
    <%
    for (int i=0; i< user.getNumLocaliza();i++)
    out.println("<option>" + user.getLocation(i,1));
    %>
    </html:select>
    </div></td>
    </tr>
    <tr>
    <td><div align="left"><font size="1"><strong><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif">Caja:</font></strong></font></div></td>
    <td bgcolor="#C4B4F3"><div align="center">
    <html:select property="slcCaja" onchange="document.location.href='cajaApertura.jsp?asdf='+this.options[this.selectedIndex].value">
    <%
    int caja;
    if (request.getParameter("slcLocation")!=null)
    //for (int i=0; i< cajaLocation.getNumCajas (request.getParameter("slcLocation"));i++)
    for (int i=0; i< 3;i++)
    caja = i+1;
    out.println("<option> Caja p " + caja + request.getParameter("slcLocation"));
    }else
    for (int i=0; i< cajaLocation.getNumCajas (user.getLocation(0,1));i++)
    caja = i+1;
    out.println("<option> Caja " + caja);
    %>
    </html:select>
    is this correct? what is my mistake?
    tnks for your help

Maybe you are looking for

  • Using &APP_ID. in uploaded javascript file

    Hi dev's, I fumbling around with a quite annoying problem. When I create a javascript directly inside the "Header Text" of my page the script works perfectly: <script type="text/javascript"> function fnc_setTreeItem (pItem)   var get = new htmldb_Get

  • Limited Connectivity after logging into wireless network?

    I have a questions in regards to logging into my wireless network from laptop. From laptop I experienced a connection but a "LIMITED CONNECTIVITY?"   In other words a connection was confirmed but unsuccessful, it says? How do I fix? Thnx!   

  • Regex expert needed ;)

    Hello I am using java.util.regex.*, but I am not exactly a regex expert. This is drivin' me crazy, plz help ::) From: "<p>I want to <a>extract</a> this</p> blah blah <p>I want to extract this too</p>asdf" I want to extract: "<p>I want to <a>extract</

  • J.Nack's blog:  Adobe looking vor volunteer testers of CS4 update

    Today's blog entry at http://blogs.adobe.com/jnack/: January 19, 2009 Photoshop CS4 update in development In the time since Photoshop CS4 shipped, we've heard from some customers about various things not working as designed. In particular, various Wi

  • How do I find out what version of unix my Mac is running?

    Somebody wants to know what version of unix (BSD? Free BSD? whatever? and version number and release date) runs on Mac computers in Terminal under OS 10.6.x. Does anyone know what it is off the top of their heads? Is there a Terminal command that I c