Trigger with progressive
Hi,
I've this table:
CREATE TABLE MY_TAB (
ID VARCHAR2 (24) NOT NULL,
NAME_ID VARCHAR2 (32) DEFAULT NULL,
PRIMARY KEY (ID ));
I'd like to create one trigger that for each NAME_ID insert into ID column the value "NAME_ID-progressive of 3 digit"
For example:
INSERT INTO MY_TAB ( NAME_ID) VALUES ('999');
ID..............NAME_ID
999-001.........999
INSERT INTO MY_TAB ( NAME_ID) VALUES ('999');
ID..............NAME_ID
999-001.........999
999-002.........999
INSERT INTO MY_TAB ( NAME_ID) VALUES ('88888');
ID..............NAME_ID
999-001.........999
999-002.........999
88888-001.......88888
INSERT INTO MY_TAB ( NAME_ID) VALUES ('88888');
ID..................NAME_ID
999-001.............999
999-002.............999
88888-001...........88888
88888-002...........88888
INSERT INTO MY_TAB ( NAME_ID) VALUES ('999');
ID..................NAME_ID
999-001.............999
999-002.............999
88888-001...........88888
88888-002...........88888
999-003.............999
INSERT INTO MY_TAB ( NAME_ID) VALUES ('999')
ID..................NAME_ID
999-001.............999
999-002.............999
88888-001...........88888
88888-002...........88888
999-003.............999
999-004.............999
The trigger is like this:
CREATE OR REPLACE TRIGGER TRG_MY_TAB
BEFORE INSERT ON MY_TAB
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
WHEN (NEW.ID IS NULL)
BEGIN
SELECT (:NEW.NAME_ID ||('-here progressive'))
INTO :NEW.ID
FROM DUAL;
END;
How can I create this trigger with progressive
Thank in advance!
Create an auxiliary table:
CREATE TABLE progressive
(name_id VARCHAR2(32) NOT NULL PRIMARY KEY
,seq NUMBER NOT NULL
/And then call this function in your trigger:
CREATE OR REPLACE FUNCTION next_progressive (p_name_id IN progressive.name_id%TYPE)
RETURN NUMBER IS
l_seq NUMBER;
BEGIN
LOOP
BEGIN
SELECT seq INTO l_seq
FROM progressive
WHERE name_id = p_name_id
FOR UPDATE;
UPDATE progressive
SET seq = seq + 1
WHERE name_id = p_name_id;
RETURN l_seq;
EXCEPTION
WHEN no_data_found THEN
BEGIN
INSERT INTO progressive (name_id, seq)
VALUES (p_name_id, 2);
RETURN 1;
EXCEPTION
WHEN dup_val_on_index THEN
null;
END;
END;
END LOOP;
END;
/
Similar Messages
-
Splash screen with progress bar and multiple jar files to load
Hello,
I have been looking to the new features in java 6 for splash screens. I haven't implemented this never before and i was wondering how i could do the following with java 1.5 or 6:
I would like to see a splash screen with a progress bar that "grows" when every jar file has been read.
At this time i call my application like this from a shell script:
exec "$JAVA_BIN" -Djava.library.path=$LIBRARIES_J3D -classpath xxxx.jar yyyy.jar zzzz.jar ...
where xxx.jar, yyy.jar and zzz.jar are very heavy jars.
So i would like to see in the progress bar 33% 66% and 100% when they are loaded.
I do not know if this is the right forum to ask for this. If no, please point me which would be the ideal one.
Any help will be very useful. Thanks to all!Am 10.07.2015 um 07:17 schrieb Lalit Solanki:
> Hi friend,
>
> I am create pure eclipse E4 application and trying to splash screen with progress bar and message.
>
>
>
>
> but above image in only support eclipse E3 application so pleas help me how to add progress bar and message in eclipse E4 application
>
Hi Lalit,
there's a Bug entry: https://bugs.eclipse.org/bugs/show_bug.cgi?id=382224
Meanwhile you can use this solution:
https://www.eclipse.org/forums/index.php/t/328812/5ceed4bcaa683a94d65efb161bffd217/
Regards,
Ralf. -
Problem with Progress DB while using to connect using JDBC Adapter
Hi,
I am facing Problem with Progress DB while using to connect using JDBC Adapter. I am getting the following error in auditlog file like,
Error during database connection to the database URL jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb
/devsche/i_apoext.db using the JDBC driver "com.progress.sql.jdbc.JdbcProgressDriver" : com.sap.aii.adapter.jdbc.sql.DriverManagerException: Unable to locate a suitable JDBC driver to establish a connection to URL " jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb
/devsche/i_apoext.db "
I tried using the following all URLs,
1. jdbc:JdbcProgress:T:156.5.31.65:2545:i_apoext.
2. jdbc:JdbcProgress:T:156.5.31.65:2545:i_apoext.db
3.
jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb
/devsche/i_apoext.
4.
jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb
/devsche/i_apoext.db.
Can anyone please help me out in solving this issue.
May be the cause for this is :
1) The Wrong URL format
2) CLASSPATH is not setted properly..
Can you look more into this stuff.
Thanks,
Soorya.Hi,
To access any database fromm XI, using the JDBC adapter, the corresponding drivers have to be installed on the XI server.
Just check this note 831162.
Also, check this PDF to install Drivers in XI,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10 -
Macbook opens slowly with progress bar below the logo
macbook opens slowly with progress bar below the logo, what's happened can it be fixed and how Yosemite OS
ThanksThe status bar below the Apple logo in Yosemite is not a bug, its a feature. No need for a fix.
The reason why your MB starts slowly shall be answered if we have more info on your MacBook (RAM, version, etc.) -
iPhone 4s will not boot after trying to install ios7 beta 4. Stops at apple logo with progress line under it. how can I reset it or get it back up to do a restore then try the iOS 7 beta 4 install again. Issue was probably caused by disconnection
Obviously since you have iOS 7 you're a developer. As a developer, you signed a NDA with Apple not to discuss the iOS on a public forum. Please log in to the Developer Forum using your credentials and ask for help there, lest you risk having your credentials terminated.
Thanks, and best of luck to you.
GDG -
Gray Boot Screen with progress bar & SMC Issues
Hi All,
Over the last few days I've experienced the grey boot screen with progress bar three separate times after the finder froze and I was forced to manually reboot my imac. Previously I have only seen this during a Firmware update.
I am also concerned about the Finder freezing. It has been happening when I've been trying to access any of my external hard drives at random intervals (connected via usb, and f800). I am concered that my SMC controller might be failing as these drives are testing fine on other computers and in drive test programs. Also, the f800 drives have been self unmounting.
I had my internal drive replaced by apple a few weeks ago, could they have somehow damaged the smc controller unintentially? Or is this simply a Snow Leopard hiccup? (I'm running 10.6.2). I'm really starting to get annoyed with having to hard reboot or constantly reset my SMC. Any ideas before I take it in to a store?
Thanks!
Message was edited by: fkick1I have found other users have this same problem when using windows. My setup worked fine until I did a windows update. Now apple partition is inaccessible. Guess the windows update whacked the apple partition. Apple should have a workaround. Bad Windows!
-
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 blockFrank,
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 -
CS3 install silent with progress bar ??
Is it possible to install full CS3 with progress bar showing when the program silently installs?
Install works fine using UI mode Silent and Full, but I can't find andy other options?
My problem is when using the silent install of full CS3, shortcuts are available before the installation is finished. Since the installation takes time, users may click the shortcut before the installation is finished, resulting installation fails.
Using the UI Mode Full is dependent on the users, and not accepted by company.
-OdestiWe too are in the same boat, we need a progress bar so that our users know that we are deploying the application.
I've tried various random switch for the "UI mode" but none work. There must be others than silent or Full.
Phil H -
Problems with infinite/jumping buffering using Strobe MP with progressive download MP4
Hello,
I am fighting with the Strobe Media Player and an MP4 video that it is supposed to load and play with progressive download.
The video is playing perfectly fine, except if it needs to buffer somewhere on the middle (the first "buffering" works correctly). If it happens, either it will stay buffering forever - but the buffer bar keeps filling up -, or after several seconds it will jump the video some seconds ahead, and start buffering again, repeating this until the end.
I have tried a lot of different scenarios, with different options on the buffer settings of Strobe, and different encodings on the video, without results.
The video can be seen here: http://www.webfuel.pt . It's currently encoded for 750 kb/s, using VBR 2 pass, web optimized.
I am testing using a bandwidth limiter (Service Capture), and limiting to around 200 kb/s. When the video reaches the buffer, the problem happens.
What can be the cause of the problem? A setting on Strobe? The video encoding? HTTP server configuration? A bug on Strobe?
By the way, just a fast question. For the current use case (the video you saw on the site, autoplaying), which bitrate would you consider acceptable? And considering the purpose is Web/Progressive downloaded is it recommended the use of VBR, or should I use CBR? Is there anything more relevant when encoding a video to be deployed on the web?
Thank you,
João SaleiroWe have solved the problem by creating our own video player and applying the technique described here:
http://stackoverflow.com/questions/1079935/actionscript-netstream-stutters-after-buffering
In another words, when the buffer gets empty, we pause the player, and we create an eventlistener that checks when the buffer is full to resume the playing. The result can be seen our site.
This is, IMHO a big problem in the Strobe Media Player that made us loose around 2 days researching, and can be easily solved with the above technique. -
I would like to start several PCI 4472 and a PCI-MIO-16E-1 simultaneously. All boards are connected via a RTSI cable.
My program works fine if I use software trigger, or an analog trigger from a PCI4472 channel. However, the analog trigger works only when I set pre-trigger (or pre-scan) to 0.
Is it possible to start a PCI4472 and a PCI-MIO-16E-1 simultaneously using an analog trigger (with pre-trigger)?
Thanks.
Ian RenHi, Bill
I think it is possible to set more than 38 pre-trigger scans on a single 4472 card. I've done this before. You can verify this by running the Labview example "Acquire N - Multi-Analog Hardware Trig.vi" which comes with LabView.
What I try to do but without success/luck so far is to start data acquisitions of several 4472 cards and a PCI-MIO-16E-1 card using an anlog trigger (with pre-trigger).
Thanks for your help.
Ian -
Hi all!
I've a before insert trigger.
I want to call a procedure within this trigger, with a record input param.
How can I pass the ":NEW" as a record type?
Thanks!unfortunatly this is not possible.
You have to pass all :NEW values separately. Or transfer then to a rowtype first like:
declare
v_new_row table%rowtype;
begin
v_new_row.col1 := :NEW.col1;
v_new_row.col2 := :NEW.col2;
v_new_row.col3 := :NEW.col3;
v_new_row.col4 := :NEW.col4;
v_new_row.col5 := :NEW.col5;
v_new_row.col6 := :NEW.col6;
do_something(v_new_row); -
How to associate audio file with progress bar
Hi all,
I have a case in which I need to associate an audio file witha progress bar. What I want to do is to able to play a audio file which will say " Process started.." Process going on" and process ends, and it shoud be synchronized with the progress bar. Is there a way to do this .
Please let me know
Thanks,
Ankit G
Solved!
Go to Solution.Are you referring to a LabVIEW horizontal/vertical progress bar, which basically has a U8 integer constantly written to it? Is this in a loop as it fills up?
If so, there is an entire palette that allows you to play waveforms. As you're writing to your progress bar the number, you can keep checking what that number is (event or case structure), and when it hits particular values, you play particular sounds. Here is a screenshot of that palette.
Ravi A.
National Instruments | Applications Engineer -
Software trigger with PCI-5122
I am going to program a board with PCI-6552 and in meantime in specific times capture the samples of the anolog output of the board by PCI-5122.
Is there any way to use software trigger and the data pattern of PCI-6552 (e.g. define a software event) to trigger the PCI-5122. If it is possible, how the software event can be defined and connected to the "send software trigger" block?Whe using a software trigger with the 5122, you generate the trigger whenver you call the "Send Software Trigger" function. you can program the software events that cause this funtion to be called in any way you want.
In the simplest case, you could place the "Send Software Trigger" function in a while loop and only execute it when the user presses a button.
Jack -
Auto slideshow with progressive image load
Hello everyone,
Does anyone know of a good autoplay slideshow script that
starts with the
first image on page load and then downloads the additional
images when
called? In other words, if there are 20 images in the
slideshow, it doesn't
load all 20 images before displaying the first.
I have just a couple of specific requirements.
I don't need any controls (pause, forward, etc) on it.
Most of the javascript slideshows I've looked at in Google or
have in my
snippet list have the image name hardcoded in the script.
Image1.jpg, image2.jpg, etc, which won't work.
I'll be feeding the images dynamically depending on the
category the user
chooses and the image names are variable.
I'm currently using javascript that automatically shows and
hides divs with
the same class name by changing the display style from none
to block and
back to none as it loops through them.
This works well as I can dynamically write as many divs as
needed by looping
through all the items in a category.
But alas, this one still doesn't start to run until all the
images are
downloaded.
You can see it here:
http://www.onelongfellowsquare.com/
There's actually 3 "slideshows", stacked one on top of the
next, using this
in the "Featured" section.
Thank you for any help or ideas.
Take care,
TimThanks, Jeff.
That's the functionality I was looking for.
I just need to figure out the best way to dynamically fill
the array with
image names from a database.
Take care,
Tim
"Jeff" <[email protected]> wrote in message
news:[email protected]...
> <head>
> <script language="JavaScript1.1">
> <!--
> var slidespeed=3000
> var slideimages=new
>
Array("image1.JPG","image2.JPG","image3.jpg","image4.jpg","image5.jpg","image6.jpg")
>
> var slidelinks=new Array("")
>
> var newwindow=0
>
> var imageholder=new Array()
> var ie=document.all
> for (i=0;i<slideimages.length;i++){
> imageholder
=new Image()
> imageholder.src=slideimages
> }
>
> function gotoshow(){
> if (newwindow)
> window.open(slidelinks[whichlink])
> else
> window.location=slidelinks[whichlink]
> }
> //-->
> </script>
> </head>
>
> <body>
> <a href="javascript:gotoshow()"><img
src="image1.JPG" alt="" name="slide"
> width="400" height="271" border=0
style="filter:blendTrans(duration=3)">
>
> <script language="JavaScript1.1">
> <!--
> var whichlink=0
> var whichimage=0
> var blenddelay=(ie)?
document.images.slide.filters[0].duration*1000 : 0
> function slideit(){
> if (!document.images) return
> if (ie) document.images.slide.filters[0].apply()
> document.images.slide.src=imageholder[whichimage].src
> if (ie) document.images.slide.filters[0].play()
> whichlink=whichimage
> whichimage=(whichimage<slideimages.length-1)?
whichimage+1 : 0
> setTimeout("slideit()",slidespeed+blenddelay)
> }
> slideit()
> //-->
> </script>
> </body>
>
> Jeff
>
>
>
> ----- Original Message -----
> From: "TC2112" <[email protected]>
> Newsgroups: macromedia.dreamweaver
> Sent: Saturday, January 31, 2009 7:04 PM
> Subject: Auto slideshow with progressive image load
>
>
>> Hello everyone,
>>
>> Does anyone know of a good autoplay slideshow script
that starts with the
>> first image on page load and then downloads the
additional images when
>> called? In other words, if there are 20 images in
the slideshow, it
>> doesn't load all 20 images before displaying the
first.
>>
>> I have just a couple of specific requirements.
>> I don't need any controls (pause, forward, etc) on
it.
>> Most of the javascript slideshows I've looked at in
Google or have in my
>> snippet list have the image name hardcoded in the
script.
>> Image1.jpg, image2.jpg, etc, which won't work.
>> I'll be feeding the images dynamically depending on
the category the user
>> chooses and the image names are variable.
>>
>>
>> I'm currently using javascript that automatically
shows and hides divs
>> with the same class name by changing the display
style from none to block
>> and back to none as it loops through them.
>> This works well as I can dynamically write as many
divs as needed by
>> looping through all the items in a category.
>> But alas, this one still doesn't start to run until
all the images are
>> downloaded.
>> You can see it here:
>>
http://www.onelongfellowsquare.com/
>> There's actually 3 "slideshows", stacked one on top
of the next, using
>> this in the "Featured" section.
>>
>> Thank you for any help or ideas.
>>
>>
>> Take care,
>>
>> Tim
>>
>>
>
> "TC2112" <[email protected]> wrote in message
> news:[email protected]...
>> Hello everyone,
>>
>> Does anyone know of a good autoplay slideshow script
that starts with the
>> first image on page load and then downloads the
additional images when
>> called? In other words, if there are 20 images in
the slideshow, it
>> doesn't load all 20 images before displaying the
first.
>>
>> I have just a couple of specific requirements.
>> I don't need any controls (pause, forward, etc) on
it.
>> Most of the javascript slideshows I've looked at in
Google or have in my
>> snippet list have the image name hardcoded in the
script.
>> Image1.jpg, image2.jpg, etc, which won't work.
>> I'll be feeding the images dynamically depending on
the category the user
>> chooses and the image names are variable.
>>
>>
>> I'm currently using javascript that automatically
shows and hides divs
>> with the same class name by changing the display
style from none to block
>> and back to none as it loops through them.
>> This works well as I can dynamically write as many
divs as needed by
>> looping through all the items in a category.
>> But alas, this one still doesn't start to run until
all the images are
>> downloaded.
>> You can see it here:
>>
http://www.onelongfellowsquare.com/
>> There's actually 3 "slideshows", stacked one on top
of the next, using
>> this in the "Featured" section.
>>
>> Thank you for any help or ideas.
>>
>>
>> Take care,
>>
>> Tim
>>
>>
>
> -
Can anyone recommend a free file uploader with progress bar?
Can anyone recommend a free file uploader with progress bar?
I have searched google but with no luck.
Ideally it would be a DW extension but that might be wishing
for too much.
I would like a large file limit for video and multiple file
extensions allowed.
Thanks in advanceHeya,
Check out this due Waleed he has some nice tuts and here's
a
link
to file upload with progress bar tutorial he has. Granted it
looks like it's just an animated gif letting users know their file
is uploading; if you want realtime upload information displayed for
the user you're gonna have to look at something like Flash with the
power of actionscript to achieve that result.
Hope that helps!
Maybe you are looking for
-
This is more than annoying, the attempt to update my iOS Apps via iTunes 11.4 (18) ends each and every time with a crash of itunes, no way to update. The iPhone refuses to update via WLAN, the only way to update is to get updates via mobile data conn
-
Unable to Configure Sales Order using SALESORDER_CREATEFROMDAT2
I am using the basic type SALESORDER_CREATEFROMDAT2 02 idoc, created via LSMW, in order to create sales orders. Everything works fine, except for the fact that I cannot set configuration characteristics. The sales order is saved, but when i look at
-
How can I use TopLink for querys that have two and more tables?
I use TopLink today, and I can use one table to query, but how can I use TopLink for querys that have two and more tables? Thank you for see and answer this question.
-
How do I turn off compatibility mode for iTunes?
Recently computer keeps on telling me to turn off compatibility mode. I have tried looking at previous answers but cant find what the instructions tell me. I get as far as opening the itumes folder and then it says right click on the itune ort itunes
-
"Link to" slides won't work with external monitor
I built a presentation with a lot of "link to" commands in it. It works perfectly when I run it on the desktop (MBP retina), but when I plug in a second monitor none of the link to's will work. Why would that be and how can I fix it?