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.

Tags: Oracle Development

Similar Questions

  • where can I find broad on oracle forms online help?

    where can I find broad on oracle forms online help

    Hello

    Documentation for the developer Oracle is located at:

    Oracle Forms Developer and Forms Server Documentation
    http://www.Oracle.com/technology/documentation/forms.html

    For online help, it comes by default with the installation of Oracle Forms/Reports, or you can access it from this link.

    Oracle Forms
    http://www.Oracle.com/webapps/online-help/forms/10G

    Kind regards
    Hussein

  • 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.

  • JavaBeans and oracle form builder

    Hello world
    I want to learn more about the oracle java library especially frmall.jar, I want to learn more about interactivity with the form builder and java, I searched on the internet and saw some very simple examples.
    any body know where I can download a reference on oracle form builder and java book?
    Thank you

    It is not a huge amount of documentation on that, but there are some.


    One of the best sites non-Oracle Forms Java Bean and pluggable Java components is: Oracle Forms PJCs/Java Beans

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

  • How to run Oracle Forms in Google Chrome

    Hello

    How can we run our applications Oracle Forms in Google chrome (with SSO)? This has not worked quite awhile and a lot of our other company activities revolve around Chrome in the standard user interface.

    We are in form 11g.

    Thank you! HJ

    976327 wrote:

    Hey Hamid,

    Chrome says: this plugin is not supported. I did some research and found something about NPAPI unsupported.

    The error appears when you try to run our applications Forms via a URL

    Thank you, HJ

    Hello HJ

    Check

    1. https://java.com/en/download/faq/chrome.xml

    2 https://productforums.google.com/forum/#! m5sRq0_UKek/chrome/section

    Use of IE

    or

    You want a 3rd party?

    Try TalkingByte

    Hope this helps

    Hamid

  • Oracle Forms hung or orphaned sessions

    Database server: 10.2.0.2.0
    Application server: 11.5.10.2

    Running on the release of Red Hat Enterprise Linux Server 5.3 (Tikanga)

    =====================================================

    How can I locate and manage Oracle Forms hung or orphaned sessions?

    Hello

    Please refer to (Note: 457381,1 - Troubleshooting for spinning/hanging F60WEBMX process) including references.

    Kind regards
    Hussein

  • Oracle Forms and SSO

    Hi all

    I am troubleshooting a client in so he could integrate its Oracle Forms Applications withActive existing directory for authentication purposes.

    There are a lot of possibilities to achieve this, but the theory and practice are two different things.

    So I'd appreciate your comments on the following options, and perhaps some new ones I did not:
    -using the OSSO: that obviously easier. OSSO may nativey serve by Oracle Forms, which in turn uses OID, which in turn in sync with AD with the help of DIP. Quite a big configuration...
    -using the OAM: OAM integrates with OSSO, who can be used natively by Oracle Forms, which in turn... same story as above, only that OAM allows you to control access to all Web applications in my client's infrastructure.
    -from the Ondaaah: I think that Ondaaah is based on OSSO. If this is the case, should I still all resynchronize with AD and OID? Someone played with it already?

    If someone did an other thin and easy manner, I would be acknowledging its contribution too.

    Thank you!
    s

    seems more complicated than it really is. You can generate the script users OID & RADs if you are familiar with ldap & Setup for the DIP uses an Oracle script. Yes, used - this successfully several times.

    However, if you can avoid the forms, you need not to go this route. If these are new applications, you can use ApEx. If there are forms & are simple relatilvly, you can use the ApEx 3.2 conversion tool forms & a bit of work to migrate.

    Metalink notes
    267153.1: how to set up the Sync OID with AD
    277382.1: how to configure the OID of external authentication plugin for authentication via AD

    A few tips
    AD & OID have some duplicate, accounts to avoid problems:
    In ad: put all users to remove in an OU 'Parent '.
    OR = MyOUName, DC = mydomain.com
    Target this ORGANIZATIONAL unit when you go through the configuration of the synchronization of OID. Do not put AD users in this unit of ORGANIZATION (or child OU) If you want them to Sync in OID. Administrative users AD should not be synchronized in OID.
    Patch your OID to 10 gr 2 game patches 2 or 3 before setting up the synchronization. The standard installation of 10.1.2.0.2's had problems syncing DIP.

  • FILL MONTHS DYNAMICALLY IN THE ITEM VIA ORACLE FORMS GROUP RECORDING LIST

    Experts

    I have a query in oracle forms. I need to fill Last_Month, Current_Month & Next_month based on Sys_Date in the list box. I am able to get the values in SQL if I run the query below, but when I use the version of Oracle Forms 10.1.2.0.2, I could not get the values of Mr. can you please guide me where I'm wrong.

    declare

    v_rg_id recordgroup: = NULL;

    Number of V_errorcode;

    v_rg_salmth varchar2 (30): = "MONTHS";

    Begin

    v_rg_id: = find_group (v_rg_salmth);

    If id_null (v_rg_id) then

    v_rg_id: = create_group_from_query (v_rg_salmth,

    "WITH (AS MONTH_COUNTER)

    SELECT LEVEL 2 AS ID

    OF THE DOUBLE

    CONNECT BY LEVEL = 2

    UNION

    SELECT LEVEL AS ID

    OF THE DOUBLE

    CONNECT BY LEVEL = 0

    )

    SELECT TO_CHAR (ADD_MONTHS (TO_CHAR (SYSDATE), ID), MONTH) AS MONTH_COUNTER MONTHS ');

    v_errorcode: = populate_group (v_rg_id);

    If v_errorcode = 0 then

    message ("record group filled with data");

    on the other

    message ("V_errorcode is:" | ") v_errorcode);

    end if;

    End if;

    populate_list('MASTER.) MONTH, v_rg_id);

    end;

    The rather complicated query, try

    SELECT ADD_MONTHS (SYSDATE-1) TO DOUBLE

    UNION ALL

    SELECT SYSDATE DOUBLE

    UNION ALL

    SELECT THE DOUBLE ADD_MONTHS(SYSDATE,1)

    BTW. to use a query to populate a list, you must select two values, a label and a value, check it fill listitems dynamically - Andreas Weiden - on Oracle

  • Can we call the procedure inside the function?

    Hello

    Can we call the procedure inside the function?

    Thank you
    Brij

    845712 wrote:

    Can we call the procedure inside the function?

    Strange question to ask.

    Yes. This is the standard behavior in most (if not all) procedural and object oriented languages.

    A procedure, function or a method is a unit of code.

    You can call one of the other units. Units can call themselves (recursion). Technically, this means simply by pushing the battery current (to save the stack of the current device memory), the call to the new unit and then popping up battery when control is returned to the unity of the appellant.

    There are very few exceptions to this. The only one that comes to mind programming languages I've used through the years, is natural 1 - could not call a new unit of code to replace the existing one in memory. If no call-and-return was possible.

    Exactly what did you ask this question? Some newcomers to confused Oracle SQL and PL/SQL - two different languages aside server. And then also mistaken for PL/SQL client command vocabulary of SQL * more.

    You will need to make sure that understand the basics of programming (applies to most current programming languages) and Oracle concepts.

  • Process to send records from Oracle Apps to 3 system using SOA group

    Hi all

    I have a similar case that follows.

    It is a seeded (creation of the employee) page in Oracle application. In the event of any transaction in this page, I have to pass the file of the employee to a third-party legacy system using SOA services.

    My problem is that the creation of employee page is a page sown is not possible to change any code for this screen. So I can't call a WSDL here to send the dossier to SOA environment.

    So please suggest me how can I achieve this.

    Hi there Ruparanjan,

    This blog explains in detail what to do

    view configuration-

    https://blogs.oracle.com/soaproactive/entry/jms_step_6_how_to.

    After that, he must have JMS JCA adapter added as a service binding

    component to consume messages from the JMS (table AQ). How to use the

    From the point of view of dev JMS adapter you can google and find tons of samples.

    HTH,

    A.

  • Case function can be used as a parameter when calling a procedure, please advise...

    Case function can be used as a parameter when calling a procedure, please notify

    The daily procedure is called with the parameter 3 following one of the parameters using a function box between them as shown below.

    Daily_Ins (c1.p_mtrid, c1.p_UOM CASE WHEN "KWH" THEN 1 ELSIF 'KW' THEN 2 END, v_dateHold);

    In my opinion, using decode is illegal, so I think that I cannot say something like :

    Daily_Ins (c1.p_mtrid, ( decode c1.p_UOM, "KWH", 1 'KW', 2), v_dateHold);

    I think I just found something on the net

    SQL > DECLARE

    2 wages NUMBER: = 20000;

    3 employee_id NUMBER: 36325 =;

    4

    5 PROCEDURE give_bonus (emp_id in NUMBER, bonus_amt number) IS

    6 BEGIN

    7 DBMS_OUTPUT. Put_line (emp_id);

    8 DBMS_OUTPUT. Put_line (bonus_amt);

    9 END;

    10

    BEGIN 11

    12 give_bonus (employe_id,

    13 CASES

    14 salary when > = 10000 AND salary<=20000 then="">

    15. WHAT salary > 20000 AND salary<= 40000="" then="">

    16. WHAT > 40000 salary THEN 500

    17 0 OTHERWISE

    18 END);

    END 19;

    20.

    PL/SQL procedure successfully completed.

  • Can I call a custom outdoor function?

    Can I call a custom outdoor function?

    For example

    //______________________

    var myComp = app.project.activeItem;

    createComps();

    createSolids();

    RenderItems();

    //______________________________

    but these functions are written separately in the current directory .jsx format?

    As a library?

    #include <>?

    You gave the answer to your question: you can use #include 'path/to/file/to/include.jsx '.

    And the path can be absolute or relative to the current folder.

    See the JavaScript ToolGuide for this (it does not appear in the AE script guide since it is common to all applications).

    You can also use $.evalFile (pathToFile), which has more or less the same effect I think.

    Xavier.

  • Can make comparisons Records without functions or PLSQL

    I'm used to write Oracle functions to save comparisons, but on this project, managers do not want to use the functions or PLSQL
    Is there a way to do the following with a SQL rather than write a function: see all data below? Oracle 9i.

    I have the following data set used to track packages that are moved from warehouse to warehouse on trucks
    I want only to retrieve a record if the starting location is Dallas Ft Worth and end location is another city.
    I don't want to retrieve a record if the package moves between other cities (for example, Boston and New York)

    For this set of data package 1324 was added and removed to warehouses in Dallas 4times trucked 735 front finally moved to a warehouse in Boston by the same truck

    I want the query to return the next record
    105273 345 1324 725 11/3 / 2010 14:32 11/3/2010 15:46 dallas Ft Worth WH4

    Showing the last location in Dallas until he was moved to Boston

    I don't want to return records Boston or NY or the Dallas Ft Worth the previous Records.

    The way the system updates the records is as follows:
    If a package is added to a warehouse of the record gets an extra date.
    When it is removed from the system updates the deletion date of this same record
    Once it is added to a new warehouse there is a new record with an additional date and null for the deleted date unless he leaves this place
    In the recordset if the date of removal is null then it is the current location of the package


    CREATE TABLE emplacement_module
    (track_id NUMBER (10))
    , sender_id NUMBER (10)
    , package_id NUMBER (10)
    , truck_id NUMBER (10)
    package_add_date DATE,
    package_remove_date DATE,
    , city VARCHAR2 (50)
    , VARCHAR2 (50) warehouse
    ) ;

    INSERT ALL
    IN emplacement_module (track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (100012
    345, 1324, 725, 04/08/2010 14:39:48, 04/08/2010 14:53:07, "Dallas Ft Worth", "WH1")

    IN emplacement_module (track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (100016
    345, 1324, 725, 04/08/2010 14:53:07, 09/30/2010 10:41:01, "Dallas Ft Worth", "WH2")

    IN emplacement_module (track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (103055
    345, 1324, 725, 30/09/2010 10:41:01, 03/11/2010 14:32:14, "Dallas Ft Worth", "WH3")

    IN emplacement_module (track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (105273
    345, 1324, 725, 11-03-2010 14:32:14, 03/11/2010 15:46:22, "Dallas Ft Worth", "WH4")

    IN emplacement_module (track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (105284
    345, 1324, 725, 11-03-2010 15:46:22, 22/11/2010 11:55:18, 'Boston', "WH34")

    IN emplacement_module (track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (106674
    345, 1324, 725, 11/22/2010 11:55:18, NULL, 'New York', 'WH56')


    I tried to do a query with a subquery... the main request was all the records with Dallas Ft Worth and then the subquery was to check if the location wasn't Dallas Ft Worth, but so far I could not quite get the correct dataset.

    Any help is greatly appreciated. I don't know if there is a way to do it with just an sql query, if not other suggestions are welcome!


    Thanks in advance

    I added a few lines to your table, back from New York shipping package in Dallas on another truck, then return to Dallas for New York in order to ensure, I understand the requirements.

    SQL> SELECT * FROM package_location;
    
      TRACK_ID  SENDER_ID PACKAGE_ID   TRUCK_ID PACKAGE_ADD_DATE     PACKAGE_REMOVE_DATE  CITY             WAREH
    ---------- ---------- ---------- ---------- -------------------- -------------------- ---------------- -----
        100012        345       1324        725 04-aug-2010 14:39:48 04-aug-2010 14:53:07 Dallas Ft Worth  WH1
        100016        345       1324        725 04-aug-2010 14:53:07 30-sep-2010 10:41:01 Dallas Ft Worth  WH2
        103055        345       1324        725 30-sep-2010 10:41:01 03-nov-2010 14:32:14 Dallas Ft Worth  WH3
        105273        345       1324        725 03-nov-2010 14:32:14 03-nov-2010 15:46:22 Dallas Ft Worth  WH4
        105284        345       1324        725 03-nov-2010 15:46:22 22-nov-2010 11:55:18 Boston           WH34
        106674        345       1324        725 22-nov-2010 11:55:18                      New York         WH56
        106675        345       1324        804 25-nov-2010 09:55:18 30-nov-2010 15:46:22 Dallas Ft Worth  WH4
        106676        345       1324        804 25-nov-2010 09:55:18 01-dec-2010 15:46:22 New York         WH42
    

    Given these data, you do not want return 105273 and correct 106675 track_id?

    If so, then something like:

    SQL> SELECT track_id, sender_id, package_id, truck_id, package_add_date,
      2         package_remove_date, city, warehouse
      3  FROM (SELECT track_id, sender_id, package_id, truck_id, package_add_date,
      4               package_remove_date, city, warehouse,
      5               LEAD (city) OVER(PARTITION BY package_id
      6                                ORDER BY package_remove_date) next_city
      7        FROM package_location)
      8  WHERE city = 'Dallas Ft Worth' and
      9        next_city != city;
    
      TRACK_ID  SENDER_ID PACKAGE_ID   TRUCK_ID PACKAGE_ADD_DATE     PACKAGE_REMOVE_DATE  CITY             WAREH
    ---------- ---------- ---------- ---------- -------------------- -------------------- ---------------- -----
        105273        345       1324        725 03-nov-2010 14:32:14 03-nov-2010 15:46:22 Dallas Ft Worth  WH4
        106675        345       1324        804 25-nov-2010 09:55:18 30-nov-2010 15:46:22 Dallas Ft Worth  WH4
    

    John

    Published by: John Spencer on August 14, 2011 14:22

    Operator non-display sets

  • Can I call sql * scripts of charger from Oracle DBMS_SCHEDULER jobs

    Hi all

    Can I call oracle SQL * Loader work DBMS_SCHEDULER scripts.

    Appreciate your suggestions on this.

    Thank you
    Madhu K.

    Can I call oracle SQL * Loader work DBMS_SCHEDULER scripts.

    DBMS_SCHEDULER can invoke OS script.
    Exactly what the script does it to you.
    You should know that the script will have probably environmental & OS permission issues.

  • How can I call two functions in the HTML Form element attributes

    Hello

    I want the same value in the text field two, when I select the value to select the list then the value with a number increment should be two text field.
    I use both java script

    < script >
    function sumItems() {}
    function getVal (item) {}
    If ($x (point) .value! = "")
    Return parseFloat ($x (item) .value);
    on the other
    return 0;
    }
    $x('P19_LAST_END_YR').value = getVal ('P19_LAST_STR_YR') + 1;
    }
    < /script >


    < script >
    function per1Items() {}
    function getVal (item) {}
    If ($x (point) .value! = "")
    Return parseFloat ($x (item) .value);
    on the other
    return 0;
    }
    $x('P19_LAST_END_YR').value = getVal ('P19_START_YEAR') + 1;
    }
    < /script >


    now how can I call function onchange two attributes of the element in the HTML form for the discount:
    ' onChange = "javascript:sumItems()" onChange ="javascript:per1Items().

    Hello

    Try

    onchange="sumItems();per1Items();"
    

    BR, Jari

Maybe you are looking for

  • My Macbook Pro does not recognize the Apple USB superdrive

    My Macbook pro doesn't recognize the superdrive. I don't know exactly what is the cause, but everything was fine before certain events. Upgrade to El Capitan Upgrading to Parallels desktop 11 Upgrade to Windows 10 As I said before these changes every

  • Satellite L850-B147 - WiFi disconnects

    Satellite L850-B147 with Atheros WLAN Wifi disconnects automatically, even if the connection is available.It then automatically reconnects. Driver is up-to-date. Other devices on the same router work perfectly.

  • cannot re - install world of warcraft free trial

    I played world of warcraft free trial without any problem. I then downloaded a helper to search for add-on from curse.com. Since then I can not enter one of the worlds on wow. I deleted the helper of the quest module and also to remove the client fro

  • Compaq 110: fatal error halted

    Help me I have a compaq mini 110. I didn't on this subject in the year and when I turned it on it said Fatal error... System stopped CNU94191WM can someone tell me PLEASE how to fix this Thank you

  • problem with find dxdiag

    I can't locate dxdiag, even with i run and search for it, it comes out blank. I also installed the new directX 11 to see if she could fix things, but without success. It's weird, because I could have sworn that I've used it before... can someone help