Best way to generate dynamic html in apex

Hi all,
I have to create a complex page in html with tables within tables, ajax and a very large number of items (text fields).
Like to have your opinion to know what the best solution to create this page. The HTML within the PL / SQL makes it difficult to manage in future. There is another way to generate HTML code, without being inside of PL / SQL?

Hi 819517,
You should be able to get your desired effect using regions and sub regions.
As you can create your own custom templates for both.
You may find issues with more than 50 fields on your form.
You can get round this by re using field names (as in a multi row form).
If you are submitting more than a few hundred fields, you may need to look at the settings for modplsql in apache (if you are using it) as the maximum number of form fields is a setting in the conf file.
Regards
Michael

Similar Messages

  • Best way to create an html from application

    I need connect to an Oracle database and generate a static report from the result Query.
    Do you know what can be the best way to create this html file ?
    There is exists some html library to use?
    Thanks in advance

    you don't need a library. html is verry easy to use. you only have to write text to a file with html-tags.
    hope it helps

  • Best way to spool DYNAMIC SQL query to file from PL/SQL

    Best way to spool DYNAMIC SQL query to file from PL/SQL [Package], not SqlPlus
    I'm looking for suggestions on how to create an output file (fixed width and comma delimited) from a SELECT that is dynamically built. Basically, I've got some tables that are used to define the SELECT and to describe the output format. For instance, one table has the SELECT while another is used to defined the column "formats" (e.g., Column Order, Justification, FormatMask, Default value, min length, ...). The user has an app that they can use to customize the output...which leaving the gathering of the data untouched. I'm trying to keep this formatting and/or default logic out of the actual query. This lead me into a problem.
    Example query :
    SELECT CONTRACT_ID,PV_ID,START_DATE
    FROM CONTRACT
    WHERE CONTRACT_ID = <<value>>Customization Table:
    CONTRACT_ID : 2,Numeric,Right
    PV_ID : 1,Numeric,Mask(0000)
    START_DATE : 3,Date,Mask(mm/dd/yyyy)The first value is the kicker (ColumnOrder) as well as the fact that the number of columns is dynamic. Technically, if I could use SqlPlus...then I could just use SPOOL. However, I'm not.
    So basically, I'm trying to build a generic routine that can take a SQL string execute the SELECT and map the output using data from another table to a file.
    Any suggestions?
    Thanks,
    Jason

    You could build the select statement within PL/SQL and open it using a cursor variable. You could write it to a file using the package 'UTL_FILE'. If you want to display the output using SQL*Plus, you could have an out parameter as a ref cursor.

  • Best way to generate ER diagram

    We have Oracle 11g in our environment. I wanted to know which should be the best way to generate an ER diagram. Below are these steps in SQL developer (version of SQL developer is 3.2.x):
    a) View → Data Modeler → Browser
    b) In browser tab, select show on newly created relational model
    c) Then just drag the tables you want (from e.g. the «Connections» tab) onto the model.
    The problem is I am not able to drag the tables.
    I hope I have been able to explain my requirement of generating ER diagram.
    Please revert with the reply to my query.
    Regards

    2) If all the tables are required in ER diagram, then should all the tables be selected in point c) of my post.
    If all the Tables in your relational diagram are to included in the ER diagram, just click the Engineer button.
    If some are to be excluded, you can expand the Tables node in the tree in the top part of the dialogue and deselect the ones you don't want.  Then click the Engineer button.
    1) How to save the ER diagram
    To save your model for future update, you can go to the File menu and select Data Modeler > Save.
    To save your diagram as a PDF or image file, go to the File menu and select Data Modeler > Print Diagram.
    David

  • What is the best way to delete dynamically-generated symbols from another symbol?

    in the onClick handler for 1 symbol, I have:
    var sandwhichQty1 = sym.createChildSymbol("sandQty1", "Stage");
    another symbol inside sandQty1 has the onClick method:
    this.deleteSymbol();
    which works fine, deleting sandQty1. I'd like to delete it, and others, from another button, in the circumstance where users don't close them this way.
    I notice that id and class are dynamically assigned to the child symbol, which makes it hard for me.
    any ideas?

    Hi, I did it in this way, and functions well; maybe this is not the best way, but worked for me. Obviously this code is based on the elainafineell's correct solution.
    This is my scenario:
    In a Trigger @ xxxxms there is that:
    var i = 1;
    $.each(results, function(index, element)
         var s = sym.createChildSymbol("mySymbol", "someContainer");
         // some code here
         // Creating the variable that save my new instance of mySymbol
         sym.setVariable("var_id"+i, s);
         i++;
    // a global var, take care with the name
    numOfInstances = i;
    Then, in a click action of some button, symbol, anything that support an action, I code this:
    sym.eraseSymInstance();
    And, in the creationComplete, I code the function like this:
    sym.eraseSymInstance = function()
              for(var i = 1; i <= numOfInstances; i++)
                             var s = sym.getVariable("var_id"+i);
                             s.deleteSymbol();
    For me function well.
    I hope this can be usefull for somebody else.

  • Get Dynamic HTML from Apex Page as CLOB

    Good Morning,
    I have two APEX pages that are designed to provide formatted report content; however, these are not intended to be navigable from within the application. In other words, I am not letting the user view the pages directly. Instead, their purpose is to generate dynamic content so that I can feed their HTML into a HTML to PDF converter so the generated PDF can be attached to an email and sent to clients. I have found that the easiest way to generate this report is directly in APEX, but I haven't yet found a way to just run the page via a PL/SQL API and retrieve the dynamic content into a CLOB so that I can send it to my converter utility. I have tried UTL_HTTP, but I am either using that API incorrectly, or the security context of the session is not proagating to the call (this is being performed in a secure APEX application), thus I receive the following error [ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1674 ORA-29024: Certificate validation failure]. I am using Apex version 3.2. Does anyone know a good and straight-forward API for doing what I need to accomplish? Thanks in advance.
    Erik

    To mimic the users session, you'd have to forward on the session cookies as part of the HTTP request.
    A simpler option:
    * Allow public access to the page
    * Apply an authorization scheme to the page that looks something like this...
    if owa_util.get_cgi_env('REMOTE_ADDR') = '127.0.0.1' then
      return true;
    else
      return false;
    end if;(PL/SQL Function Returning Boolean)
    Then when you perform the request in your code, use 127.0.0.1 instead of the host name.

  • Generating dynamic HTML for odiSendMail

    Hi,
    I have a requirement where i need to dynamically generate a HTML table, which is to be sent as the body of an email notification. This table will essentially be a HTML representation of data from some DB tables. How can I achieve this. A detailed solution is highly appreciated.
    Thanks

    Hi,
    Is there a way to dynamically generate the body of email in odiSendMail? If there is please let me know.

  • Best way to implement dynamic search criteria

    I was recently showing a group of developers some of the Toplink basics. As an example I showed a way to build a Toplink expression for an object search where the search criteria are determined at runtime. Doing this in raw SQL is a bit tricky because you need to place the 'AND' statements between the criteria, but I found a simple method to do this with an expression (or at least I think I did). I simply used and() to add each criteria expression, including the first one. Toplink seemed smart enough to derive the SQL without the additional AND statement.
    My question to the Forum is, is this the best way to build the expression and is it flawed? Here is my code snippet and the generated SQL.
    public Expression createExpression(ExpressionBuilder builder, Object[] parameters) {
    // Build expression for a Dealer Search
    String name = (String)parameters[0];
    String location = (String)parameters[1];
    String email = (String)parameters[2];
    Expression searchExpression = builder;
    // NAME = 'name'
    if (name != null) {
    searchExpression =
    searchExpression.and(builder.get("name").equal(name));
    // LOCATION = 'location'
    if (location != null) {
    searchExpression =
    searchExpression.and(builder.get("location").equal(location));
    // EMAIL = 'email
    if (email != null) {
    searchExpression =
    searchExpression.and(builder.get("contactInfo").get("email").equal(email));
    return searchExpression;
    Toplink generated SQL with location="Mt. Prospect, IL", email=null, and name=null:
    SELECT VERSION, LOCATION, ID, NAME FROM DEALER WHERE (LOCATION = 'Mt. Prospect, IL')
    Thanks.

    All JPA strategies require something (like a table or sequence object) be in the database, with table sequencing being the most portable, though EclipseLink does allow custom sequence stratgies where you could use something else, such as the UUID. Sequencing is described here described here http://wiki.eclipse.org/EclipseLink/Examples/JPA/PrimaryKey with a custom UUID example shown here http://wiki.eclipse.org/EclipseLink/Examples/JPA/CustomSequencing .

  • Best way to create dynamic pdf's

    I've a cfm template displaying an invoice (one image -logo,
    and one table of
    query results, invoice) to user.
    It would be great to give them the option of downloading a
    pdf of that page
    (built dynamically from invoice id passed to the template).
    I have mx6.something, not mx7, so am thinking cfdocument
    isn't for me.
    I am familair (only just) with cfcontent, but it's obvious I
    need something
    else to display the content as a pdf.
    What is the best way to achieve this? Is the any free cfc's
    or the like or?
    Any help would be great, tks.
    Cheers,
    Lossed
    __when the only tool you have is a hammer, everything looks
    like a nail __

    Its a great feature with MX7 if you need to create dynamic
    PDF's, however there is software out there that can dynamically
    create them. One that I know of is located at
    www.ActivePDF.com

  • How to generate dynamic HTML pages using Swing Application?

    Hello,
    I am writing a Java application to connect to a local light-weight java database. I would like to generate and present a HTML on the fly after selecting records from a database. At server side, I could easily use JSP/Servlet to do this. How can I do this on a desktop client machine using Java application? I do not want to install Apache web server on the desktop machine. Any help will be greatly appreciated. Thanks in advance.
    Dominic

    The way u need to generate your html pages depened on what u want to generate,
    anyway what i can help with, is how to display a generated page.
    u have to use JEditorPane with HTMLEditorKit and HTMLDocument to display any HTML.
    also u can use the methods provided with the above objects to generate your html format.
    I hope I helped.

  • Best Way to Handle Dynamic Initialization of x number of Objects?

    I want to be able to take a x value(integer) that I get from another part of my program and initialize x number of Objects. Best way to handle that?

    myObject[] myObjArray = new myObject[x];
    for (int i=0; i<x; i++) myObjArray[i] = new myObject("obj#"+i);

  • Best way to generate one record per day from a table with eff/exp dates

    Hi,
    Have a table which has various attributes and an eff and exp date. e.g attributea, 01/05/2012, 16/05/2012
    We wish to create another table from this table to have one record per day. e.g 16 records.
    What is best way to achieve this in OWB ?
    Thanks

    Hi,
    Example if have table
    with following contents
    conversion_rate number(6,4)
    EFFEcTIVE_DATE DATE
    expiration_date date
    example record 1.43, 01/05/2012,16/05/2012
    If want to have another table which instead has 16 records one for each day
    e.g
    1.43, 01/05/2012
    1.43,02/05/2012
    1.43,16/05/2012
    Thoughts on best way to do this.
    Thanks

  • Best Way to call Dynamically an stored procedure

    Hi Guys,
    Here my question... I need to call dynamically to an stored procedure...
    - the stored procedure can change, the name , the number of parameters
    - the called stored procedure can contain output parameters.
    lv_sql := 'BEGIN '|| lv_program_name || ' ( ' || get_parameters(lv_program_name) || '); END;';
    get_parameters function generates an string depeding on the number of parameters that this function reads from the
    oracle dictionary (i.e: ':1,:2,:3,:4......... )
    then the dynamyc code must be executed as follow
    execute immediate lv_sql
    using .................................?????????
    The issue that I am facing is how to handle the "using clause".... since before that I ran the program I dont know how many parameters the program will have...
    Please your help... (or suggestion to solve in another way)
    ...:::OKMMAN:::...

    About "Satyaki_De " comment,
    Since I dont know the stored procedure to be called, I cant know the number of parameters and its type to be returned... I mean.. to use the clause "using ...." in static way...
    By now, I am creating dinamically a stored procedure... I am building a stored procedure that calls to the "unknown" stored procedure... reading the data dictionary and building dynamically the "Using...." clause... but I dont like ... since probably in production enviroment I will not have that kind of grants....
    Regarding the link... I didn't know that new type... ! That's will solve the type issue... but still is pending the number of variable to provide to the "using" clause...
    ...:::OKMMMAN:::...
    Edited by: okmman_cl on Feb 11, 2009 1:59 PM

  • Best way to generate the XML files from a DTD file

    Hey,
    I am writing an application that needs to convert a complicated data structure into an xml file. I have design a DTD file that describes the data structure.
    My question is what is the best, most efficient way to covert the data structures (objects) into the XML files with a DTD file.
    Thank you very much.
    Candy

    Convert the DTd to an XML Schema. Generate java classes from Schema with Jaxb. Create an XML document from the java classes.

  • Best way to generate report on huge data table

    Hi,
    I am using Oracle11g.
    I want to generate reports on transaction tables containing huge amount of data, on which very frequently DMLs are performing in real time.
    i want to keep my report/result in RESULT_CACHE for 15 mins. active. whenever any insert/update runs on main tables the RESULT_CACHE is getting invalidated
    my question is can i control/stop RESULT_CACHE relies on(table_name) invalidating, as Oracle11g invalidating RESULT_CACHE automatically.
    my requirement is to not hit the main table again&again.
    pls help..
    Thanks in advance.
    Vinod

    910575 wrote:
    Hi,
    I am using Oracle11g.
    I want to generate reports on transaction tables containing huge amount of data, on which very frequently DMLs are performing in real time.
    i want to keep my report/result in RESULT_CACHE for 15 mins. active. whenever any insert/update runs on main tables the RESULT_CACHE is getting invalidated
    my question is can i control/stop RESULT_CACHE relies on(table_name) invalidating, as Oracle11g invalidating RESULT_CACHE automatically.
    my requirement is to not hit the main table again&again.
    pls help..
    It sounds as if you're trying to avoid contention on a very busy large table while users are experimenting with relatively small fractions of the total data set. The type of thing you're doing is probably about the best approach - though it sounds as if you are not using global temporary tables which could save you a bit of time and contention when refreshing each private data set.
    Ideally, though, you probably want a front end tool that does client-side caching - i.e. pulls the data into the front-end tool and lets the user rearrange it cosmetically there until the user explicitly requests a new trip to the database. I think Oracle Discoverer has (had) some capability in this area. What's the scale of the work the users are doing - can you give us a few scenarios about how much raw data they will extract and what they want to do with it before they refresh it ?
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    Author: <b><em>Oracle Core</em></b>
    P.S. Oracle does have client-side caching technology - but your ability to use it is dependent on the tools you use. You might want to go over to one of the developer or BI forums to see what they say about this problem; they may give you a different perspective on it.
    Edited by: Jonathan Lewis on Jan 31, 2012 6:55 PM

Maybe you are looking for

  • Restarting Services on the RemoteApp Session Host

    Can anyone advise me how I might restart a windows service on my RemoteApp Session Host. I have a LOB application that I need to restart services from time to time and wondered if there is a PowerShell way of doing it.

  • How to merge 2 pdfs so that pages shuffle

    wanted: 1st page p 1 of Doc 1 2nd page p 1 of Doc 2 3erd page p 2 of Doc 1 4th page  p 2 of Doc 2 etc. Does this require a script of how to do? Acrobat 9 Pro Thanks

  • Reg. calling bapi_transaction_commit in se37

    Hi, I am testing a BAPI in se37 and its working good. I see that another bapi 'BAPI_TRANSACTION_COMMIT'  has to be called in sequence to commit to database. How do I Call this in sequence in se37 along with the first function module? Thanks.

  • Excise invoice without GR reverse

    Dear All, I have one problem that i have posted excise invoice with wrong value. Now, i want to cancel this excise invoice without reverse GR reverse. I know that for this scenario we do reverse GR in MIGO then cancel excise invoice in J1IEX. But in

  • Switchable graphics option not showing in right click menu after windows 8.1 update

    I have a Pavilion 15 e016tx laptop. i have recently updated my laptop to Windows 8.1. After updating i am not able to find switchable graphics option which was earlier shown on after right clicking on desktop. I tried to search in shearch charm but c