How to display row number in form?

Hi guys,
First I fll you in on the story so far..
I have a database data block named :V_PAYUPLOADHEADER_HP, in the property palette I set order by facility and warehouse.
I want to display row number for each fetched record, so I make :V_PAYUPLOADHEADER_HP.NUMB, which will contain the row number.
The following is some methods that I already tried:
- First I tried to make this field a database item=Y , column name = ROWNUM.
The result is the number jump around (3, 1, 2, 5, 4 etc. instead of 1, 2, 3, 4, 5) I think it is because of the order by that I set.
I have to keep this order by setting, so I look for another way to display the rownum.
- Next I tried to set database item = N, column name = null, calculation mode = formula, formula = :system.trigger_record.
When I run it all the value of :V_PAYUPLOADHEADER_HP.NUMB is 1. For all the records fetched is 1, 1, 1, 1 instead of 1, 2, 3, 4.
- I also tried using POST-QUERY trigger attached to the block.
In the trigger I have this code:
:V_PAYUPLOADHEADER_HP.NUMB := :system.cursor_record;
When I run it all the value of :V_PAYUPLOADHEADER_HP.NUMB is 1. For all the records fetched is 1, 1, 1, 1 instead of 1, 2, 3, 4..
Is there something that I missed?
What can I do to display the rownum?

Hi
You can achieve this by adding new item named 'ROWNUM'. in the Data Block you are working on.
And it's 'BASE TABLE ITEM' property needs to be set as TRUE'. IN the property ,IN the post-query Trigger use...
SELECT ROWNUM
INTO :ROWNUM
FROM TABLE
WHERE EMP_ID =EMP_ID;Hope this helps...
Regards,
Abdetu...

