How can i make serial in tabular block

dear friends
I have a tabular block.
i added unbound item to the block just to display the record number . in other words i want to display a serial like that we make in reports.
the value of the serial is not saved on the table. it is just for view.
i did the following
on post query trigger i wrote:
*:browse.RECORDNUMBER := to_number(:system.cursor_record);*
but this display only number 1
i want to display like
1
2
3
4
and so on
is this possible?
thanks in advance

[email protected] wrote:
dear friends
I have a tabular block.
i added unbound item to the block just to display the record number . in other words i want to display a serial like that we make in reports.
the value of the serial is not saved on the table. it is just for view.
i did the following
on post query trigger i wrote:
*:browse.RECORDNUMBER := to_number(:system.cursor_record);*
but this display only number 1
i want to display like
1
2
3
4
and so on
is this possible?
thanks in advance:SYSTEM.CURSOR_RECORD represents the number of the record where the cursor is located, so your cursor is on the first record and that is why you always get the number 1.
You need to use :SYSTEM.TRIGGER_RECORD which returns the number of the record which the Oracle Forms' is processing.
Use the below code in your POST-QUERY trigger:
:browse.RECORDNUMBER := :SYSTEM.TRIGGER_RECORD;And when creating a new record, just use the below code in your WHEN-NEW-RECORD-INSTANCE trigger on block level.
IF :browse.RECORDNUMBER IS NULL AND :SYSTEM.RECORD_STATUS = 'INSERT' THEN
  :browse.RECORDNUMBER := :SYSTEM.TRIGGER_RECORD;
END IF;Tony
Edited by: Tony Garabedian on Sep 8, 2008 12:03 PM

