How the auto insert value when creating new data?

I'm new to APEX and was trying to solve this problem:
To put it simply: I have a table, square_table, that contains two fields: input_number and square_value.
All I want to do is when a user enters an input_number of 'the model of form and report', the squared value is automatically calculated and recorded with the new number to the square_table.
Someone post a solution (as the possible detail, pls :)? I've seen many tutorials and no luck.

Thank you very much

Design flaws. You should not do this, even for strictly educational purposes. Stick to 3NF as much as possible and only denormalize if a) you REALLY REALLY REALLY need to do, AND b) your denormalized design survives review by peers, AND c) VERY WELL, document you the reasoning behind such a design. Please read this - look for the 'calculated values.

Anyway. You can do this at least two ways:

(1) create a Page process in your APEX application. Not a good idea, as other sources of INSERTs (sqplus, client/server applications) will make the calculation unless it is coded to do, and this would create several points of maintenance, documentation and tests, not to speak of the extra complexity to deal with several potential development environments; or
(2) create a trigger of good old plain.

If it was not a misconception, I'd go for (2). It's the basic SQL homework, well documented and easy to implement.
Kind regards

Georger

user11288935 wrote:
I'm new to APEX and was trying to solve this problem:
To put it simply: I have a table, square_table, that contains two fields: input_number and square_value.
All I want to do is when a user enters an input_number of 'the model of form and report', the squared value is automatically calculated and recorded with the new number to the square_table.
Someone post a solution (as the possible detail, pls :)? I've seen many tutorials and no luck.

Thank you very much

Tags: Database