Similar Messages

  • How to get row number of selected entry from OVS search result

    Hi,
    Anyone having any idea on how to get row number of the  selected entry/ how to differentiate rows in OVS search result in ON_OVS method?
    Regards,
    Jatin

    Hi,
    You can get the selected record to <ls_selection> structure in co phase 3.
    From that structure you can get what ever field you want.,
    check the below code for reference,
    << Moderator message - Cut and paste response from F4 help for ALV table field removed. Plagiarism is not allowed in SCN >>
    hope this helps u.,
    Thanks & Regards,
    Kiran
    Edited by: Rob Burbank on Jan 5, 2012 5:24 PM

  • How to display the number of row in a grid

    Hi,
    In a Form I have a grid (populated from a table). The first field is the Code ID_NUMBER, datatype varchar2(4), mask format 9999.
    I need that when I click (or insert) on a new row in the datagrid, the field Code must be filled with a new value automatically. For example, if in the previous rows I have "0002", "0004", "0006", the new value in the new rows must be "0008".
    How can perform this ?
    Thanks in advance and Best Regards.
    Gaetano

    Thank You,
    I have tried to insert in the DataBlock a trigger WHEN_CREATE_RECORD that call a procedure like this:
    PROCEDURE NEW_ROW IS
    max$Row NUMBER(4) := 0 ;
    BEGIN
    SELECT MAX(TO_NUMBER(NVL('M_REP_PARAMS.REP_PAR_ORDER','0'),'9999')) INTO max$Row FROM M_REP_PARAMS ORDER BY REP_PAR_ORDER ;
    max$Row := max$Row + 2 ;
    :M_REP_PARAMS.REP_PAR_ORDER := LPAD(TO_CHAR(max$Row, '9999'),4,'0') ;
    END;
    But when I click on the field in the row, no value is displayed.
    I means the I mistake something.
    Can You help me ?
    Bye
    Gaetano

  • How to display numbers in LED form

            I am doing  a demo software of HP33120.In this case,I will display the number and unit in LED form according to the real instrument.I don't know how to do it ,please help me.Thanks. 

    Hi,
    The simplest way to do this, is to download the "7 segment font" from the following link.
    Creating your own customized indicator is also an option, but far more time demanding.
    http://digital.ni.com/public.nsf/websearch/5DCD38A1D020155386256DA9007DF506?OpenDocument
    Let me know is this is not what you are looking for.
    Regards
    Meister
    NIDK

  • OBIEE:How to display row/columns where no data is present in pivot results?

    I have a request from some team members to provide an OBIEE report of 7 teams and the number of open incidents for each team by week.
    I was able to create the pivot listing the teams vertically and the age (by week#: 1 week, 2 weeks, 3 weeks, 4 weeks & > 4weeks) horizontally.
    The dilemma I have is that of the 7 teams that have incidents tickets only 4 of them have data, thus only those 4 teams that have ticket data show up in my pivot. I would like to be able to reflect ALL 7 teams even if representing a dash or null value across the pivot for those teams that don't have data.
    Does anyone know if this is possible and if so, how would I do this? I've tried searching the internet and found out how to replace a null value with a dash in columns/rows when a cell is null. But not how to display an entire row (or column) where no data is present.
    Edited by: coutya on May 22, 2012 11:01 AM
    Edited by: coutya on May 22, 2012 11:02 AM

    You are correct; if there are no data at all, those teams won't show in a pivot table. NULLs or dashes only work if a particular column is null. There are two ways to accomplish what you wish. The first example I thought when I wasn't aware of being able to do a LEFT OUTER JOIN in Answers using the Advanced tab. The first method works nicely, though and is simpler to execute.
    Read my solution here:
    Re: Section Values showing NULL in Pivot
    To do the LEFT OUTER JOIN read this:
    http://gerardnico.com/wiki/dat/obiee/multiple_subject_area
    Both will get you what you want...

  • How to display Rows as Columns in JSF?

    I am using dataTable component to get data for my Menu, i have one column in it which returns me the data, because its automatically adding <tr> and <td> tags to it, its showing data in tabular form.
    I want to show output Horizontally instead of Vertically the way its showing.
    Is their any way i can display Rows as Columns?
    Code:
    ==============================================
    <div class="bodyarea">
    <div id="location">
    <h:dataTable value="#{menuItem.breadCrumb}" var="bread" >
    <f:verbatim><ol></f:verbatim>
    <h:column>
    <f:verbatim><li></f:verbatim>
    <h:outputLink id="crumbID" value="#{bread.menuLink}">
    <h:outputText id="crumpName" value="#{bread.menuLabel}"/>
    </h:outputLink>
    <f:verbatim></li></f:verbatim>
    </h:column>
    <f:verbatim></ol></f:verbatim>
    </h:dataTable>
    </div>
    </div>
    Thank you

    Table is not the html element for you, in this situation.
    I would use a dataList component (distributed with myfaces implementation).
    dataList is able to return a list of item, and using css you will be able display in a horizontal grid. (otherwise you can use layout="grid" in dataList).
    Anyway...my impression is that who made JSF was not really understanding how a html programmer like to write his code.
    Why do JSF gives us only the possibility to write list of items throught tables?
    Why do JSF prints error messages throught tables?
    Why div is not a standard component?
    This is an incredible lack...
    I see also other incredible lasks...but they don't concern html ;) .

  • How to display serial number in reports

    Hi,
    I want to display serial number (for each row of records retrieved ) in reports.How can I accomplish that?Please help
    Regards,
    Nycy

    Like this:
    SELECT ROWNUM RN,
    COL1,
    COLN
    FROM (SELECT COL1,
    COLN
    FROM TABLE
    ORDER BY ORDERCONDITION
    or
    sometime you sould use logic like this:
    first, you should take a summry column into relevent group.
    then
    goto its property
    then
    goto Function field
    then
    select Count from list
    then
    select the source means you want to count records acoording to which column.
    then
    select from relevent group cource from Reset at
    Now, give this summary column source to the required field then generate the report.
    If you feel better to understand then give comments otherwise mail me at "[email protected]"I will give you the complete procedure with images.
    Edited by: Waqas Attari on Feb 18, 2009 7:13 AM

  • Display Row number in ALV List

    Hi All,
          I have 50 records in Internal table . I  am displaying this internal table data in ALV List display. I want to print row number in ALV . Could you please help me how to print.
    Thanks,
    PRSN.

    HI,
      take one more field in the internal table and fill it up with the number when you are filling it with data .
    loop at itab.
    it_final-seqno = sy-tabix.
    append it_final.
    endloop.

  • Display Row Number with JTable

    Hi everybody,
    I try to build a spreadsheet with Java and Swing. I use Jdk1.2.2 and I looking for display the row Number on the left (Excel - like). I can't fiugre out how to implement this.
    Anyone can give me some help?
    Bye
    Mirko

    Hi Sciak!
    This is what you are looking for ('Row Header' sample, including source code):
    http://www2.gol.com/users/tame/swing/examples/JTableExamples1.html
    Home page:
    http://www2.gol.com/users/tame/swing/examples/SwingExamples.html
    CU,
    Jan

  • Message-Popup: How to display a number (from variable) in hex-format?

    Hello,
    i have a numeric FileGlobal that is display in a MessagePopup-step with str(FileGlobal.param1)
    How can i change this that it display the number as hexvalue.
    For example if Number is a 10, then the MessagePopup should display a 0xA.
    Thanks for help
    Solved!
    Go to Solution.

    HI,
    You should try this expression Str(FileGlobal.param1,"%X",1 ,True)
    Hope this helps
    Rodéric L
    Certified LabVIEW Architect

  • How to display different Time Statement forms in ITS service PZ04

    Hi all,
    I am working on a underlyinge R/3 4.7 system and are working with standalone ITS and ESS 50.4. I am posting this question to find out if any of you has experience with my problem.
    The business wishes to use the ITS transation PZ04 standard and wish to be able to display different Time Statement forms in the transaction through customized variants for the report(RPTEDT00) that the PZ04 transaction executes. In the IMG it is posted that one variant has to be created called HRESS_TEDT00 and this works, but restricts the PZ04 transaction to always be called with this variant and therebye the same Time Statement form every time.
    I then by debugging found that the underlying ABAP code processed from SAP standard has a variable VARIANT that is hardcode to = HRESS_TEDT00.
    The question is: Is there anyway to setup the PZ04 transaction so that it can be dynamic decided which variant should be used, f.ex. from persons subarea from infotype 0001?
    Looking forward to here if anybody can help.
    Regards,
    Allan Brauer

    hi allan,
    cud u plz help me how to sort out this problem actually in mu company the same scenario is here need to be display pe51 form instead of standard hrforms.....
    plz help me how will i replace this "hrforms with pe51"..

  • How to display rows of data in JSP?

    Hi,
    I am learning Servlet and JSP. There is an exercise which requires us to access a database from a Servlet and display the retrieved data in a JSP.
    Now I am ok with the database connection. So how to display the data using some kind of loop?
    Regards

    They're called ResultSets and they are returned when you execute a query from a Statement. The next() method will tell you whether or not you have another row of data to read.

  • HOW TO DISPLAY PICTURE IMAGE ON FORM - I HAVE THE SOLUTION NOW!!

    Hi Kiran,
    I am very grateful to you and all who contributed to find a solution to my problem. I was stacked at the Page Definition properties in relation to the tutorial. I spent several overnights and later realized that the edit that would activate the download link is not in the SOURCE category but rather in the SETTINGS with 11g edition. When I changed the setting I had it perfectly. Thanks so much to all of you. I really enjoy the Apex Forum though I am new in Oracle.
    Howbeit; what should I do to have the picture always displayed on the form so that whenever the particular form is opened the image would be seen? Looking forward for the solution.
    Godis-Tei

    Hi,
    You need to use item type : Display image
    This example shows you how to display image on a report, as well as in the form when you edit a record on the report:
    http://apex.oracle.com/pls/apex/f?p=63066
    worksapce: somefeto
    user: test
    pwd: test
    Regards,
    Fateh
    Edited by: Fateh on Oct 24, 2012 11:56 PM

  • How to display an Adobe Print form using FM's FP_JOB_* in WebDynpro

    Hi Experts,
    I have requirement to display an Adobe Interactive form on clicking of an UI element on the Webdynpro screen. I am using FM's FP_FUNCTION_MODULE_NAME, FP_JOB_OPEN and FP_JOB_CLOSE from report and it works fine. How to use this Fm's in Webdynpro to display that PDF.
    Thanks in advance,
    Pradeep Reddy

    Hello,
    thtis is not how it works. You don´t use this coding to display the form in WD. In fact WD is handling the form itself. If that is a print form, you just need to place the Interactive form element on your WD screen, specify the template source (the form template) and do the coding in WD init. And there is no problem if the form is SFP based.
    If this one is an interactive one, you need to set enable to true and do NOT use SFP based template. Also use the right form elements according to your layout type (ACF, ZCI), for ZCI insert the WD script.
    I can provide some more details if there will be any other problem/ detail.
    Regards, Otto

  • Display Row number - in Advanced Table

    Hi All,
    How to show the row number (like in SpreadSheet) for a Table?
    The user can have search, and sort abilities on table data. I have tried getting ROWNUM in VO Query, but when we use sort or search then the ROWNUM is not coming in order. It showing initial row numbers, not new one.
    How to achieve this?
    Thanks in Advance.

    user10164183 wrote:
    If we write query like that, when we search for some records, or doing sorting on columns row numbers are changing, but it shouldn't change. it must be constant and other columns data may be changed according to action done by user.What if you put your ROWNUM clause as deep into your query as possible?
    SELECT *
    FROM   ( SELECT f.*
                  , ROWNUM rn
             FROM   per_all_people_f
    WHERE  <conditions>
    ORDER BY <columns>If you need a an initial order you could do something like this:
    SELECT *
    FROM   ( SELECT a.*
                  , ROWNUM rn
             FROM   ( SELECT f.*
                      FROM   per_all_people_f
                      ORDER BY 1
    WHERE  <conditions>
    ORDER BY <columns>Hope this helps!

Maybe you are looking for

  • How to handle null values in RTF templates

    Hi - I have two groups in a report for different SQL and two formulas for each group, CF_ELE_CNT and CF_ELE_CNT1. In the template I use the below code to print or not print a section. <?if:number(CF_ELE_CNT +CF_ELE_CNT1) >0?>     The problem is when

  • Open the file by double click

    hi I'm writing a program like desktop search engine but � have a problem by opening the searched file. How can I first choose the searched file on screen and also how can I open the file by double click? p.s I'm using windows

  • Headphone sound only when changing level or balance

    Hi, I have a weird problem with my Logitech B530 USB headset. I have configured it as the main input and output device in system settings, but I only hear sounds when changing sound level or balance. So if I e.g. start some music in iTunes I hear not

  • Import XML document in MS Access through Jsp

    Hai, Can any one please tell how to import/store XML document into database, I have tried a lot, but failed to get the result. So please can anyone send me the related code for storing the XML document into database. Thanking you in advance, Praveen

  • Installing Oracle EPM 11.1.1

    Hi I have downloaded Foundation Services(all the 3 parts), Essbase and Planning from edelivery site. But I am not able to start with the installation as all zip files have assembly.dat files. I cannot find any setup files. How should I go about the i