Selection multiple-oracle forms 6

The power of groups Record - Oracle Developer forms Techniques

as Figure 2.7. Selection of several departments.

Which can provide type Demo.FMB me?


thx.......................

Take a look at this URL: forms: how to select multiple records in a block by using the folder groups. This demo was written in Oracle Forms 10 g, but when I created the original REC_GROUP package I was using Forms 6i and this demo does not work in Forms 6i.  You will not be able to use the included CRAIG.pll so just to create the REC_GROUP package in your form instead.

I hope this helps.

Craig...

Tags: Oracle Development

Similar Questions

  • Insert multiple record Oracle forms 6i

    Hi all

    I have a single column of field Field1, button, in the form TEXT_ITEM1.

    After giving the sales order number in Field1, when should press us the button, the items (item_code) shown in the TEXT_ITEM1.

    I went through the discussion Insert several Oracle forms 6i, 9i/10 g recordbut did not exactly how to write the loop button when button pressed.

    first_record;
    <<record_loop>>
    loop
      insert into ....
      exit when :system.last_record = 'TRUE';
      next_record;
    end loop record_loop;

    My request for the loop is.

    Select RI_ITEM_CODE from OT_REQ_ITEM

    Where REQ_NO =: field1;

    Please suggest

    Thanks in advance.

    Kind regards

    Afzal.

    Forgive me if I am oversimplifying this, but why not just base your block of data to the table: XXTABLE.  Then, you just put your form in design query (F7). Enter the value of 1122 in the area of the INVOICE_NUM and selects Execute Query (F8).  Then forms does all the work to extract and display the records without having to write code to do this.  This saves you having to write the code to perform and DML as well because the forms will take care of the Insert, Update and Delete automatically when your users click on save or press F10 (if I remember correctly).

    If you must absolutely query and display your data manually, then you cannot use the standard SELECT INTO method because it will only show 1 record.  You need to loop through your recordset and to manually edit the records in your block after you assign a value to the line.  For example:

    
     /* Sample Button Code */
    DECLARE
      v_invoice_num NUMBER := BLOCK.TEXT1;
    
      CURSOR Get_Items (p_invoice NUMBER) IS
      SELECT INVOICE_NUM, ITEM_CODE
      FROM XXTABLE
      WHERE invoice_num = p_invoice;
     BEGIN
      GO_BLOCK('BLOCK');
      CLEAR_BLOCK(NO_VALIDATE);
    
      FOR rec in Get_Items(v_invoice_num) LOOP
      :BLOCK.INVOICE_NUM := rec.invoice_num;
      :BLOCK.ITEM_CODE := rec.item_code;
      Next_Record;
      END LOOP;
     END:
    

    I really don't like this method, but it could work.

    Craig...

  • by selecting only the time in oracle forms

    Hi all
    as a picker of oracle forms can I select the time in oracle forms in a text element.
    I want to display the time in this format 10:10:30, and I would also like to insert into the table
    I took the data type of this column as varchar2 (15) if I take date can I insert time or varchar2 is ok.
    my version of oracle forms is 10g.


    Please answer...

    Hi, extreme

    extreme wrote:
    Hi all
    as a picker of oracle forms can I select the time in oracle forms in a text element.
    I want to display the time in this format 10:10:30, and I would also like to insert into the table
    I took the data type of this column as varchar2 (15) if I take date can I insert time or varchar2 is ok.

    Better take column with the data type date. You can insert the date and time in the date field.
    You just change the forms.
    Change the data type Date to Datetime

    to view a single moment, use the format mask.

    Hope this helps

  • How to post several lines in oracle FORM

    Hello

    I created a custom form that has a header block and a block of retail. the retail block can have multiple lines. I have a requirement that lines (multi-line) block detail data will be validated during the recording of the record. Please indicate how we can do?

    Please note that the data are not saved and yet, it will be validated during registration or any click of a button.

    Please notify. It is urgent.

    Thank you

    Pirre

    Make the echo of Christian question... What do you mean by "validating"?  You have not yet defined what it means in your scenario!

    Is your retail block a block of the base table, or a control block?  Rather than the trigger key - Commit, you could use the triggers we insert or we--update since these will be triggered for each line that oracle Forms will insert or update.  If you want to keep your validation in the trigger key code - Commit, you will need to loop through all the rows in your detail block and validate each line manually.  If the validation logic is the same for inserts and updates - you can put this logic in a unit of program (procedure) and then call this procedure in the Insert and update triggers on.

    What about using the trigger when-validate-Record?  This trigger fires as you navigate from one line to the other, but it will save a loop block (if you continue to use the "enter" key).

    Craig...

  • Oracle Forms - "DEFAULT_WHERE" is lost when used an apostrophe

    Hi all

    I faced a problem with Oracle Forms for a long time and I have no idea of what is happening so far.

    I have a block based on a stored table. I used the following statement to set the WHERE clause for this block:

    set_block_property ('MTI', default_where, l_where);

    Variable l_where has the following form:

    l_where: = ' WHERE art_nr IN (')

    || "SELECT the md5 ma_nww_ww_dat art_nr."

    || 'WHERE trunc (sysdate) BETWEEN md5.gueltig_ab AND md5.gueltig_bis'

    || ' AND UPPER (md5.art_bez_altern) AS "' | : gi_intern.txt_match_name | '%''';

    The problem arises when the user tries to search for an article, using the MATCH_NAME an apostrophe (for example, GRANT). In this case, the where conditions are lost and all records are returned as a result.

    Could you help me understand what the problem is?

    Thank you very much!

    Raluca

    I think you should put the link reference inside the clause, instead of its value.

    I mean: If you set the where_clause ' like mycol. "' | : my_item |' % "'

    you to hard-code the value of: my_item at the time of the set_block_property.

    I could do this instead (simplifying):

    l_where: = ' upper (md5.art_bez_altern) like: gi_intern.txt_match_name | » %'' ';

    Thus, the: my_item value will be assessed at the moment execute_query, and I think that forms will address the apostrophe in the variable to better link if hardcode you just what you do in your example.

    It is, forms will treat it in the same way it would if you were query mode enter and entering a filter: with variable binding.

    In fact, I think that this kind of filter you can even enter at the time of the design (with single apostrophes)

    In addition, liaison is supposed to be better for the performance of subsequent queries.

  • 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

  • Point of the box in oracle forms

    Hello experts, I am new in oracle forms. I use oracle weblogic server 10.3.5, oracle database 11 g on windows 7, 11 platform g. I have a simple table.there basic data block is a tabular shape is selected, it has four rows (records). Now I have to block the 4 adjacent boxes to data records in another block of data. Now, I have to feature in which that records must be inserted to the table of database for which corresponding checkbox (in front of registration) is checked. Thank you cordially Abdellatif.

    Hello

    Commit_Form built-in function commits all available database fields.  Therefore, use separate Insert in the statement to accomplish your task.

    As...

    because me in 1... 4

    loop

    premier_enregistrement;

    If: chk_box = 'Y' then

    Insert into values(field1,field2,...);

    end if;

    next_record;

    end loop;

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

  • Unable to connect to the Oracle Forms cmdlet after 30 Seconds (OATS)

    Hello

    While playback get error of OATS (Oracle Application Testing Suite) am most of the time 'Impossible to connect to the Oracle Forms applet after 30 Seconds (OATS)'.

    Please suggest solution for this type of error. I can't go further with this type of error.

    Kind regards
    Sairam

    Hi Sairam,

    GoTo OpenScript preference and change timeout for reading of the EBS/forms.

    Launch OpenScript, click view and select Preferences OpenScript. Then select Oracle EBS/functional forms under playback. Change timeout value.

    Kind regards
    Dembélé M

  • ADF and Oracle Forms

    I am building a hybrid application, Oracle Forms with calls to the ADF

    I have the whole plant works well, I call it my ADF of my menu forms and return application the application forms and my record is already selected

    The problem I find it is when I call back the forms applet window, I can get the correct record displayed coming from the ADF, but the focus remains on the window of the ADF, I need to pass the do back focus my forms applet window.
    I am triggering events in forms as suggested in the document: http://docs.oracle.com/cd/E15523_01/web.1111/e10240/javascript.htm#BCEHFHEF

    Any suggestions?

    Kind regards
    Carla

    Tried something like this:

    document.forms_applet.requestFocus()
    

    Dario

  • How to avoid values double in Oracle forms

    Hi all

    I am new to Oracle forms, working on Oracle Applications: 12.1.2
    Here I have a receipt of Transactions form,
    in what I Lot_Number and the amount of columns.

    Purchased items must be stored in the batch number.
    If 100 quantities purchased then 100 quantities can be stored in the unique batch number

    That is to say
     Lot_Number         Qty
      001                100
    or 100 quantities can be stored in different lot numbers.
    That is to say
     Lot_Number         Qty
      001                50
      002                50(The qty may differ)
    but not like what follows.
     Lot_Number          Qty
      001                 50
      001                 50.
    For the second line, if they chose the same as first batch number batch number,
    The error message should be as 'Lot number duplicated, select different batch number or update the quantity full original online'.

    Can someone help me solve this problem.

    Thank you.

    Kind regards
    Gurujothi

    The element of calculation must be the number data type.
    In the article, you will see that these elements are added and are not part of the table block elements.

    François

  • Oracle Forms 10g runtime error

    Hello
    I am new to Oracle forms. I created the form, compiled successfully. But when I ran the form its opening a Page Internet Explore but display not nothing on the page. After a while his shows an error "Internet Explorer has stopped working". It is happen every time when I run the form.

    Please suggest me how to run a form in the application form as well as in the Internet Explorer web page.

    Thanks in advance
    Kaddour

    Suresh,
    Which edition of Windows 7 32-bit (etc. Professional, Home, Home Premium)? If you use a home edition - good luck to do this work. The necessary minimum edition is the professional edition. Just any editions have all necessary components of networking needed.

    If you use a professional edition or higher, then there are a few preparations you must do to make it work. They are:
    1. you must install the application as an administrator.
    2. you "run" the application as an administrator. The best thing to do is to find the Oracle executable and then right-click and select Properties. Click on the Compatibility tab, and then click "Run this program as an administrator." Windows 7 automatically runs applications like 'Standard user' - even if you have the privilege of administrator assigned to your account. This is part of the feature Universal Account Control (UAC) in Windows 7.
    3. you must install and use a compatible Java Runtime (JRE) (JRE 1.6.0 - No 1.7.0). Oracle Forms 10 g Release 2 (version 10.1.2.x.x) defautls to the use of the Oracle Jinitiator. However, Jinitiator is no longer compatible with Windows 7 and modern browsers or supported. Keep in mind that Jinitiator was to IE 6 so you cannot expect this JRE to work with modern browsers.
    4. change the formsweb.cfg to use JRE 1.6.0. Change the following lines:

    #baseHTMLjinitiator=basejini.htm
    baseHTMLjinitiator=basejpi.htm
    #jpi_classid=clsid:CAFEEFAC-0014-0002-0006-ABCDEFFEDCBA
    jpi_classid=clsid:CAFEEFAC-0016-0000-0034-ABCDEFFEDCBA
    #jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_06
    jpi_mimetype=application/x-java-applet;jpi-version=1.6.0_34
    

    5. Finally, in order to run a form from the forms Builder, you must start the OC4J container. To do this, go to start-all programs-online Oracle Developer Suite - online DevSuiteHome-Online Forms Developer => start an OC4J Instance.
    The OC4J Instance emulates an application server which is required for Forms 10g Runtime.

    The changes described above assumes that you have installed the Java Runtime Environment (JRE) 1.6.0_34. If you have a lower version, make sure you change the "34" to the installed version.

    This is the minimum of changes necessary to make forms work on Windows 7 32 bit. It is strongly recommended that you apply the last group of patches (patches 3 Group) for forms bring your 10.1.2.0.0 version 10.1.2.3.0, but you will need a contract with Oracle support to obtain the fix.

    As for your question,

    One last thing, I've observed is the Oracle Services in the Control Panel control Panel\All Items\Administrative Tools\Services. I don't see any running services related to Oracle, in my system (do not even have a linked oracle service at this location).

    What other Oracle products you have installed? If just Oracle Forms, then you will have no service.

    Craig...

  • OpenScript brutally crashing while trying to save on Oracle Forms

    Hello

    I have problems with OpenScript tool where it is to crush and closing when I try to record actions on Oracle Forms.It seems to be a memory problem, but I don't know how to do to remedy or to investigate what was the cause. There are temporary files that needs to be eliminated? There are balls that I can check to see what is the problem? I'm using a Windows 7 machine and run OATS 9.3.

    Thank you
    Megha

    Published by: Megha_Agarwal on 23/08/2012 19:45

    Hello Megha

    You can try the following:
    Go to your OpenScript shortcut in your programs menu and right-click on it. Select Properties.
    You can see the OpenScript Popup properties. Ther is shortened text box located target tab. Copy the contents of this text box into a Notepad as a return to the top and increase Xmx 1024 for example
    C:\OracleATS\openScript\OpenScript.exe-configuration openscript_configuration - vm C:\OracleATS\openScript\jre\bin\java.exe - vmargs-Xmx512m - XX: MaxPermSize = 256 m

    You can try different values.

    Let us know the result
    See you soon
    JB

  • How to connect to Oracle Form Builder - Oracle Developer Suite 10 g - Windows 7

    Hi brothers and sisters.

    Hope that you are well. I installed Oracle Developer Suite 10 g on Windows 7 successfully and that it works correctly. But when I connect to Oracle Form Builder using Connect window asking:

    a. user name of
    b. password
    c. database

    a message box appears: "ORA-12154: TNS: could not resolve the connect identifier specified '.

    I check my String to connect with: ' SELECT * FROM database of v$ ', but the problem remains the same.

    Please help me how can I connect to Oracle Form Builder.

    Noor

    Hello

    Please use Net Configuration Wizard or set tnsnames.ora with string and computer name to connect.

    NET Configuration Assistant.
    When its open then go to.
    * The local Net Service name configuration.
    * Click Next.
    * Add.
    * Click Next.
    * Name service - Type here connect the String which is XE or any connection string.
    * TCP.
    * Click Next.
    Host name - enter computer name or Ip address.
    * Yes, perform a test.
    you enter the right password and username here.

    Note:-your database should be Up if it's not high, it will be by the same error please start your database first.
    Sarah

  • Simulation Wizard in oracle forms

    Please can someone help:

    I work in a project and one of the requested forms is a wizard that guides the user to complete certain data entries.
    is it possible in oracle forms?
    I use Oracle 10 g of form. Ideas please

    Hello

    is it possible in oracle forms?

    Yes

    What kind of canvas is better for my situation: stacked canvas?

    pls use 1 table of contents which is your main canvas and then build your stacked paintings tell 3 stacked paintings

    then build your blocks of database by selecting the paintings in the block appropriate for each

    sooner or later to create time to FINISHED design buttons, THEN back and accumulate your triggers that will trigger the aid...

    SHOW_VIEW('CANVAS_NAME') ;  -- Show the Stacked Canvas in NEXT button...
    
    GO_ITEM ('Item_Name'); -- Go to the stacked canvas item ; should be navigable and visible in ur stacked canvas 
    
    HIDE_VIEW('CANVAS_NAME'); -- hide the original current canvas in synchronize 
    
     --- do this for each NEXT button all the rest depends upon ur needs...
    

    I hope this helps...

    Kind regards

    Amatu Allah

Maybe you are looking for