Similar Questions

  • Problems with the MAC address duplicate when creating new jobs virtual

    We use the MAC addresses of vWorkspace management. This means that we have the option set as an attachment with the basic MAC address pic01. This has worked well so far. We now extend our VDI environment with the new Virtual Machines in a new group. But now, we got the question if we create a new desktop computers, the broker for connections will distribute double MAC addresses (see the pic02 attachment). And as you know it will end in a messy DHCP and TCP/IP. Even if we put the basic MAC address to a new range, the broker for connections always distributes the old MAC address range. We restart the broker for connections rather than on the time and the problem is still the same!

    Does anyone have ideas or solutions to this problem?

    If you need additional information just let me know.

    Versions:

    vWorkspace Broker for 7.6.305.845 connections

    Client tools PN 7.6.0.820 (former VM) or 7.6.0.845 (new VM)

    THX and greetings

    Thomas

    Additional accessories:

    Hello

    Address management Mac is for groups of clouds. With groups of clouds, the machines get deleted/re-created very often so we need mac address management to allow the mac address be reused after a certain period of time.

    With traditional groups, the machines are kept for long periods of time if you don't use mac addresses that you will get the number you have described management.

    Thank you, Andrew.

  • IMac, how to stop the white icon files when creating new folders?

    Whenever I create a new folder, the folder contains these white icon files that end up getting deleted. Is there a way to prevent this?

    Thank you

    If you create a new folder with the Finder, there is no hierarchy, you get a single empty, empty folder icon, if you create a new folder in the Terminal with the following syntax blue, there is hierarchy.

    # Do the new folder has with B folder it contains. And C in B and D in C files.

    $ mkdir Pei A, B, C, D

    # Just make folder a.

    $ mkdir A

    Are you using a utility Finder replacement, or creating folders from an application or a script?

  • Impossible to find in the JDeveloper business rules when creating new project

    Hi all

    I'm in Chapter 9 creating a rule of Non - SOA Java EE Application for JDevloper 11 g. I'm following the instructions given in the chapter.
    However I can't find a category of business rules for the creation of a directory of business rules.

    It must probably be activated from a place.
    I tried to look for its meaning with JDev installation but do not have anything.

    However, it seems very basic level problem... Please let me know if anyone knows how to solve

    Thank you
    Haman.

    Published by: user11223806 on August 12, 2009 07:48

    Have you installed the extension of SOA for JDeveloper for help-> updates?

  • What is the component used to select contact in the field "to:" when create new sms on BB OS 4.6?

    Does anyone know which component is used to select contact in the field "to:" when create new sms on BB OS 4.6? What is KeywordFilterField? If yes - how to customize it to make it look like the sms app? Can you give us some examples of code? I'm new in development for BB and I need this functionality in my application.  I will be very appreciate for any help!

    You will need to implement your own field full auto in this case.

  • BlackBerry smartphone how to set the Auto Mode bedside when loading?

    Hi guys,.

    As the topic. How to set the Auto Mode bedside when loading? Because this option, it does not exist in the clock menu options and I think that it was there before I did the upgrade.

    Thanks in advance

    9000 "BOLD"

    Worm: 9000M_PBr4.6.0_rel508_PL4.0.0.243_A4.6.0.297_AT_amp_T

    CTS network provider

    solved thanks to you all,.

  • How to complete the list of values when loading screen

    Hi all

    I have a list of values based on another field (ANOTHER_FIELD).

    for example
    Select the value d, r
    from table_name
    where id =: ANOTHER_FIELD;

    ANOTHER_FIELD has a default value.

    But when the screen is opened to the list of values does not have the default value and the values list is empty.
    Just when it is filled with submission of the form, the list of values.

    Please tell me how can I complete the list of values when loading screen.

    Thank you!

    Hello

    It depends on how you have defined the default value for ANOTHER_FIELD.

    I always set my default settings using a calculation, that runs before header, on the element that defines the value using a static assignment, but to ensure that the calculation is dependent on the order of the day being NULL - try this

    Andy

  • Is impossible to turn on the guest account. Cannot create new user account. "The service user profile Service has no logon. User profile cannot be loaded. »

    Is impossible to turn on the guest account.  Cannot create new user account.  After to try one of those and reboot, the icons of account appear, but when you try to use, the following instructions of error present when you try to log in with the new account or comments: "the user profile Service service has no logon.  User profile cannot be loaded. "I looked at the answers to all the previous ones (including the KB947215) and no not to address specifically.  For the most part, they seem to assume that there is a guest or a new profile in the first place...

    The system is Win 7 Pro 64-bit with all available updates.  I can't say when the last time that the guest account has worked (rarely used) and just found out I can't do new additional user, accounts trying to solve the problem of account of comments... so I have not tried to enter Safe Mode and do a system restore , because I can't yet identify a useful restore point...

    There are no entries in the registry for a guest or a new standard user account.  The registry entries for the three accounts normal-quickly (2 x admin, 1 x level) seem to be appropriate.  Watch register computer/HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

    S-1-5-18 = system profile

    19 = local service,

    20 = network service,

    21 long numbers + 1004 plus User1 (admin),

    22 long + 1005 plus 2 user (admin),

    23 plus long + 1006 is user3 (standard,

    and no comments or additional profiles appear.

    C:\Users includes

    All users,

    User1,

    User3,

    By default,.

    Default user (which is inaccessible for me, even as an administrator),

    Public,

    User2,

    No guest or additional profile appear.

    All except the default user (I can't open) seem to have the appropriate, NTUser.DAT files although I don't know how to check for corruption.  Having both a default value

    and a default user folder seems hokey.

    I think I understand instructions how to fix or remove a corrupted profile, but that does not apply to the guest account or profiles that do not exist.

    Help?  Ideas?

    This message contains the strange solution.

    [Plan B - I found one thread where one user said that the same symptoms of the problem that you experience this problem solved]

    - - - - - - - - - - -

    Plan h - while another user said that it was caused by a file Windows Live problem

    This is the thread I can not create a new user account (Windows 7): the user profile service service doesn't have the logon

    You find it difficult to follow the thread as it's long and reported problem by different people to confuse it and there is also a bit of bickering [long filaments often end up being quite incomprehensible].

    ..., See references to the event viewer in the middle of page 4 and Windows Live we [at the bottom of page 2 more on page 3].

    I see not the logic of the any of those things, but if one of them do things long enough that you are trying to create new accounts that works, you will know how in the future until a proper solution is found.

    This is the useful part where this user has tested the solutions proposed in this thread linked above: -.

    This has proved to contain leads to a difficulty.  Have to admit, when I read everything the first time, several days, I did indeed find it confusing and even the parts that I "heard" (sorta) does not appear to be related to my symptoms.

    It turns out that the answer of JDMICHAL May 17, 2011 contained this:

    (1) C:\Users\Default\AppData\Local\Microsoft\Windows open live
    (2) this directory has two subdirectories with a single file of each. Go into each directory and apply the following:
    (a) make a right click on the file, open the properties.
    (b) click the Security tab.
    (c) it will issue a message: "to continue, you must be an administrative user with permission to view this object's security properties. Would continue you? ». Click on the button continue.
    (d) click on the Add button...
    (e) ' everyone' type in the box at the bottom of the dialog box. Click on "check names"; It should be emphasized the "everyone". Click OK.
    (f) ensure that the new "Everyone" entry "read" and "read & run" check under the column "allow".

    After doing this for two files, attempt to connect to the account. He must undergo.

    The procedure (bascially) worked... Although the different answers on my system differed slightly along the way (perhaps due to the slightly different versions of Win 7?, because I was already logged in as an administrator?).

    In any case, "Everyone" with the read and read/execute permissions adding to these two files seems to have done the trick:

    C:\Users\Default\AppData\Local\Microsoft\Windows Live\Bici\Bici1_00.sqm

    and

    C:\Users\Default\AppData\Local\Microsoft\Windows Live\SqmApi\SqmData720896_00.sqm

    Thank you for leading me to this!

  • Photoshop cs6 shifts when creating new file

    When creating a file the program is lagging about 4 to 7 seconds, when I save the file and re - open, there is no lag, at the opening of the older files is no this lag as well. When looking at the CPU usage, it seems to choke when creating new files. Does anyone have the same problem? I've updated photoshop and all my drivers. My system below features:

    Windows 10

    I7 - 4790 k

    GTZ 780

    16 GB of ram

    OK, figured out, this is the plugin extensis font management, I update that I have to leave for now, but now the system is back and catchy as usual, thanks to all.

  • Select the first value in the list of values when running in poplist

    Hello
    IM using forms 6i. I filled the poplist by request. But what I need, I want to choose the first value in the list of values when running...

    That is to say, during execution, the poplist should have chosen its first value in the list of values.

    What to do...

    Concerning
    Sery

    WHEN CREATING a RECORD of the block of the list item or after the filling of the list item, you can write

    : my_list_item: = GET_GROUP_CHAR_CELL ('my_list_item', 1); / * If the data type of the item in your list is character.*.

    Here, instead of 1, you can give any clue... 1: value to the first list item position

  • TB 31.5.0 Win 7 after the TAB key for the automatic update no longer creates new address line "write" (enter the done key) but I want the TAB key! Why this keep happening after

    TB 31.5.0 Win 7 after the TAB key for the automatic update no longer creates new address line "write" (enter the done key) but I want the TAB key! Why is - this seems to happen after each automatic update? Cant we get 'option' to use the TAB key to navigate through the lines of address "write"?

    TAB through the fields that exist. It is the function of the TAB.

    Otherwise you could never use TAB to go out in a field for example: subject. It would create an indefinate number of fields and are unable to function as a TAB key.

    TAB does not back to THE fields,
    New crests to THE fields or donkey typing/selection enter/return address, you can use the selection of mouse click.

  • I activated the auto updates. When I take the update it says in the center of the page "the page failed to load".

    I activated the auto updates. When I take the update it says in the center of the page "the page failed to load".

    I tried to take different paths, as via the Control Panel, but it's the same thing.

    Operating system?

    Try the following: -.

    Open search Vista Start Menu Bar and type: RUN

    Click OK

    Type the following lines, and after each one, click OK: -.

    regsvr32 jscript

    regsvr32 vbscript

    regsvr32 /i mshtml

    No guarantee

    TaurArian [MVP] 2005-2010 - Update Services

  • I get the Windows 0xc0000135 error when opening new tabs in Google Chrome. Help!

    I get the Windows 0xc0000135 error when opening new tabs in Google Chrome. Help!

    It gets really annoying. The very first 2 or 3 times I opened a new tab, I get this error message and
    I have to close and open a new one until I get a tab that works. Anyone who can help is greatly appreciated.
    -Eric

    Hi EricKelso,

    The question you have posted is related to Google Chrome and would be better suited to the community of Google chrome. Please visit the link below to find a community that will support what ask you
    http://www.Google.com/support/forum/p/chrome

  • I can't find the field 'upload file' when creating a web form

    Hi, I can't find the field 'upload file' when creating a web form. This is the site I put for my client home | ServilogEX. And I attach a display of the form.

    Am I missing something?

    Thanks in advance,

    Diego.

    screenshot.png

    Hi Diego,.

    Your site map is too low. I believe that you must 'webMarketing' plan or higher to support downloads of files in the web forms.

  • Message from blackBerry Smartphones: the page you requested was created using data from the form.

    While closing a link to expedia.ca a message come to say: the page you requested was created using data from the form. This page is no longer available.  If you resend the data, any action that has been specified by the form will be repeated.  You want to resubmit the data?  When I click Yes or no, nothing happens except that the message just reappears.  I can't get rid of it so I can't do anything else on my phone, except to answer a call if someone calls me.  How can I get rid of this message from my phone?  I tried to turn it works... even by leaving off the coast for 5 minutes before turning turn it back on.  I can't even check my OS because I do not what anyone on my phone.  I hope someone can help me with this.

    Have you tried a battery pull?  This should fix a problem as you described.

    With your phone, remove the battery, then replace a minute later.  This will do all sorts of wonderful things to your phone for free unclaimed memory, delete no cited source points and make your phone run smoothly.

    Try it and let us know if it does the trick.

Maybe you are looking for

  • iPod nano 3g does nothing when I connect it

    Hi, it s my first product Apple that I had and I have a problem and it s the latter. It doesn´t do anything when I connect it to the computer or to an adapter. It doesn´t appears the RADIUS on the battery icon, or doesn´t sync to Banshee (isn't iTune

  • separate the function but keep entries resulted in figures

    Hello I created a function related to other cells. For example: cell A1 should result in B3 less B2. Now, I want to keep the number of a1 license but dissociate cells from other cells B3 and B2 so that I can copy and paste the number to another cell.

  • Plug the VGA cable causes the crash or black screen on my Thinkpad. Help!

    On my newly purchased W530, a cable VGA-causes a crash or a black screen on my Thinkpad. The foregoing happens whenever I have insert the cable VGA which is quite annoying, because I use it with my projector every day. Accidents seem to occur more of

  • WUMC710 Web install are not accessible

    Hi all I meet a problem today, I can't solve right now. My WUMC710 has disconnected form the wifi router and no matter what I try cannot access the web via 10.100.1.1 fix-based configuration.  Connection WPS has never worked - don't know why, even if

  • Doubts about the use of Eclipse

    Hi guys, I tried to use Eclipse for development of bb. I am new to usuage of the Eclipse framework I don't know where to find the products of System.out.println (SOP). There is nothing in the console of the manufacturer of Blackberry, where to check