APEX Report - how can i create column with serial numbers in a report
Need help
I have created a report with displaying no of rows resticted to 43, every time i genarate this report i would like to add serial numbers from 6 to 48
apear in additional column. How can i do this?
This is not really an APEX question, and would have been better posted on the {forum:id=75} forum.
Note also that the best way to get fast, effective answer to questions is to provide sufficient information for people to fully understand them:
http://tkyte.blogspot.com/2005/06/how-to-ask-questions.html
You should also ensure that your forum profile is updated with a better handle than "user8308442".
Getting back to the question, one way to do this is using the analytic function ROW_NUMBER():
with t as (
-- Test data. Replace with actual query. ---------------------------------------
select
dbms_random.string('a', 10) query_data
from
dual
connect
by rownum <= 43)
select
5 + row_number() over (order by query_data) sn -- use required ordering here
, t.query_data
from
t
order by
sn
SN QUERY_DATA
6 CApoRenlch
7 CDiUiSYdMo
8 FsjsWFpTMT
9 KbbzXvYmQv
10 MrjEPqAzFs
11 QKOPSdVWpr
12 REIXjjdLtD
13 RijqpNTzmv
14 RngzthgaFv
15 SKcPxsdlBE
16 SuqFKzMqbB
17 TxlglIYENC
18 TyWlxKbDIg
19 VdRbUOUOPz
20 XIQxzkBuKY
21 YVcWUJrswt
22 aVoYNlMkfx
23 cHZPsOlzYM
24 cTUEztIOae
25 etdNGqQasP
26 fVGoGWmdLL
27 gHANXpbvMW
28 gRNBnwtEhO
29 iyefgszgLT
30 jRaliUJjKS
31 jpzAvQXBwY
32 kJifAaetUN
33 kfbTWGGCpR
34 mTPtqYGvrG
35 mhAPgdzezZ
36 pdXidmikRX
37 pwNdAsqpIV
38 rPTBTObdKg
39 sFoNLHLeMH
40 squTbOYVUM
41 tPxSMqPpnQ
42 uJtqCybjXB
43 vEvrwnGnyJ
44 xOOseicRRy
45 xqqXBKURog
46 ydOPurqyvo
47 yqEZvoNsbg
48 zsWFLHjVLK
43 rows selected
Similar Messages
-
How can i register column with in the query
hi all
how can i register column with in the query?Thanks.
In my business one, the column width was registed.
But I don't know how can I do it.
So I try to save the query again after change column width.
Then the query was opend with changed column width.
Is it right function?
Is there any way to register the column width?
It's very troublesome to change column width every time.
seiichi -
How can I create banners with 100% height?
I want the homepage to load with 100% height and there buttons that anchor to sections further down the website that I also want to be 100% height when scrolled to.
3rd post on same question by same user :
Re: how can I Create function with an out Parameter
how can I Create function with an out Parameter -
How can i create messenger with java tv API on STB
deal all.
how can i create messenger with java tv API on STB.
how can Xlets communicate each other?
how?
i am interested in xlet communications with java tv.
is it impossible or not?
help all..You can create a messenger-style application using JavaTV fairly easily. JavaTV supports standard java.net, and so any IP-based connection is pretty easy to do. The hard part of the application will be text input, but people have been using cellphone keypads to send SMS messages for long enough that they're familiar with doing this. This doesn't work well for long messages, where you really need a decent keyboard, but for short SMS-type messages it's acceptable.
The biggest problem that you need to work around is the return channel. Many receivers only have a dial-up connection, ties up the phone line and potentially costs people money if they don't get free local calls. Always-on return channels (e.g. ADSL or cable modem) are still pretty uncommon, so it's something that you nee to think about. Of course, if you do have an always-on connection then this problem just goes away.
This is really one of those cases that's technically do-able, but the infrastructure may not be there to give users a good experience.
Steve. -
How can I Create function with an out Parameter
how all
how can I Create function with an out Parameter
I try to create it it sucess but how can I CALL it , it give me error
please I want A simple example
thanks3rd post on same question by same user :
Re: how can I Create function with an out Parameter
how can I Create function with an out Parameter -
How can i create list box and dropdown in my report?
dear experts
how can i create list box and dropdown in my report?
thanks in advancePl. see the code given below.
REPORT Z_LISTBOX.
Data declaration ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TYPE-POOLS: VRM.
DATA: NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
Selection screen ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
AT SELECTION SCREEN OUTPUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
AT SELECTION-SCREEN OUTPUT.
NAME = 'PS_PARM'.
VALUE-KEY = '1'.
VALUE-TEXT = 'Line 1'.
APPEND VALUE TO LIST.
VALUE-KEY = '2'.
VALUE-TEXT = 'Line 2'.
APPEND VALUE TO LIST.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
START-OF-SELECTION.
Regards,
Joy. -
How can i change column header value dynamically in IR report
HI,
I have created report with the help of collections. Report query has been changing dynamically but i got problem with report header names and headers names has not been changing dynamically it is always showing like c001,c002....etc so, i have created global item(G_ITEM) in shared components--->Applications items after that
I have created process(before headers) and assigning some value to G_ITEM and used &G_ITEM to column headres in IR Report but here &G_ITEM is not showing any value.
How can i achieve dynamic headers names by using *&G_ITEM(global items)* Please guide me to achieve this.
Thanks in advance.
Regards
Narender BNarender wrote:
HI,
I have created report with the help of collections. Report query has been changing dynamically but i got problem with report header names and headers names has not been changing dynamically it is always showing like c001,c002....etc so, i have created global item(G_ITEM) in shared components--->Applications items after thatWhy didn't you answer the questions in the other thread to see if there was a better approach than this?
I have created process(before headers) and assigning some value to G_ITEM and used &G_ITEM to column headres in IR Report but here &G_ITEM is not showing any value.
How can i achieve dynamic headers names by using *&G_ITEM(global items)* Please guide me to achieve this.The static text exact substitution method of referencing the value of an APEX item requires a terminating dot ("."):
&G_ITEM. -
How can I create multiple selection check boxes in a report row?
Hello,
I'd like to know how a multiple selection checkbox can be created in report rows. In brief, I need to create a questionnaire template and each one of the questions will have multple options checkboxes, that means that the user can select more than one of the answers.
Should I use apex_item.checkbox ?. I have no clue here.
Please advice.
Thank you
Edited by: user9982480 on Jul 23, 2012 10:58 AMHi,
This might save your effort
http://www.apexsolution.de/questionnaire/
Regards,
Jari
My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai -
How Can I create a SAP form that contains activeX report viewer?
I'm trying to create a SAP form that contains a ActiveX control to view a Crystal Report. Can anyone Help?
Thanks,
Ezequiel.Thanks Ludek, I use this a sub to create a report document and report viewer in sap bussines one form.
Running this code shows the sap business one form with the report viewer but then closes SAP Business One Application.
which may be the problem?.
Private Sub CreateFormWithActiveX()
Dim CP As SAPbouiCOM.FormCreationParams
Dim fTree As SAPbouiCOM.Form
Dim AcXTree As SAPbouiCOM.ActiveX
Dim oItem As SAPbouiCOM.Item
Dim CRapp As CRAXDDRT.Application
Dim CRRep As CRAXDDRT.Report
'Dim CRepDoc as
' Set the form creation parameters
CP = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
CP.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Sizable
CP.FormType = "ACXTree"
CP.UniqueID = "ACTree1"
fTree = SBO_Application.Forms.AddEx(CP)
fTree.Left = 10
fTree.Top = 10
fTree.Width = 800
fTree.Height = 600
fTree.Title = "Crystal Report Viewer - Argentis"
fTree.AutoManaged = True
' Add the TreeView Control to the form
oItem = fTree.Items.Add("Tree", SAPbouiCOM.BoFormItemTypes.it_ACTIVE_X)
oItem.Left = 1
oItem.Top = 1
oItem.Width = 800
oItem.Height = 600
' Create the new activeX control
AcXTree = oItem.Specific
CRapp = New CRAXDDRT.Application
CRRep = CRapp.OpenReport("C:\Projects\Crystal Report ActiveX Viewer\Crystal\Indumetaria\Reportes\ARInvoiceMatrix_portrait.rpt", 1)
'CRRep.RecordSelectionFormula = "{OINV.DocEntry} = {?doc_num}"
For i As Integer = 1 To CRRep.Database.Tables.Count
Dim ConnectionInfo As CRAXDDRT.ConnectionProperties
ConnectionInfo = CRRep.Database.Tables(i).ConnectionProperties
ConnectionInfo.Delete("Integrated Security")
ConnectionInfo.Delete("Provider")
ConnectionInfo.Delete("Data Source")
ConnectionInfo.Delete("Initial Catalog")
ConnectionInfo.Delete("User ID")
ConnectionInfo.Delete("Password")
ConnectionInfo.Add("Provider", "SQLOLEDB")
ConnectionInfo.Add("Data Source", "Ezequiel")
ConnectionInfo.Add("Initial Catalog", "SITKA")
ConnectionInfo.Add("Integrated Security", 0)
ConnectionInfo.Add("User ID", "sa")
ConnectionInfo.Add("Password", "sa2005")
Next
AcXTree.ClassID = "CrystalReports102.ActiveXReportViewer.1"
'oTreeView = AcXTree.Object
oViewer = AcXTree.Object
oViewer.EnableToolbar = True
oViewer.EnableStopButton = True
oViewer.EnableSelectExpertButton = True
oViewer.EnableSearchControl = True
oViewer.EnableRefreshButton = True
oViewer.EnableProgressControl = True
oViewer.EnablePrintButton = True
oViewer.EnablePopupMenu = True
oViewer.EnableGroupTree = False
oViewer.DisplayGroupTree = True
oViewer.ReportSource = CRRep
oViewer.ViewReport()
fTree.Freeze(True)
' Make the form visible
fTree.Visible = True
End Sub
Regards. -
Iphone disabled, how can I reset it with serial number
My Iphone is disabled. Can I reset it with the serial number? I do not have ITunes
No, if your device is disabled, you need to use iTunes to fix this issue.
iOS: Forgotten passcode or device disabled after entering wrong ... -
How Can I Avoid Continually Entering Serial Numbers
I purchased a new iMac to replace my older iMac. Aperture works only if I re-enter serial numbers each time I open Aperture. How can I avoid continually entering the serial numbers. It is annoying that my Mac won't remember my labour.
You cannot "access it" at all using a serial number.
Please explain what you are attempting. -
How can i access devices through serial numbers
how can i acess my device by serial number
You cannot "access it" at all using a serial number.
Please explain what you are attempting. -
How can I access SCXI module serial numbers programmat​ically?
Hardware traceability is a necessity in my industry, so I need to be able to track the SCXI modules used in a test by stamping the serial numbers on the data files. I am able to do this for the DAQ devices, but I cannot find a way to do this for the SCXI modules. I am using LabWindows/CVI with NI-DAQ 7.0 traditional.
You cannot "access it" at all using a serial number.
Please explain what you are attempting. -
How can I create Hyperlinks with a Fixed-Ratio EPUB?
I am using InDesign 2014's fixed ratio epub exporter. It looks great but all my hyperlinks are lost and I can't find any resources on how to maintain them or to recreate them in a reader program, if possible. Any help much appreciated?
Are the hyperlinks you want to make supposed to go to specific pages of the document, or to a url.
If it's to go to pages of the document, then click the Create Bookmarks when creating the TOC, it's in the bottom left, you may need to Show Options in the TOC dialog box.
If it's for a URL, or to link to a different page other than what the TOC points to, then you can
New Hyperlink Destination
Choose URL/Page
Insert a unique name
Insert the url/page no.
Then say ok
Go to Hyperlink Options
Type: URL
Name: Choose the unique name you've created
URL: it should show up as what you've put in the Name, if not just type it in
similar for page no.
Remember to inlcude bookmarks and hyperlinks when creating the PDF too. -
How can I create pages with different backgrounds
Hello,
I'm creating flash site which will have different backgrounds for each page. I'll load the individual pages with "MovieClipLoader." My understanding about MovieClipLoaders is that, it doesn't matter the background of your mc, the page to which you are loading will maintain it's background.
How do I achieve that?
Thank you!Hello,
Thanks for the reply, I think it's a very good suggestion. I'm going to try it out and I hope to fill you in.
Thanks once again.
Maybe you are looking for
-
OS 8.6 vs. 9.0
Is OS 8.6 considered a "classic environment?" I need to install the classic environment on an ibook running "Tiger" so that I can open an old geneology file. That is the closest copy I have to the 9.1. The geneology program used to run on a lime gree
-
I have completed the slide show i am making, but not sure what to do now. I want to burn it to a dvd, but not sure if i can do that from iphoto or do i need to export to imovie or idvd? If i need to export, will iphoto save a copy in iphoto? This may
-
Reader 9.3 PDF Files are flagged as "unknown file type" in Win XP
Installed Reader 9.3 replacing version 5.1 on my Win XP with SP 2. I have the Microsoft automatic update feature set "on" so I assume that overall my WIN XP is up to date. Having a problem downloading PDF files from trusted Internet sites. No longer
-
Eyedropper sets Background color swatch instead of Foreground
Q: Why does the Eyedropper Tool set the Background color instead of the Foreground color when I click in my image? A: The reason for this is that the Background swatch is "targeted" to accept the color information passed on by the Eyedropper Tool whe
-
Getting Action Task Id of Guided Procedure Process
Hi, The scenario is i have three actions with web dynpro GP Interface Callable Object in GP Process.This GP Process is initiated from web dynpro application.Once i initiate the process the first action start and display the action in the uwl.Once