Get the Stored Function Results

If there is DML in my Stored Function ,how to Using View Objects to Select Stored Function Results?
I want to get the Stored Function Results in my jsp.
please give me the example jsp.Thanks!

There's an article on my "Dive into BC4J" weblog that describes this.
http://radio.weblogs.com/0118231/stories/2003/02/06/usingViewObjectsToSelectStoredFunctionResults.html

Similar Messages

  • How can i get the time and result together show in one Array or in Cluster?

    hello everyone i am a new user .I want to get the time and voltge form a Generater. How can i get the time and result together show in one Array or in Cluster?When i selecte the first(or third...) result then in the front panel display the time and the voltge.Thank you!
    I post the time and voltge NOT together photo
    Attachments:
    12345.GIF ‏54 KB

    You can create an array of clusters with one element being the time and the other being the voltage, like so (using the "Get Waveform Components" function):
    Message Edited by smercurio_fc on 10-17-2007 03:15 PM
    Attachments:
    pic.PNG ‏11 KB

  • The datediff function resulted in an overflow. The number of dateparts separating two date/time instances is too large. Try to use datediff with a less precise datepart.

    The below function is giving me the hours difference what I wanted, but today it is giving us the below error: 
    Msg 535, Level 16, State 0, Line 1
    The datediff function resulted in an overflow. The number of dateparts separating two date/time instances is too large. Try to use datediff with a less precise datepart.
    Please Help..
    ALTER FUNCTION [dbo].[GetHoursExcludingWeekdays](@StartDate datetime2,@EndDate datetime2)
    returns decimal(12,3)
    as
    begin
        if datepart(weekday,@StartDate) = 1
            set @StartDate = dateadd(day,datediff(day,0,@StartDate),1)
        if datepart(weekday,@StartDate) = 7
            set @StartDate = dateadd(day,datediff(day,0,@StartDate),2)
        -- if @EndDate happens on the weekend, set to previous Saturday 12AM
        -- to count all of Friday's hours
        if datepart(weekday,@EndDate) = 1
            set @EndDate = dateadd(day,datediff(day,0,@EndDate),-2)
        if datepart(weekday,@EndDate) = 7
            set @EndDate = dateadd(day,datediff(day,0,@EndDate),-1)
        declare @return decimal(12,3)
        set @return = ((datediff(second,@StartDate,@EndDate)/60.0/60.0) - (datediff(week,@StartDate,@EndDate)*48))
        return @return
    end
    ReportingServices

    You'll get this error if the difference between the start and end date is greater that about 68 years due to the "second" DATEDIFF specification.  Perhaps the dates are greater than the expected range due to a data quality issue. 
    Taking the advice from the error message, you could use minutes instead of seconds like the example below the version below.  This could still result in the error of the difference is greater than a couple of hundred years, though.  You might consider
    validating the dates and returning NULL if outside expected limits.
    ALTER FUNCTION [dbo].[GetHoursExcludingWeekdays](@StartDate datetime2,@EndDate datetime2)
    returns decimal(12,3)
    as
    begin
    if datepart(weekday,@StartDate) = 1
    set @StartDate = dateadd(day,datediff(day,0,@StartDate),1)
    if datepart(weekday,@StartDate) = 7
    set @StartDate = dateadd(day,datediff(day,0,@StartDate),2)
    -- if @EndDate happens on the weekend, set to previous Saturday 12AM
    -- to count all of Friday's hours
    if datepart(weekday,@EndDate) = 1
    set @EndDate = dateadd(day,datediff(day,0,@EndDate),-2)
    if datepart(weekday,@EndDate) = 7
    set @EndDate = dateadd(day,datediff(day,0,@EndDate),-1)
    declare @return decimal(12,3)
    set @return = ((datediff(minute,@StartDate,@EndDate)/60.0) - (datediff(week,@StartDate,@EndDate)*48))
    return @return
    end
    GO
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Hi, I have a late 2011 MacBook Pro but cant get the mirroring function to work with Apple TV.  I've got the most recent Software 10.7.5 but cant see the mirroring icon or turn this on.  I'm able to mirror from my Ipad but not my Mac, any thoughts?

    Hi, I have a late 2011 MacBook Pro but cant get the mirroring function to work with Apple TV.  I've got the most recent Software 10.7.5 but cant see the mirroring icon or turn this on.  I'm able to mirror from my Ipad but not my Mac, any thoughts?

    Welcome to the Apple Support Communities
    AirPlay Mirroring is supported on your Mac, but it needs OS X Mountain Lion (10.8). See > http://support.apple.com/kb/HT5404
    You have two possibilities:
    1. Make a backup, open App Store and purchase Mountain Lion to upgrade to this OS X. Then, you will find the AirPlay Mirroring icon at the top right of the display, on the menu bar, or on System Preferences > Displays.
    2. Keep OS X Lion and use AirParrot > http://www.airparrot.com
    Both options work properly, but I recommend AirPlay Mirroring as it doesn't need a third-party program

  • I am using Windows 7 64-bit on a partitioned hard drive on a MacAir.  The trackpad will only work with a click.  How do I get the full function of tap and scroll?

    I am using Windows 7, 64-bit on a partitioned hard drive on a  2012 MacAir.  The trackpad only works with clicking.  How do I get the full function of tap and scroll? (I have this on a 2011 Mac Pro with 32 bit Windows 7 and it works properly.)

    Windows Control Panel>Boot Camp Control Panel>Trackpad.

  • How to get the current function name in java

    How to get the current function name in java.
    In c it is done as
    printf("%s",__func__);
    Thanx in advance.

    j0o wrote:
    System.out.println("Class Name: " + new Exception().getStackTrace()[0].getClassName() +
    "/n Method Name : " + new Exception().getStackTrace()[0].getMethodName() +
    "/n Line number : " + new Exception().getStackTrace()[0].getLineNumber());
    I pointed the OP at this approach yesterday in one of his multi-posts. I still have not been given my Dukes!

  • I have a MacBook, made in 2010. I can't get the eject function to work. I have a DVD in now and want to eject it and put another one in. Command-E, dragging it to the trash or Find-Eject does not work. Ideas?

    I have a MacBook, made in 2010. I can't get the eject function to work. I have a DVD in now and want to eject it and put another one in. Command-E, dragging it to the trash or Find-Eject does not work. Ideas?

    Hi there. Hear are some other options . Hold down for click on the track pad while restarting and keep it down all the way thru boot. Or use right click on a mouse. If it's stuck, sometimes sticking a business card in top edge of slot while trying the eject option can work.

  • How to get the page FUNCTION NAME?

    Hi All,
    How can I get the page Function Name? I tried below codes but it returns null value.
    <i>pageContext.getPageLayoutBean().getAttributeValue(FUNCTION_NAME)</i>
    Please help. Thanks!

    Sorry guys, i got it now.
    instead of getAttributeValue, use .getPageFunctionName()
    :-)

  • How do I get the tint function to work in CS5?

    I rrecently installed CS5 In Design in Windows 7.  How do I get the tint function to work?

    This is how you create a tint:
    If it's not working, you might try restoring your InDesign preferences:
    Trash, Replace, Reset, or Restore the application Preferences

  • HT201371 In the next ios update, could we get the fingerprint function to unlock the phone and open up different apps in one swipe, using different fingers for different apps?

    In the next ios update, could we get the fingerprint function to unlock the phone and open up different apps in one swipe, using different fingers for different apps?

    This is primarily a user-to-user support forum. Following is a link for feedback/suggestions to Apple: http://www.apple.com/feedback/

  • Can't get the view function to work properly...

    For some reason, I no longer can get the VIEW function to do what I want. Specifically, everytime I try to get ARTIST to show, it shows ALBUM BY ARTIST instead. This does NOT happen in my downloaded file, only in the entire library. Anyone else have this happen to them? Please advise.

    In the Masked Artwork folder go to a photo with the keyword "food".   Does it have a check mark at food?
    I have had situations where the photo had the keyword printed under the title, but the check mark is not present.  A search with that combination for the keyword yields "no image found".
    Go to bottom of your keywords panel and look under Other Keywords.  Is Food there and checked?  If so you can right click on this keyword and Find will work.  If you have the type of situration where keyword has no check mark in your tree, except for at Other, I found you have to delete them and then re-enter them.  It will then work.
    Let me know what you find discover.

  • Why can't I get the average function work with empty cells?

    Why can't I get the average function work with empty cells?

    The thing that I am having a problem with is that I made a different form that calculates the average no matter how may of the cells have numbers or not and I didn't use an if function.  I have tried with this other form and and it calulates as if all the cells where being used.  I am using the [*] in both instances but it only works in the one I did earlier.

  • Can I get the loop function to show in the edit window

    See above and also can I get the loop function to cover smaller areas then a beat or bar?? cheers

    scl123 wrote:
    also can I get the loop function to cover smaller areas then a beat or bar?? cheers
    With a little slight-of-hand, you might be able to trick GB into letting you do this:
    If you uncheck Follow Tempo and Pitch in the editing pane, and then raise the metronome setting, you readjust the beat reference, forcing each beat to include less music and therefore enabling you to loop a smaller portion of what used to be a beat!

  • How do I get the Speech function for accessibility to work in the Windows 8 version?

    How do I get the Speech function for accessibility to work in the Windows 8 version? There is no "File" option where you would normally find it. I tried using Narrator from Windows however it cannot read "explorable text" I guess

    Adobe Reader Touch (Windows Store app with "modern" UI) is not really accessible.
    If you have a device running the Windows 8 operating system (as opposed to the Windows RT operating system), you can install and run Adobe Reader XI (desktop app with classic UI), which offers better accessibility support for screen readers.  It also has the "Read Out Loud" functionality.

  • On Apple TV, my pictures have loaded, but I cannot get the slideshow function to work.  It has been "loading" 28 pictures for over 5 minutes.  What is wrong?

    On Apple TV, my pictures have loaded, but I cannot get the slideshow function to work.  It has been "loading" 28 pictures for five minutes.  What am I doing wrong?  I have Windows 7 on my PC.

    I don't have any direct experience with D-Link equipment, but I may be able to provide some general advice. See if you can use a Web browser to connect to the D-Link's configuration screen. This probably involves visiting a URL such as http://www.192.168.0.1 . If you haven't changed the sign-on parameters, a quick Google search should find them for you.
    Once there, note as many configuration details as you can find. You'll need those to configure your Time Capsule.
    Use the AirPort Utility to configure the Time Capsule.
    One last thing: It's quite possible that the Verizon network will have locked onto the "MAC" address of your D-Link router. Something needs to be done to reset this. If there's a separate box at your house that came with the FIOS equipment that's "upstream" from the D-Link router, I'd cycle power on it to see if that does the job. Otherwise you'll probably need to call Verizon to ask them to reset things once your Time Capsule is installed in place of the D-Link router.

