Help with a method to update data

I keep and update daily a weather diary, (Excel worksheet) that is formatted and contains formulas. I would like to publish this worksheet or the data within it to a webpage created in Dreamweaver.
I've tried using an "Iframe" linking it to the URL where the data file is uploaded to, but it changes the formatting considerably and isn't acceptable. The formulas don't matter at the publishing stage because I don't want the data to be interactive with visitors to the page, but I do want the data within the page to be updated daily via my FTP program.
Can anybody point me in the right direction please?
Thanks

ziggler_10 wrote:
I keep and update daily a weather diary, (Excel worksheet) that is formatted and contains formulas. I would like to publish this worksheet or the data within it to a webpage created in Dreamweaver.
I've tried using an "Iframe" linking it to the URL where the data file is uploaded to, but it changes the formatting considerably and isn't acceptable. The formulas don't matter at the publishing stage because I don't want the data to be interactive with visitors to the page, but I do want the data within the page to be updated daily via my FTP program.
Can anybody point me in the right direction please?
Thanks
This gets discussed more than you can possibly imagine and seems to be more often as of late.  Working from Excel to the web is a messy process.  Excel's export HTML feature is well behind the times (but then again when they use Word for an Outlook rendering engine it doesn't say much), and there is the possibility of exporting the data as XML which can be a difficult learning curve (I'll admit I have not tried it yet).  Do you have access to a database (mySQL, MS SQL, or another one) on your web server?  If so one thing you can try is putting the data into the database and using Excel's remote data connection to pull in the data you need into the Excel table when you need it.  Then you also have a format compatible with the web and you can use CSS to style your web version and use the GUI in Excel to format that data.  How familiar are you with the following: HTML, CSS, databases?

Similar Messages

  • Need help with Sound Methods

    Hi, I am new to java and need help with sound methods.
    q: create a new method that will halve the volume of the positive values and double the volume of the negative values.
    Message was edited by:
    Apaula30

    duplicate message #2

  • Help with new hard drive and data recovery

    I have a macbook pro 13" from early 2011...last week the hard drive crashed and after a few hours at the genius bar had to got  tekserv to recover my data and get a new hard drive and update to 8GB of Ram.  When I got my macbook back I was given an external hard drive that had everything from my old hard drive saved by the users on the old hard drive.  I was hoping I could just transfer the user over to the new hard drive but since I had to restart the computer as a new computer I am not able to just reassign my old profile as the new one on this laptop.  Maybe I've done something wrong but at this point I transferred all my documents over, moved my music and pictures over but I have a few things I can't figure out that I'm hoping someone can help with.
    1. Do emails that were in my mail program from both gmail and my verizon.net program get saved somewhere or do I have to just assume those were lost?
    2. my iTunes library is now there but none of my playlists are there.  Should those have been saved somewhere in my iTunes folder that I should see them?  I'm concerned about syncing my iPhone or iPads to iTunes without those there.
    thanks for the help.

    Here's the spec page on your PB.  http://www.everymac.com/systems/apple/powerbook_g4/stats/powerbook_g4_1.25_15.ht ml  It came with OS 10.2.7 installed. The max OS is Leopard 10.5.x
    Tiger install DVDs are in short supply. Tiger is no longer available at the Apple Store but may be available for $129 by calling Apple Phone Sales @ 1-800-MY-APPLE (1-800-692-7753). For other sources, do a Google search for MA453Z/A (10.4.6), MA190Z/A (10.4.3) and M9639Z/A (10.4). Also look on eBay. Be sure & buy a retail version (black with silver X) and not a model specific version (gray) (See http://discussions.apple.com/thread.jspa?threadID=1976068 Can I use another Mac's system restore disc on my Mac?.
    Also check these web stores: http://www.lacomputercompany.com/cgi-bin/rpcart/index.cgi?command=dispitem&type= sku&sku=19521  http://www.allmac.com/shop/index.php?cPath=5_10003
    After you install the base 10.4.x, update to the final Tiger version 10.4.11. Here's the link for the 10.4.11 combo update http://support.apple.com/kb/TA24901?viewlocale=en_US
    Look at this link Mac OS X v10.4 Tiger Installing Software Support Page
    http://www.apple.com/support/tiger/install/
    You can also download the Tiger Installation and Setup Guide
    http://manuals.info.apple.com/en/Tiger_Install_Setup_Guide.pdf
     Cheers, Tom

  • Help with C6-00 photo update

    I need help with updating the items in the photo gallery. Anytime I transfer pictures from PC to the phone using either a USB connection or bluetooth, the items just stay in the memory card. What I mean is that they can only be acessed through file manager and not possible to veiw them using the Photo application. It is as if the Photo application does not automatically update itself. I have tried moving the items from one folder to another, even using the images folder itself. Please, can you tell me what to do about it?
    Usually, the same thing happens with Videos too.
    Thanks in advance.

    The apps wont recognise the photos or videos if file extension is missing.Go to file manager and locate your file.Check whether it contains file extension.If not rename the file with . Jpg extension.If you dont know the type of file, select options >details(it should be something like that) to know it.After renaming all your files in file manager close file manager and open yout photo app.It should show all your photos.Same goes for videos which you will need to rename to .mp4 or .3gp as the case may be.
    In Love With My C6-01:Now running on Nokia Belle!

  • Need help with representing 2 bits of data in a column

    I Need help representing only 2 bits of data in a column in order to save space.
    Is that possible?

    CommitMan wrote:
    I Need help representing only 2 bits of data in a column in order to save space.
    Is that possible?Yes - using Assembler....
    If you need to count bits to save space, then you must be on 70's, or early 80's, hardware. So using Assembler should not be a problem. Let me guess.. a 8051 microcontroller from the 1980?
    Here's what the 8051 code and memory optimisation manual says:
    >
    The simplest and best way to get dramatic improvements
    in efficiency is to look for all variables that will have only
    binary values (0 and not 0), and define them as type 'bit‘:
    bit myVar;With bit variables, the full set of 8051 bit-level assembler
    instructions can be used to generate very fast and
    compact code. For example, the following C code:
    myVar = ~myVar;
    if (!myVar)
    }Generates only two lines of assembler:
    B200    CPL myVar
    200006  JB myvar,?C0002This example uses only 5 flash bytes and 8 CPU cycles.
    When you use bit variables, you can implement a
    nontrivial line of C code with just one assembler
    instruction.
    >
    <i>PS. Yes, the above is really from a manual for a real 80s microcontroller. And yes, I'm poking fun at your question as saving bits were a problem in the 80s and prior. It should not be a problem in the 21st century information system and database.</i>

  • Help with FCPX and Compressor updates

    So compressor automatically updated from 4.0 to 4.1 and is now not working and im also having issues with the 10.0 to 10.1 FCPX update. Please check out the link to my other post below for more details.
    https://discussions.apple.com/message/24968191#2496819.

    OK found projects, didnt realize they got moved to the events library from down by the timeline. Still waiting to see if Compressor 4.1 works with FCPX 10.1 update. Looks promising though. My computer automatically updated Compressor to 4.1 without me knowing (obviously when I opened it I noticed) but when it was failing I was still trying to compress with FCP 10.0 and Compressor 4.1 so maybe that was the issue.

  • Help with Acer Aspire 4339 update. PLEASE HELP.

    Okay, I'm already sick and tired of Acer. Since my warrenty is expired, I had to deal with terrible scam site called answersby.com that Acer RECOMMENDED. I cannot believe that they would actually share this TERRIBLE website to their customers. First of all, the live chat service only directed me to the same technician that would'nt reply to ANYTHING that I said. Not only that, the website itself is buggy and whenever when you try to send feedback, you'd have to click it like 6 times in order for it to send. Ha, and get this! There's many many people telling how that website scams people entirely.  Anyways, diving into the CORE of my situation is that recently, I tried playing Sims 3, on this terrible laptop, and my drivers are outdated.  (Horrah!) So I was like, okay, let's update. Come to find out, the updated drivers are 2011 which I don't even know why. Yes, yes I know. Acer Aspire 4339, so so old. But in order to actually download most things, you aren't able to update the Intel Graphics since it's customized by Acer.  (Great!) *sarcasm* Also, whenever I try to update my chipset with the lovely Intel Update utility, I'm slapped in the face with errors. Went to Acer and my product, I can't download the chipset? I don't know. I'm confused on why there's OUTDATED software for Acer Aspire 4339. Not only that, I need an UPDATED version of Intel HD Graphics. The latest driver is literally from 2011. Come on. Why would the video card even be customized by Acer????  Ugh, if ANYONE can find me an UPDATE for Intel HD Graphics on the Intel website thank you, you've saved me from ripping my hair out.  Since there isn't any updates, I won't be able to run MODERN gaming software on this computer.  My Computer specs: Intel Celeron(R) CPU P4600Windows 7  Professional 32-bit (Pretty sure that's all you need.)  My GPU is integrated, too. Since it's a laptop. I need to bypass this OUTDATED driver and get one at LEAST in 2012 and later. I tried so hard to avoid this forum, but Acer pushed me too far and now I'm here. So please, save my hair before I rip it out from the frustration that lovely Acer has given me. 

    bypassing custom Intel drivers is easy. check on programs/features if any Intel VGA drivers is listed and uninstall, if not...go to device manager, choose display adapters, right click your Intel VGA and choose to uninstall, deleting software drivers too. at next reboot, probably windows will be low res  but you will be able to install the latest Intel original VGA drivers.

  • Help with drop create and update table

    Sir/Madam,
    I have joined 5 tables and selected some columns ,then I need to update some columns in that. After updating I need to create a report with the new column values.
    To do this my method is to create temp table with the select statement then update the temp table , use this temp table for the report and then drop the temp table.
    Is there anyother way to do this ??
    Can I create a cursor and update the cursor column ??
    Does dynamic sql always be created as procedure ??

    Hi,
    you need to understand how eventing works in BSP and MVC architecture. Pls refer to the below link for a basic understanding of how BSP works - View, Controller and Model class concepts.
    http://www.sapdev.co.uk/webapps/bsp/washome.htm
    For your requirement -
    1. you need a view on which you will create a drop down list UI element and a table view element
    2. you will need to create a contoller class - this will be used to handle the event that will be triggered   when user selects an entry from drop down list
    3. you will need a model class in which you will write the business logic to retrieve employees of selected department.
    Pls search this forum or blogs for - data binding with BSPs, Table View. Pls read these concepts and try to develop your requirement. You can come back to this forum if you face any issues during development.
    hope this helps.

  • Icloud help with restoring to an earlier date

    I plugged my Iphone 4S into my computer and it said i could update to the new IOS 7 so i did.
    When i completed the download my phone had completely lost all pictures, videos ect along with all text message history and so on.
    All i had was my contacts.
    I therefore tried to restore back to an earlier date but that didnt seem to work.
    So i decided to restore my phone as i read that may work, then once done that sign into icloud and get it back that way.
    Well once i restored my phone all my itunes was wiped and it now says i have 12.8gb of space when before (when all my stuff was there) i only had 7 or 8.
    Therefore i am worried now that EVERYTHING has been truly deleted, even from my itunes and icloud.
    Is there any way i can get this back?
    I am willing to hear any help possible. Thanks

    It sounds as if you either didn't backup to iTunes before updating, or you clicked "Restore iPhone" instead of Update.  Either way, you can try to restore again from iCloud (https://support.apple.com/kb/ph12521), and if nessecary choose to Show the older backups available from iCloud.  Or learn more about how to keep a backup of your device so this doesn't happen again. 
    Choosing an iOS backup method (Should I use iTunes or iCloud to back up my iOS device?)

  • 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.

  • Help with Spry Detail Regions, XML Data Sets, for IMG gallery

    Hello,
    I'm working on a site for a friend of mine, a photo gallery. You can see the gallery here, it's a temporary one I'm working on
    http://www.emiliajozefa.com/a_index.html
    Here are some important parts of my code:
    //initially load these data sets. the function will be called by the links to update components later<script type="text/javascript">
         var intNumPhoto = 0;
         dsGallery = new Spry.Data.XMLDataSet("photofile.xml", "galleries/ride/photo");
         dsNav = new Spry.Data.XMLDataSet("photofile.xml", "galleries/ride");
         function updateSpryComponents(galleryDir){
              alert("updating spry components for " + galleryDir);
              intNumPhoto = 0;
              dsGallery = Spry.Data.XMLDataSet("photofile.xml", "galleries/" + galleryDir + "/photo");
              dsNav = Spry.Data.XMLDataSet("photofile.xml", "galleries/" + galleryDir);
              dsGallery.setCurrentRow(intNumPhoto);
              //document.getElementById('nav').innerHTML='<H1>'+enlarge.inp.value+'</H1>';
              document.getElementById('nav').innerHTML=
              "<span spry:detailregion = 'dsGallery'>
             <a href = 'javascript:' onclick = 'if(intNumPhoto > 0){intNumPhoto -= 1}; dsGallery.setCurrentRow(intNumPhoto);'>&lt;</a> {@id} / </span>
             <span spry:detailregion = 'dsNav'>{@numPhotos}
             <a href = 'javascript:' onclick = 'if(intNumPhoto < ({@numPhotos} - 1)){intNumPhoto += 1; }; dsGallery.setCurrentRow(intNumPhoto);'>&gt;</a>
             </span>";
    </script> <--- later ----><!-- SIDEBAR NAV. When link i clicked, set DataSet to the location of the new gallery -->
         <div id = "sideBarNav">
             <a href = "javascript:" onclick ='updateSpryComponents('ride');">Tannersville</a>
                <br />
              <a href = "javascript:" onclick = "updateSpryComponents('dive');">Dive</a>
            <br />
              <a href = "javascript:" onclick = "updateSpryComponents('poland');">Poland</a>
            <br />
              <a href = "javascript:" onclick = "updateSpryComponents('alaska');">Alaska</a>
        </div>
    </div>
    <div id = "content2">
         <!-- PHOTO CONTAINER I think I somehow need to refresh this section of the code to reload new data-->
         <div id = "fotoContainer" spry:detailregion="dsGallery"><img src = "photos/{@path}" width = "{@width}" height = "{@height}"/></div>
         <!-- IMAGE NAVIGATION -->
         <div id = "nav">       
             <span spry:detailregion = "dsGallery" id = "galSpan">
             <a href = "javascript:" onclick = "if(intNumPhoto > 0){intNumPhoto -= 1}; dsGallery.setCurrentRow(intNumPhoto);">&lt;</a> {@id} / </span>
             <span spry:detailregion = "dsNav" id = "navSpan">{@numPhotos}
             <a href = "javascript:" onclick = "if(intNumPhoto < ({@numPhotos} - 1)){intNumPhoto += 1; }; dsGallery.setCurrentRow(intNumPhoto);">&gt;</a>
             </span>
         </div>
    You could view source there to get the code. Here is what I believe is my problem
    I'm trying to automate the site so that when you click on one of the links on the left, without refreshing the page, the paths to the galleries xml file changes, and the spry Detail Regions (1 for the images, 1 for the navigation - left and right arrows). I think the problem is that once the link changes the set and calls my updateSpryComponenets() function, the detail regions need to be refreshed. I'm currently trying to solve this by dynamically rewriting the HTML thru .innterHTML, everytime I call updateSpryComponents().There may also be a problem in the Javascript function updateSpryControllers because if I put the alert after the spry calls, I never get the alert
    Thanks in advance for any help!

    Update:
    Ok, the first query on the Recent tab doesnt work for me because it wont show unless its already voted, and since these are supposed to be new blurts, that kind of breaks the whole site:
    "SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt Group By Id_blurt ORDER BY Blurt.`Date` DESC";
    So I replaced it with what I originally had.
    "SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date FROM Blurt ORDER BY Blurt.`Date` DESC";
    But this doesn't provide me with the initial average rating:(

  • Help with findByDateRange method in CMP enity bean

    Hello,
    I am trying to deploy my entity beans to WebLogic 7, runnning on a Sun Solaris
    box. The application connects to an Oracle 9i database. I am having problems with
    2 queries in my ejb-jar.xml file which correspond to 2 finder methods. These finder
    methods take two java.util.Date parameters. I have read that EJB QL does not support
    dates or date literals in its WHERE clause and one has to use long values of these
    dates. I tried various combinations but haven't been able get the query to work.
    Here is an excerpt from my ejb-jar.xml file
    <query>
    <query-method>
    <method-name>findBySalesOrderID</method-name>
    <method-params>
    <method-param>java.lang.Long</method-param>
    </method-params>
    </query-method>
    <ejb-ql>
    SELECT OBJECT(c) FROM Equipment c
    WHERE c.salesOrderID = ?1
    </ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findEquipmentByStagingDateRange</method-name>
    <method-params>
    <method-param>java.util.Date</method-param>
    <method-param>java.util.Date</method-param>
    </method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[
    SELECT OBJECT(c) FROM Equipment c
    WHERE c.equipReqStageDate >= ?1 AND c.equipReqStageDate <= ?2
    ]]>
    </ejb-ql>
    </query>
    <query>
    <query-method>
    <method-params>
    <method-param>java.util.Date</method-param>
    <method-param>java.util.Date</method-param>
    </method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[
    SELECT OBJECT(c) FROM Equipment c
    WHERE c.equipReqShipDate >= ?1 AND c.equipReqShipDate <= ?2
    ]]>
    </ejb-ql>
    </query>
    Do I have to change the method parameters to java.lana.Long or to 'long' literal
    from java.util.Date?
    Here is the finder method signature in the home interface
    public java.util.Collection findEquipmentByStagingDateRange(java.util.Date begDate,
    java.util.Date engDate) throws javax.ejb.FinderException, java.rmi.RemoteException;
    public java.util.Collection findEquipmentByShippingDateRange(java.util.Date begDate,
    java.util.Date engDate) throws javax.ejb.FinderException, java.rmi.RemoteException;
    Do I have to pass in Dates or java.lang.Longs or 'long' literals?
    Any help is really appreciated. Thanks.
    [question.txt]

    Did you try java.sql.Date?
    /k
    "John Carson" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hello,
    I am trying to deploy my entity beans to WebLogic 7, runnning on a SunSolaris
    box. The application connects to an Oracle 9i database. I am havingproblems with
    2 queries in my ejb-jar.xml file which correspond to 2 finder methods.These finder
    methods take two java.util.Date parameters. I have read that EJB QL doesnot support
    dates or date literals in its WHERE clause and one has to use long valuesof these
    dates. I tried various combinations but haven't been able get the query towork.
    Here is an excerpt from my ejb-jar.xml file
    <query>
    <query-method>
    <method-name>findBySalesOrderID</method-name>
    <method-params>
    <method-param>java.lang.Long</method-param>
    </method-params>
    </query-method>
    <ejb-ql>
    SELECT OBJECT(c) FROM Equipment c
    WHERE c.salesOrderID = ?1
    </ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findEquipmentByStagingDateRange</method-name>
    <method-params>
    <method-param>java.util.Date</method-param>
    <method-param>java.util.Date</method-param>
    </method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[
    SELECT OBJECT(c) FROM Equipment c
    WHERE c.equipReqStageDate >= ?1 AND c.equipReqStageDate <= ?2
    ]]>
    </ejb-ql>
    </query>
    <query>
    <query-method>
    <method-params>
    <method-param>java.util.Date</method-param>
    <method-param>java.util.Date</method-param>
    </method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[
    SELECT OBJECT(c) FROM Equipment c
    WHERE c.equipReqShipDate >= ?1 AND c.equipReqShipDate <= ?2
    ]]>
    </ejb-ql>
    </query>
    Do I have to change the method parameters to java.lana.Long or to 'long'literal
    from java.util.Date?
    Here is the finder method signature in the home interface
    public java.util.Collection findEquipmentByStagingDateRange(java.util.DatebegDate,
    java.util.Date engDate) throws javax.ejb.FinderException,java.rmi.RemoteException;
    >
    public java.util.CollectionfindEquipmentByShippingDateRange(java.util.Date begDate,
    java.util.Date engDate) throws javax.ejb.FinderException,java.rmi.RemoteException;
    >
    Do I have to pass in Dates or java.lang.Longs or 'long' literals?
    Any help is really appreciated. Thanks.

  • Help with iTunes/iPhone/Software update

    Hi all, I have a MacBook Pro and am running OS X version 10.5.8 on it.  However, when I plug in my iPhone 4GS in it now, it says that it can't be used unless I have the new version of iTunes (currently showing version of iTunes 10.6.3)--- however, when I check for software updates, nothing is coming up and it says everything is up to date.  If I directly try to download the newest version of iTunes, it says my OS isn't up to date...  This is something new that has occurred within the last couple of months.  I didn't have a problem with it before.  Help please!!!
    Thanks!
    Clueless Mac User

    If you need the current iTunes 10.7, you'll need to upgrade to OS X 10.6. You can buy it online from the Apple store or call them, which in the US is 800-MY-APPLE.

  • C# load xml data with attributes to datagridview; update data and save back to the xml

    Hi guys,
    i currently have this XML as data
    <DEALS>
    <DEAL ID="22" ISBN="0-7888-1623-3" Screenplay="Mary Kaplan" Title ="Mr Gentleman" Director = "Jonathan Jones">
    <ALLOCATION DEMANDE="5000" CODE="72" PRICE="25.00">2500</ALLOCATION>
    <ALLOCATION DEMANDE="7000" CODE="75" PRICE="35.00">4000</ALLOCATION>
    </DEAL>
    <DEAL ID="23" ISBN="1-7988-1623-3" Screenplay="Joe Doe" Title ="Nothing Much" Director = "Listentome">
    <ALLOCATION DEMANDE="3300" CODE="72" PRICE="15.00">2500</ALLOCATION>
    </DEAL>
    </DEALS>
    I load the data with the code below:
    i use xDocument to load the DealData.xml and then put it in ToString.
    //outside of the form
    public static class XElementExtensions
    public static DataTable ToDataTable(this XElement element)
    DataSet ds = new DataSet();
    string rawXml = element.ToString();
    ds.ReadXml(new StringReader(rawXml));
    return ds.Tables[0];
    public static DataTable ToDataTable(this IEnumerable<XElement> elements)
    return ToDataTable(new XElement("Root", elements));
    //in the form
    private void button2_Click(object sender, EventArgs e)
    var xDocument = XDocument.Load("DealData.xml");
    string txtxml = xDocument.ToString();
    StringReader reader = new StringReader(txtxml);
    XDocument doc1 = XDocument.Load(reader);
    var res = doc1.Descendants("DEAL").ToList().Where(x => x.Attribute("ID").Value == "22").Descendants("ALLOCATION");
    dataGridView1.DataSource = res.ToDataTable();
    Now my question is:
    I would like to update the data from the DataGridview with the Attribute("ID").Value == "22" and save the data back to the XML.
    For example, after I load my data on the datagridview, we only pickup anything that is in the node
    <DEAL ID="22" ISBN="0-7888-1623-3" Screenplay="Mary Kaplan" Title ="Mr Gentleman" Director = "Jonathan Jones">
    <ALLOCATION DEMANDE="5000" CODE="72" PRICE="25.00">2500</ALLOCATION>
    <ALLOCATION DEMANDE="7000" CODE="75" PRICE="35.00">4000</ALLOCATION>
    </DEAL>
    I updated the datagridview below with DEMANDE = 9000 CODE = 66 PRICE = 24.77 AND ALLOCATION = 1200
    I want be able to extract the data back in the xml as a child of the DEAL ID = "22"
    So that the XML file looks like this 
    <DEALS>
    <DEAL ID="22" ISBN="0-7888-1623-3" Screenplay="Mary Kaplan" Title ="Mr Gentleman" Director = "Jonathan Jones">
    <ALLOCATION DEMANDE="5000" CODE="72" PRICE="25.00">2500</ALLOCATION>
    <ALLOCATION DEMANDE="7000" CODE="75" PRICE="35.00">4000</ALLOCATION>
    <ALLOCATION DEMANDE="9000" CODE="66" PRICE="24.77">1200</ALLOCATION> <-! this is the new line !->
    </DEAL>
    <DEAL ID="23" ISBN="1-7988-1623-3" Screenplay="Joe Doe" Title ="Nothing Much" Director = "Listentome">
    <ALLOCATION DEMANDE="3300" CODE="72" PRICE="15.00">2500</ALLOCATION>
    </DEAL>
    </DEALS>
    Is there a way to achieve that?
    I have been searching and reading in the books but i cannot find a solution for this.
    Thank you
    Please do not forget to click “Vote as Helpful” if the reply helps/directs you toward your solution and or "Mark as Answer" if it solves your question. This will help to contribute to the forum.

    I would think of something like the below, the id is passed as static you need to change this
    protected virtual void button1_Click(object sender, EventArgs e)
    //Get DataTable from DGV datasource
    DataTable dt = new DataTable();
    dt = (DataTable)dataGridView1.DataSource;
    string file1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><DEALS><DEAL ID=\"22\" ISBN=\"0-7888-1623-3\" Screenplay=\"Mary Kaplan\" Title =\"Mr Gentleman\" Director = \"Jonathan Jones\"><ALLOCATION DEMANDE=\"5000\" CODE=\"72\" PRICE=\"25.00\">2500</ALLOCATION><ALLOCATION DEMANDE=\"7000\" CODE=\"75\" PRICE=\"35.00\">4000</ALLOCATION></DEAL><DEAL ID=\"23\" ISBN=\"1-7988-1623-3\" Screenplay=\"Joe Doe\" Title =\"Nothing Much\" Director = \"Listentome\"><ALLOCATION DEMANDE=\"3300\" CODE=\"72\" PRICE=\"15.00\">2500</ALLOCATION></DEAL></DEALS>";
    StringReader reader = new StringReader(file1);
    XDocument doc1 = XDocument.Load(reader);
    //Remove all elements related to the id being populated into the Grid
    doc1.Descendants("DEAL").ToList().Where(x => x.Attribute("ID").Value == "22").Descendants("ALLOCATION").Remove();
    //loop through datatable and create new xelement to be added to the xdocument
    foreach (DataRow dr in dt.Rows)
    XElement xe = new XElement("ALLOCATION",
    new XAttribute("DEMANDE", dr[0].ToString()),
    new XAttribute("CODE", dr[1].ToString()),
    new XAttribute("PRICE", dr[2].ToString()));
    xe.Value = dr[3].ToString();
    doc1.Descendants("DEAL").ToList().Where(x => x.Attribute("ID").Value == "22").FirstOrDefault().Add(xe);
    Fouad Roumieh

  • Can anyone please help with the 2.3 update in UK?

    Can anyone please help?  I have an unbranded x10 in the UK.  PC companion constantly tells me my phone software is up to date (with android 2.1) so I cannot upgrade to 2.3.  I've tried all the tips on the SE support page like deleting the database content and looking for the setting to update the phone next time it's connected which doesn't exist (very informative SE!).  I'm not keen on this independent software installation through the rapidshare download, it seems full of glitches looking at the forums.  http://www.sonyericsson.com/update/?lc=en&cc=gb&pid=xperiax10  This link clearly tells us the update is available through PC companion, no joy for me though.  Any help is welcome.

    Have a look at this and check your version number see if its listed
    http://forum.xda-developers.com/showthread.php?t=1186045
    As for generic roms you have probable read about custom roms
    See this thread it is a stock SE rom not a custom rom and will give you just that a stock SE rom if you want
    http://talk.sonyericsson.com/thread/19762