Similar Messages

  • How can i make a swing frame block?

    Hi,
    I have an application with several frames, before building a frame, I want to query the user about some information. So I build another Jframe, with some radio buttons, etc. and display that first.
    However, the new Jframe does not make the rest of the program block, and thus the other Jframe is still created immediately...is there a way to make the JFrame with the query info block, until it is closed?
    thanks!

    I am still a bit confused....here is what i am trying to do:
    dialogFrame.setVisible(true);
    System.out.println(submit);
    if(!submit)
    return;
    else
    submit = false;
    dialogFrame the JDialog...it is built like this:
    JRadioButton rButtons[] = new JRadioButton[3];
    JPanel rPanel = new JPanel(new GridLayout(0, 1));
    rButtons[0] = new JRadioButton("Use Milliseconds Scale");
    rButtons[0].setSelected(true);
    rButtons[0].setActionCommand("MS");
    rButtons[1] = new JRadioButton("Use Seconds Scale");
    rButtons[1].setActionCommand("SEC");
    rButtons[2] = new JRadioButton("Use Minutes Scale");
    rButtons[2].setActionCommand("MIN");
    for (int i = 0; i < 3; i++) {
    bGroup.add(rButtons);
    rPanel.add(rButtons[i]);
    dialogFrame.getContentPane().setLayout(new BorderLayout(10,10));
    dialogFrame.getContentPane().add(rPanel, BorderLayout.CENTER);
    dialogFrame.getContentPane().add(yes, BorderLayout.SOUTH);
    dialogFrame.pack();
    I put a button "yes" in there, and when the user clicks it, the boolean 'submit' goes true.
    But, as you can see above, when i set the dialog frame as visible, it does not block on that line of code, rather it prints out false...

  • "I have to manually select pop up blocker everytime i open firefox. how can i make it permenent?'

    i have to manually select pop up blocker everytime i open new firefox window. How can i make this arrangement permenent?
    == This happened ==
    Every time Firefox opened
    == a week ago

    See http://kb.mozillazine.org/Preferences_not_saved

  • How can i make trigger with basler camera GIGE 659x494 - 70 FPS and I/O terminal block

    Hi all,
    How can i make trigger with basler camera GIGE 659x494 - 70 FPS and I/O terminal block

    Frank,
    If you are wiring an isolated power output to the EVS you will need to apply a power supply to the terminal block.  This is mentioned in the "wiring isolated power output" section of the EVS getting started guide located here.  The guide references the EVS user manual which provides a pinout of the d-ub connector in table 2-11 of the manual located here.  For more information on the camera settings you need to set on the Basler camera please see the user manual of the camera you refrenced here.
    To provide power to the camera you can purchase a power cable for the camera.  Rather than a power cable, since you want to also do triggering, you will want a Trigger and I/O Cable instead which is part number 779985-01 as seen on this product page.  The I/O cable would allow you to wire the trigger lines to the terminal block as well as the power lines.
    David A
    National Instruments
    FlexRIO Product Support Engineer

  • I have a new MAC MINI and I want to install a second monitor.  I have one connected to the HDMI and it works.  I can't get a signal to the other one.  It is connected from the thunderbolt to its HDMI port.  How can I make it work?

    I have a new MAC MINI and I want to install a second monitor.  I have one connected to the HDMI and it works.  I can't get a signal to the other one.  It is connected from the thunderbolt to its HDMI port.  How can I make it work?

    Could be a bad cable or bad Thunderbolt port.
    You have 90 days of free telephone support on a new device. You can call them at 1-800-MY-APPLE. Have your Mini's serial number handy
    You can also make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar

  • How can I make a "property node" for a VI?

    Hello!
    If I add a boolean button on the FP then I am able to make a property node for that button in the Block Diagram. But how can I make a property node for a VI? I have several VI:s an that together is one program. What I need to do is to verify what kind of VI some of my VI:s is. I need to verify if it is .exe or .vi-file, and if it is .exe then I want to disable run, abort, run continuously bottons otherwise not. I have hard that this is possible to do programmaticaly but I can´t figure out how. I am aware that I could do that manually in the File->vi properties->customize->windows appearance but theese choises makes it last forever.
    I want to be able to stop and run and everything if it is a .vi file, but if it is .exe-file then all those buttons should be disabled.
    Anyone have an example on this?
    In an other message at this Forum I read "You can use the `Front Panel Window. Allow Runtime PopUp`" property to disable run-time shortcuts menues programmaticaly, but still I dont know how to create this property node.
    /Amir

    You really shouldn't open a new thread. If you don't understand something, ask and we will explain it.
    Like I said in the other thread, you can check if you are running in LV or an EXE by using the Application>>Kind property. To get it, place a property node (from the Application Control palette) on the diagram, click it and find the property.
    To set the properties for the VI, place another property node, right click it and select Select Class>>VI Server>>VI. You should have the properties you want under Front Panel Window.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf). I believe chapter 17 of the user manual explains about programmatic control of VIs.
    Try to take over the world!

  • How can I make a form show complex composite data?

    How can I make a form show complex composite data?
    We would like a form to display the following information:
    Employee Names as the columns, 1 row for each calendar day, and each item in the block containing the total sales amount (and other information) for that employee for that day.
    This would require the block to function as a (composite) crosstab report.
    Here is an example:
    We have employees: Jane, John, Jim, and Janice
    We would like to see their total sales for the following days: 5/1 .. 5/5
    Jane John Jim Janice
    5/1 50 8 10 3 30 5 20 7
    5/2 40 7 60 8 10 2 30 4
    5/3 20 3 50 8 70 9 50 9
    5/4 51 8 40 7 40 8 50 8
    5/5 10 1 20 2 90 10 10 2
    We have a table with records of each day, for each employee, and their sales for that day.
    There is a possibility our list of employees can change as well as the number of days.
    Anyone tried doing anything like this with a form? We don't want to just embed a report because we would like to include other data as well besides what is mentioned above and we would like them to be able to change some of that data. Thanks in advance for any help.
    null

    I have a VERY similar problem where I want to have this matrix on the form with six days worth of data (three columns for each day) for my data table. I have done as Momen has suggested and created a view (using SQLPLUS):
    create table weekdays (weekday varchar2(3), date_x date);
    drop view employee_absences_v;
    create view employee_absences_v as
    select weekday,
    absence_date,
    hours,
    absence_code_lvid,
    adjustment_status_lvid
    from employee_absences ea, weekdays wd;
    that hopefully provides a row for each day of the week for my data table. The view is created OK but I'm not sure how to get it into the form properly. Also, I am using the form to CREATE rows in the data table not just SELECT and DISPLAY and there may or may not be a row of data for a corresponding day which is going to be a problem for me using this view method, I think. Let me know how this goes and if you get your form to work and how? Momen, your method appeals to me but it's not 100% clear how to get it to work in a form?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Tina Radosta ():
    We tried to create the view (not with Designer because we don't have that). We were not successful in creating a view with a matrix. We would greatly appreciate your help.
    Thanks in advance,
    Tina<HR></BLOCKQUOTE>
    null

  • How can I make the edges of the JSC component curved?

    It is a very common practice to make the edges curved in web development. Curved edge looks attractive and professional. (for example see blog.com)
    How can I make the edges of the JSC component curved? For example, consider Textfield component, how to make the the sharp edges smooth and curved?
    Thank you very much.

    Follow the steps below implement rounded edges for tabs in a tabset component:
    1)Create 2 images: level1_selected.jp and level1_deselct.jpg to be used as the background for these tabs. Thse images can be easily craeted using windows paint software. Just ceate a rectangular image of size 200X30 and draw a rounded rectangle on it.
    2) Redefine the following styles in your application stylesheet(originally defined in css_master.css)
    .Tab1Div td.Tab1TblSelTd {
         background-color:#EDF5F8;width: 200px;height:40px;background-image:url(images/level1_selected.jpg)
    .Tab1Div td.Tab1TblSelTd {
         background-repeat:repeat-x;background-position:left bottom;border-bottom:none
    .Tab1Div td {
         background-color:#EFEBEF;width: 200px;height:40px;background-image:url(images/level1_deselect.jpg);border:none
    .Tab1Div td {
         background-repeat:repeat-x;background-position:bottom left
    a.Tab1Lnk:link, a.Tab1Lnk:visited {
         display:block;padding:8px 15px 0px;font-weight:bold;text-align:center
    Results: By doing this you'll have the selected and unselected tabs show up with rounded egdes and also the selected tab will look bigger than the unselected tas making it more prominent.

  • How can we make a field confirm control compulsory field

    how can we make a field 'confirm control' compulsory field while creating a vendor code
    this field is under tab default data material tab while creating vendor code in purchasing org .part of vendor

    Hello,
    This can be done using the configuration..
    Go to Logistics - General >Business Partner>Vendors>Control>Define Account Groups and Field Selection (Vendor)--> and select the vendor group for which you want this field to be mandatory.
    Press details --> in the block "field status", double click Purchasing Plant and again double click Plant level purchasing data, in the second page (down), you can see the confirmation control key, that you have to make as req entry.
    If you want the conf control key to be mandatory for all the vendors groups, then you can do this by purchasing organisation level..that config node is just below this settings.
    Regards,
    Sakthi

  • How can i make it so that on messages i can see who is online wihtout having to search their name?

    how can i make it so that on messages i can see who is online without having to search their name? When i had ichat i didnt have to search their name... i culd see who was online autimatically.

    Firefox, the web browser, doesn't make any decisions about what mail should be considered spam or what senders should be blocked. What email software or webmail site are you using that is rejecting the messages?
    If it's a common site like Yahoo! mail, Gmail, Windows Live Hotmail/Outlook.com, then perhaps a volunteer familiar with their specific settings can help.
    If it's Thunderbird, the support site is over here: [https://support.mozillamessaging.com/].
    If your security/privacy software filters your mail, you will want to check its settings as well.

  • How can I make Privoxy load faster?

    I'm using vimb and it works well except the only way to block ads is to use privoxy. Privoxy takes about 5-10 minutes to start after my computer boots. This means I can't access the internet when I first start my computer. How can I make it load faster?

    https://wiki.archlinux.org/index.php/Hostsblock
    https://aur.archlinux.org/packages/hostsblock/
    Also e.g. https://aur.archlinux.org/packages/hosts-update/

  • How can we make  H-Tree?

    can anyone guide me how can we make H-Tree and how can we call module by using H-Tree?
    waiting for prompt answer.
    thanks in advance
    sarah
    Edited by: user652484 on Aug 2, 2009 3:43 AM
    Edited by: user652484 on Aug 2, 2009 3:45 AM

    Dear,
    Creating a Hierarchical Tree based on database table required a table with self-joined column like scott's emp table where column empno refered by mgr, a Data Query with PRIOR clause and a procedure call from the Form Level When-New-Form-Instance trigger.
    There are many ways to make Hierarchical Tree. I am describing one of them bellow. Please follow the steps:
    01. Create the following table
    CREATE TABLE EMPLOYEE(
    EMPLOYEE_ID NUMBER(4),
    EMPLOYEE_NAME VARCHAR2(50),
    MANAGER_ID NUMBER(4),
    CONSTRAINT EMPLOYEE_PK PRIMARY KEY(EMPLOYEE_ID),
    CONSTRAINT EMPLOYEE_FK FOREIGN KEY(MANAGER_ID)
    REFERENCES EMPLOYEE(EMPLOYEE_ID)
    02. Insert some data on it
    03. Create a form module and name it HTREE_DEMO
    04. Create a Data Block on this form and name it CONTROL.
    05. Create a Hierarchical Tree Item on it and name it EMP_TREE. Hierarchical Tree must be single item on single block.
    05. Write the following query on Data Query of the EMP_TREE Item
    SELECT 1, LEVEL, EMPLOYEE_NAME, NULL, EMPLOYEE_ID
    FROM EMPLOYEE
    CONNECT BY PRIOR EMPLOYEE_ID = MANAGER_ID
    START WITH MANAGER_ID IS NULL
    06. Add the following line of code on the Form Level When-New-Form-Instance Trigger
    FTREE.POPULATE_TREE('CONTROL.EMP_TREE);
    07. Run the form
    08. Enjoy!

  • How can i make multi partition in mac with windows 7

    Dear Sir/Madam
    Greetings,
    I have a MacBook Pro with
    Serial Number  C0XXXXXXXXXV16. I want to install windows 7 in my MacBook. I want to create two partitions for my data.
    How can I make multi partitions in my computer?
    Your early reply and consideration is highly appreciated.
    Regards
    Anisseh
    < Edited by Host >

    See the response to your second post for the same question:
    https://discussions.apple.com/thread/3563070?tstart=0

  • Hello, someone stole my iphone in Laos that I'm on vacation how can I location my iphone or block device

    hello, someone stole my iphone in Laos ( Viantiene)  that I'm on vacation how can I location my iphone or block device.
    My Imei N° is :
    Imei 012844004731177
    serial no. KL1296SNA4S
    MC603FB/A iphhone 4
    Part No. MC603FB/A.
    can you help me?
    please.

    LOST PHONE
    If you enabled iCloud on your device and enabled Find My iPhone on the device, then you can view the iPhone or iPad location at www.icloud.com .  Use your iCloud login details and then click on Find my iPhone.
    If Find My iPhone was not enabled on your device or your device does not have an internet connection or has been turned off then there is nothing you can do to view the location and track your device.
    If your device has been stolen, report it stolen to your carrier and the police and change all your passwords.  This is what you do when you lose your phone or it is stolen support.apple.com/kb/ht5668

  • HT1355 If I am playing a song from my phone on speakers, how can I make sure that there are no interruptions like calls or notifications?

    If I am playing a song from my phone on speakers, how can I make sure that there are no interruptions like calls or notifications? My students are performing and it would be terrible if there was to be an interruption.

    You could turn on Do Not Disturb. This would block all notifications and incoming calls.
    Or just turn you're phone's Airplane Mode on if you're not streaming the music

Maybe you are looking for

  • Issue in creating web service for a ABAP Function Module

    Hi, now i'm learning how to create web service for a ABAP Function Module. I used the following steps. 1. select the Function Module, named "zws_test". 2. in the context menu, select "create->proxy object". so we enter into wizard. 3. in the wizard,

  • External Lacie hard Drive would not Mount on my imac

    HI all, I have had this Hard Drive for a few years now, worked great, no issues at all. Even after upgrading to 10.8 it continued to work. A few days ago my cleaning lady moved the computer and disconected the Lacie drive (connected via Firewire) and

  • OWSM: Gateway has encountered an unexpected error

    Hi everyone, Oracle SOA suite version: 10.1.3.1.0 I tested a web services application which deployed on GlassFish 9.1 (Java EE 5) on Test Page of OWSM, all the services methods worked fine. then, I followed the steps of the quick start tutorial of OW

  • ITunes Not Working (Unknown Error -200)

    After a power outage I rebooted my computer and clicked the iTunes icon. An error box appeared reading "The iTunes application could not be opened. An unknown error occurred. (-200)" I then downloaded the latest version of iTunes (7.1.1.5) and tried

  • How to create barcode form in Acrobat Pro XI

    i have checked a few video's regarding creating bar code eForm in Acrobat Pro X. However, i am finding difficulities to adding a bar code (No such field is available) in Acrobat Pro XI FormsCentral, is there any plug-in/update required?