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

Tags: Oracle Development

Similar Questions

  • How to display the rownum in oracle forms?

    Hai all,

    How to display the rownum in oracle forms?

    Thank you
    RCS
    ----------------

    I would add rowum with the current form of group_mstr:

    former columns:

    group_id
    GroupName

    new columns will be:

    identifier of the line
    group_id
    GroupName


    I created as follows:
    in forms
    text tool > row id
    text element > EXT_ITEM20

    error text element: no white color, it's a different color
    --------------

    create > Trigger > a time new form instance > I gave like this:

    DECLARE
    CURSOR crrow_id IS
    SELECT count (*) + 1 group_mstr;
    BEGIN
    OPEN crrow_id.
    Search FOR crrow_id IN: TEXT_ITEM20;
    CLOSE Crrow_id;
    END;
    ------------
    error: identifier group_mst must be declard
    ============

    I don't know also not quite what you want to display in your form. Do you want to just number the records displayed, from 1 to n?

    If so, create a text whose property 'data base element' element to the value 'no', "calculation method" formula and the formula itself: SYSTEM. " TRIGGER_RECORD, then, in each case, the registration number should be indicated.

  • How to find the error in oracle forms

    Dear gurus,

    I am newbie in oracle forms. I have a form with many items. In this regard, certain elements are not met. These elements are filled from four different cursors depending on certain conditions. for example,.
    IF <condtion1> true then
     open cursor1;
       populate all the items  from cursor1 columns
    elsif <condition2>true then
       open cursor2;
        populate all the items  from cursor2 columns
    elsif<condtion3>true then
        open cursor3;
       populate all items  from curso3r  columns
    elsif<condtion4>true then
        open cursor4;
       populate all items  from cursor4  columns
    This cursors are written to the database level.
    Now, I want to know what slider elements become values.

    My TL told me to find this, put messages. But I don't know where I put message [or in forms or cursors?]. Is an easy way to find errors in its present form?

    Thank you all.

    My TL told me to find this, put messages. But I don't know where I put message [or in forms or cursors?].

    You can add messages to your forms code in your conditional statement. For example, using your code sample:

    IF  true then
     open cursor1;
       Clear_Message;
       Message('Using Cursor 1');
       Message(' ');
       populate all the items  from cursor1 columns
    elsif true then
       Clear_Message;
       Message('Using Cursor 2');
       Message(' ');
       open cursor2;
       populate all the items  from cursor2 columns
    elsiftrue then
       Clear_Message;
       Message('Using Cursor 3');
       Message(' ');
       open cursor3;
       populate all items  from curso3r  columns
    elsiftrue then
       Clear_Message;
       Message('Using Cursor 4');
       Message(' ');
       open cursor4;
       populate all items  from cursor4  columns
    

    If your form works and you troubleshoot just a mistake, I wouldn't recommend restructure you your form. If the current process is inefficient or not, it has been tested and proved to a certain extent. Unless the form has many problems, I would keep the way it is and just solve the problem at hand! :)

    Is an easy way to find errors in its present form?

    You don't mention your version of Oracle Forms, but rather than adding messages to the code; I recommend that you use the debugger to step through your code forms so that you can see the enforcement code that is causing the problem. (Note: the debugger of forms can only step through you the code in the form.) If your cursors are in a data base/package procedure - all you will see is the call of this procedure of database/package - not the code in the procedure/package).

    If you are using Forms 6i, simply add the "break." part of the code you want to debug. If you use Forms 9i or higher, then you will need to be able to run your form from forms manufacturer; which requires a configuration to make it work. Once configured, simply select the line you want to break the and press F5 for enabled or disabled a breakpoint. Then run your form by using the option 'run Debug form '.

    If you really want to reegineer your form to use a query in the From Clause, take a look to forms: how - a block based on a query FROM Clause for more information on the query from Clause.

    Now, I want to know what slider elements become values. The link Christian listed is also a very good article on using queries in the From Clause.

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

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

  • 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

  • Search in Oracle forms

    Dear professionals,
    How to perform a search in oracle forms using the toolbar: (press enter query key + press run key) using the following criteria:
    1. the value in the date element is less then some (e.g. date_item < 01.02.2011) photo
    2. how to find NULL values in date and no items date (IS NULL does not work)

    It is not the problem of dynamically set these criteria: set_block_property ('block_name', default_where,'date_item IS NULL "") OR set_block_property ('block_name', default_where,'date_item < ' 01.02.2011 ").

    There is a useful link to get advice from oracle forms research?

    THX in advance,
    Adnan

    Published by: adnanBIH on February 8, 2011 11:18

    You can do this by using

    #IS NULL
    
    -- or
    
    #IS NOT NULL
    

    Be aware, that your text object accepts values is more than limit set in search mode. So it cannot accept the channels above if the length of the column is less.

    Another way may be to use replace colon (:) in all areas and it will appear in a search window where you can type your condition (so you can put the like condition - YourColumn IS NOT NULL, etc) and it will be increased to current blocks where clause.)

    I hope that helps!

  • Reading excel data file in Oracle form data blocks

    Hi all

    I want to read the data from the excel file in the data block of the module of the form. There are many resources available that explain how to put the data in oracle forms in the excel sheet, but I can't find a single resource to achieve this functionality. Can someone please help me get around this problem. Any help will be much appreciated.

    Thanks in advance
    Bilal

    Bilal,.
    There is little documentation available through My Oracle Support, which shows how to read an Excel file in a form, but you need a support contract with Oracle to access the document (how to read data from an EXCEL worksheet in a form using WebUtil Client_OLE2 [813535.1 ID]).

    I've seen this issue come up in the forum from time to time, so I wrote a small form demo which illustrates playback in Excel in a form. Discover forms: how to read an Excel file in a form. This demonstration uses the WebUtil library, so you must make sure have WebUtil correctly configured in the Forms Designer, as well as on your application server.

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

  • 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

  • How to remove the list item empty forms of oracle?

    Hello

    How to remove the list item EMPTY forms of oracle?

    I create two list items

    (1) basic

    (2) advanced

    But when I select list or display the runtime display form element 3 element EMPTY automatically, but I add what it shows I want to delete! How?

    He has named REQUIRED = NO item property

    If you set YES and then it does not show. but you must give an initial value.

    Hamid

  • Modal region of the tree as a popup... After clicking the value in the tree... How to avoid the parent page is refreshing

    Hi, I spent long hours to solve this problem and wait for the answer from the expert.

    I created a form with text boxes and one of them, I created just small image button to call the modal region of the tree.

    Everything is OK, tree appear and disappear after the passage of the code value for the text element in the parent form.

    But it refreshed and initialized all other areas of empty text as well... ^ ^;

    I think that, because of the link in SQL tree. Someone help me?

    Select case when connect_by_isleaf = 1 then 0

    When level = 1 then 1

    else                           -1

    end the status,

    level,

    "CAT_NM" as the title,

    NULL as an icon,

    "CAT_CD" as a value.

    NULL as ToolTip,

    ? p = & APP_ID.:112 :'|| : APP_SESSION |': P112_CAT_CD :'|| "' CAT_CD ' as link-> How to avoid refreshing the page parent and just switch the CAT_CD to the called page?

    'category '.

    Start with 'PARENT_CAT_CD' is null

    connect prior "CAT_CD" = "PARENT_CAT_CD."

    siblings arrested by "CAT_CD".

    Hey "zoomok,"

    Large - an example would have been my next request in any case I took a glance and changed your demo page to work as you want.

    Things of note:

    -SQL source tree: NO link value! A link value will generate apex code that will redirect you to the link. It will always be a redirect page, where a rerender page, and not what you want! Leaving NULL allows us to interact with the tree interactively via javascript

    -Code in variables and functions global page - javascript - next:

    function treeOnload(){
      var l$Tree = $("#tree_modal div.tree"); // get the tree instance
      // handle the onselect event of the tree
      $.tree.reference(l$Tree).settings.callback.onselect = function(NODE, TREE_OBJ){
        $s( "P112_CAT_CD", $(NODE).attr('id') ); // get the VALUE of the node and put it in item P112_CAT_CD
        closeModal(); // close the active modal region
      };
    };
    

    -In javascript - dependent section I added a call to this procedure:

    treeOnload(); // initialize the tree with our settings
    

    And that's all! I didn't know that you use "openModal". There are different ways to implement modal regions, so it is important to know how we do for ourselves what to do with it.

    FYI - you now need to change your credentials. And mark the answer that has helped you or is correct, please.

  • How accept/pass values as Oracle text multiline.

    Hi all

    Help, please!

    I'm trying to pass values of several lines of text in the form of Oracle to a stored procedure.

    To explain in detail, I have a text element (let's say Input_Text_item - a multiline value yes property) which would not. values as input (possibly by copy/paste), a button - pressed, it should take each value 'Input_text_item' (line by line) and pass the value to a stored procedure and display the result in another element of text (which has the property multiline set to Yes) I say "Output_text_item".

    Now the problem is to know how to read "Input_Text_item" multiline values I am only able to read the unique value. When I try the multi-line values, it gives me "FRM-50024: space run posts only" error.

    Is there a way to fix this?


    Thank you
    B

    Back to my original post, how to place multiple lines of a text element values to a stored procedure.

    I want to spend the value 10 (from the first line of item_1) to store procedure/function - get result.

    then pass the value 40 (from the second row of item_1) to a stored procedure again and so on... >
    If I understand correctly, you want to send each line (MLT) multiline text item as a separate parameter a stored procedure. If this is correct, then you will need analyze the different lines of the TRM in the values of the individual parameters. This can be done by analyzing the MLT using the Carrage return [Chr (13)] and line break characters [Chr (10)] in the MLT as separators and delimiters of each value. There are some good examples of how to cut a string multiple values (or an array). Here are a few good examples:

    PL/SQL: Splitting a string in a table?
    How to parse a string in Oracle.

    These two methods can be easily adapted to research on the characters of Chr (10) and Chr (13), so you can analyze your TRM.

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

  • How to handle nulls through oracle forms?

    Hello

    I have a column check box on the form (request mode) and it always display the check box selected even underlying column is null.

    Please can tell me how can I show checkbox only enabled when colum data has value Y and all other cases should be unchecked (even with null values from database)

    Thank you
    VB

    VB,
    Make sure that you set the following properties of the checkbox.

    * Functional
         * Value when checked = 'Y'
         * Value when unchecked = 'N'
         * Check box mapping of other values = 'Unchecked'  (Default = Checked)
    * Data
         * Initial Value = 'N'
    

    The important property is the 'check box, mapping of other values". This property indicates how to handle values that are not expected to Oracle Forms. This is what causes the box to be checked when the value is NULL.

    I hope this helps.
    Craig...

    If a response is appropriate or useful, please mark accordingly

  • How to run the Oracle form window in the center of the browser?

    I want to run Oracle form in the middle of the browser window. When I run the form in the web it start on the left side.

    How can I change this environment forever?

    Dear Faisal Ahmed Odile ,

    Try the following code

    SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW, WINDOW_STATE, MAXIMIZE);
    SET_WINDOW_PROPERTY('', X_POS, (GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW, WIDTH ) - GET_WINDOW_PROPERTY('', WIDTH )) / 2);
    SET_WINDOW_PROPERTY('', Y_POS, (GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW, HEIGHT) - GET_WINDOW_PROPERTY('', HEIGHT)) / 2);
    

    Manu.

  • How to get current Login user in Oracle Forms?

    Hi friends...

    How to get current Login user in Oracle Forms?

    using the PL/SQL Editor on triggers.

    Please tell me...

    You have plsql function USER.

    For example:

    CURRENT_USER: = USER;

    Concerning

  • How to open LOV with mouse in Forms 11 g (Oracle EBS similar)

    Hello experts,

    I'm starting to test with Oracle Forms 11g outside the Oracle e-Business Suite (EBS) and I'm surprised when I noticed that the typical LOV EBS icon (three points) is not displayed in form 11 g and only the lov key can be used:

    forms_lov.png

    Can you provide me with a link to implement this behavior in a new application forms outside the EBS 11g?


    Best regards

    Jose.

    I remember there is a parameter the the registry.dat file (somewhere at the end, it is commented, you will need to comment out there).

    I have forms at hand, so I can't tell you exactly where the file, nor how the variable is named (but you should recognize the option when you see the name).

Maybe you are looking for

  • If I sent the iphone imei you can unlock it

    If I sent my iphone imei you can unlock my iphone Please

  • NB305 with Atom N550 - Europe

    Anyone know when can we expect new NB305 with Atom N550 in Europe? Any rumor?

  • Tecra R850-11U does not recognize memory full

    My Tecra R850-11U has 8 GB (2 x 4 GB) memory inside. I am under W7 Professional 64-bit, and the machine shows that 4 GB of memory. I've updated the bios, but the bios display also 4GB. I have 2 banks of original samsung memory still a change to a Ban

  • missing a vocal track of songs

    As indicated in the title, some of my songs are missing all vocal tracks. I have noticed that a song I play very often when out of nowhere the song were completely lacking. First arrived in my car. Each song forehand had all audio and nothing is miss

  • In windows 10 cleaning CP1215, window 7 and windwos xp there is no Toolbox

    Hello I want to clean my cp1215 printer I have search and found this topic of hp http://support.HP.com/au-en/product/HP-Color-LaserJet-CP1000-Printer-series/3422474/model/3422475/do... There was way to tow the icon: I can not found all programs: and