Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

trigger

2947022May 22 2015 — edited May 22 2015

Hi All,

I am using

Connected to Oracle Database 11g Express Edition Release 11.2.0.2.0

I am using Oracle HR schema

I am trying to learn triggers

Below is my table script.

CREATE TABLE FOO(

                 ID NUMBER PRIMARY KEY,

                 DATA VARCHAR2(100));

                

                

                 CREATE SEQUENCE FOO_SEQ

                

                 CREATE OR REPLACE TRIGGER BIFER_FOO_ID_PK

                 BEFORE INSERT

                 ON FOO

                 FOR EACH ROW

                   BEGIN

                     SELECT FOO_SEQ.NEXTVAL

                     INTO :NEW.ID

                     FROM DUAL;

                     END;

INSERT INTO FOO (DATA) VALUES('CHRISTOMER');

INSERT INTO FOO(ID,DATA) VALUES(5,'SEAN')

SQL> SELECT * FROM FOO ;

        ID DATA

---------- --------------------------------------------------------------------------------

         1 CHRISTOMER

         2 SEAN

I want to understand this behaviour,

the sequence will automaticaly insert into FOO, if we don't give the ID column,

But giving the ID column also, it inserts by sequence.

Please help me understand the behaviour

Thanks,

This post has been answered by Frank Kulash on May 22 2015
Jump to Answer

Comments

Oleh Tyshchenko
Answer

How about to replace your position values with negative ones (so 1 becomes -1 etc) and change labels to positive with custom y2 axis label converter See APEX 20.1 Sample Charts applications page 46 Event Drops to see how to add a custom converter. You may also need to change these properties as well: valueFormats.y2.converter and valueFormats.label.converter

1.png

Marked as Answer by Keyser · Sep 27 2020
Keyser

crikey, i was hoping it would be something simple like options.y2Invert = true

thank you, I'll have a play using your suggestions, i may have questions

did you alter my chart like that from dev tools console?

Oleh Tyshchenko

Keyser wrote:

did you alter my chart like that from dev tools console?

No, I made a replica

Keyser

and with the facility to download it so that I can copy your code and produce this...

pastedImage_0.png

and for teams that aren't quite as good...

pastedImage_1.png

that's exactly how i wanted it, thank you very much for your help, it's much appreciated!

jozzh

@oleh-tyshchenko It seems as this is not working for bubble chart type.

Any idea what the problem is here?

https://apex.oracle.com/pls/apex/r/jzzh/inverted-y2-axis

Thanks!

Jochen

Oleh Tyshchenko

Sorry, I don't get how the bubble chart is supposed to look like in your case.

jozzh

All good now, it is working also for bubble charts.

I was just missing that I need to work with the x axis and not with y2 or y axis…

https://apex.oracle.com/pls/apex/r/jzzh/inverted-y2-axis

1 - 7
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 19 2015
Added on May 22 2015
3 comments
224 views