Maybe you are looking for

  • Snow Leopard 64 bit kernel on Mac Pro - Personal Experience.

    Curiosity got the better of me so I decided to install Snow Leopard on clean external USB drive (this is a rather slow drive, I believe it is only 4500 RPM), but good enough to test things out. I formatted the drive before installation in Leopard (HF

  • File to Printer Scenario.

    Hi, I have to make file to Printer scenario. I have closed my previous thread. XI will pick file from File Sender System and put file at File Receiver System. From there file will go to printer. There is one condition: If printer get jammed then from

  • Can you auto populate IPTC core values?

    Hi Every time i want to populate the iptc core values in bridge i have to do them manually. Quite a few are always the same, ie, email, creator etc. I usually cut and paste from another image which is time consuming Can i somehow auto populate some f

  • SID Already Exist During Creating Database

    Hi, I've just installed oracle software on AIX 5.3 - I've installed the software only. - Then, I tried to create database, but I've got an error message that "SID is already exist". Its the first oracle SID I create but I've got this error message, b

  • JBoss[HornetQRest]:  javax.management.InvalidAttributeValueException

    I have created HornetQ Rest based application for sending and receiving xml messages. There is no war deployment error in JBoss-4.2.2.GA but experiencing problem in deployment of war in jboss-6.1.0.Final. JBoss server log file: 2011-12-12 17:04:23,36