Call DLL (c#) function in Oracle Forms

Hello

I have a big problem with the method of DLL in Oracle Forms 6i. DLL was written in

C# and this is the code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OnlineFPCommon;
using System.Windows.Forms;

namespace TestNamespace
{
    public class TestClass
    {
        public static void testMethod()
        {
            MessageBox.Show("testMethod");
        }
    }
}

I try to call using the Oracle Forms code:

testlib_lhandle := Ora_Ffi.Load_library('C:\libdir\','test.dll');
getresult_fhandle := ora_ffi.register_function(testlib_lhandle,'testMethod');

but the second line, when I try to save the function fails. Why? How can I properly invoke this function?

Only shouts and C is supported.  You can also view notes 285331.1 that this note refers to WebUtil MyOracleSupport, but the same restriction applies in your case.

Tags: Oracle Development

Similar Questions

  • Can I call MS Excel function in Oracle

    Hello world

    I have prototyped my application in Microsoft Excel. In this prototype, I use the BETADIST() function, which returns the cumulative beta probability density function. And, Yes, if you're like me and not a statistician, it's pretty crazy. Just for fun, check out the page of wikipedia on this subject, and you'll see what I mean. Anyway, so now I'm doing the same functionality as this function in my Oracle APEX 4.0/Oracle 10 g R2 - app.

    I studied this feature a lot, and I couldn't find a function equivalent to Oracle to do what this function. CUME_DIST... nope, DBMS_STATS_FUNC... No. So, I guess I need to figure out what exactly the function and basically rewirte in Oracle using PL/SQL. I already have questions forums statistics and Excel tries to understand this.

    But, before I go further and reinventing the wheel by coding the logic embedded in this function (which is very hairy, of course), I wanted to check with you all and see if there is a way to call this function in MS Excel by Oracle. Not sure if an outpatient procedure can access an Excel library, or how if he can.

    Any ideas?

    Thank you!
    Mark

    I'm sure that this BETADIST exists in Java.

    I think that not natively.

    But you can download libraries of COLT of Cern for high performance scientific and technical computing in Java.

    Loading libraries by loadjava

    loadjava -user michael/xxxx@oracle_server:1521:oracle_sid -verbose -force -order -resolve -thin colt.jar concurrent.jar
    

    and the creation of a function

    create or replace function betadist (alpha number, beta number, c number)
         return number
      as
         language java
         name 'cern.jet.stat.Gamma.incompleteBeta(double, double, double) return double';
    /
    

    is rather simple.

    The appellant

    SQL> select betadist(4,5,0.4) from dual
    /
    BETADIST(4,5,0.4)
    -----------------
             ,4059136
    1 row selected.
    

    the result coincides fairly well with the example given in the http://www.excelfunctions.net/Excel-Beta-Dist-Function.html.

  • Functional test Oracle Forms: adding new row in the Table

    Hello

    I try to create a Test Script for creating order sale to R12.  I use OpenScript Version: 12.5.0.1 Build 287

    I am able to create the script for all orders with less than 9 lines.

    Currently, it has more than 8 lines, the script does not work. The threshold is unable to find the object to line 9.

    "//forms:textField [(@name ='LINE_ORDERED_ITEM_DSP_" + getVar ("{{setLine}}") + "" ")] .

    The reason could be, when I scroll down to line 9 in the form, I guess the name of the textfield object is changed.

    If everyone faced the similar problem, please throw some light on this.

    Thank you

    Guna.

    Hi Guna,

    You will need to provide the "maxvisiblelines" for the part of lines to BBA. This must be done at the component level. When you define a component itself, you must specify the value for maxvisiblelines

    Thank you

    Anand

  • Call a custom Page OA Framework Oracle form form Personaliz

    How to call a Page of OA framework custom Custom form of Oracle through form customization. I use 11.5.10.2 RUP7

    The Document says to use

    PACKAGE FND_FUNCTION IS
    procedure EXECUTE (function_name in varchar2,
    open_flag in varchar2 default 'Y ',.
    session_flag in varchar2 default 'SESSION. "
    other_params in varchar2 default NULL,
    activate_flag in varchar2 default 'ENABLE ',.
    browser_target in varchar2 default NULL);

    But how can I use it in the form of customization. The FND_FUNCTION function is not there.

    Use 'Launch of a function' which is available.

    Here, I'm a bit confused.

    Thks
    PAyam

    Hello

    See links below:

    https://blogs.Oracle.com/prajkumar/entry/call_oaf_page_from_d2k
    http://oraclearea51.com/11i-OA-framework/17-technical-articles/technical-articles/325-how-to-call-OAF-page-from-form-personalization.html
    http://Oracle.anilpassi.com/call-OA-framework-page-from-Oracle-Forms-passing-parameters-2.html

    Sushant-

  • Validation of military time in oracle forms

    I have a column called time of warming in oracle forms. The format mask is HH24
    If the user does not have at the time military, how can I fill a message to say, 'Please use the military time format '.

    Its been 30 minutes warm-up time. It must be registered in the military calendar. For example 13:30 must be entered 13:30. If they enter in format other than military calendar to give a message to enter warming time military calendar and then clear the field

    You can use something like this:

    DECLARE
        v_date DATE;
    BEGIN
        SELECT TO_DATE(:YOUR_ITEM_NAME, 'HH24:MI')
        INTO v_date
        FROM dual;
    EXCEPTION
        WHEN OTHERS THEN
            MESSAGE('Please enter in format HH:MI');PAUSE;
    END;
    
  • A function can be called record group - Oracle Form 6i.

    Hi all

    I want to create query based LOV in Oracle Form 6i.

    The query I have use of the record group is as follows:

    SELECT DISTINCT

    Nr.rec_locator AS rec_locator,

    car.car_dte AS car_date,

    Get_car_info(:CON.) REF_NO) AS car_number

    Car_list_entries CAR

    contact_details cdt,

    name_records nr

    WHERE car.car_id = cdt.car_id

    AND cdt.nr_id = nr.id

    AND cdt.con_ref_no =: CON. REF_NO

    / * Get_car_info (x NUMBER) is a function of form * /.

    This generates an error:

    It is said

    FRM-12001 (impossible to create the Group Record (check your query)


    Kindly guide how can I use the function of form to achieve the desired result.

    Thank you very much

    Anoop.

    Hi Anoop,

    I can assure you that the issue is not because of the called function of the record group.

    I used the query showing the value of the function; but one thing you should keep in mind is:

    If you create a new item not related in a based lov to sql expression that

    return a character data type, and if the element related to the used in the function

    is generated with a size of 0, then the item not related is generated

    with a size of 4000 and a compilation of the form failed with error FRM-30187

    the solution to this problem is: lov property > column specification > columns one will be having a greater length and 2000 it set its 2000 which is the maximum value. Then it won't work.

  • How to properly call modal vi function in the C dll

    I have a labview function that takes a string as input and passes out when the user clicks OK in a 2 button dialog box. I have built a dll and then calls the function from a C++ environment by using the LoadLibrary function. If I set the Panel before shows the default settings and NOT modal the vi is displayed correctly but the dialog box box does not work. If I put the Panel before the vi to modal then vi front panel display correctly, therefor there I find that the dialog should be modal in his view.

    My question is about C++ How can I call a dll that displays a Modal form correctly? or how can I change the dialog box in modeless behavior / defect that can be done to the face before of the vi?

    Thanks in advance for any help.

    Hi, thanks for yor reply.

    The dialog box displays only partially. No, I have not tried the express vi, but I did create a vi to behave like a dialog box 2 button

    allowed me to define it as modeless. It also displays only partially.  I since first announcement also tried to run the dll also using labview and teststand to call the dll, in both cases the dll load and behaves correctly, the dialog box appears correctly.

    This suggests that the problem is with the C++ code but not being is not a very experienced C++ programmer I don't know how to debug the problem more far.

    Any help is highly appreciated.

  • Oracle form functions and procedures in the APEX, how?

    I'm working to recreate in the APEX, already existing read only forms in Oracle Forms. Report features interactive APEX among other things, in fact worth as well as to target a different audience than utilizies versions of Oracle Form. Versions of Oracle Forms use a lot of pre and post query triggers, PLSQL functions.

    In Oracle Forms that places, these functions can be found in the "Units of program" section of the form. A feature typical of this kind, based on a particular Mission ID route, collecting names of regular passengers, is shaped with a comma and a space after each of them, in a single string that is returned and displayed the list of passengers of a line.

    I have all of this written code so I can move most of the main request of the Oracle form in an interactive report. These functions and triggers called in the form of the "Units of program" section of the Oracle form rather than stored in the database schema in a package, where they would go inside the APEX? Can I create a 'shortcut' in the APEX and call it from the interactive report "Source Région"? I can create the PLSQL function at the level of the region of the interactive report or page level? Or, my best bet creates a package that is stored in the database, all these functions and/or proecedures I might need the original form of Oracle?

    Some advice would be greatly appreciated.

    RLBickham wrote:
    I don't think I've been pretty clear in the description of the specific thing I want to do, simply, it does not reach the level of forms of conversion of the APEX. It is basically a problem of PLSQL function.

    I have an interactive report which is currently 90 percent of what I want however, each line, which represents a Mission may have several feet. Each arm has two places or ICAO codes attached to it. Based on the number of Mission, I want to loop through the array of leg, collect all the codes of ICAO for this Mission, put them together in 1 variable separated by a coma and add this variable to display the columns in this interactive report as the last column.

    In Oracle Forms, I have a function registered in the database, which is called in the main query. Maybe I ask a question that does not need to be asked, but anyway my question is can I put this function currently in the database somewhere within the interactive report and somehow reference it via Http, or should I just stick with set of functions and procedures in the packages stored in the database and called the conventional way?

    You could switch the function to the database and call it from the report query, but it sounds as if it were superfluous. In the report query using any form of Re: 4. How can I convert rows to columns? is appropriate for your version of the (unspecified) database.

    -----

    When you have a problem, you will get an answer faster, more efficient including information as much information as possible from the outset. This should include:

  • Full version of APEX
  • Complete operating system DB, version, edition, host
  • Architecture of Web server (EPG, SST or APEX listener/host operating system)
  • Browser (s) and version (s) used
  • Theme
  • Model (s)

  • Region/section type (s) (particularly as to distinguish if a 'report' is a standard report, an interactive report, or indeed a 'update report' (i.e. a tabular presentation))

    With APEX, we also had the chance to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproduce things is the best way to solve most of the questions, particularly those relating to the layout and Visual formatting. If you expect a detailed response it is appropriate that you take on an important part of the effort by getting as much as possible with an example of the problem on apex.oracle.com before asking for help on specific issues, then we can see firsthand.

  • Call the library function does not find the DLL in the directory where are my LLBs

    I'm using LabVIEW 8.6.  I have a set of screws in several LLBs.  All LLBs located in a directory.  Most of my screws is wrappers for the functions in a DLL.  I was told to put my DLL in the directory where are the LLBs, and apparently this is how the previous programmer has worked (using an earlier version of LabView).

    In the configuration of the library call, I've specified .dll without path.  (This is how we want our screws are an API that will integrate other programmers, so I don't know where they put things and I can't use absolute paths).

    When I insert the VIs in LabVIEW, LabVIEW can not find the DLL and wonder of spotted.  It's just that here in the directory with the LLBs and when I double click on it, everything works fine.  However my absolute path to the DLL now appears in the library to call configuration, and we don't want that.

    Does anyone know how to make this work?  I guess the location of the screw (or LLBs, in this case) should be the current directory and thus Windows search there for the DLL.  However, it seems that this is not the case (in the least, in the latest version of LabVIEW).

    Thank you.

    Batya

    Well someone using your library should not have to dig into your screws and do it all on his own. Instead your library must wrap that and hide disorders it altogether.

    The cluster of error has been added when the dynamic path option has been added. It is not useful hide this error output, so it's always there. As well as the dynamic path, there was the improved error handling added the CLN. One of them is that the level of verification when calling function errors (exception handling) can be specified. I guess that some of these options may generate an error code instead of bring up a dialog box, as they did before and that the output of error code can be useful even in the case of static calls.

    As to what you want to do, I would have long managed that with a DLL that has essentially the same functions as your other wrapper DLLs and an initiliasation function that returns a pointer to a structure of functional distribution based on the actual DLL you want to call. Quite like what an object-oriented function dispatch table is. Then, when your interface initilising you call initialize function and specify the device interface/type that you want to use and after that all other functions take a pointer extra function parameter expedition as the first parameter, in addition to the parameters of the real function. This dispatch function pointer would be just a pointer to a structure that contains the table of function for this interface pointers and the sake of LabVIEW would simply be an integer of size pointer.

    The wrapper function then checks the pointer structure validity send feature and call the actual function with the remaining parameters. It is a C programming and may require a planning and desigining the different interfaces to facilitate this kind of technique of the expedition, but it will certainly pay to long-term and make your library even can be used in previous versions of LabVIEW, so that VB etc. without delicate dynamic loading in the level high, programming environment.

    Rolf Kalbermatter

  • Form of LEAD analytic function in Oracle 10 g

    Hi gurus,

    I need your help again.

    In one of my custom under program units form, I have a procedure. The procedure has a cursor DECLARE section.

    The Curosr are:

    SELECT jtb.task_id task_id,
           DECODE (jttv.rule, 'DISPATCH', 'FE') task_type,
           jtb.scheduled_start_date sch_start_time,
           jtb.scheduled_end_date sch_end_time,
           LEAD(jtb.scheduled_start_date, 1) OVER(ORDER BY jtb.task_id)
              next_task
      FROM jtf_rs_resources_vl jrrv,
           jtf_tasks_b jtb,
           jtf_task_assignments jtas,
           jtf_terr_rsc_all jtra,
           jtf_terr_all jta,
           jtf_task_types_tl jttt,
           jtf_task_types_vl jttv
     WHERE     jtas.resource_id = jrrv.resource_id
           AND jtas.task_id = jtb.task_id
           AND jtb.task_type_id = jttt.task_type_id
           AND jttt.task_type_id = jttv.task_type_id
           AND jttt.LANGUAGE = 'US'
           AND jttv.rule = 'DISPATCH'        
           AND jtas.resource_id = jtra.resource_id
           AND jta.terr_id = jtra.terr_id
           AND jrrv.resource_id = 100001033
           AND jrrv.resource_type = 'RS_EMPLOYEE'
           AND jtb.task_status_id <>
                  (SELECT task_status_id
                     FROM jtf_task_statuses_tl
                    WHERE name = 'Cancelled' AND language = 'US')
           AND jtb.scheduled_start_date <> jtb.scheduled_end_date
           AND TRUNC (TO_DATE ('8/23/2015', 'MM/DD/YYYY')) BETWEEN TRUNC (
                                                                      jtb.scheduled_start_date)
                                                               AND TRUNC (
                                                                      jtb.scheduled_end_date);
    

    I get following error when I am compiling this procedure.

    Compile error on the XX_ASSESS_NEXT_AVAIL_TIME procedure:

    PL/SQL ERROR at line 05, column 54 103

    Met the symbol "(" quand attend une deles de valeurs suivantes:) "

    Of

    Compilation errors are produced.

    The error is at line 05 right after.

    Please help on this.

    The SELECT query works fine in TOAD.

    Database is the database to Oracle 11 g Enterprise Edition 11.2.0.3.0 64 bit.

    Please help me.

    Thank you

    Jaggy

    In forms functions/procedures and forms triggers, you cannot use the SQL commands that did not exist in the 8.0 database.

    Oracle Forms (and reports) has a full PL/SQL engine and (only) the SQL parser.

    However, form (and reports) PL/SQL engine / SQL parser is at a level that was in the Oracle 8.0 database.

    Kind regards

    Zlatko

  • encrypt/decrypt in Oracle Forms BEFORE you call an SP or the database DML statement

    Hello.  I'm working on an application where we need to encrypt information before it is sent to the database.  I know that the database has a great set of stored procedures to manage the encryption and decryption.  The only challenge here is the fact that I would need to send information unencrypted in the database "in the clear".  Ideally, I would like to encrypt the information in the form and send it to the database.  On recovery, recover the information and then have the application forms decipher encrypted information.

    Whoever did this as a package within a PLL without all calls to a package DBMS_?

    Thank you

    BradW

    OK, I think I have the solution.  We are going to import a java class that we create to do this for us.  We then import it in forms in a library of PLL.  Problem solved!

    Nice little intro to importing Java can be found here:

    Java in Oracle Forms without beans and pluggable Java components

  • How to call oracle forms report using parameterlist for parameters

    Dear all,
    I want to know how to call oracle forms report and parameter passing between the report and the form with the list of parameters?
    can someone help me?

    What research? The forum is full of examples.

  • Oracle forms 6i, KEY functions problem

    Hello
    I work with Oracle Forms 6i and I have a problem of deactivation of any function key.

    I try to disable the F5 key via the F5 trigger of form but it does not work, I found another solution to this forum by changing the macro file, but is not a viable solution for me because a malicious user can edit this file on your PC and disable the control.

    There is a safer method to disable the f5 key?

    I thank in advance.

    Pedro

    The question is not how to disable a key, it can be more how to disable a feature. What features you want to disable? Default F5 matches KEY-MENU-relaxation, if this is the function you want to disable, write a NULL value; in the KEY-MENU-relaxation.

  • Call a page of the OAF of Oracle Forms

    Hello

    Is it possible to call a page of the OAF of Oracle Forms.

    Thanks in advance,
    Roselyne

    Hi Flo,

    Read Pages Executive Dev Guide to launch OA of Oracle Forms Applications.

    Thank you
    -Anil

  • personalized self-service portal oracle Forms link

    Guru,

    I have problem with creating a link on a page of self-service (workbench for compensation for administrators).

    I wanted a link that calls a function of Oracle (custom form) forms. I created a link and gave the name of the function, and she in fact opens the form.

    But the question iam having is that when you click on the link, it shows you a blank page with the oracle applications icon and then open the form.

    I have to press the back button on the browser to see the self service page.

    I used the image target property and tried to set to _blank, _self, _parent. but whenever I see the same blank screen and I always have to press the back button on the browser to see the self service page.

    Please see the attachment for the page I mention.

    Thank you

    Garnier,

    If you look at the html code that is generated when you create a new item of type link, it creates a call to OA.jsp. Something like this:

    Click here for Cool form!

    However, when BSE opens a form it calls RF.jsp on the OA_HTML. Look for example a simultaneous requests link looks like this:

    ( http://ppcm02.Internal.VMMC.org:8058/OA_HTML/RF.jsp?function_id=90&resp_id=50957&resp_appl_id=20003&security_group_id=0&lang_code=US') ">applications"

    If you need to add a RawText element to your oa page and call RF.jsp, passing it the similar parameters as shown above (but for your particular work of course).

    Kristofer Cruz

Maybe you are looking for

  • appearance of the display

    Hi im having some trouble tryng to get my cell phone back to how it is used to find them before! My 3 year old a few settungs and now when I open a new window to save a file or watever, low graphics, a little like old computers, where everything was

  • Why can not open any application

    I can not open any application such as anti virus, system restore or anything like that in my control panel. I can open internet explore. I know that I have the xp antivirus virus 2011. I can't remove anything well. When I try to download and install

  • The camera USB driver

    My guard computer crashing, either go to the blue screen or gel so bad that I have to press the power button. Then windows troubleshooting tells me that the problem is due to a camera USB driver, but she doesn't tell me how to remove it. When I try t

  • Trackball motion events

    Hello world! Well, I have a little problem. My application must handle trackball movements--up, down, left and right. Can someone tell me how this could be done?

  • BlackBerry Smartphones please help with audio activation combined

    Hi evryone I use a torch balackberry 9810 and the problem is when I make and receive calls, I don't hear the person at the other end. I tried to pull batery but his does not work please help?