Can i use function inside sql in a form ?????

Here SERIAL_NUM is a function, this sql work fine in TOAD and SQLPLUS but inside the form iam getting error saying "function serial_num cannot be used in a sql" Why is it like that ?? Is there anyother way to execute this sql ?
cursor c1 is
SELECT msn.ATTRIBUTE7 Order_No,
SERIAL_NUM(i.SERIAL_NUMBER) Serial_No,
msn.ATTRIBUTE5 Firmware,
msn.ATTRIBUTE15 Site_Pref
FROM atrd.INSTALLER_INFO i,
mtl_serial_numbers msn
where SERIAL_NUM(i.SERIAL_NUMBER)=msn.SERIAL_NUMBER

hi,
yes of course you can use the functions in sql as well as in forms( within sql statements).
here i think you are not connected to the Specified user which is having the function Serial_num
or other thing may that ur syntax
just check both of them that may help you.
enjoy
Tehzeeb Ahmed

Similar Messages

  • How to use function inPL/SQL prompt?

    How can i use function?
    In PL/SQL prompt.
    suppose, only by typing this,
    functionname(parameter);
    And it will return answer in PL/SQL prompt.
    Is there any syntax or solution to this not in using it in another block of code and calling this function?
    Regards ---
    Mamun

    How can i use function?
    In PL/SQL prompt.
    suppose, only by typing this,
    functionname(parameter);
    And it will return answer in PL/SQL prompt.
    Is there any syntax or solution to this not in using
    it in another block of code and calling this
    function?You could do us all a favour and just stick to a single thread for the same question rather than starting a new one and causing confusion...
    Re: problem in creating function and it is too much urgent!!

  • How to use function inside background job?

    I try to call function inside job. It does not work. Is it possible to use function inside job or not. I hope you can help me. Here is my example code.
    Start-Job -Name ForestJob {param($v01,$v02)
      $line = @()
      function test {
        return "testvalue"
      $t = test
      $line += $t
    } -ArgumentList $var01, $var02

    Hi,
    Just checking in to see if the suggestions were helpful. Please let us know if you would like further assistance.
    TechNet Subscriber Support
    If you are
    TechNet Subscription
    user and have any feedback on our support quality, please send your feedback
    here.
    Regards, Yan Li

  • The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.

    Hello All,
    I am getting below error can you please help me
    Error:-
    The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.

    Perhaps this thread will help you out
    http://stackoverflow.com/questions/11453066/error-the-transaction-associated-with-the-current-connection-has-completed-but
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Can't use function in creating record group

    Gurus,
    This question is for developers. Is this true one can't use
    function in creating record group. I am using form5.
    thanks,
    ZW

    I figured out the issue... they changed the way Group Calls are limited.
    Here's a full explaination - and a suggestion for a behavior fix: http://community.skype.com/t5/Windows-desktop-client/Please-Fix-Group-Video-Voice-Calling-Limit-Beha...
    Long story short, you can't do a video calling at all if the group has more than 10 people in it total (including you).
    Also, you can't do voice calling in groups with more than 25 people.
    Text chats are limited to 300 people (or so I've been told by Skype employees). I've been in a chat with over 100 participants though so I know it goes that high at least.

  • How can I using functions implicit in dll file in java code ?

    How can I using functions implicit in dll file in java code ?
    I'm developing a program that interfacing with fingerprint hardware.
    I have the finger print already, and I have to the SDK that have all functions for managing this fingerprint.
    These SDK functions are represented in dll files.
    I want to know how can I use these functions in java code .
    I looked on this link of sun forums :
    http://forum.java.sun.com/thread.jspa?threadID=305171&messageID=1215613
    but I don't Understand the meaning of native code.
    Thanks for help.

    please please please please please please please please help me:
    After reading a lot of articles, tutorials, and overviews about JNI (Java Native Interface)
    I found that these steps
    1.     Develop the Java code
    2.     Compile the Java code to a class file
    3.     Generate the header file
    4.     Implement the native method
    5.     Create the shared library or DLL
    6.     Run the Java program
    Is the common steps in JNI development
    The most powerful link was
    http://java.sun.com/docs/books/jni/html/start.html
    and
    http://www.netbeans.org/kb/55/beginning-jni-part2.html
    and the pdf oh this link
    http://www.ibm.com/developerworks/edu/j-dw-javajni-i.html requiring IBM registration to download it.
    But I have already the DLL, and want to the stright forward way to use its functions by java code only.
    I don not to write any C++ code .
    Is this possible???????????????????????????????
    The name of these dll is �zkemsdk.dll�
    It developed by ZKSOFTWARE company for managing a finger print �NP1500A�of
    http://www.napcogulfsecurity.com/finger_print.asp
    thanks for help

  • How can i use JSTL inside custom tag attribute

    Hi,
    I have one button tag which displays the button with round corner. I will show the button like this:
    <ep:button key="buttons.submit" name="submitBtn" styleClass="But"
              onClick='submitPage(''<c:out value='${buttonName}' />)' />
    I am getting the problem with the above code. how can i use JSTL inside the custom tags.
    Thanks in Advance,
    LALITH

    No. The details are given below:
    I have included the follwing line in web.xml file:
    <taglib>
        <taglib-uri>/tags/button</taglib-uri>
        <taglib-location>/WEB-INF/button.tld</taglib-location>
      </taglib>button.tld file
    <taglib>
         <tlibversion>1.0</tlibversion>
         <jspversion>2.0</jspversion>
         <shortname>button</shortname>
         <tag>
              <name>button</name>
              <tagclass>com.ksi.ep.web.taglib.ButtonTag</tagclass>
              <bodycontent>empty</bodycontent>
              <attribute>
                   <name>name</name>
                   <required>true</required>
                   <rtexprvalue>false</rtexprvalue>
              </attribute>
              <attribute>
                   <name>key</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
              </attribute>
              <attribute>
                   <name>onClick</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
              </attribute>
    </taglib>ButtonTag.java :
    public class ButtonTag extends TagSupport {
       private static final long serialVersionUID = 6837146537426981407L;
         * Initialise the logger for the class
        protected final transient Log log = LogFactory.getLog(ButtonTag.class);
         *  holds the Value of the button tag
        protected String onClick = null;
         *  holds message resources key
        protected String key = null;
         * The message resources for this package.
        protected static MessageResources messages =
                             MessageResources.getMessageResources
                                       ("ApplicationResources");
          *  (non-Javadoc)
          * @see javax.servlet.jsp.tagext.TagSupport#doStartTag()
         public int doStartTag() throws JspException {    
            StringBuffer label = new StringBuffer();         
            HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
            try {             
                   log.debug("in doStartTag()");
                   Locale locale = pageContext.getRequest().getLocale();
                 if (locale == null) {
                     locale = Locale.getDefault();
                 log.info("");
                 label.append("<a border=\"0\" style=\"text-decoration:none;color:#FFFFFF\" href=\"JavaScript:");
                 label.append(onClick);
                 label.append("\" >");
                   label.append("<table  onClick=\"");
                   label.append(onClick);               
                   label.append("\" ");
                   if(onmouseout!=null && !"".equalsIgnoreCase(onmouseout))
                    label.append(" onmouseout=\"");
                    label.append(onmouseout);               
                    label.append("\" ");
                   if(onmouseover!=null && !"".equalsIgnoreCase(onmouseover)){
                    label.append(" onmouseover=\"");
                    label.append(onmouseover);               
                    label.append("\" ");
                   if(title!=null && !"".equalsIgnoreCase(title)){
                    label.append(" title=\"");
                    label.append(title);               
                    label.append("\" ");
                   label.append("style=\"cursor:hand\" tabindex=\"1\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"");
                   label.append(request.getContextPath());
                   label.append(System.getProperty("file.separator"));
                   label.append("images");
                   label.append(System.getProperty("file.separator"));
                   label.append("background1.jpg\" > ");
                 label.append("<tr><td width=\"10\"><img  border=\"0\" src=\"");
                 label.append(request.getContextPath());
                   label.append(System.getProperty("file.separator"));
                   label.append("images");
                   label.append(System.getProperty("file.separator"));
                 label.append("leftcorner.jpg\" ></td> ");
                 label.append("<td valign=\"middle\"  style=\"padding-bottom:2px\"><font color=\"#FFFFFF\" style=\"");
                 label.append(styleClass);
                 label.append("\">");
                 label.append(messages.getMessage(key));
                 label.append("</font></td>");
                 label.append("<td width=\"10\" align=\"right\"><img src=\"");
                 label.append(request.getContextPath());
                   label.append(System.getProperty("file.separator"));
                   label.append("images");
                   label.append(System.getProperty("file.separator"));            
                 label.append("rightcorner.jpg\" border=\"0\"  ></td>");
                 label.append("</tr></table></a>");
                 pageContext.getOut().print(label.toString());
              } catch (Exception e) {               
                   log.error("Exception occured while rendering the button", e);
                   throw new JspException(e);
            return (SKIP_BODY);
         * Release all allocated resources.
        public void release() {       
            this.name=null;
            this.key=null;
            this.onClick=null;
    }In my JSP I have mentioned the taglib directive as
    <%@ taglib uri="/tags/button" prefix="ep"%>and
    <ep:button key="buttons.submit" name="submitBtn" styleClass="But"
         onClick='overwritePreApprovals('<c:out value='${transactionalDetails['inPrepList']}' />')' />Servlet.service() for servlet action threw exception
    org.apache.jasper.JasperException: /pages/pms/coordinator/Dashboard.jsp(325,48) Unterminated <ep:button tag
    Thanks,
    LALITH

  • Can i use case in query in oracle form 6i

    sir can i use case in query in oracle form 6i
    such as
    select empno, case when deptno=10 then dptno end from emp;
    please gice me

    Hello,
    Does this code compile ?
    If not, I'm afraid that the PL/SQL engine of Forms6i does not recognize this syntax.
    Francois

  • Using 'Function Returning SQL Query' with Flash charts

    I have created a pl/sql function that returns a SQL query as a varchar2 of this form:
    select null link
    <x value> value
    <Series1 y value> Series 1 Label
    <Series2 y value> Series 2 Label
    <Series3 y value> Series 3 Label
    from tablea a
    join tableb b
    on a.col = b.col
    order by <x value>
    If I now call the function from a Flash Chart Series SQL box with the Query Source Type set to 'Function Returning SQL Query' like this:
    return functionname(to_date('30-sep-2010', 'dd-mon-yyyy'))
    it parses correctly and the page is saved; however, when I run the page I don't get any output - nor any error messages or other indication of a problem.
    Now, if I call the function in a SQL client, capture the SQL query output using dbms_output and paste that into the Flash Chart Series SQL box - changing the Query Source Type to SQL Query - and save the page it works fine when I run it and returns a multi-series flash chart.
    Can anyone suggest either;
    1. What have I might have missed or done wrong?
    2. Any way to usefully diagnose the problem...
    I have tried using the Apex debugger - which is very nice, by the way - but it doesn't provide any info on what my problem might be. I even tried writing my own debug messages from my function using the apex_debug_message package - got nothing...
    Thanks,
    Eric

    Hi Eric,
    Try expressing the source as this:
    begin
       return functionname(to_date('30-sep-2010', 'dd-mon-yyyy'));
    end;That works fine for me, and if I take out the begin-end and the trailing semicolon from the return statement I get the same behavior as you.
    It does mention in the help for the source (only during the wizard though) that this source type has to be expressed that way, but I agree it would be helpful if the tool would validate for this format when 'Function Returning SQL Query' is used or give some sort of indication of the trouble. Anyway, this should get you going again.
    Hope this helps,
    John
    If you find this information useful, please remember to mark the post "helpful" or "correct" so that others may benefit as well.

  • Question regarding an inline view or function inside SQL

    Hi All,
    I want to know whether using an inline view with in an sql query is better or a function call within the sql query is better.
    When I check the explain plan in both the case I can see no difference in the cost.
    Appreciate your valuable suggestions on this.
    Thanks,
    Maddy K.

    Hi, Maddy,
    It depends. The answer to this kind of question is always "it depends" on several factors. It would help if you gave a specific example.
    In general, a function is not an alternative to an in-line view. They're so different, that I suspect I don't really understand the question. Also, I don't understand why you're concerened with in-line views, and not with, for example, regular views or WITH clause sub-queries.
    In general, calling user-defined functions from SQL statements is slow. If there's a simple way to get the same results without calling a user-defined function, then it will probably be faster not to call the function.
    Don't pay much attention to the cost that explain plan gives it. It doesn't mean much to you.

  • Can I use function "HS.NODE.METHOD" in Calc type?

    Can I use this statement in "Sub Calculation"?
         IF HS.NODE.METHOD("") = "EQUITY35" THEN
         END IF
    I try to use it but when I run consolidation, it's always show "aborted"
    Thanks in advance
    Refer to Administrator's Guide:
    Method
    Gets the consolidation method for the specified member. If there is more than one non-zero
    value, the system returns the first one found. This function can be used in these types of rules:
    l Calculation
    l Translation
    l Consolidation
    l Allocation
    Syntax
    HS.Node.Method("POVExpression")
    where POVExpression is a combination of Scenario. Year, Period, and Entity members.
    Return Value
    A String that specifies the consolidation method for the specified point of view.
    Example
    In this example, if the method for the point of view is GLOBAL, then statements between the
    If...Then and End If statements are executed.
    If HS.Node.Method("S#Actual"."Y#2009"."P#January". "E#Regional.Connecticut") = "GLOBAL"
    Then
    End If

    Hi,
    Please see the below link for the rules functions.
    http://docs.oracle.com/cd/E17236_01/epm.1112/hfm_admin.pdf
    And also the following KM IDs, might be helpful as well.
    Financial Management Rule Function Hs.Node.Isbase Returns True Even When the Entity is Inactive (Doc ID 1330580.1)
    Hs.Node.Method() generates "Expected Identifier" Error (Doc ID 1274123.1)
    Hope this helps,
    Thank you,
    Charles Babu J
    Edited by: CJX on Dec 14, 2011 1:40 AM

  • Installed itunes 10.5 and now can't use function keys on my keyboard

    I just downloaded iTunes 10.5.0.142 and I now can't use the function keys on my keyboards to change track, pause etc. Is anyone else having this problem? Also, why is it now ctrl+shift+m to switch to mini player? Ctrl+m doesn't do anything now

    Yeah I agree the white keyboard was clunky, I dont really miss it. The problem is you can't just use the new lighter keyboards with the white imacs bc the operating system is outdated. The apple store told me I needed to upgrade my operating system and it would cost me 170 dollars, which I found incredulous.
    I dont think its due to an app running or an expose issue, thanks for your responses.
    aghhhh maybe ill have to buy an old crusty one on ebay. why the heck would apple not make a compatible keyboard for their 3 year old computer anymore, WHYYYYYY???!!!

  • Can I use Built-in SQL Server in Visual Studio 2010 ?

    Hi Friends, I am Atif.
    If I will upload my project to my Server Domain and I want to use Built-in Visual Studio 2010 Sql Server Expreess Database then it will work. If yes then Please suggest me How..??
    Actually I don't want to install SQL Server Database Seperately.
    Tell me How can i achieve this.
    Thanks and Regards.
    Atif.

    Hi Atif,
    Besides other post, to use SQL Server Express for development work, you just need to specify the data source (SQL server's name) and authentication details in a connection string. For more information about SQL Server Express connection string, you can review
    the examples in the following articles.
    Database Connectionstrings
    SQL Server Connection Strings for ASP.NET Web Applications
    Also please note that SQL Server Express edition has some limitations, for example: only one CPU can be used by the express edition, the maximum size of a database is 4 GB (10GB in SQL Server 2008 R2 Express and higher versions of SQL Server Express),
    it can only use up to 1GB of RAM.
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Howto use functions inside IN conditions

    Hi all.
    Is possible to use functions after an "IN" condition?
    If it's possible, What kind of datatype must return the function? And how can I add data to this kind of datatype?
    I want to do somthing like:
    CREATE OR REPLACE FUNCTION function1 (param number) RETURN xxxxx IS
    END;
    SELECT * FROM TABLE1 WHERE codigo IN function1(10);
    Thanks a lot.
    Olver

    Since a function returns a single value you would normally use = rather than IN.
    If you need to return multiple values, depending on the version of Oracle, you could use a pipelined table function. Your query would then be
    SELECT *
      FROM my_table
    WHERE my_key IN (SELECT key FROM TABLE( pipelined_table_function( parameter ) ) );Justin

  • Can I use functional script as a load script ?

    I'm wondering if there is any chance to use functional script that I did in openscript as a script for load testing? Is there any converter or something to do that ?
    Thanks!

    Hi Sudha,
    While executing OLT scripts, all actions mentioned in script will be done. So we cannot say OLT scripts cannot use for functional testing.
    But you cannot convert your OLT scripts to a OFT scripts. OLT scripts works on the basis of protocols and get/post methods.
    Record a scenario in OLT as well as OFT and see the code view for the difference.
    Regards,
    Deepu M

Maybe you are looking for

  • Fatal error during installation of Live Office XI 3.1

    Hello everyone, Im getting Fatal Error during the installation of BOBJ Live Office XI 3.1. The full description: "The installation ended prematurely because of an error." This error occurs immediately after popup with Installer Information. Maybe it

  • Internet access

    Hi Experts, Could anybody please help me to configure network in my x86 solaris 10 machine to access internet what are the steps need to be followed. Thanks, KK.

  • HELP: I cant switch off a message in my terminal window

    I am trying to get some scala coding done, but I keep getting this extremely annoying message in my terminal window: Broadcast Message from [email protected] (no tty) at 20:26 BST... Oct 5 20:26:22 jonathan-kings-MacBook-Pro-2996 kernel[0]: How do I

  • Dynamic text changes in selection screen

    i want to change the title of block into a selection screen after clicking radio button .the changes will be done dynamically.

  • Mobile module intermediate files?

    Where does the Mobile Module store its intermediate .c and .obj files? I get a build error:    error LNK2001: unresolved external symbol state and I'd like to get some sort of hint who uses this symbol. Thanks!