Relative position of a form of multi-record Record in a block

Hi all

I have a block record multi with number of items displayed in the 16. This block is used to fill the data in the table that can contain 100 records. When I scroll down the block for a record 39 said individual, I get the value of current_record than 39. But how do I know its relative position, that is to say which position he is currently now out of these 16 files that are displayed. Is there a way to manipulate it.

Version of form: form of Oracle 10 g

Thanks and greetings

JaKes

Hello:

You can use: TO_NUMBER (Get_Block_Property (: system.cursor_block, CURRENT_RECORD))-TO_NUMBER (Get_Block_Property (: system.cursor_block, TOP_RECORD)) + 1

Kind regards

Tags: Oracle Development

Similar Questions

  • How can I define relative positions in the form objects.

    Hello

    I have created a form of Bill, who is blinded by a schema. In my application, the form is rendered a XML data file.

    In the form, there is a table and 2 zones of text under the table. During rendering, the table of contents come above the text boxes.

    How can I give a position relative to the text boxes, so that while that the rows of the table increases, the text also come down, without overlapping boxes.

    Thanks in advance.

    1. The main subform (this is one that is created by default should be set to "Flowed", "Western text".)
    2. Then put the Table in an another subform, BUT in the main form and set this new subform to "positioned".
    3. Create an another subform for your text, defining as this one for "positioned".
    4. Make sure your hierarchy, the subforms are arranged correctly, which is main form flowed everything first, then followed by your table subform, then text subform (or order whatever you want to follow them;) REMEMBER THAT TABLE SUBFORMS AND THE TEXT SHOULD BE IN THE MAIN SUBFORM.  Test the form and your table grows, it should push your texts.
  • Multi-record acquisition and fetch registration number

    My question relates to the fact an acquisition multi-record and go look for more than one record by extraction, but less than the total number of records.

    Let's say I am absorbing N records and go pick up j at a time where 1<>

    Hi EDD,.

    You are right that the "Fetch Record Number" property is adjustable to i * j in this case. Given that I have is starting from scratch, it works wonder. However, you need to make sure you stop the loop after the right amount of documents were recovered, which will be asked to configure the correct logic. This could be kept simple if you pick a divisor of your total of records every time, but if not, you will need to determine when you are on the last iteration, and the number of records you have left to seek before arriving at the end of your files.

    For example, if you are purchasing records total N = 100 and go for j = 10 at a time, you can simply extract I * j every time and to know when to stop, simply take (I * j) + j > = N. It works fine when j is a divisor of N integer, but otherwise, most logical should be included to determine the number of records can be left at the end, and then to seek a large number. Hope this helps,

  • Querying a multi-record in my form block

    I have a form where I perform validations of items entered on my main block. I compare the value of the item entered an expected value and if they are different then an exception record must be created in a separate block, several recording in my application. A record on my main block can end up with several different recordings of exception in the block of multi-record. As a result, my validation must include determining if the user has already created an exception record for the article I'm validating in the block of multi-record.

    Is it possible for me to query and uncomitted, block multi-record in my form? Help would be greatly appreciated!

    That's what I meant with "loop on the block."

    Write a function, lets call it FK_CHECK_FOR_EXCEPTION, give in the code and the name of the element as parameters and let it returns TRUE if the exception exists, false otherwise:

    FUNCTION FK_CHECK_FOR_EXCEPTION(i_vcItem IN VARCHAR2, i_vcCode IN VARCHAR2)
    RETURN BOOLEAN IS
      bFound BOOLEAN:=FALSE;
    BEGIN
      GO_BLOCK('BLOCK_B');
      FIRST_RECORD;
      LOOP
        EXIT WHEN :SYSTEM.RECORD_STATUS='TRUE';
        IF     :BLOCK_B.ITEM=i_vcItem
           AND :BLOCK_B.CODE=i_vcCode THEN
          bFound:=TRUE;
          EXIT;
        END IF;
        EXIT WHEN :SYSTEM.LAST_RECORD='TRUE';
        NEXT_RECORD;
      END LOOP;
      RETURN bFound;
    END;
    

    Then, in your VALIDATION KEY, you can something like:

    IF =FALSE THEN
      IF NOT FK_CHECK_FOR_EXCEPTION('ITEM1', 'THECODE') THEN
        RAISE FORM_TRIGGER_FAILURE;
      END IF;
    END IF;
    
  • To add values in a multi-record block in oracle forms 6i

    S. n

    Agenda

    Quantity

    1

    KEYBOARDS

    5

    2

    MOUSE

    6

    3

    MONITOR

    2

    4

    CENTRAL PROCESSING UNIT

    4

    TOTAL quantity

    17

    Hello world

    He is an example for adding records in this block. I need to add the values of the quantity of each time when it has updated. Entering the first record(value=5) the total should display 5. When you enter the second value(value=6) the total should be 11. And if it changes in accounts are rendered already entered the total value must be updated. Please help me do this in oracle forms.

    Hey, Moris,.

    For the contents according to your requirement, create a block and put an element contained in this block that reside on the same canvas.

    Then below mentioned property BLOCK for newly created block:

    • Single disc: Yes

    Then set below mentioned ELEMENT of property for the newly created item:

    • Data type: number
    • Method of calculation: 'summary '.
    • Text-to-speech function: "sum".
    • Block in summary: block that you created
    • Point summary: Point you have created

    I hope it will work for you, I tested and works great.

    Thank you

    Nilesh Goswami

  • have a multi-record with several unrelated elements blocking, filled by simply calling

    Forms of oracle, I have a form with a block of several recording, with several unrelated elements.
    One of these non-is a basic formula element.
    The formula for this article fills the others not consolidated items.
    A procedure with several out parameters is called.

    For example
    : cmr.id (now the unique id of a database record)
    : cmr.unbound_dummy, with the formula f_fill_blk_unbound_items(:blk.id)
    : cmr.unbound_adres
    : cmr.unbound_contactperson

    function f_fill_blk_unbound_items (p_id in customers.id%type)
    Return number
    is
    number of l_rc;
    Start
    customer_pck.get_adres_and_contactperson
    (p_id = > p_id - IN)
    , p_adres = >: cmr.unbound_adres - OUT
    , p_contactperson = >: cmr.unbound_contactperson - OUT
    );
    Return (0);
    end;

    QUESTION: How can I do something similar in the APEX; have a blocking of multi-record with several elements not related, filled by calling a procedure with several out parameters?

    The suggestion refers to functions in pipeline
    http://www.Oracle-Developer.NET/display.php?ID=207

    This will allow you to select your information you need in a query like

    SELECT * FROM TABLE(table_function)
    

    It should also more powerful than the example of forms.

    Scott

  • [ADF, JDev 12.1.3] How to display multiple records on the same page... not in a table but they appear a form for each record

    Hallo,

    I need to create a page that displays the records of a VO, but I would not use a table.

    Instead, I would like to display a form for each record to be displayed.

    Forms must appear one above the other and each form should have 2 buttons: one to remove the file/form itself and one to add a new file/form.

    When you press the button Add a new empty form should be dynamically added to the page (so that the user can fill) and created related record.

    When REMOVE button is pressed the form (which contains the operated button) should be disappear and the record shuould be deleted.

    Creations and destruction must be applied only if the user clicks a button on CONFIRMATION / COMMIT.

    Maybe this http://digilander.libero.it/flattit82/OTN_FILES/MultiFormPage.png picture can help to understand what I want to do.

    You kindly help me?

    Thank you

    Federico

    Hi Federico

    I was saying that your page layout can be achieved using af: table

    See this image:

    This provision is af:table (I think same as yours), just add a column in the table and put all the fields in this column then correct layout allows to design as a provision on the form or group layouts

    I'm not saying it's the best approach, but you can try this

    Thank you

  • The assignment of value to the block multi-record in Oracle's 10 g

    Hi all

    I'm new to form of Oracle 10 g.

    I have a block of several recording that does not rely on the database. I need to assign the value to this block multi-record dynamically the ref cursor.

    I'm trying to set the value as below, but its does not work. Please help me on this.

    loop
         fetch cur Into screenval_rec ;
          exit when cur%notfound ;
          first_record;
       
      :BLOCK1.COL1:= screenval_rec.value1;
        :BLOCK1.COL2 := screenval_rec.value2;
        :BLOCK1.COL3:= screenval_rec.valu3;
      
         next_record;
    End loop;
    
    

    Kind regards

    REDA

    Hi Craig,.

    Thank you for your information.

    But I found the exact cause of this "Invalid cursor error' (ORA-01001) in Oracle forms. It is because of the unique enclosed in quotes the select statement of the REF cursor. I found in the paragraphs below Oracle.

    Note 170881.1 - ORA-1001 calling a stored procedure that contains a REF Cursor Oracle Forms

    Once I deleted the quotes, it's working properly now.

    Thanks again for your help.

    Kind regards

    REDA

  • How to check the values in multi-record block. ?

    Hello

    I'm new to forms. I have the field titled "Comments" in the block of multi-record. I have a button called "reject". Reject button is in the control block. If I press the button reject, field comments must be entered in one of the record. Otherwise, he should tell message. How to check the multi-record block. ?

    Pl.Help.

    Thanks in advance.
    Mano

    Mano,

    Add NEXT_RECORD just before the END of the LOOP.

         GO_BLOCK('');
         FIRST_RECORD;
         LOOP
              IF NVL(:., ' ' ) = ' ' THEN
                   MESSAGE('');
                   RAISE FORMS_TRIGGER_FAILURE;
              END IF;
              EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
              NEXT_RECORD;
         END LOOP;
    

    Kind regards

    Manu.

    If my response or response from another person was helpful, please mark accordingly

  • How to do the validation to the record level in multi record block.

    Hello
    I use form 10g. I have a doubt in form 10g. Look, I got multi-record block (10 records).
    In this block, I have a few items of text
    (1) S_NO
    Account_number 2)
    withdraw_amt 3)
    Deposit_amt 4)
    (5) balance_amt.

    These are the fields and sample data that I posted in forms.
    S. n ACC_No - WITHDRAW_AMT - DEPOSIT_AMT - BALANCE_AMT
    1-250 - 1000.00 - 1000.00
    2.------250-----------500.00-------------------------------------------500.00
    3-250 - 2000.00 - 2500.00


    Now, I entered the data manually in all areas...
    But what I need is if I entered the field of deposit in the amount it will add to the old balance and if I add the amount to remove the field that he removed from the old balance automatically.
    Pls tell me what are the possible ways to implement this form...


    Eliane.

    For the calculation of the fields there are some properties, you can define and then let the calculation forms. The WHEN-VALIDATE-POINT-approach will not work, because it increases your balance_amount whenever you change the value.

    But what exactly is the logic for your calculation. It's just: BALANCE_AMT =: DEPOSIT_AMT-: WITHDRAW_AMT?

    If so, create a new database item not in the block, assign Calcaulation-mode of 'Formula', a formula to something like

    NVL(:BLOCK.DEPOSIT_AMT,0)-NVL(:BLOCK.WITHDRAW_AMT)
    

    Then whenever you change DEPOSIT_AMT or WITHDRAW_AMT, the BALANCE_AMT will be calculated again.

  • Fetch the multi-record acquisitions takes too long

    Hello

    I need to improve the performance of my code in multi record acquisition on the following system.

    LabVIEW 2009, Niscope 3.5.2 map 5122 digitizer on the PXI-1042 with PXI-8106 controller connected to the host PC Dell Optiplex 380 with 4 GB of RAM by crossover cable.

    I tested the speed of transfer of my connection to the chassis using the niScope memory transfer Rate.vi Maximum flow, the result was 110,74 MB/s.

    I need to use the scanner to get the waveform of different seismic sensors and it should be as fast as possible to get different transducers in a reasonable time. I used the Multi files get VI to monitor the rate at which the code executes. I want to acquire 30 signals with 10,000 record length to 100 MECH sampling rate. / s.

    Extraction of 30 records with 10 000 record length takes about 300 ms, that is far too long for my experience. I tried different numbers Records and found that the code takes 10 milliseconds per registration type. I've found that extraction vi takes most of the time. I ran my code both recording Multi search vi. Two sleeves at the rate which is not satisfactory for my application. I appreciate if someone can help me solve the problem.

    Thank you

    Ahmad

    .

    I found that on the pulse generator FRP was set at 100 Hz, which means it sends the impulse evey 1/100 sec or each 10 m I think the program was waiting to acquire the signal. I changed the FRP at 1 K Hz, it became much more quickly.

    Thank you

    Ahmad

  • Bug: Façade objects relative position changes when you move the fusion VI on block diagram

    I posted a bug report on the LAVA, here:

    http://forums.lavag.org/front-panel-objects-relative-position-change-when-placing-merge-VI-onto-bloc...

    If someone at home OR can reproduce, can I please get a CAR #?

    Thank you

    -Jim

    Hi Jim,.

    This was reported to R & D (# 139212) for further investigations.  I don't know if it's more embarrassing fall into the range of functions and reorganize the façade or drop out of the front and hope that the code of the Subvi is not disseminated in the block diagram.  Because the code (or orders) are selected after a fall, and you can switch between diagram and panel above all keeping this selection, at least you can move the code as a whole, right?

  • If I put a script in the header of a master page will work on all pages related to this basic form?

    If I put my google analytics script in the header of the master is it works on all the pages related to this basic form or should I put the code in the header of each individual pages?

    The master added to the page code will be added to all pages based on that master and perform accordingly.

    Thank you

    Vikas

  • Form master-detail recording detail does not with ORA-20001

    Hello

    I have a master/detail form, the detail record has a timestamp field that I people using systimestamp via the default, it is a single field of view and everthing records very well. But if I change the format of the timestamp field via the DD-MON-YY HH24 attrubutes column, I get the following error on save

    Internal error in the routine mru: ORA-20001: error in MRU: line = 1, ORA-20001: find the invalid timestamp value, please check the timestamp format.

    Someone knows what's goin?

    Thank you...

    Looks like your display only column is based on the database column.
    If this is the case, you have little control for it in ApplyMRU.
    What you need to do is
    a. keep the TimeStamp column hidden with any mask format
    b. Add the form as a table with the format mask you want to display a column of data not

    In a Word, the DB column is in the proper format as required by the ApplyMRU but you display for users of the truncated version of that.

    See you soon,.

  • radial gradient with relative positions and absolute RADIUS length

    Hello

    I tried provide a style with a radial gradient in the upper right corner of a control, but apparently the use of relative positions does not work well combined with a length of absolute RADIUS:
    .myStyle{   
        -fx-background-color: radial-gradient(center 100% 0%, radius 8px, red, white);
    }
    place the center of the gradient to the upper left corner, although it must be placed in the upper right corner. If the RADIUS is defined as ratio (10%), the implementation of the pole is correct. Is there a general constraint prevents this works?

    ARO
    Jens

    My guess is that, like the class RadialGradient has a method isProportional which acts on the Center and the RADIUS, as css just implemenets the settings of the proportionality of the RadialGradient as something all or nothing, but that is not documented in the guide of the css.

    http://docs.Oracle.com/JavaFX/2/API/JavaFX/scene/paint/RadialGradient.html#isProportional%28%29
    http://docs.Oracle.com/JavaFX/2/API/JavaFX/scene/doc-files/cssref.html#typepaint

    I would advise you connecting a jira request that documentation or implementation is updated.

    http://JavaFX-JIRA.Kenai.com/

Maybe you are looking for