Server side package or emrbace Apex and use its capability

This may not be a suitable question for this forum but I can only try.
My experience with APEX is primarily doing everything in the APEX “front end” and only calling PL/SQL packages in the database when absolutely necessary.
A colleague insists on putting everything in a PL/SQL package in the database and putting calls in APEX to functions & Packages.
One example I can quote is we had a conditional tab which could only be viewed if you had an entry in a table.
I did the SQL code for the tab in the conditions section in apex. My colleague then reworked my code to call a PL/SQL package and placed the code I had written on the server.
Another example was a demo of lazy load on an input field he loved it but then when he realised it could not be done via a call to a server side package dismissed the lazy load idea as not relevant even though it would make our users life easier.
I am soon to have a battle royal over which is the best approach. Any comments.

First of all: All PL/SQL Logic you enter, either in APEX or in packages is always executed on the server. Your browser doesn't understand PL/SQL very well...
Putting PL/SQL logic in packages - instead of in APEX regions - has some advantages though (not extensive list):
- You can easily unit test package procedures/functions.
- You can reuse the package procedures/functions in the same app or in other apps as well.
- PL/SQL code in packages is compiled in APEX it's dynamic and has to be parsed, so creates some overhead.
- When you make changes to your codebase or columns you can spot that in your PL/SQL packages (they might get invalid). You won't notice that in your APEX regions until you (or end user) run the page and encounter an error.
So, yes, putting logic in packages has advantages. But on the other hand, a statement like "if we can't do it in a package, we don't do it all" might be a little to restrictive...
Just my 2 cents