Maybe you are looking for

  • Error while installing the SAP J2EE add-on for SAP NW XI installation

    Error while installing the SAP J2EE add-on for SAP NW XI installation   Posted: Jan 24, 2007 5:23 PM         Reply      E-mail this post  Hello, When I am installing the SAP SAP J2EE add-on for SAP NW XI installation I am getting the follwing error:

  • 10.9.2 update on MacBook 5,1 (late 2008) failed

    After installing the 10.9.2 update (from 10.9.1), my Macbook 5,1 (late 2008) no longer boots. It displays some reverse video text (white on black) from a low level program (boot loader?) and stops. After a moment the graphics go funny. In 30 years, I

  • After Effects Fails to render due to a big file size?

    I recorded some video clips in a x264 codec (AVI) and well since i cant import them into AAE (it wont recognize them) i just did some editng wit sony vegas and  rendered the full video in 1080p uncompressed and it was about 20 GB's total. i added it

  • How to disable Library Mod / Integrate Develope w DAM Software

    Is there any way to disable LR's Library Module and integrate LR's Develop module into a workflow that incorporates DAM software. In my case I use IMatch and basically like LR's Develop Module, though it does have a few user unfriendly aspects. I use

  • I got a whole new Iphone 4s, (1 week old) and it already has wi-fi problems.

    Hey Apple Users, I recently got a new Iphone (1 and half week ago) because my old one was broken after 1.5 years. So i'm glad that i got a new one, till i noticed i NEVER have any wi-fi and he doesn't find any wi-fi locations near me, not at home at