Do you use APEX built-in DML functionality or code it manually?

Just out of interest more than anything, wondering what everyone else does, and what advantages/disadvantages they see in their method?
Personally I never use the built-in stuff for manipulating, I create all the items and then a PL/SQL procedure in a package. Then I code a process to call that procedure to do any inserts/updates/deletions. I know this is a long way around to do something which APEX does fairly well (for simple situations at least anyway) but I find it far more flexible to go with this route and I prefer anything which is changing data to live on the database (as an object).
It also means that (other than changing the columns etc) changes can be made a lot more easily - APEX version control is pretty poor for a production environment and team-coding so the fewer changes to the app the better.
Anyone else any views?

I pretty much always use packaged up stored procedures for DML operations. All business logic goes into the packages where possible - in fact, the only element where I break this encapsulation methodology is when defining reports - even then, I've sometimes implemented reports as a table function, although this approach can cause more problems than it solves, performance-wise. Views provide an acceptable degree of abstraction in those cases when I want to hide the complexity of a query.
It's pretty rare that I'll be interrogating and updating a single table, although I take Roel's point re: updatable views and "instead of" triggers.

Similar Messages

  • Apex PPR built-in Javascript Functions

    Can someone please explain the differences between the following apex built-in js functions as used with ppr reports.
    If possible please specify the parameters they take.
    1. $a_report();
    2. init_htmlPPRReport();
    3. html_PPR_Report_Page();
    I have a requirement to show different child ppr reports based on the values passed from a parent report. I would like to show these reports dynamically. The child reports all get their values from common page items that I've defined.
    I am to do this with one child report, but I'm having difficulty with more than one child report.
    I can not create an example on http://apex.oracle.com/pls/otn because the db structure it is too big.
    I hope somebody understands what I'm talking about and points me in the right direction.
    Cheers,
    Sutherland

    I solved this problem.
    It was because when the child reports initially loaded they returned no data because the items contained no values. Note that the items are only populated when i execute the js function from the parent report which pass the current row values of the parent report to the common page items. The common page items are used in the where clause of the child reports.
    So initially the apex engine got no data from the db for the child reports. I had to change the where condition that included one of the common page items with the nvl function so that i can get something back if the item is null.
    Thus it works perfectly.

  • Where html pages located, which created by using APEX?

    Hi,
    I am using APEX 2.1(Oracle XE) to develop an app, would like to know where html pages stored?
    In other word, how can I put the existing html pages into APEX web server? I don't want to run two web servers on same computer.
    This question may relate to update APEX from 2.1 to 2.2, how to do the upgrade, my APEX is included in Oracle XE.
    Thanks.

    Hello,
    >I followed the method to view :8080/i, it's
    interesting, all stuffs are XE's but not find my own
    pages built by APEX.
    >I guess I'm confused now. You say "built by APEX"
    APEX doesn't build static pages so there is no way to
    access them statically.
    I thought what you wanted is you have static pages
    that you want to serve off an XE instance without
    using another webserver. By uploading your static
    html files into the /i/ directory you can serve them
    from there using the embedded webserver.
    If you want to server your pages from within the
    framework itself that at least means uploading them
    into the Shared Components and then linking to them
    in an iframe or frame to get valid pages or at the
    most getting the content sections into the database
    and pulling them into a region on a page.
    Your question is a little vague, can you be more
    detailed on what exactly you want and what you
    expect.
    CarlSorry for my unclear questions. But your answers are very right to me. Yes, I want to put my existing static html files into the /i/ directory, so I can serve them from there using the embedded webserver. I will upload them into Shared Components to try, I appreciate if you tell me how to make the link between these html pages to iframe. I am newby to this.
    My second question is that I use APEX built some test pages, but I can not find them in :8080/i virual fold.

  • Is a separate photo-backup necessary when you use the catalogue-backup

    Well, the title says it all. When i back-up the catalogue, i assumed the backup would be mede of al the tags added to photo's. When i check the catalogue-files, i see a whole lot of jpg-files. My actual photo-collection contains jpg-, raw an avi-files.
    I have a habit of making a copy of all my photofiles, but now it seems double
    Question: Does de backup-function of photoshop elements 11 actually make a backup of tags and photo's?
    greetz, looking forward to an answer.

    You would have to do this using your operating system or 3rd party backup software.
    If you choose to do this, you would also need to create backups of all of your photos. The responsibility is yours to make sure this all happens; whereas if you use the built in command File->Backup Catalog, then the software takes care of all of this for you.
    Furthermore, making your own backups means you also have to know exactly how to do the restore, should you ever need to do so. Believe it or not, we see a lot of people here in the forums who think they know exactly how to do the restore, only to find they can't get the restore to work. Again, using the built-in command File->Backup Catalog means that the software takes care of all the details of doing the restore via the command File->Restore Catalog. If you make your own backups, you cannot use File->Restore Catalog.
    Unless you really know exactly how to do a restore and make everything work, I would use the built-in commands.

  • What Keyboard Did You Use For Bootcamp

    I was wonder which keyboard you used to install bootcamp. Whenever I install bootcamp it says to press enter but none of my 3 keyboards work, one of which is a apple keyboard.(not the new slim)

    [vEX] wrote:
    con wrote:I use Xmodmap to get the keys to work...then just assign them actions throuhg the global shortcuts in applications
    If youre not gettign any codes, dmesg or xev, turn of the computer switch to the PS/2 port youre using USB to connect the keyboard, USB hid driver hasnt got the functionality to give those extra keys scancodes and the devs dont seem willing to do anything about it...
    Follow the wiki hotkyes instructions and you cant go wrong, someone posted link to them earlier.
    Not wanting to sound rude, but if you had even bothered to read the thread you would have seen that the keys are working fine with xbindkeys, it's the process of autostarting xbindkeys with openbox that doesn't work.
    However, I've now started using the built in keybind function in openbox, though for some reason I can't execute mpc commands (ie: mpc stop), it just won't work. Instead I have to use Sonata (ie: sonata stop), could the reason be that mpc outputs info while Sonata does not when you use those commands?
    EDIT: It wasn't, I added the --no-status switch but it still won't work with mpc.
    Actually i read every post in this thread before posting, sorry if came of sounding mean (sv:elak) or something. Thought you just wanted to know what apps ppl were using to get multimedia keys to work (alot of ppl seem to be having problems with this), didnt realize that you wanted help. Maybe choose a better title if you dont want too confuse ppl like me. Again sorry:)

  • What application do you use for extra/multimedia keys on the keyboard?

    Just curious on what applications there are available for all these extra keys manufacturers keep placing on keyboards, thankfully my keyboard only has a few extra and they aren't in the way. I've been using LinEAK for a while now but it doesn't seem to be maintained any more so I was wondering if there are any better alternatives.

    [vEX] wrote:
    con wrote:I use Xmodmap to get the keys to work...then just assign them actions throuhg the global shortcuts in applications
    If youre not gettign any codes, dmesg or xev, turn of the computer switch to the PS/2 port youre using USB to connect the keyboard, USB hid driver hasnt got the functionality to give those extra keys scancodes and the devs dont seem willing to do anything about it...
    Follow the wiki hotkyes instructions and you cant go wrong, someone posted link to them earlier.
    Not wanting to sound rude, but if you had even bothered to read the thread you would have seen that the keys are working fine with xbindkeys, it's the process of autostarting xbindkeys with openbox that doesn't work.
    However, I've now started using the built in keybind function in openbox, though for some reason I can't execute mpc commands (ie: mpc stop), it just won't work. Instead I have to use Sonata (ie: sonata stop), could the reason be that mpc outputs info while Sonata does not when you use those commands?
    EDIT: It wasn't, I added the --no-status switch but it still won't work with mpc.
    Actually i read every post in this thread before posting, sorry if came of sounding mean (sv:elak) or something. Thought you just wanted to know what apps ppl were using to get multimedia keys to work (alot of ppl seem to be having problems with this), didnt realize that you wanted help. Maybe choose a better title if you dont want too confuse ppl like me. Again sorry:)

  • Length of a string without using any built-in functions

    code that returns the length of a string without using any built-in functions.
    thanks
    Sam

    A string is internally represented by a character array.  An array of characters will reside on the stack, not the heap.  Yes, we always learned that String is a reference type, but what goes on in your memory might still surprise you...
    A struct is internally represented by only it's private properties, sequentially on the stack.
    So basically, what I thought is happening by messing with the structlayout: is only tricking our programming a bit into thinking that the top X bytes on the stack represent a chararray, while actually we put them there as a string.
    Wrong. True. And wrong.
    A string is internally represented by, in that order, an array length, a string length, the chars. None of them resides on the stack.
    An array is internally represented by, in that order, an array length and the chars. None of them resides on the stack.
    When you use the FieldOffset attribute to handle the string as a char array, you don't get anything right:
    - the Length returned is the "array length" of the string, which is equal to the string length + 1.
    - the chars returned by the array indexer are shifted by 2 chars (the length of the "string length" field).
    You can use the FieldOffset to make that work, but it needs a little bit more work.
    unsafe static int Test()
    string myString = "This string may contain many string inside this string";
    string testString = "string";
    int countResult = 0;
    fixed (char* myChars = new StringToChar { str = myString }.chr, testChar = new StringToChar { str = testString }.chr)
    // The 2 first chars of the array are actually the string length.
    int myCharsLength = myChars[1] << 16 | myChars[0];
    int testCharLength = testChar[1] << 16 | testChar[0];
    for (int i = 0; i < myCharsLength - testCharLength + 1; i++)
    if (myChars[i + 2] == testChar[2])
    for (int j = 1; j < testCharLength; j++)
    var c = testChar[7];
    if (myChars[i + 2 + j] != testChar[j + 2])
    goto endOfCharAnalyses;
    countResult++;
    endOfCharAnalyses:
    continue;
    return countResult;

  • Can you use surround sound with the built-in optical out on dual 1.8 g5?

    Ok here's the thing, I just got the new version of Final Cut Studio, and was wanting to set up my g5 to utilize the surround mixing capabilities of SoundTrack Pro 2.
    I have verified that i'm getting 5.1 sound via Apple's DVD Player, but when i go to Applications-> Utilities->Audio MIDI Setup, I cannot configure the system for multiple channels. It only allows me to output stereo.
    Is my assumption of being able to use the built-in optical out for 5.1 monitoring incorrect? Do I have to go buy a firewire/usb audio interface?
    Info about my system:
    I have a Bose Acoustimass 10 5.1 Speaker setup.
    I have a Onkyo DR-C500 5.1 Receiver, which does dolby pro logic 2 and dts decoding.
    The Onkyo Receiver is hooked up via the spdif optical output of my G5.
    I have a Dual 1.8 G5 with this info about the Built In Sound Card:
    Devices:
    Texas Instruments TAS3004:
    Inputs and Outputs:
    Line Level Input:
    Controls: Left, Right
    Playthrough: No
    PluginID: TAS
    Headphones:
    Controls: Mute, Left, Right
    PluginID: TAS
    Internal Speakers:
    Controls: Mute, Master
    PluginID: TAS
    Line Level Output:
    Controls: Mute, Left, Right
    PluginID: TAS
    Crystal Semiconductor CS84xx:
    Inputs and Outputs:
    S/PDIF Digital Input:
    Controls: Mute
    Playthrough: No
    PluginID: Topaz
    S/PDIF Digital Output:
    Controls: Mute
    PluginID: Topaz
    Formats:
    PCM 16:
    Bit Depth: 16
    Bit Width: 16
    Channels: 2
    Mixable: Yes
    Sample Rates: 32 KHz, 44.1 KHz, 48 KHz
    PCM 24:
    Bit Depth: 24
    Bit Width: 32
    Channels: 2
    Mixable: Yes
    Sample Rates: 32 KHz, 44.1 KHz, 48 KHz
    AC3 16:
    Bit Depth: 16
    Bit Width: 16
    Channels: 2
    Mixable: No
    Sample Rates: 32 KHz, 44.1 KHz, 48 KHz
    Dual 1.8 G5 Mac OS X (10.4.9)
    Dual 1.8 G5 Mac OS X (10.4.9)
    Dual 1.8 G5 Mac OS X (10.4.9)
    Dual 1.8 G5   Mac OS X (10.4.9)  

    NZane-
    Greetings and welcome to the Apple boards.
    The Mac puts out encoded 5.1. It is the function of the amplifier, receiver or decoder to take that signal and turn it into something useful. At minimum you will need a device that can accept that output and turn it into something useful.
    Most studios that I am familiar with want to be able to use their own 5.1 decoder, amp and speakers. Juicier sound!
    Luck-
    -DaddyPaycheck

  • Query for create manual tabular form using apex collection add row button functionality

    Hello everyone
    My requirement is i created a tabular form manually using apex collection but if i click on add row button then previously selected data refreshed and added new row in this form it is fine.but i don't want to refreshed previously selected data and click on add row button then add new row .how it is possible? plz help
    Thanks & Regards,
    Ujwala

    Ujwala
    Instead of starting a new thread with the same question as Query for create manual tabular form using apex collection add row button functionality.
    Could you answer the question about what you see while debug the javascript code.
    If you don't understand the question or have trouble debug javascript let us know.
    Nicolette

  • HT4913 i am trying to get my computer and my wifes computer on my itunes match.  i did the add a computer function and it says that this computer is already associated with an apple id...if you use itunes match with your apple id etc for 90 days...please

    i did the add a computer function and it says that this computer is already associated with an apple id...if you use itunes match with your apple id etc for 90 days...please explain.  is this going to screw my wifes account up? 

    If you both have seperate iTunes Store accounts then basically, yes, it is going "screw up" your wife's account.
    iTunes Match is designed as a single-user service which is associated with one and only one iTunes Store account ID. If you have subscribed on your account and want to activate the service on another computer that is already signed in with an account the present account must be signed out and then iTunes signed into your account. This means the other computer will have complete access to your account and will only be able to make purchases on your account. iTM is not designed to be signed in and out at will. If she has apps purchased with her iTunes Store account they will not be able to be updated.

  • What function would you use instead of "IF" when referencing durations from a pop-up menu. Ie; if c4 equals 1h enter 280, if c4 equals 30m enter 160, etc. IF works fine if c4 is formatted as text but returns 0 when formatted as pop-up.

    What function similar to IF would one use when the reference cell is a pop-up menu of items in duration format?
    Example: if C4 equals 1h enter 280, if C4 equals 30m enter 160, etc
    i can get it to work fine if I format the cell to text but I not only need it pop-up, I also need it to be written in duration format because it's used as duration in other functions.
    thank you for your help in advance
    Christina

    Hi Christina,
    A screenshot is always helpful.
    C4 is your popup? You want to chose a duration there and have 280 or 160 show up somewhere else? Are they the results of a mathmatical formula or do you want a lookup table to show them?
    I suspect something else is going on in your table. I have no trouble having a popup recognized as a duration:
    The formula in C2  =DUR2MINUTES(B2) displaying "60" as expected. Note that "60" is not a duration. If I want C2 to be a duration I need the formula to read:
    =DUR2MINUTES(B2)&"m".
    I hope this helps, if not, post a screenshot including relevant formulas.
    quinn

  • TS3989 Can you use the search function in a shared photo stream? How?

    Can you use the search function in a shared photo stream? When I try to search in the shared photo stream it goes to search in my photos.

    I'm not sure there is a solution to your question, other than to not keep so many photos on your devices.  If you delete a photo from photo stream, it will delete it from all your devices.  To keep them, first save them to your camera roll (tap Edit, tap the photos, tap Share, tap Save to Camera Roll), then import them to your computer as explained here: http://support.apple.com/kb/HT4083.  However, given the number of photos you have, a much more practical solution would be to transfer them to your computer using an app like PhotoSync, which will select them all at once and transfer them over wifi.
    I'm not sure why you're seeing such a discrepancy in the amount of space taken up by your photos.  It's possible that something is corrupt given the large number of photos on your device.

  • Save Points to override APEX DML functions

    I have some APEX pages that run some underlying procedures which do DML functions on 6 different tables. At the start of each of the DML functions which are in PL/SQL packages, I have set Save Points. I process thru a number of additional pages and reach a point where I may need to commit or rollback all those prior changes. Whenver I try to rollback I get ORA-01086 Savepoint 'xxx' never established. How can I check to see if the savepoint gets created so I can determine why the rollback function doesn't work.

    It's likely that APEX is performing a commit during processing, and thus erasing your savepoints.
    See +{thread:id=708781}+ and +{thread:id=2130631}+ for discussion on when APEX will commit. If any of the processing will cause APEX to perform a commit, see if it's possible to reorganize things so that APEX session state processing occurs before/after your transactional processing.
    (Please update your forum profile with a better handle than "user8014695")

  • Blog or Wiki applications built using APEX

    I have been tasked with finding a ready-made solution that we can use as a developers' scrapbook where development team members can store useful hints/tips, code samples, coding standards etc etc
    An APEX solution would be best (something similar to Carl Backstrom's APEX demo app, maybe) since it's familiar territory and it would keep the sys admins happy - but I'm open to other solutions.
    A non-APEX solution would have to be Windows based, with no server-side requirements.
    I quite like TiddlyWiki (http://www.tiddlywiki.com) but it's not multi-user. There is a 'groupauthoring' plugin for it (http://tiddlywiki.bidix.info/) but it requires use of Ruby scripts on the server.
    Online blogs like blogspot would be great, but The Business wants to keep everything in-house.
    So, has anyone built a blog or wiki-type application using APEX that they would be willing to release 'into the wild'? Or is there another solution that I've missed ...
    Cheers
    Richard

    Hello,
    Here is an example of the beginnings of the wiki application, to edit add a subject just login it uses open credentials,
    http://apex.oracle.com/pls/otn/f?p=2757:709
    the code as it stands here can be downloaded here (it differs slightly from the demo version as i've actually done some dev work on it)
    http://oracle-apex.svn.sourceforge.net/viewvc/oracle-apex/wiki/
    Feel free to download add critic etc, I defiantly am still looking for someone that knows regex really well it would help greatly speed development along.
    There will be movement on this and the forum application as I finally have a bit of time to work on these again, of course anyone that wants to help is greatly appreciated.
    Carl

  • Both my boss and I have the iPhone 5C for Verizon.  When I text, I have the little microphone next to the space bar, allowing me to use the speech to text function.  He does not.  How do you turn this on or remedy this problem?

    Both my boss and I have the iPhone 5C for Verizon.  When I text, I have the little microphone next to the space bar, allowing me to use the speech to text function.  He does not.  How do you turn this on or remedy this problem?

    Does your boss have Siri turned ON? See Settings > General > Siri.

Maybe you are looking for

  • Extend wifi range with 2 airport express

    I currently have an airport express on my main floor for wifi, can I add another airport express on 2nd floor to extend the wifi range if both of them are connected to a wired ethernet switch?

  • IMovie for PC

    At the present time I'm using a Macmini in my taxi cab to play converted Karaoke CD+G files for my customers who like to participate in Cabaraoke. I also want to use it to record the performances. I'm currently using a Sony laptop with a web camera,

  • Error code -5002

    Hi , I've tried to update a sale order (ORDR), but it returns the error code "-5002,msg=” Document rows cannot be closed concurrently with the other document modifications you have made[RDR1.LineStatus][:Line:0]” the code is the following:       Dim

  • Scheduling PC twice a day

    hi, i need to schedule my PC to run twice a day: once in the morning and the second time at noon, how can i perform it ? thanks a lot Nir Kaminsky

  • Caller NAME on Transfer OUT

    CUCM 7.1.3 We have users that forward their extsnions to their mobile telephones.  The caller number transfers to the mobile but not the CALLER NAME.  Is there some configuration to accomplish this?.