|
|
Set Next Serial Value Script Step with Upgrade
Hi,
I have a parent key text field that contains auto entered serial numbers
along the basis of SOLC001, SOLC002 etc. I am trying to setup an upgrade
routine that will allow me to import records from an old version into a new
version. I was hoping to import all records from the old file into the new
file, sort by the key field then use the Set Next Serial Value Script Step
to set the next auto-entered number. However the problem is when I sort by
the key field it puts them in this order:
SOLC099
SOLC100
SOLC1000
SOLC1001
which will obvoiusly give me the wrong results when using the Set Next
Serial Value Script Step. Any ideas how to get around this problem?
Thanks,
Andrew
|
|
0
|
|
|
|
Reply
|
splash562 (3)
|
5/26/2004 5:44:34 AM |
|
All you really need to know is the last imported serial number, then, in
"field definitions" hand set the next serial number to the correct
value. Everything should work as expected from there.
It should be easy enough to find the last serial number, sort by
Creation Date and or time in descending order.
Michael Myett
Andrew wrote:
> Hi,
>
> I have a parent key text field that contains auto entered serial numbers
> along the basis of SOLC001, SOLC002 etc. I am trying to setup an upgrade
> routine that will allow me to import records from an old version into a new
> version. I was hoping to import all records from the old file into the new
> file, sort by the key field then use the Set Next Serial Value Script Step
> to set the next auto-entered number. However the problem is when I sort by
> the key field it puts them in this order:
>
>
> SOLC099
> SOLC100
> SOLC1000
> SOLC1001
>
> which will obvoiusly give me the wrong results when using the Set Next
> Serial Value Script Step. Any ideas how to get around this problem?
>
> Thanks,
> Andrew
>
>
|
|
0
|
|
|
|
Reply
|
Michael
|
5/26/2004 6:11:51 AM
|
|
Apologies. I realized that I had misunderstood an important part of your
question. I guess I would try an ascending sort by creation date and
time, then, as you suggested, set next serial value by script.
Michael Myett
Michael Myett wrote:
> All you really need to know is the last imported serial number, then, in
> "field definitions" hand set the next serial number to the correct
> value. Everything should work as expected from there.
>
> It should be easy enough to find the last serial number, sort by
> Creation Date and or time in descending order.
>
> Michael Myett
>
> Andrew wrote:
>
>> Hi,
>>
>> I have a parent key text field that contains auto entered serial numbers
>> along the basis of SOLC001, SOLC002 etc. I am trying to setup an upgrade
>> routine that will allow me to import records from an old version into
>> a new
>> version. I was hoping to import all records from the old file into the
>> new
>> file, sort by the key field then use the Set Next Serial Value Script
>> Step
>> to set the next auto-entered number. However the problem is when I
>> sort by
>> the key field it puts them in this order:
>>
>>
>> SOLC099
>> SOLC100
>> SOLC1000
>> SOLC1001
>>
>> which will obvoiusly give me the wrong results when using the Set Next
>> Serial Value Script Step. Any ideas how to get around this problem?
>>
>> Thanks,
>> Andrew
>>
>>
|
|
0
|
|
|
|
Reply
|
Michael
|
5/26/2004 6:22:10 AM
|
|
|
2 Replies
304 Views
(page loaded in 0.054 seconds)
Similiar Articles: Updating numeric values from shell script - comp.unix.shell ...I need to do this in a Unix Shell script. I have a ... calculated values" (otherwise you don't need step ... the... ... our work-around for this is to set a registry value on ... Consolidate field contents from across a found group of records ...... email to each recipient using a looping script. ... want to use all of the email addresses, just set your value ... emailAddrField] Loop goto record/request [next ... Cisco 2504 Password reset - comp.dcom.sys.ciscoType config-register 0x2102, or the value you recorded in step ... the configuration from NVRAM at the next ... set the confuration-register to the value 0x142 (the method to set ... how to display the number entered in descending orderb - comp.lang ...import java.util.Scanner;//Scanner class set up I'm ... many values you want to input:");// display the value ... of the problem working first, then go on to the next. While loops - comp.soft-sys.matlab... reached EOF ch = fgetl(fp); % read the next line ... data might be added to the file or socket or serial ... have a function f(x) that you wish to integrate in steps ... Keyboard Input - comp.lang.asm.x86Logical next step, I guess. What commands do you propose to ... In most cases, the "release" interrupt (high bit set ... Problem with script - "The input character is not valid..." time reset, syncronisation lost and Large PPM values - comp ...Perhaps we should just return them and ask for the next ... the adjtime and the drift files - the following script is ... why you are running ntpd v 4.1.2, you need to upgrade. 1-wire to USB converter that can use 1820s directly - comp.home ...The entire system was extremely simple to set up and use. ... The COM version can be used from VB Script so it should be ... discussion of frying red chickens may have some value ... access control and pool servers - comp.protocols.time.ntp ...I have not found a "restrict default" set of ... # If you want this to be an interactive script you could add a step to ... save across a restart of ntpd is the drift value ... ATARI and Spectrum are rubbish - The C64 is the king of home ...On Jan 17, 3:02=A0pm, lizardb0y <andrew.step...@gmail.com ... for a = 1 to 100000 15 let z=z+.01 20 Print z 25 next ... but by then I had some books that explained how to set ... Upgrading to the New Oracle Database 10g ReleaseThe upgrade scripts adjust the privileges for the ... Set of the upgraded database is set based on the value of the ... the upgrade until all of these pre-upgrade steps are ... After Upgrading to the New Release... Next ... that your oratab file and any client scripts that set the value ... ASM upgrade, execute the following steps: As orauser, upgrade ASM ... 7/25/2012 5:58:42 AM
|
|
|
|
|
|
|
|
|