Similar Messages

  • HT204053 What are the pros and cons of 1) choosing to use the SAME Apple ID for iCloud services on one side, and purchases on the iTunes Store, App Store, and iBookstore, on the other side; or 2) to have and use two separate Apple Ids for these "two sides

    All is in the title, so I repeat it below with a better identation.
    What are the pros and cons of
    1) choosing to use the SAME
                                                  Apple ID for iCloud services on one side, and
                                                  purchases on the iTunes Store, App Store, and iBookstore, on the other side; or
    2) to have and use two separate Apple Ids for these "two sides"?
    P.S.
    I have loads and loads of free podcasts in iTunes in my iMac, that are certainly more thant the 5 gigas the iCloud provides for free, so I don't want those to go to the cloud. But this is perhaps a different question...
    Also need to mention that I have itunes on a mac, a pc and an iphone.
    Sorry to look so silly with this question, but I don't get the "big picture".

    You need to create a user account for your wife (or yourself depending on who has the current user account). When syncing, each of you should sign in as a separate user, login to iTunes and then sync. I had this problem when my sister got an iPhone. When we did her initial sync, everything on my iPhone showed up on hers. Apple gave me this solution.

  • How do I make my imac into a web server it is nearly brand new and uses OSX 10.8.4

    How do I make my imac into a web server it is nearly brand new and uses OSX 10.8.4, if someone to point me towards instructions it would be most helpful.

    http://www.coolestguyplanettech.com/downtown/install-and-configure-apache-mysql- php-and-phpmyadmin-osx-108-mountain-lion
    Regards.

  • Could you let me know how to enable and use ITS on SAP ECC5  and ECC6

    Could you let me know how to enable and use ITS on SAP ECC5  and ECC6

    Hello Tina,
    please see here
    in tree select "Installation and Activation"
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/4f/2e6a52c3cdc44d83169b181a9c62ba/frameset.htm">http://help.sap.com/saphelp_nw70/helpdata/en/4f/2e6a52c3cdc44d83169b181a9c62ba/frameset.htm</a>
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/b8/2a8d65be7eee4eb66067f8a33d1c8b/frameset.htm">http://help.sap.com/saphelp_nw70/helpdata/en/b8/2a8d65be7eee4eb66067f8a33d1c8b/frameset.htm</a>
    best regards

  • Submit Statement for calling smartform and using its data in another report

    Hello Everybody
    There is one report which display smartform as an output.  My requirement is to call that report and return back without showing its output and use its data for futher use in the report. i Hope i m clear with my query. Plzz reply its urgent.
    Currectly i m using this statement :
    SUBMIT  ZPOPRINT  WITH PO_NUM EQ IT_EKKO1-EBELN exporting list to memory and return.
    while executing the program, after this statement i m getting an output.  but i need to store it in memory, not to display the output.
    Waiting for ur reply..
    Thanks and Regards
    Virendra

    Hi.
    I have not done this kind of requirement. What i said was just an option which came to my mind. Also not sure whether it will work for you. While submitting ,instead of exporting list to memory do submit to SAP-SPOOL. Then later read the spool content to internal table.
    I am referring you two links for this.
    [Submit to SAP-SPOOL|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_LIST_OPTIONS.htm]
    [Spool to Internal table|spool file data to internal table].
    Also search for related topic in SCN.
    Regards
    Kesav

  • How to enable and use drag capability on MacBook

    I have early 2009 MacBook white, with trackpad having one button. (hope you all remember)
    I want to enable and use dragging capability. How can I do it?
    Anyone can show me via pictures or video, how to enable and use drag.

    It says double tap for dragging, I have even enabled it, but it's not working.
    Can someone show how to use double tap for dragging?

  • I bought an Apple TV and used its yesterdary all the day...when I rented a film, its spend about 4 hours to charge... I think it isn't normal... Did Apple had some problem in their network yesterday? Do you have some clue to me? Tks and Rgds

    I bought an Apple TV and used its yesterdary all the day...when I rented a film, its spend about 4 hours to charge... I think it isn't normal... Did Apple had some problem in their network yesterday? Do you have some clue to me? Tks and Rgds

    Download time is mostly related to your internet connection speed.  Beside, there's no need to wait for the entire movie to download before you start watching it; only some buffer needs to be downloaded.  When the buffer is filled, you should get a message that your rented movie can now be watched which usually happen within a minute of the purchase on standard cable connection.

  • ***URGENT*** What Server side objec should we develop and deplot to OAS?

    Helo,
    I use Jdev3.1 as my Java IDE.
    I have to develop a server side java objects that will be deploy to OAS 4.0.8. My server side java objects will wait for client calls then perform certain business logics depending on each call? Please give me some advises about what type of java object should I develop.
    From JDev help doc,I read about Application Module, EJB, Business Component, JSP..I am new to JDev and Java so I don't really undestand about the relationship between these copmponent, and what should be used since they seem to do the same thing. Please help, I have to submit a proposal next week. Thank you very much in advance.
    Vivian

    Yes, I'm parsing some XML data files. The full stack trace follows.
    javax.xml.parsers.FactoryConfigurationError: Provider <HTML> could
    not be instantiated: java.lang.SecurityException: class "<HTML>"'s
    signer information does not match signer information of other classes
    in the same package
    at javax.xml.parsers.DocumentBuilderFactory.newInstance (DocumentBuilderFactory.java:99)
    at XMLHandlerStrippedDown.<init>(XMLHandlerStrippedDown.java)
    at onlinequestion.init(onlinequestion.java)
    at sun.applet.AppletPanel.run(AppletPanel.java:353)
    at java.lang.Thread.run(Thread.java:552)
    javax.xml.parsers.FactoryConfigurationError: Provider <HTML> could
    not be instantiated: java.lang.SecurityException: class "<HTML>"'s
    signer information does not match signer information of other classes
    in the same package
    at javax.xml.parsers.DocumentBuilderFactory.newInstance (DocumentBuilderFactory.java:99)
    at XMLHandlerStrippedDown.<init>(XMLHandlerStrippedDown.java)
    at onlinequestion.init(onlinequestion.java)
    at sun.applet.AppletPanel.run(AppletPanel.java:353)
    at java.lang.Thread.run(Thread.java:552)

  • Are Server-Side Includes in Dreamweaver ok to use?

    Hi, I'm considering using the built-in feature, 'Server-Side Includes' in Dreamweaver CS3. Can anyone tell me if this is ok to use, or is there a better way of approaching this process?
    Many thanks in advance!

    Yes, server-side includes are an excellent feature. Just make sure that your server supports them. On many servers, you need to change the file name extension from .html to .shtml.
    The other thing to remember is that a server-side include should just be a fragment of a page. It should not include a DOCTYPE declaration or duplicate <html>, <head>, or <body> tags.

  • Importing new package and use its methods...?

    Hi,
    i have curl package. I need to include its methods in my pgm. So how can I use that package.? Since i am new to java from Php.so can any one help me......?
    Thanks in Advance...........

    Look what Google found:
    http://www.jarticles.com/package/package_eng.html
    Also make sure that the library is in your classpath.
    You also might want to learn the java basics first, before doing anything else.

  • Calling a stored procedures and using its output parameters in a report

    Hi,,
    I have a procedure defined in a package on the database. This procedure returns a number of output parameters. How do I call this procedure and use the output parameters in my report ?
    Thanks, Mark

    Depends on the level at which the procedure has to be called. If its at report-level, call the Form in the BEFORE-REPORT-trigger (or AFTER-PARAMFORM) and store the out-values in Placeholder-columns. These you can use anywhere in your report.

  • Using a server side package to copy and delete flat files.

    Can anyone tell me if it is possible to copy or delete flat files using comands issued from within a PL/SQL program unit on the server. I know of the package UTL_FILE for the reading and writing of flat files.

    Malcolm,
    if you use 8i, you can create a Java class to do that for you, and call one of it's metohds from PL/SQL, see http://www.oracle.com/oramag/oracle/00-Mar/o20java.html
    null

  • SSI (Server Side Includes) - Can't see when using "Preview in Browser"

    Hi,
    Using Dreamweaver CS3
    I can see all my includes in Design View, but not when I "Preview in Browser"... Any way to see them also when I preview in browser?
    Best regards
    CB

    That worked very well, thank you so much~~

  • I have an OpenGL application that run in a window. I would like to use this application and use its window in a VI interface. Note t

    hat I DON'T WANT TO OPEN the window application FROM the Labview VI BUT IN the Labview VI. I think it's possible to do that and to do communicate the OpenGL application with the Labview Interface using an ActiveX but I don't know how. Can someone help me ?You can answer the question or send it at [email protected]
    Regards.
    Cyril

    hat I DON'T WANT TO OPEN the window application FROM the Labview VI BUT IN the Labview VI. I think it's possible to do that and to do communicate the OpenGL application with the Labview Interface using an ActiveX but I don't know how. Can someone help me ?The desired behavior you desribed may not be possible with that application. In general LabVIEW does not offer a window object that other standalone applications can run it. The closest thing is the ActiveX container. If the programmers for your application created an activeX control of your program and they provided documentation, it should be pretty easy to incorperate the app and labview into one window. I recommend contacting the manufacuturer of the app to see if they have an activeX control version of the app.

  • Is there a way to import a .psd and use its data?

    Like if I were to take a non flattened, layered .psd and load it in using as3, would I be able to get information about each layer in the .psd, such as position, name of the layer, etc.?

    You cannot load PSD at runtime using AS3 (well at least not easily). If you're talking about importing to FLA this page may answer your question: http://help.adobe.com/en_US/flash/cs/using/WS1D02DB71-AB5A-4f20-B359-C0AB1723B41Da.html (but then this is AS3 forum )

Maybe you are looking for

  • Looping at SQL level

    Oracle Gurus, I have a requirement. For a particular charge_id and part_number combination a table contains 3 records. Out of these 3 records the record with least charge_id is the oldest record and that with highest charge_id will be the new record.

  • How to use POST method to send & recieve XML data in WebDynpro application

    Hi There, How can we use POST method in a Url (callign weebdynpro application) and pass XML String content. How can we read this this inside WD Application. Any pointers will be great help. Rgds

  • Only show invoice in MIRO that are completely goods received.

    Hi, Is there any way to block invoices from listing in the PO search function in MIRO before they the PO is completely goods received and all positions are closed? All tips are appreciated!

  • EIS Template SQL Drill through

    Has anyone been able to successfully use the template SQL drill through option in EIS? It seems that any modification to the default code only results in the error message "No display columns defined for a selected report". Maybe I'm missing somethin

  • Regarding Uplod file with Kingsoft Spreadsheet

    Hi, I am trying to upload file with Kingsoft Spreadsheet using  ' ALSM_EXCEL_TO_INTERNAL_TABLE ', 'GUI_UPLOAD',' TEXT_CONVERT_XLS_TO_SAP ' function modules,but data is not getting into internal table.Is t here any function module to upload Kingsoft S