RANK() function problem in Form 10g

I am using form 10g R2. I wrote codes inside a trigger of a button to select from one table, named test. The code is as follows:
select mm,pp,rr from test. The form can compile this code.
But when I write teh code select mm,pp, rank() over(order by pp desc) rr from test, the form can not compile. Itshows the following error:
Encountered the sysmbol "(" when expecting one of the following:
, from into bulk.
The table has only one record. It works in SQL environment but the form can not compile this RANK() OVER() function.
Do you have any idea to use RANK() OVER() function in Form 10g?

Some analytical functions do not work in client-side sql in forms, you'll have to encapsulate your logic in the database.

Similar Messages

  • Compilation problem in Forms 10g

    Currently we are upgrading from 6i to 10g forms
    we have 2 forms which we will complie partially in 10g and the form gets closed as a corrupted file.
    The same form when complied in 6i works fine.
    What can be the possible problem.
    Please help
    Thanks
    Yaaminy
    480-262-7881

    hi
    create a batch file of the following commands and compile them i hope it helps u.
    @ECHO OFF
    cls
    Echo compiling libraries 10g ....
    for %%f IN (*.pll) do frmcmp userid=User_name/pass@orcl module=%%f batch=yes module_type=library compile_all=yes window_state=minimize
    ECHO libraries compilation complete
    ECHO ----------------------------------
    Echo compiling menus 10g ....
    for %%f IN (*.mmb) do frmcmp userid=User_name/pass@orcl module=%%f batch=yes module_type=menu compile_all=yes window_state=minimize
    ECHO menus compilation complete
    ECHO ----------------------------------
    Echo compiling forms 10g ....
    for %%f IN (*.fmb) do frmcmp userid=User_name/pass@orcl module=%%f batch=yes module_type=form compile_all=yes window_state=minimize
    ECHO form compilation complete
    ECHO ----------------------------------
    ECHO Form Compilation completesarah

  • Problem executing form 10G

    Hi Buddies;
    I'm trying to execute FORM 10G, but when I choose Run Form, I get this error message;
    Internet Explorer has closed this webpage to help protect your computer
    A malfunctioning or malicious add-on has caused Internet Explorer to close this webpage.
    Previously I could execute the form, but after some problems in my laptop and had to reinstall the OS.
    Now I got this problem.
    Have any idea how to solve this?
    Also, I was trying using Firefox, but getting similar error message.
    Suggestions are welcome.
    Regards
    Al

    Hi,
    You have to replace the JVM.DLL in the directory *<Program Files>\Oracle\JInitiator 1.3.1.22\bin\hotspot* with the latest jvm.dll(2.2Mb) from here.
    And if you are using Explorer 8, then do the following.
    1. Open Internet Explorer 8
    2. Go to Tools, Internet Options
    3. Click on the Advanced tab.
    4. Scroll down into the Security section and find “Enable memory protection to help mitigate online attacks”.
    5. Uncheck “Enable memory protection to help mitigate online attacks”.
    6. Click Ok and Ok again.
    7. Reboot your computer.Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • Unicode problem in Forms 10g

    Dear Everybody,
    Re : Oracle 10g DB for linux
    Oracle Forms 10g for Windows/Linux
    Oracle IAS 10g for linux
    Oracle Jinitiator 1.3.1.18 for windows
    i need to put two chinese words on two column label in Forms. one is traditional chinese UTF8 and other one is
    simp. chinese UTF8. it develop by Forms on windows and re-compile it on linux then deploy it on IAS on linux.
    it is fine when i access from IE. i can see two difference chinese words in forms. but when i try to resize the fonts and make the fonts to bold.
    it still same as before.
    Why the fonts size no effect ?
    i think the problem is cause by Jinitiator.
    is it correct ?
    The two chinese words as below : -
    T.C : 繁體ä¸æ–‡UTF-八體
    S.C : 简体ä¸æ–‡UTF-八体
    Best Regards
    Boris

    The date item property was defined as:
    data type: datetime
    maxium length:17
    initial value: $$DATETIME$$
    format mask: DD-MON-YYYY HH24:MI
    changed to ->
    data type: datetime
    maxium length:30
    initial value: $$DATETIME$$
    format mask: DD-MON-YYYY HH24:MI:SS
    It still does the timestamp switching for the record 1 and 2. If the record 1 and 2 are inserted more than a minute apart, then it works. Anything to do with database datetime setup?

  • How to redefine function keys in forms 10g

    i want to redefine function keys, for example i want to open LOV by pressing F9 not Ctl + L in forms 10g. can any one help me.
    zulfiqar

    Thanks Francois!
    Your info will be useful to me, as my customers were complaining about it.
    I didn't give attention or did any R&D on it because I thought for us main challange is to make ERP work on web first.

  • Row_number() function error in forms 10g

    I used sentence below in forms 10g then an error occured.
    row_number() over(partition by GROUP_L1 order by GROUP_L1, GROUP_L2) RN
    error : Encountered the symbol "(" when expecting one of the following : , from
    above sentence works well in the Toad (<= oracle client tool).
    How can you solve this problem?
    Edited by: user13763783 on 2011. 3. 8 오후 5:26

    Yes Ahmed's Point of View is Correct
    you can write a stored procedure on the database and then return the result to Forms. Forms can then call this Stored Procedure.
    Alternatively , i believe it's much more easy approach to define a view
    view operates just like a table So you can reference this view in any Trigger or any Program Unit.
    Hope this helps...
    Regards,
    Abdetu...

  • How to use a function PIPELINED in Forms 10g?

    Hi guys,
    When I tried to use a function PIPELINED in Forms, I received the message:
    - PL/SQL function called from SQL must return value of legal SQL Type
    FOR rec_dev IN (SELECT *
    FROM TABLE(p1196.f_executa('01-aug-2010', -- pdDataInicial
    '30-aug-2010', -- pdDataFinal
    5, -- pnCodAdm
    NULL, -- pnCdsCod
    NULL, -- pnAdmsSrvCod
    NULL, -- pnAcao
    NULL)))
    LOOP
    vnQtdeEstornos := vnQtdeEstornos + rec_dev.qtde_estornos;
    vnVlrTotalCredito := vnVlrTotalCredito + rec_dev.valor_credito;
    END LOOP;
    Can anyone help me?
    Cris

    You can't. One option would be to wrap your pipelined function in a view, or you could write a stored procedure which returns a strong ref cursor instead.
    cheers

  • Font problem in Forms 10g

    We are upgrading an application(forms and reports) from 6i to 10g. We are testing the application from 10gDev. Suite. The forms in 6i contains certain fonts like Arial Narrow (Western),Wingdings (Western),Arial(Western),Terminal,Tahoma,Fixedsys,Times New Roman (Western). When the form is ran from web, the fonts are not coming up correctly (font in layout is different from web version).
    I followed the forums here and added the font mapping in registry.dat, but still the fonts are not coming up correctly in web. Can some one help me how to configure the fonts in 10gDS?
    Foll. is the entry from the registry.dat file
    default.fontMap.appFontnames=Courier New,Courier,courier,System,Terminal,Fixed,Fixedsys,Times,Times New Roman,MS Sans Serif,Arial,Arial Narrow (Western),Wingdings (Western),Arial (Western),Terminal,Tahoma,Fixedsys,Times New Roman (Western)
    default.fontMap.javaFontnames=MonoSpaced,MonoSpaced,MonoSpaced,Dialog,MonoSpaced,Dialog,Dialog,Serif,Serif,Dialog,SansSerif,Arial Narrow (Western),Wingdings (Western),Arial (Western),Terminal,Tahoma,Fixedsys,Times New Roman (Western)
    Thanks in advance.

    Our application too uses wingdings font as a label on button. Its displaying boxes and workarounds in metalink notes Note:243034.1 and Note:454102.1 are not bearing fruits. Does anyone have solution.
    One alternative is to make the buttons iconic and create ico/gif file for the character placed as label, but the fact that our application has hundreds of forms is a matter of concern.
    If anyone knows the exact solution to this problem, pls help out.

  • Call_form problem in Forms 10g

    I am using Developer 10g R2. I tried to call a form named form1 from another form. But it can not open the form and shows the following error:
    FRM 40010: Can not read form form1.
    Then I tried other functions open_form, Go_form. But it does not work.
    I tried to find the solution from this forum, I found some posts but nothing helped.
    Oracle relases complex version day by day. Can anyone please help me?

    If you use CALL_FORM OPEN_FORM or NEW_FORM oracle needs to find the according fmx-file in the file-system. To not have to scan the whole servers file-system, you configure the directores where your forms are located in the env-file of your application (asuming you use forms10g). By default, this file is located in $ORACLE_HOME/forms/server/default.env (where $ORACLE_HOME is the directory you installed the developer-suite to). In tihs file, there is a setting FORMS_PATH. There you have to put the directory where your fmx's are located.

  • Icon problem in forms 10g

    hii
    I have oracle 10g forms installed on my pc, I want to display some icons on the button.i have done all of the required things like:I have kept all the gif icons in the particular place,& have changed the formsweb.cfg file by changing imagebase parameter to codebase,& I have changed the same path in the registry.dat file,as well as I have set the iconic property too,,,
    Now the main problem is that I am unable to see all these icons at the run time,at the design time icons are viewable,,wat changes should I do now???
    Plz help
    mohan kumar........

    hi,
    below is my complete registry.dat text.---------
    # This is the Registry file.
    # This file contains the logical [Java] Class name and an associated
    # [numerical] identifier that will be used to refer to objects of the
    # class in order to reduce the amount of information that needs to be
    # repeatedly transmitted to the client.
    # This file is of the Form understood by java.util.Properties (for now)
    # The System Level sound file is relative to the CODEBASE
    oracle.classById.1=oracle.forms.engine.Runform
    oracle.classById.4=oracle.forms.handler.FormWindow
    oracle.classById.5=oracle.forms.handler.AlertDialog
    oracle.classById.6=oracle.forms.handler.DisplayList
    oracle.classById.7=oracle.forms.handler.LogonDialog
    oracle.classById.8=oracle.forms.handler.DisplayErrorDialog
    oracle.classById.9=oracle.forms.handler.ListValuesDialog
    oracle.classById.10=oracle.forms.handler.EditorDialog
    oracle.classById.11=oracle.forms.handler.HelpDialog
    oracle.classById.12=oracle.forms.handler.FormStatusBar
    oracle.classById.13=oracle.forms.handler.MenuInfo
    # oracle.classById.14=UNUSED
    oracle.classById.15=oracle.forms.handler.ApplicationTimer
    oracle.classById.16=oracle.forms.handler.MenuParametersDialog
    oracle.classById.17=oracle.forms.handler.PromptListItem
    oracle.classById.18=oracle.forms.handler.CancelQueryDialog
    oracle.classById.257=oracle.forms.handler.TextFieldItem
    oracle.classById.258=oracle.forms.handler.TextAreaItem
    oracle.classById.259=oracle.forms.handler.FormCanvas
    oracle.classById.261=oracle.forms.handler.ButtonItem
    oracle.classById.262=oracle.forms.handler.CheckboxItem
    oracle.classById.263=oracle.forms.handler.PopListItem
    oracle.classById.264=oracle.forms.handler.TListItem
    oracle.classById.265=oracle.forms.handler.CfmVBX
    oracle.classById.266=oracle.forms.handler.CfmOLE
    oracle.classById.267=oracle.forms.handler.RadioButtonItem
    oracle.classById.268=oracle.forms.handler.ImageItem
    oracle.classById.269=oracle.forms.handler.IconicButtonItem
    oracle.classById.270=oracle.forms.handler.BlockScroller
    oracle.classById.271=oracle.forms.handler.JavaContainer
    oracle.classById.272=oracle.forms.handler.TabControl
    oracle.classById.273=oracle.forms.handler.ComboBoxItem
    oracle.classById.274=oracle.forms.handler.TreeItem
    oracle.classById.281=oracle.forms.handler.PopupHelpItem
    # Defaults for the Font details, all names are Java Font names. Each of
    # these parameters represents the default property to use when none is
    # specified.
    # defaultFontname represents the default Java fontName.
    # defaultSize represents the default fontSize. Note that the size is
    # multiplied by 100 (e.g. a 10pt font has a size of 1000).
    # defaultStyle represents the default fontStyle, PLAIN or ITALIC.
    # defaultWeight represents the default fontWeight, PLAIN or BOLD.
    default.fontMap.defaultFontname=Dialog
    default.fontMap.defaultSize=900
    default.fontMap.defaultStyle=PLAIN
    default.fontMap.defaultWeight=PLAIN
    # Default Font Face mapping.
    # appFontname represents a comma delimited list of Application Font Names.
    # javaFontname represents a comma delimited list of Java Font Names.
    # The number of entries in the appFontname list should match the number in
    # the javaFontname list. The elements of the list are comma separated and
    # all characters are taken literally, leading and trailing spaces are
    # stripped from Face names.
    # Note that this file uses the Java 1.1 Font names in order to be able to
    # handle the NLS Plane (BUG #431051)
    default.fontMap.appFontnames=Courier New,Courier,courier,System,Terminal,Fixed,Fixedsys,Times,Times New Roman,MS Sans Serif,Arial
    default.fontMap.javaFontnames=MonoSpaced,MonoSpaced,MonoSpaced,Dialog,MonoSpaced,Dialog,Dialog,Serif,Serif,Dialog,SansSerif
    # The Application Level icon files are relative to the DOCUMENTBASE
    # example: icons/
    # or an absolute URL.
    # example: http://www.forms.net/~luser/d2k_project/
    default.icons.iconpath=oracle\forms\icn
    default.icons.iconextension=gif
    # Application level settings to control UI features
    app.ui.lovButtons=false
    app.ui.requiredFieldVA=false
    # The background color is specified as an RGB triple.
    app.ui.requiredFieldVABGColor=255,0,0

  • Changing functionality of Function Keys in forms 10g

    Dear users....One of the big difficulties users facing in my 10g forms applications is that its Function Keys have totally changed like that of Enter-Query or Execute-Query. In forms 6i user was habitual of working with F-7 & F-8 for this purpose but in 10g its quite different. Can u tell me that how can I match the functionality of these Function Keys in 10g to that of Forms-6i???

    Hey Arun...I've read urs recommended post, I wish to give u 10 pts if u give me the answer for this question too ;) Can I use my newly created fmrweb.res in my own application? I mean other users should keep on using the default fmrweb.res file but I should use the file compatible with 6i shortcut keys. Is there any configuration for this in formsweb.conf file?

  • Timestamp problem in Forms 10g

    In a 10g form (using 10g database, running on MS-W2000, Linux-Redhat)
    Record 1 is entered and saved at 12-JAN-2006 13:20:49.
    Record 2 is entered and saved at 12-JAN-2006 13:21:25.
    Then, these 2 records have the timestamp reversed upon retrieval:
    Record 2 12-JAN-2006 13:20:49.
    Record 1 12-JAN-2006 13:21:25.
    How can this happen? Any idea or suggestions? Please help.

    The date item property was defined as:
    data type: datetime
    maxium length:17
    initial value: $$DATETIME$$
    format mask: DD-MON-YYYY HH24:MI
    changed to ->
    data type: datetime
    maxium length:30
    initial value: $$DATETIME$$
    format mask: DD-MON-YYYY HH24:MI:SS
    It still does the timestamp switching for the record 1 and 2. If the record 1 and 2 are inserted more than a minute apart, then it works. Anything to do with database datetime setup?

  • Client_Host Problem in forms 10g

    Hi friends,
    could you plz help in solving my problem :
    I have to implement webutil package for client_host procedure.
    I have followed all the steps to setup webutil in my production environment which are given in document ( in downloaded file Webutil_106)
    while executing the form , i am getting the following error message
    oracle.forms.webutil.host.Host Bean not found
    i am not getting where i went wrong. my guess is while subclassing the bean item, while trying to subclass to webuti_host_functions, it is saying
    FRM-13008 cannot find javabean with name oracle.forms.webutil.host.Host
    Thanks in advance.
    -- DJ

    Hi kumar,
    Thanks for u response and solution.
    as you said, i did re compilation of the whole module, but i am getting this
    problem. could you plz correct me the way i am doing is wrong
    * configured for webutil.
    * created a block with pushbutton to call 'Client_Host' Procedure
    * attached webutil.pll
    * subclassed webutil.olb, in result i got webutil block with bean items
    * compiled the module
    * execute the module
    ----- getting the said problem
    Thanks in advance for making a time for me
    --DJ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • CASE function problem in forms

    I am using the CASE function in View. Whenever i execute it using SQL plus it runs successfully. I have developed a form on this view and the form does not reflect the CASE function changes. Just an example i am using the CASE function to set the number format but it is not depicting on form.
    SELECT (CASE when TO_NUMBER(123123.12/1000000) < 1 THEN TO_CHAR(TO_NUMBER(123123.12/1000000),'0.99999')
    ELSE LTRIM(TO_CHAR(TO_NUMBER(123123.12/1000000),'999,999.999999')) END) as targetamount
    FROM DUAL

    This is not that diffucult.....I rememeber doing this in one of my forms....
    I would have three content areas
    ContentArea A (Portrait) linked to Subform A
    ContentArea B (Landscape) linked to Subform B
    ContentArea C (Portrait) linked to Subform C
    Now I will set the Min, Max and Initial values for each of those Subform using Binding tab.
    Then I will manage the page layout selection with each of those subforms using Object>>Pagination>>Place and link those to the Content area A B or C based on the layout they should go on. That should do the trick.
    If this is not helpful just forward me a copy at n_varma(AT)lycos.com....I will try my best.
    Good Luck,

  • Page Display setting problem in Form 10g

    Hi All:
    I am using Oracle Developer Forms [32 Bit] Version 10.1.2.0.2.
    I have created a Form. When I execute the form it does not maximize the MDI window on the Page.
    Form doest not fit into the window although I have tried to change the Width and Height parameters in formsweb file, but still unable to to it. I want my form to fit on the Page. When I change the Height to 600 then the status bar disapper.
    Would you guys plz help me to solve my problem.
    Thanks,
    Hassan

    Read it, or search in this forum, the subject has been treated a lot of times
    How to Maximize the MDI Window correctly on WEB showing the STATUS bar ?
    Doc ID:      Note:358468.1      
    Last Revision Date:      05-APR-2006      
    Applies to:
    Oracle Forms - Version: 9.0.4 to 10.1.2
    Information in this document applies to any platform.
    Goal
    When you try to Maximize MDI window in a form using
    set_Window_property(FORMS_MDI_WINDOW,WINDOW_STATE,MAXIMIZE) on web,
    even though the MDI window appears as Maximized it is not actually maximized,
    also it doesnt show the status bar.
    This issue has been explained in BUG#4944285 and Note 181100.1
    Regards

Maybe you are looking for