Form6i Builder (Form can't compile pll function)

I'm upgrading our application from Form 4.5 to Form 6i. I open the pll and a form in the 6i Form Builder. When I try to run or compile the form, the builder complaints that all the function calls (where the functions are in the pll library) get errors. It says "identifier 'function_name' must be declared". I compile the pll without any error. If I link the pll to the form then the form compiles but can't run. Any suggestion? Thanks.

I recompiled the pll already still have the same problem. I'm using the Windows version, not sure that has anything to do with it.
I figure out that I have to attach the library in the form under "Attacted Libraries". When it askes me "non-portable directory specification and remove the path", I have to choose "no". Is this how it work?

Similar Messages

  • Can't compile stored functions in forms trigger

    I have put this code in POST_QUERY trigger. But it does not compile.
    select substr(wds(round(d2h(h2d(max(to_number(to_char(msg_time))))
    - h2d(min(to_number(to_char(msg_time))))),2)),1,40) into :tm1 from test_hst_msg;
    Please note all the fucntions are existed and are successfully compiled.
    It is giving compilation error.
    function 'WDS' may not be used in sql.
    do you have any remeady to anyone.
    Thanks.

    May need to add PRAGMA RESTRICT_REFERENCES compiler directive.

  • How can I compile all functions, procedures and packages with a script?

    I need to compile all functions, procedures and packages of 5 schemas (users) with a script.
    How can I do it?
    Thanks!

    you can create a script to select all invalid objects in those schemas Since Oracle 8 introduced NDS this approach has struck me as a trifle old fashioned. It's much simpler to loop round the query in PL/SQL and use EXECUTE IMMEDIATE to fire off the DDL statements. No scripts, no muss, no fuss.
    Having said that, the problem with this approach and also with using DBMS_UTILITY.COMPILE_SCHEMA is that they do not compile all the invalid objects in dependency order. This may result in programs being invalidated by the subsequent compilation of dependencies. This is due to the introduction of Java into the database.
    The UTLRP script is much better, because it (usually) avoids cyclic references. But you still may need to run it more than once.
    In general it is better to avoid sledgehammer recompilations (like DBMS_UTILITY.COMPILE_SCHEMA, which starts by invalidating all the objects). If we have twenty invalid objects, nineteen of which are dependencies of the twentieth, we actually only need to recompile the master object, as recompiling it will trigger the recompilation of all the others.
    Cheers, APC

  • Whether Pll Compilation all form can be compile or not

    Hi,
    one urgent issue...
    i had patch one pll and move library path.
    Whether the pll moved their in library.i can compile all fmb onceagain isit necessary or not necessary?

    Its not clear to me what it is you want to do.
    Did you move a pll from one location to another in the file system? If so, you don't have to recompile. You need to add the new path to the FORMS_PATH env variable but that is it.

  • Can not open PLLs on Forms Builder 10g

    Hi Folks,
    everytime I try to open an existing PLL-File via the Forms Builder FileOpen-Dialog I have got the message
        PDE-PLI018 Couln not find library
        Drive:\Path\LibName.pll
    Pressing the OK-Button returns to the FileOpen-Dialog. The selected FileType in the Dialog take effect to the filelist but nothing else.
    Note that the file exists and I select it from the Filelist!
    About Forms Window shows the following:
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle Toolkit Version 10.1.2.0.2 (Production)
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle Procedure Builder V10.1.2.0.2 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 10.1.2.0.2 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
    Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE     10.1.0.4.0     Production
    While converting from 6i to 10g it is unavoidable to convert forms and libraries, so please help me!
    PS: I can recompile forms with attached libraries if the PLX-Files (6i) are available, but the forms will not work with these PLX-Files.
    edited by ths:
    I tried to generate a new library. This works fine until I saved it. After naming the library and pressing the save button in the dialog the pll file was created and the same error message appears.
    I closed form builder and tried to reopen the library: same error.
    I generated another new library and save this by selecting the first new I generated. Jippee! I get the message that the file already exists! I selected "overwrite" and the file was overwritten. After that the same error appears.
    How can I (re)open PLL files? It is no solution to generate a new library overwriting the old one everytime some changes should made.
    Trying to build the library (Ctrl+T) produces another error:
        FRM-91507: Internal Error: Unable to generate library.
    Compiling (Ctrl-Shift-K) works fine.

    Hi Mark,
    there's no user except of me on the pc and server (I'm working via rdp-client on a virtual server), no server and no oc4j task or instance started. The one and only program that runs is forms builder. The error occurs if I just try to open a pll file via the file open dialog of forms builder.
    With my admins we found that forms builder creates a (temporary) file (e.g. s22o without extension with 827392 bytes) in c:\ but only if I'm the actual user. After I'm getting the permission to create and update files on c:\ forms builder was able to open pll files. Now we're trying to find out why this accurs only on my login. With other users we tried these file was created on F:\ which is the personal drive of the user. I'm only wondering about the fact that temporary files were not created in the TEMP folder defined by the TMP or TEMP environment variable.
    So we solved this unusual problem in an unusual way.

  • Can i compile all my forms all at a time

    Hi all
    Actually my application have around 60 forms....
    I need to compile all the forms...
    to compile and generate fmx for each form is time taking thing...
    Is there any way to compile and generate fmx all at a time....
    And i am using Window XP
    Can any one help me in this????
    Thanks
    Edited by: maddyd2k on May 5, 2011 5:52 AM

    Hi
    Thanks for ur reply
    It is help ful....
    But no form got compiled ... i am getting err files for each form..
    The following code i have used
    cls
    echo compiling forms......
    set forms_path=D:\batch_compile
    D:
    cd D:\batch_compile
    for %%f IN (*.fmb) do frmcmp.exe userid=ctp/ctp@new_test_hts module=%%f batch=yes module_type=form compile_all=yes window_state=minimize
    echo Finished Compiling
    there are some template forms and pll and mmb which are subclass to the forms
    can u please tell me how to correctly do it??
    Thanks

  • Report Builder: can i define a function in  the rdf file ?

    Hi All,
    About the report builder, can i define a function in the rdf file ? and then i want invoke it in the report SQL, just like :
    function Get_Ap_Prepay_Balance(p_Invoice_Id IN NUMBER, p_End_Date IN DATE) RETURN NUMBER IS
    l_Amount number;
    begin
    RETURN l_Amount;
    end;
    thanks.

    You can create functions in reports, but slightly different from doing it in PL/SQL
    function Get_Ap_Prepay_Balance return number is
    l_Amount number;
    begin
    assuming that you have invoice_id in your select statement and p_End_Date is a report parameter, you can refer to them in your function as :p_End_Date and :invoice_id
    for example select prepay_amount_remaining into l_Amount from ap_invoice_distributions where invoice_id = :invoice_id and accounting_date = :p_End_Date
    return(l_Amount);
    hope this helps

  • Can i invoke a function of a compiled script from java?

    Hi,
    Can i invoke a function of a 'CompiledScript' from java with parameters?
    TIA

    sabre150 wrote:
    I don't know about anyone else but I don't understand what you are trying to do.<Goldie mode>
    Bwahahaha, you are one of the oligarchs here and yet you don't know what Compiled Scripts are? Even Chaucer wrote about them, which the Queen of England told me when we shared a kebab in my working-class pals' kebab shop.
    </Goldie mode>

  • I can't compile forms using telnet ....

    i have an application server with linux redhat 4 software.
    i have a shell that is named ' cpfdry.sh ' which is found on the path '\\192.9.200.2\apps\forms_to_compile'.
    the contents of the shell is
    for i in `ls *.fmb`
    do
    echo compiling form $i
    /home/apps/as/bin/frmcmp.sh userid=dry/dry@dq Module=$i batch=YES compile_all=YES
    done
    when i want to complie a form i put it in that path beside the shell and just run the shell by double clicking it , and i get my form compiled and generating an FMX file.
    but every time i have to go to the server which is located in another room. with every modification i have to recompile and have to go to the other room .
    i tried to do the compilation process by using telnet , and then run the shell file from my machine , i did like the following
    [oracle@apps forms_to_compile]$ sh cpfdry.sh
    compiling form PA_SPECIAL_PAY_COST.fmb
    FRM-91500: █و╤ ▐╟╧╤ ┌طه ╚╧┴/┼▀ع╟ط ╟ط╚غ╟┴
    compiling form sal_arseda_balance.fmb
    FRM-91500: █و╤ ▐╟╧╤ ┌طه ╚╧┴/┼▀ع╟ط ╟ط╚غ╟┴
    compiling form sal_order_reserve.fmb
    FRM-91500: █و╤ ▐╟╧╤ ┌طه ╚╧┴/┼▀ع╟ط ╟ط╚غ╟┴
    as you can see i got an error and the forms aren't compiled.
    and still now i have the same problem, and unfortunatly i still have to go to the room that have the server many times at the day ..
    what is the problem, i need some help plz ..
    thanks....
    sabry...
    Edited by: user635392 on Jan 8, 2011 5:24 AM

    thanks for interest..
    yes , it is the same user
    my server ip is 192.9.200.2, so i write in the command line ' telnet 192.9.200.2.
    Red Hat Enterprise Linux ES release 4 (Nahant Update 4)
    Kernel 2.6.9-42.ELsmp on an i686
    login: oracle
    Password:
    in the login and password i use the same user ' oracle ' and the same password
    thanks ..
    sabry ..

  • How to make Form builder 10g step into libraries *.pll while remote debug

    How to make Form builder 10g step into libraries *.pll while remote debug. It attaches fine and goes through code located in form but skips pll's. In this case I am interested in debuging CUSTOM.pll. How to step into pll's and is it possible at all?

    Is the library in the same directory or within your FORMS_PATH? Note that the runtime setting in the default.env doesn't work for the builder.
    cheers

  • Flash Pro CC produces swc that Flash Builder can't compile

    I've been using Flash CS6 to work with graphics and I export swc files to use them in my FlashBuilder project.
    Today I tried to use to new Flash Pro CC. But now I've got the following issue. When I try to Run/Debug my project шт FlashBuilder - compiling is never be finished. It stucks on 57%. And it doesn't show any error.
    I worked fine when I used Flash CS6 to made swc files.
    I tried to use FlashBuilder 4.5 and 4.7 with different FlexSDK (from 4.0 to 4.6). But it didn't help.
    By trial and error I could figure out the problem is in any code I use in frames in my fla files. I usestop(); in many MovieClips. But that's enough that my projects can't be compiled now
    I tried to comment stop(); but Flash Builder still can't finish the compilation. Only full removing all the code from my fla files allowed the project to be compiled.
    Has anyone catched this bug too? Maybe is there better solution?
    Sometimes I use stop(); and gotoAndPlay("frameName") in frames to loop some animations - it's really convinient. And I wouldn't to give up this convenience
    P.S. Just in case I work on Mac.

    Try changing target player in Flash Professional to match Flex SDK version. For example Flex SDK 4.6 targets Flash Player 11.1.

  • How can I have both functions "Read Only" & "Write" mode on the same form?

    Dear all,
    How can I have both functions "Read Only" & "Write" mode on the same form? Is it possibile for this?
    Please advice,
    Amy

    This is what I use in some dialogs:
    PROCEDURE SET_QUERY_ONLY IS
      -- Procedure Set_query_only
      -- Rend les blocks non modifiables   --
      -- Disable menus Insert/Delete/Clear --
      -- Entree               :
      -- Sortie               :
      -- Ent/Sortie     :
      -- Creation               : FD    10/2003
      -- Modification     : 
         LC$Block     Varchar2(30) ;
    BEGIN
      Set_Menu_Item_Property('Edit.Insert', ENABLED, PROPERTY_FALSE ) ;
      Set_Menu_Item_Property('Edit.Remove', ENABLED, PROPERTY_FALSE ) ;
      Set_Menu_Item_Property('Edit.Clear', ENABLED, PROPERTY_FALSE ) ;
      Set_Menu_Item_Property('Action.Save', ENABLED, PROPERTY_FALSE ) ;
      LC$Block := get_form_property( NAME_IN('System.Current_Form'), FIRST_BLOCK ) ;
      -- Tous les blocs en Query only --
      While LC$Block is not null Loop
           Enable_Block( LC$Block, FALSE ) ;
           LC$Block := get_block_property( LC$Block, NEXTBLOCK ) ;
      End loop ;
    END;
    PROCEDURE ENABLE_BLOCK
              PC$Block in Varchar2,
              PB$Enable in Boolean Default TRUE
         ) IS
      -- Procedure Enable_block
      -- Rend le bloc Enable / Disable --
      -- Entree          : PC$Block (nom du bloc Forms)
      --               : PB$Enable (TRUE ou FALSE)
      -- Sortie          :
      -- Ent/Sortie             :
      -- Creation          : FD    10/2003
      -- Modification     : 
    BEGIN
         If PB$Enable Then
              Set_Block_Property( PC$Block, INSERT_ALLOWED, PROPERTY_TRUE ) ;
              Set_Block_Property( PC$Block, UPDATE_ALLOWED, PROPERTY_TRUE ) ;
              Set_Block_Property( PC$Block, DELETE_ALLOWED, PROPERTY_TRUE ) ;
              Set_Menu_Item_Property('Edit.Insert', ENABLED, PROPERTY_TRUE ) ;
              Set_Menu_Item_Property('Edit.Remove', ENABLED, PROPERTY_TRUE ) ;
              Set_Menu_Item_Property('Edit.Clear', ENABLED, PROPERTY_TRUE ) ;
              Set_Menu_Item_Property('Action.Save', ENABLED, PROPERTY_TRUE ) ;
         Else
              Set_Block_Property( PC$Block, INSERT_ALLOWED, PROPERTY_FALSE ) ;
              Set_Block_Property( PC$Block, UPDATE_ALLOWED, PROPERTY_FALSE ) ;
              Set_Block_Property( PC$Block, DELETE_ALLOWED, PROPERTY_FALSE ) ;
              Set_Menu_Item_Property('Edit.Insert', ENABLED, PROPERTY_FALSE ) ;
              Set_Menu_Item_Property('Edit.Remove', ENABLED, PROPERTY_FALSE ) ;
              Set_Menu_Item_Property('Edit.Clear', ENABLED, PROPERTY_FALSE ) ;
              Set_Menu_Item_Property('Action.Save', ENABLED, PROPERTY_FALSE ) ;
         End if ;
    END;Francois

  • Forms 10g not supporting Analytical functions

    Hi all
    i try to use analytic funtion like
         row_number() over (partition by uuid order by timesheet_acct) rn
    but form did not compile this while when i run the same analytic function in SQL prompt it runs fine. is forms support Analytical functions?? if not then what can i do for performing this task at form??
    thx.

    Ok, so look at this stored function:
    CREATE OR REPLACE FUNCTION Return_Cursor
      PC$Select IN VARCHAR2
    ) RETURN SYS_REFCURSOR
    IS
      cc  SYS_REFCURSOR ;
    BEGIN
      OPEN cc FOR PC$Select ;
      RETURN cc ;
    END ;
    /Then imagine you can call it with ANY query like the following:
    SQL> set serveroutput on
    SQL> DECLARE
      2     cur SYS_REFCURSOR ;
      3     CURSOR c IS SELECT deptno, ename, sal FROM EMP ;
      4     rec c%ROWTYPE ;
      5     LC$Req  VARCHAR2(2000) ;  
      6    BEGIN
      7      LC$Req := 'SELECT deptno, ename, sal FROM ' ;
      8      LC$Req := LC$Req || '(SELECT deptno, ename, sal, row_number() over ' ;
      9      LC$Req := LC$Req || '(PARTITION BY deptno ORDER BY sal DESC) FROM EMP ORDER BY deptno, sal)' ;
    10      cur := Return_Cursor( LC$Req ) ;
    11      LOOP
    12        FETCH cur INTO rec ;
    13        EXIT WHEN cur%NOTFOUND ;
    14        dbms_output.put_line( rec.DEPTNO || '  ' || rec.ENAME || ' -> ' || rec.SAL ) ;
    15      END LOOP ;
    16      CLOSE cur ;
    17  END;
    18  /
    10  MILLER -> 1301
    10  CLARK -> 2450
    10  KING -> 5000
    20  SMITH -> 915
    20  ADAMS -> 1100
    20  JONES -> 2975
    20  SCOTT -> 3000
    20  FORD -> 3000
    30  JAMES -> 950
    30  WARD -> 1250
    30  MARTIN -> 1250
    30  TURNER -> 1500
    30  ALLEN -> 1600
    30  BLAKE -> 2850
    Procédure PL/SQL terminée avec succès.What do you think ?
    Francois

  • Forms Personalization or custom.pll

    I need to make the 'One Time' check box default to yes for the supplier window when I login through a custom responsibility One Time Supplier !
    either by forms personalization or custom.pll
    Can any one advise me ?

    Ok.
    I’m on EBS 11.5.10.2 R3
    I’m not sure if it will work for a different version
    1.Open the Suppliers and the Forms Personalization windows.
    2. Seq=1, Description: Activate One_Time flag
    3.Level = Function
    Condition:
    Trigger Event = WHEN-NEW-RECORD-INSTANCE
    Trigger Object = VNDR
    Condition = :SYSTEM.RECORD_STATUS = 'NEW'
    Actions
    Seq=1, Type = Property
    Description = One Time
    Object Type = Item
    Target Object = VNDR.ONE_TIME_FLAG_MIR
    Property Name = VALUE
    Value= Y
    4.In the Context area enter the responsibility you want to be affected by this personalization.
    5.Save your work and close all windows. Using the responsibility on 4, open the suppliers window again, go to the Classification tab and see if it is checked.
    Hope this helps
    Octavio

  • Query Builder Form Hide

    Hi Guys,
    I am working on a requirement for manage attachment functionality. But I am facing one issue in one scenario.
    From Manage attachment screen, User clicks on Search From Repository and in search page there are some default or hidden fields. Like where author is match with the login user and etc. For Expanded form there is no issue. All the hidden fields are not coming and search result is coming fine. But if user changes to Query Builder Form and manually modify the query then user can see all the content.
    So I want to stop the user to show the Query Builder form by which he/she could not modify the query and search. Is there any process by which we can hide the Query Builder Form?
    I have seen one Jonathan blog: https://jonathanhult.com/blog/2012/06/remove-fields-from-query-builder-search-form/
    But I would like to full hide the form.
    Thanks in advance.
    Regards,
    Santanu

    Hi Guys,
    As part of the above solution  (DisabledSearchFormTypes=queryBuilder), the query builder form will never appear. Which is not a good practice.
    Because for development this is very useful.
    My intention was to stop the user access Query builder Form only in Manage attachment screen.
    So I have created one custom component which will override the resource : query_page_menus_setup and check the xIdcProfile value.
    If IdcProfile is PSFTProfile or EBSProfile then it will not appear.
    <$exec rsAppendNewRow("PageMenusData")$>
    <$PageMenusData.nodeId = "QUERY_BUILDER_FORM"$>
    <$PageMenusData.parentId = "SEARCH_FORMS"$>
    <$PageMenusData.label = "wwQueryBuilderActionLabel"$>
    <$PageMenusData.type = "item"$>
    <$if #active.dpDisplayLabel like ("EBSProfile|PSFTProfile")$> 
    <$else$>
    <$PageMenusData.href = "javascript:switchQueryForm('queryBuilder')"$>
    <$endif$>
    I think this is really good.

Maybe you are looking for