Websheets - sequence numbers for new rows
Hi,
I am creating a websheet application to use for a tasks/bug tracker for a project.
I would really like the first column to be of a number format that is automatically filled with the next number in a sequence.
This is quite necessary to have as there will be many rows, and during meetings it will be much easier to refer to a bug or task by it's unique number!
I cant seem to find any info on forums or blogs. And maybe it's because I haven't had my coffee yet, but I can't seem to figure out a way to embed some SQL and a trigger.
Anyone have any tips? Or a reason why this isn't an available functionality in the column properties?
APEX version: 4.2.0.00.27
Regards,
Amanda
What's your Oracle version ?
Here an example with MERGE statement :
merge into test b
using(select rowid rwd,
dense_rank() over (order by your_sorted_column) dr
from test)e
on (b.rowid = e.rwd)
when matched then update set b.seq = dr;On 10g, you can avoid the INSERT clause, since you're sure all the rows will be joined.
On older database, you can insert all null.
Or update statement :
update test b
set b.seq = (select dr
from (select rowid rwd,
dense_rank() over (order by your_sorted_column) dr
from test) e
where r.rowid=e.rwd);Nicolas.
Similar Messages
-
ALV Grid default values for new rows added with Add/Insert buttons
Hi!
Help, please, to find a way how to set default values for new rows added with Add/Insert buttons in
ALV Grid.I have found salution:
ALV Grid u2013 Insert row function
Sometimes we need to assign some default values when we create a new row in a grid using standard ALV Append row button. In our scenario we will see how to assign default values to Airline Code (CARRID), Flight Connection Number (CONNID) and Flight date (FLDATE) when a new row is created. To do that we need to handle DATA_CHANGED event in the program like mentioned below.
Definition of a class:
Code:
CLASS lcl_event_receiver DEFINITION
CLASS LCL_EVENT_RECEIVER DEFINITION.
PUBLIC SECTION.
METHODS:
handle_data_changed
FOR EVENT data_changed OF cl_gui_alv_grid
IMPORTING er_data_changed
e_ucomm.
ENDCLASS. "lcl_event_receiver DEFINITION
Implementation of a class:
Code:
CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
METHOD HANDLE_DATA_CHANGED.
DATA: dl_ins_row TYPE lvc_s_moce. " Insert Row
FIELD-SYMBOLS: <fs> TYPE table. " Output table
Loop at the inserted rows table and assign default values
LOOP AT er_data_changed->mt_inserted_rows INTO dl_ins_row.
ASSIGN er_data_changed->mp_mod_rows->* TO <fs>.
loop at <fs> into ls_outtab.
ls_outtab-carrid = 'LH'.
ls_outtab-connid = '400'.
ls_outtab-fldate = sy-datum.
MODIFY <fs> FROM ls_outtab INDEX sy-tabix.
endloop.
endloop.
ENDMETHOD. "handle_data_changed
ENDCLASS. "lcl_event_receiver IMPLEMENTATION
Register the events to trigger DATA_CHANGED event when a new row is created.
Code:
CALL METHOD OBJ_GRID->REGISTER_EDIT_EVENT
EXPORTING
I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_ENTER.
CALL METHOD OBJ_GRID->REGISTER_EDIT_EVENT
EXPORTING
I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED. -
Documents Sequence numbering for each Branch (Branch as segment)
dear Brother's
can help me in this case
Documents Sequence numbering for each Branch (Branch as segment)
Each branch have an own sequence
I implement oracle Business suite ERP for Five Branch ( KSA,INDIA,DUBIA ,JORDAN ,SYRIA )
I want to segregate sequence numbering for each branch, sequence for (
Sales order, invoice, purchase order, Invoice)
Is there a possibility to link sequence with any segment I define it in COA like Branch
Note: I work in single Operating UnitHi,
You might be able to adapt this solution to work for your case: https://acrobat.com/#d=*2slxPLc6c-H0U449vA4jQ. It's more about page numbers for different Master Pages, but you may be able to tie it to the different data nodes.
Niall -
Separate automatic document sequence numbering for diff. branches
Hi,
The client wants to have different automatic document sequence numbering for its various branches.preferably the sequence will start from a prefix depicting a branch and sequential vouchers will be generated. in this way all the branches will have their vouchers in sequence. tracking and filling will become easier.
if sombody knows the way of doing it, please respond.
nullHi
By using Document sequencing, you can do this have separate document sequence numbers for each bank, each branch with a code.
Please contact for further details.
Thanks
bharat -
Ignoring TCP handshake & Sequence Numbers for STT Traffic
Hi,
I have to pass STT traffic through a Cisco ASA (details on STT are here http://tools.ietf.org/html/draft-davie-stt).
STT traffic looks like TCP traffic (i.e. it uses IP protocol 6 and is sent to a specific destination port) but is stateless. It doesn't perform TCP handshake, i.e. TCP flags are used differently same goes for sequence numbers.
Is there any way to disable to regular TCP handshake and sequence numbers checks? I saw that there might be a chance to do something for the handshake with the embryotic connection limit but I'm not sure about the sequence numbers.
Assume ASA 8.6.
Thanks,
BenHi,
You can configure tcp state bypass only for this traffic, for the rest the firewall would check the tcp state of the packet, here is the doc:
http://www.cisco.com/en/US/products/ps6120/products_configuration_example09186a0080b2d922.shtml
Hope that helps.
Thanks,
Varun Rao
Security Team,
Cisco TAC -
Documenting numbering for new year
Hi All
i want to know is it possible to restart document numbering from 1 for new financial year without year end closingHai,
Document Nombering - AR invoice - create new series and change period indicator as defalt and lock prevoius series and change name of period indicator from defalt to other
regrds
Janeesh T G -
How to insert date column entry for new row from adf bc tester
Hi,
JDeveloper version 11.1.1.5.0
I have a table with a DATE column. I am trying to insert a new row into the table from the ADF BC Tester. While providing value to the DATE column I am hitting the below error:
(oracle.jbo.domain.DataCreationException) JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date from type:java.lang.String with value:2011/12/06
Please let me know what should be the format to specify date value while inserting entry using BC Tester.
Thanks
RathnamHi,
Check
operation not allowed on java.lang.object -
Document numbering for new financial year
Hi
i cant update assign first starting number 1 for new financial year. when i make any document its starting from last number of last year. like last year last number is 125. but i want this FY (2011-2012) staring number 1 for any document. but its starting from 126
How can i do this???
Regards,
Mizanhow can i close No. series??
"Also please be sure that you have closed the previous no. series with last no. and lock it."
your note
please see below link and open attachment. what i have done you can understand.
http://www.sendspace.com/file/diojs5
regards,
Mizan
Edited by: mizan700 on Aug 2, 2011 11:26 AM -
How to enable automatic sequence numbering for intercompnay invoice?
How can the sequence for "PA Internal Invoice" be automated.?
Hi
You may navigate to Projects Implementation Options, and go to the tab - Internal Billing.
There you may find the field - Invoice Numbering. You can select Automatic or Manual.
Per your requirement enter - Automatic, and go on entering the starting number to use for internal invoices.
Dina -
Insert menu item blank in sequence editor for new sequence
In TestStand 2.0.1, when I create a new sequence file using the sequence editor and right-click to insert a step, the Insert menu is greyed out.
If I open an existing sequence file, copy a step from it, and paste it into the empty sequence, then whatever that step was (let's say Action) becomes available on the Insert menu.
Is there any way to fix this other than re-installing TestStand? Any idea why this is happening?
Thanks,
GizmogalHi,
This sounds like you have a problem with your type Palette files in sowe way.
Check out if you can read the ini files found in teststand\cfg\TypePalettes.
Regards
Ray Farmer
Regards
Ray Farmer -
Enter values to submit for new row
I have a form where I would like to have to page level items P26_VRGN_ID which is LOV selected and P26_VDST_ID to be concatenated to a 3rd page level item called P26_RGN_DST to then form the primary key for a "create" form, is this possible?
You should be able to do this using After Submit Calculation - you can use a PL/SQL Expression for P26_RGN_DST like this
:P26_VRGN_ID || :P26_VDST_ID
You should probably only do this when creating new record, so use Condition - you can check for specific button -
Type- PL/SQL Expression
Expression 1 - :REQUEST='CREATE'
or for a new record (record with empty Primary Key)
Type- Value of Item in Expression 1 Is NULL
Expression 1 - P26_RGN_DST -
Where do I find new activated devices serial numbers? As I had my macbook and iPad stolen
Try here if they have been registered:
https://supportprofile.apple.com/ -
How can we get record numbers for the rows after grouping them?
Post Author: preethibaddam
CA Forum: Formula
hii everyone,
i want to number those records which are grouped by a column.
eg: if i group the emp table with the deptno then the records for the deptno10 group should start from 1 and end with an N number and again when it shifted to deptno20 group than the records for that deptno20 should again start with 1 and end with N number.
i tried placing record number from the field explorer but it is not working. the other group records start with the ended number from the first group.
thanksPost Author: V361
CA Forum: Formula
Record number from CR will count all the records. You could use a running total, and reset on change of group. -
Hello all,
Is there any provision in the mobile server and mobile client to synchronize the Lite database by using temporary sequence numbers for the newly added records?
In the application that we are involved with, we are being asked to provide this behavior.
In details we would ensure that the sequence generation works as it works for the desktop PCs as well.
As far as we know we should follow the following steps for the synchronization:
1. sync new rows with the server
1a. the server syncs with the database, replaces temporary seqnos with the ones that come from the database
2. sync the new seqnos back to the mobile device...
Please let me know whether it is possible or not with the Oracle Lite system,
Thanks in advance,
Balazsdo you have some need to keep the range of DONOR_ID sequential?
In our implementation we use the other method that Greg has mentioned, defining sequences within the oracle lite publication itself
We use sequence generated ID values as the primary key on a lot of our tables, and the columns are defined as NUMBER(12) (reasons are historical, and not necessarly for any good reason - but stuck with it)
looking at the worst case scenario (to keep things simple) in the server we have table PLOTS. The highest ID value is around 5.5 million, with an annual growth rate of 500,000 for server created records. The number of records that would be created on any particular client on an annual basis is more like 2,000.
When you define a sequence within the mobile server you specify a 'template' for each sequence consisting of
name (eg: PLO_ID_SEQ)
start value
increment
window (number of values to assign to a particular user)
threshold (point at which the next set of values is sent to the user)
for PLO_ID_SEQ, the start value is set at 500 million (overkill, but server generated id values will never reach this point in practice), increment is 1, window = 100,000 and threshold is 95,000
This in practical terms means that the sequences on the clients will never need to be re-sent as the values will never reach the threshold, and there will never be any cross over with server generated sequences
When you add your first client to the application, the actual sequence start value will be set for that client as 500,000,000. for the second user added it will be 500,100,000, for the third 500,200,000 etc.
On the whole the mobile server manages this ok, but we have found that if there is a need to replace a client by rebuilding the database from scratch, occasionally it does not correctly maintain the last value used. To get around this we reset the user prior to the rebuild (this resets the sequence start for that user to the next range of values)
This works ok, and is straightforward to implement as you need no code change/data manipulation on the server, but does result in the source of the records being obviously different (can be useful), and you cannot assume that the highest id value is the most recent record (can be a problem for reports) -
Enhancement Request: Recalculate Sequence Numbers
Hi
Wherever apex has sequence numbers (for branchs, items, regions etc.), please could we have the ability to recalculate them based on increments of ten so for example items as follows:
P_ITEM1 - sequence = 1
P_ITEM1 - sequence = 11
P_ITEM1 - sequence = 12
P_ITEM1 - sequence = 100
P_ITEM1 - sequence = 120
Would become:
P_ITEM1 - sequence = 10
P_ITEM1 - sequence = 20
P_ITEM1 - sequence = 30
P_ITEM1 - sequence = 40
P_ITEM1 - sequence = 50
The option to exclude items with a sequence number of 999 from the recalculation would also be handy. This can become a bit of a pain when a page has been updated many times and you end up with bunching of sequence number so that if something has to be inserted between them, you have to edit a number of items or whatever to make that happen.
If you could do a page-wide or application-wide recalculation - t'would also be cool.
If this feature is available already, please point me to it.
Cheers
BenThe Cleanup feature Paul mentioned is new in 4.0 but fyi in any version component sequence numbers accept non-integer values so you can always insert something anywhere without a need to resequence...Thanks! I never knew that! Oh yes. And they can be negative too. We have some very esoteric looking sequences...
Actually the decimals are pretty useful for things like conditional display of regions. If you've got 3 related but mutually exclusive regions, numbering them 20.1, 20.2, and 20.3 indicates the relationship between them. Which brings me to another enhancement request: regions to have separate name and title properties (like pages do), so that where such regions have to have the same title shown to users, it's a lot easier for developers to tell them apart.
Maybe you are looking for
-
After Updating to Server 4.1 Open directory and LPAD gone
Hello, two days ago I discovered that Open directory was not working on our Server (Mac Mini 2012). I suspect it stopped working after updating to 10.10.3 and OS-X Server 4.1. When I try to start Open directory in the Server App the Server App prompt
-
Is there an easy way to remove music from my ipod touch?
-
Iphoto hid my pictures when i opened a CD of pictures in iphoto
I put in my sisters wedding picture cd and iphoto asked me for an update, i clicked yes, now all 5,000 of my pictures are no longer in iPhoto, but they slide thru on my desktop pictures. They only pictures in iphoto are the 382 from her CD......I am
-
What is better XP drivers or manufacturer?
When installing new hardware such as a video card, is it better to use the drivers that Windows XP intalls upon detection, or the drivers that come with the product on cd or from the manufacture's website? Hmmmm???
-
Auto email after execution of scheduled business rule
Hi All, We have certain business rules which will be scheduled on daily, weekly and monthly basis. Our requirement is that every time when a scheduled business rule is executed a email is sent to the administrator (specifying the name of BR and time