Advanced Tutorial

Hi All,
I'm trying to run TOPLINK Advanced tutorial, but i'm getting the following error:
LOCAL EXCEPTION STACK:
EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.DatabaseException
EXCEPTION DESCRIPTION: java.sql.SQLException: Connection is broken
INTERNAL EXCEPTION: java.sql.SQLException: Connection is brokenERROR CODE: 0
     at oracle.toplink.exceptions.DatabaseException.sqlException(Unknown Source)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(Unknown Source)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeNoSelect(Unknown Source)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(Unknown Source)
     at oracle.toplink.publicinterface.Session.executeCall(Unknown Source)
     at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
     at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
     at oracle.toplink.internal.queryframework.CallQueryMechanism.executeNoSelectCall(Unknown Source)
     at oracle.toplink.internal.queryframework.CallQueryMechanism.executeNoSelect(Unknown Source)
     at oracle.toplink.queryframework.DataModifyQuery.execute(Unknown Source)
     at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
     at oracle.toplink.publicinterface.Session.internalExecuteQuery(Unknown Source)
     at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
     at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
     at oracle.toplink.publicinterface.Session.executeNonSelectingCall(Unknown Source)
     at oracle.toplink.tools.schemaframework.DatabaseObjectDefinition.createOnDatabase(Unknown Source)
     at oracle.toplink.tools.schemaframework.SchemaManager.createObject(Unknown Source)
     at oracle.toplink.tools.schemaframework.SchemaManager.replaceObject(Unknown Source)
     at oracle.toplink.tutorials.advanced.Demo.createTables(Demo.java:36)
     at oracle.toplink.tutorials.advanced.Demo.main(Demo.java:124)
INTERNAL EXCEPTION STACK:
java.sql.SQLException: Connection is broken
     at org.hsqldb.Trace.getError(Trace.java:180)
     at org.hsqldb.Trace.getError(Trace.java:144)
     at org.hsqldb.Trace.error(Trace.java:205)
     at org.hsqldb.jdbcConnection.executeHSQL(jdbcConnection.java:904)
     at org.hsqldb.jdbcConnection.execute(jdbcConnection.java:718)
     at org.hsqldb.jdbcStatement.fetchResult(jdbcStatement.java:686)
     at org.hsqldb.jdbcStatement.executeUpdate(jdbcStatement.java:85)
     at org.hsqldb.jdbcPreparedStatement.executeUpdate(jdbcPreparedStatement.java:152)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(Unknown Source)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeNoSelect(Unknown Source)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(Unknown Source)
     at oracle.toplink.publicinterface.Session.executeCall(Unknown Source)
     at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
     at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
     at oracle.toplink.internal.queryframework.CallQueryMechanism.executeNoSelectCall(Unknown Source)
     at oracle.toplink.internal.queryframework.CallQueryMechanism.executeNoSelect(Unknown Source)
     at oracle.toplink.queryframework.DataModifyQuery.execute(Unknown Source)
     at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
     at oracle.toplink.publicinterface.Session.internalExecuteQuery(Unknown Source)
     at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
     at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
     at oracle.toplink.publicinterface.Session.executeNonSelectingCall(Unknown Source)
     at oracle.toplink.tools.schemaframework.DatabaseObjectDefinition.createOnDatabase(Unknown Source)
     at oracle.toplink.tools.schemaframework.SchemaManager.createObject(Unknown Source)
     at oracle.toplink.tools.schemaframework.SchemaManager.replaceObject(Unknown Source)
     at oracle.toplink.tutorials.advanced.Demo.createTables(Demo.java:36)
     at oracle.toplink.tutorials.advanced.Demo.main(Demo.java:124)
Exception in thread "main"
Can anyone help me in solving this.
thanks

Hi,
The error you are getting "java.sql.SQLException: Connection is broken" usually means:
Either the database has not been started, or the URL to the database is incorrect.
A working version of the tutorial can be found in:
D:\toplink903\examples\core\examples\sessions\threetier
Please try and run the example.
Raanan.

Similar Messages

  • Advanced tutorial javascript

    Hi!
    I am a bit confused about the apex 3.0 Advanced Tutorial chapter 10 "How to Incorporate JavaScript into an Application". Here is an excerpt:
    -- start citation --
    Including JavaScript in a .js File Referenced by the Page Template
    In Oracle Application Express you can reference a .js file in the page template. This approach makes all the JavaScript in that file accessible to the application. This is the most efficient approach because a .js file loads on the first page view of your application, and is then cached by the browser.
    The following code demonstrates how to include a .js file in the header section of a page template. Note the line script src= that appears in bold.
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>#TITLE#</title>
    #HEAD#
    <script src="http://myserver.myport/my_images/custom.js" type="text/javascript"></script>
    </head>
    <body #ONLOAD#>#FORM_OPEN#
    -- end citation --
    The above seems to suggest that the "custom.js" lives on some server which should be hardcoded into a template. I can't believe it! What does incorporating mean here? For me it should mean an ability to add a javascript file to an application and then referencing it via a relative path so the script keeps staying with the application. I presume the tutorial is wrong about it. But what is the right way? I see there is an ability to add a static file to an application. Could it help here? I would appreciate an advice on how to add a javascript file.
    Sergey

    Hi Sergey,
    You could upload your JS file as static file and use the relative path #WORKSPACE_IMAGES#. This way the file is stored in the database. But the question here is:
    Should static files be placed in the database?
    "Application Express applications may reference additional external files such as cascading style sheets (CSS), images and Javascript libraries.
    These images can either be placed on the file system of the server that runs the web server or, when they are uploaded using Application Express’s application builder, can be stored inside the database.
    A benefit of managing files such as images and CSS in the database with the application builder is that they can be exported and imported into another Application Express environment or workspace using only a browser.
    However, storing related files in the database is recommended only when you have relatively few images and when the application is not expected to endure high request throughput.
    When images, CSS and Javascript libraries are stored in the database, a database connection is established each time the browser requests one of these files.
    In a high throughput application this may result in undue and unwanted strain on the database. "
    quoting http://www.ruleworks.co.uk/cgi-bin/TUfaq.exe?Guide=Apex
    If you have access to your server filesystem, then in my opinion you should place your JS file there. After that you could define a substituion string in shared components pointing to the folder you have palced your JS file. Your templates should reference this substituion string.
    Paulo

  • Advanced tutorial 3.0 : Error 403 when executing own PL/SQL procedure

    Hello,
    Advanced tutorial 3.0 Chap 9 : Upload and download Files in an application.
    As written, I have created the procedure "download_my_file" to download a file content from a custom table....
    Granted the execute on download_my_file to public
    ==> OK.
    When trying to downdload the file from the given URL :
    http://... apex/myOWNER.download_my_file?p_file=..id..
    ==> I get a forbidden access 403.
    Could someone give me an advice ?

    Hello,
    I'll wager 1 UK Pound Sterling (or any other currency you care to name) that you forget to perform the grant (as specified in the document and yet so many people seem to miss that step out).
    John.
    http://jes.blogs.shellprompt.net
    http://apex-evangelists.com

  • Is there a tutorial/primer for working with conditional text and page numbering in book folders?

    I'm ramping up on FrameMaker 9 and have been experimenting with using folders in book files. I like being able to add Frame files to the folder to organize content. But I also need to use conditional tags. In one version of my book, the entire contents of some files in one folder are hidden using conditional text. I can't figure out how to set the numbering for each file so that the page numbers adjust appropriately in this scenario. Or is it even possible to do this?
    Can anyone recommend an advanced tutorial for using folders in Frame 9?

    Michelle,
    It would be easier to maintain if you create a different book file that omits the entire "conditionalized" set of files.
    See these Adobe TechComm blogs for some more background info on using hierarchical books and numbering behaviour:
    http://blogs.adobe.com/techcomm/2009/05/xml_authoring_projects_using_hierarchical_books.ht ml
    http://blogs.adobe.com/techcomm/2009/06/numbering_in_hierarchical_books.html

  • Advanced UI

    Can some direct me to an advanced tutorial on developing your own Look and Feel (or replacing default UIDelegates). The Java Tutorial only tells you how to select a pre-existing Look and feel. I need to do some custom development from scratch.

    Hai,
    Go thro Swing Sightings pages (1 to 22) http://java.sun.com/products/jfc/tsc/
    There you'll find links to Metouia Look n Feel and
    other Look n Feel links.
    Remember creating a custom look n feel like
    this is very tedious and time-consuming and
    above all, lot of hardwork. You need to write thousands
    and thousands of lines!!

  • Doubts on Express Advanced Tutorials

    Hi all.
    I'm doing some of the lessons from the advanced tutorial for Apex and some issues does not currently match. For example:
    1) To make the item P2_REC_UPDATE_DATE display-only:
    1.Go to the Page Definition for page 2.
    2.Under Items, select the item P2_REC_UPDATE_DATE.
    3.From the Display As list in the Name section, select Text Field (Disabled, saves state).
    4.Click Apply Changes.
    My version is 4.0.2.00.08 and for the display as list property there is no "Text Field (Disabled, saves state)", which will be the equivalent ...?
    Also on the check boxes lesson, on the Change the Search Field to a Multi Value Check Box, although there is a search field on my report i can't access to it... There is not such thing as P1_REPORT_SEARCH. How do i access this field ...? There is nothing on the items section ....
    Please help ....!

    For your date item select the Display Only option, then further down the page in Settings there is an option to select Save State > Yes|No.
    I can't see your application so don't know about the other situation.
    Earl

  • JSP & Sevlet tutorial..

    Is there a site that provide Basic to Advance tutorial on Servlet and JSP? Please let me know....
    jun

    Try http://www.coreservlets.com.
    "Trying is the first step toward failure." - Homer J. Simpson

  • How do I use SQL statements to perform calculations with form fields????

    Please help!!! I don't know how to use a SQL statement within my APEX form......
    My form is below. The user will enter the values in the form. Click on Submit. Then we need to run a SQL select statement with those values.
    Our form looks like this:
    Start_Date ____________
    Per_Period ____________
    Period ____________
    [Submit Button]
    The user will enter these 3 values in the form.
    This is an example of an user providing the values:
    Start_Date 03/14/08_______
    Per_Period $200.00________
    Period 4____________
    [Submit Button]
    Then they will click the Submit Button.
    The SQL statement (BELOW) returns output based on the users selections:
    START_DATE PER_PERIOD PERIOD
    14-MAR-2008 00:00 200 Week 1 of 4
    21-MAR-2008 00:00 200 Week 2 of 4
    28-MAR-2008 00:00 200 Week 3 of 4
    04-APR-2008 00:00 200 Week 4 of 4
    Total 800
    This is the full text of the SQL that makes the output above:
    with criteria as (select to_date('03/14/08', 'mm/dd/rr') as start_date,
    4 as periods,
    'Week' as period,
    200 per_period from dual),
    periods as (select 'Week' period, 7 days, 0 months from dual
    union all select 'BiWeek', 14, 0 from dual
    union all select 'Month', 0, 1 from dual
    union all select 'ByMonth', 0, 2 from dual
    union all select 'Quarter', 0, 3 from dual
    union all select 'Year', 0 , 12 from dual
    t1 as (
    select add_months(start_date,months*(level-1))+days*(level-1) start_date,
    per_period,
    c.period||' '||level||' of '||c.periods period
    from criteria c join periods p on c.period = p.period
    connect by level <= periods)
    select case grouping(start_date)
    when 1 then 'Total'
    else to_char(start_date)
    end start_date,
    sum(per_period) per_period,
    period
    from t1
    group by rollup ((start_date, period))
    THANKS VERY MUCH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    You're just doing a parameterized report, where the input fields are your parameters.
    Check out the Advanced Tutorial titled Parameterized Report here:
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10497/rprt_query.htm#BGBEEBJA
    Good luck,
    Stew

  • Problem with Item Validation

    Hello,
    I am running an advanced tutorial: http://download.oracle.com/docs/cd/E14373_01/appdev.32/e13363/issue_track_ui.htm#BGBJCGIC
    and I have a problem with item Validation.
    Tutorial offers the following:
    You must manually create another validation to ensure that the Actual End Date is the same or later then the Start Date.
    To add a validation for the Actual End Date:
    1.Under Page Processing, Validations, click the Create icon.
    2.For Level, accept the default, Item level validation, and click Next.
    3.For Item, select Project Details: 50.P3_ACTUAL_END_DATE (Actual End Date) and click Next.
    4.For Validation Method:
    a.Select PL/SQL and click Next.
    b.Accept the default, PL/SQL Expression and click Next.
    5.For Sequence and Name:
    a.Sequence - Enter 50.
    b.Validation Name - Enter P3_END_AFTER_START.
    c.Accept the remaining defaults and click Next.
    6.For Validation:
    a.Validation - Enter:
    to_date(:P3_ACTUAL_END_DATE,:APP_DATE_FORMAT) >= to_date
    (:P3_START_DATE,:APP_DATE_FORMAT)
    b.Error Message - Enter:
    Actual End Date must be same or after Start Date.
    c.Click Next.
    7.For Conditions:
    a.Condition Type - Select Value of Item in Expression 1 is NOT NULL
    b.Expression 1 - Enter P3_ACTUAL_END_DATE
    8.Click Create.
    Is there a mistake in explanation? I did it 3 times already, very carefully! I ran the page, entered the date, which is After the Start date, and get the error message: Actual End Date must be same or After Start Date!!
    Thank you for your consideration...

    I got it solved. I don't know if this is documented(or a bug) but what I did was declare an exception and then raise it and put the form_trigger_failure into the exception handler rather than raise form_trigger_failure in the body.
    declare
    alreadyExists exception;
    begin
    -- select .....
    raise alreadyExists;
    exception
    when alreadyExists then
    message('.....exists');
    raise form_trigger_failure
    end;

  • APEX 3.0.1 fails to consume Web Services

    I am running APEX 3.0.1 in a 10.2.0.2 EE database on Windows XP.
    I am trying to get APEX to use a simple web service that I have created in BPEL. The web service functions perfectly in SoapUI.
    APEX seems to be using the response document rather than the request document when invoking the service.
    Here is the request generated by APEX:
    <inputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload"><ns1:Item xmlns:ns1="http://TargetNamespace.com/GetItemResponse">
    <ns1:SETID>SHARE</ns1:SETID>
    <ns1:ITEM_ID>810002</ns1:ITEM_ID>
    </ns1:Item>
    </part></inputVariable>
    Here is the request generated by SoapUI:
    <inputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload"><get:Item xmlns:get="http://TargetNamespace.com/GetItemRequest">
    <get:SETID>SHARE</get:SETID>
    <get:ITEM_ID>810002</get:ITEM_ID>
    </get:Item>
    </part></inputVariable>
    The primary difference is that APEX is referencing GetItemResponse rather than GetItemRequest.
    Here is the WSDL:
    <definitions name="ItemGet" targetNamespace="http://xmlns.oracle.com/ItemGet" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/ItemGet" xmlns:ns1="http://TargetNamespace.com/GetItemRequest" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:ns2="http://TargetNamespace.com/GetItemResponse" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:client="http://xmlns.oracle.com/ItemGet">
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://TargetNamespace.com/GetItemRequest" schemaLocation="GetItemRequest.xsd"/>
    </schema>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://TargetNamespace.com/GetItemResponse" schemaLocation="GetItemResponse.xsd"/>
    </schema>
    </types>
    <message name="ItemGetRequestMessage">
    <part name="payload" element="ns1:Item"/>
    </message>
    <message name="ItemGetResponseMessage">
    <part name="payload" element="ns2:Root-Element"/>
    </message>
    <portType name="ItemGet">
    <operation name="process">
    <input message="tns:ItemGetRequestMessage"/>
    <output message="tns:ItemGetResponseMessage"/>
    </operation>
    </portType>
    <binding name="ItemGetBinding" type="tns:ItemGet">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="process">
    <soap:operation style="document" soapAction="process"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="ItemGet">
    <port name="ItemGetPort" binding="tns:ItemGetBinding">
    <soap:address location="http://xpvm.us.oracle.com:8888/orabpel/default/ItemGet/1.0"/>
    </port>
    </service>
    <plnk:partnerLinkType name="ItemGet">
    <plnk:role name="ItemGetProvider">
    <plnk:portType name="tns:ItemGet"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    As you can see from the WSDL, the input message is tns:ItemGetRequestMessage and the output is tns:ItemGetResponseMessage.
    The APEX design time environment is accurately recognizing ItemRequest for the input parameters and ItemResponse for the output parameters.
    It looks like a potential APEX bug.
    Anyone run into this? Anyone have any suggestions?
    Thanks!
    Kurt

    Kurt:
    It does look like a bug. I can offer the following workaround.
    Create a Manual Web reference as described here:
    http://download-west.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/advnc.htm#BABCBBHJ
    section "Creating a Web Service Manually"
    based on the WSDL below, you would enter the following for URL and Action:
    URL: http://xpvm.us.oracle.com:8888/orabpel/default/ItemGet/1.0
    Action: process
    Also, enter a name for an APEX collection to store the response, such as GET_ITEM_RESPONSE.
    For the SOAP Envelope, paste in the one that works from SOAPUI or use BPEL Control to get the envelope. Instead of static values for the parameters you use #ITEM_NAME# substitutions. So if the page generated by the wizard was on page 1, it would look something like:
    <inputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload"><get:Item xmlns:get="http://TargetNamespace.com/GetItemRequest">
    <get:SETID>#P1_SETID#</get:SETID>
    <get:ITEM_ID>#P1_ITEM_ID#</get:ITEM_ID>
    </get:Item>
    </part></inputVariable>
    (with the proper SOAP Envelope wrapper around it)
    Now go to page 1 (assuming that was the page created by the wizard) and remove the current process of type Web service on that page. Add a new process of type Web service, choose Manual, and choose the manual one you created above.
    Follow the instructions in the section titled "Displaying Web Service Results in a Report" at the link above to create a report on the result.
    There is also an advanced tutorial using Manual Web references you may wish to review:
    http://download-west.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32469/web_serv.htm#CHDEFEGH
    Hope that helps,
    Jason

  • New details on same page won't insert

    Hi,
    I am not able to get a master-detail-on-same-page to work properly.
    It is created with a wizard.
    After adding the first row and entering data, the row is lost when clicking Apply Changes of the master.
    The row is not inserted in the database.
    When I first add a second row without entering data, the first row is inserted when clicking Apply Changes of the master.
    Also when adding the second row, an extra Apply Changes button appears for the details.
    I am using theme '14. Modern' in APEX 3.0.1 on 10g XE.
    Any help will be welcome,
    Martijn

    Hi again,
    The same problem can be seen when following the Advanced Tutorial topic 'How to Create a Master Detail PDF Report'.
    After following the instructions you get a report with master detail form.
    When all detail rows are deleted, the Apply Changes button of the details table disappears.
    You now can add a fill in a new row. However the Apply Changes button won't save your new detail row. Though adding a next row without entering data will save the first row, and the Apply Changes button reappears.
    So, after all the job is done. However it is not the way of working we will instruct end users.
    Is their a way to get the Apply Changes reappear just after adding the first row?
    Thanks in advance,
    Martijn

  • How can I use wpg_docload.download_file and prompt the user to save it?

    Hi,
    Posted about this a couple of weeks ago with a text file and got the following code (where x.zip=x.txt) and it worked fine. Problem is that I need to do this with zip files, and when I run the code below, it simply displays the zip file, rather than prompting the user to save the file. Have tried every mime type under the sun. No joy.
    The How to Upload and Download Files in an Application Advanced Tutorial for Release 3.2 does not work for APEX4. Simply creating a file browse item leads to Error ORA-20999: P3_FILE_NAME has to have a valid BLOB column as source. and so I cannot follow that tutorial to get further clues on how to make this work.
    Susan
    Thanks and here's the wpg_docload.download_file code that displays a binary file:
    declare
    lob_loc bfile;
    v_length integer;
    fname varchar2(100) := 'x.zip';
    l_blob blob;
    des_offset number := 1;
    src_offset number := 1;
    begin
    lob_loc := bfilename('CELFILES_9906', fname);
    v_length := dbms_lob.getlength(lob_loc);
    DBMS_LOB.createtemporary(l_blob, FALSE);
    dbms_lob.open(lob_loc, dbms_lob.lob_readonly);
    DBMS_LOB.LOADBLOBFROMFILE(
    dest_lob=>l_blob,
    src_bfile=>lob_loc,
    amount=>v_length,
    dest_offset=>des_offset,
    src_offset=>src_offset);
    owa_util.mime_header('application/zip', false);
    htp.p('Content-length: ' || v_length);
    htp.p('Content-Disposition: inline; filename="' || fname || '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( l_blob );
    DBMS_LOB.freetemporary(l_blob);
    EXCEPTION WHEN OTHERS THEN
    DBMS_LOB.freetemporary(l_blob);
    RAISE;
    end;

    I downlod blobs like this without issue (using IE7 and FF):
    owa_util.mime_header('application/octet', False);
    HTP.p ('Content-length: ' || DBMS_LOB.getlength (l_blob));
    htp.p('Content-Disposition: attachment; filename="'||v('P20_FNAME')||'"');
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (l_blob);
    ...Remember, that it's your browser's MIME type settings that determine whether to pop up a save diaglog box. In FF 3.6 > Tools > Options > Applications > Content type. The set action for each mime type.

  • JavaScript help Including JavaScript in a .js File Referenced by the Page

    I need help with JavaScript. I have been doing the Advanced Tutorial, and still don't feel that understand how to make it work.
    The example in "Oracle Database Application Express User's Guide" shows this line:
    <script src="http://myserver.myport/my_images/custom.js" type="text/javascript"></script>
    I understand that "my_images" is hypothetical, but where is the real equivalent to this?
    Is there a working example/tutorial of Including JavaScript?
    <li />Also how does one create AJAX functionality?
    If I want to do something like this http://www.w3schools.com/ajax/ajax_server.asp
    in APEX, where do I place the "time.asp" script?
    <li />Can we assume that the HTML and ASP file are in the same directory?
    Please any assistance with these topics are greatly appreciated.

    Hello,
    >> what is the directory structure you would use for /my_images/custom.js? Where does one load these .js files? where is it in the local machine?
    C:\oracle\product\10.2.0\db\Apache ?
    The documentation only gives you a possible example (and I might agree that it’s not the best one). You should put your external JS files (on the server OS file system) wherever it will be most accessible and maintainable for you. The best place, IMHO, is under the /images/javascript/ directory. The reason is very simple. You can use the alias /i/, which defined in your DAD file, to gain a very simple path to the file. In this case, the loading statement will look similar to the following:
    <script src="/i/javascript/custom.js" type="text/javascript"></script>
    >> Do you mean "Oracle Database PL/SQL Packages/Types and htp packages?"
    I’m assuming you are talking about the on-demand process. This is a regular PL/SQL anonymous block, which will be fired only upon specific request - http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/bldr.htm#BABEAIIE . This is the mechanism for handling the server side of AJAX.
    >>Anythig else available for us to levarage?
    Denes examples site can also be a valuable resource - http://htmldb.oracle.com/pls/otn/f?p=31517:1 .
    Regards,
    Arie.

  • I need to display my Blob image in my report (and also on form page)

    Scott,
    I followed the APEX advanced tutorial for uploading and downloading files. I have created a form on a table and that table contains a column of datatype BLOB. Now I want to be able to display the (Blob) images that I have uploaded.
    As I research the topic, I get the feeling that displaying the BLOB image can only be done in APEX 3.1 and up. Is this true? I have that version of APEX installed on my laptop and have successfully completed the "Defining and Viewing BLOB Data in Oracle Application Express 3.1" tutorial found here: http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm
    But I could not do it on the company server that runs APEX 3.0
    Even if I did get the approval to have the company APEX application upgraded to 3.1, there still is the issue of scaling the images so that they are not so large. I understand that there is a UTIL.APEX function "GET_BLOB_FILE_SRC" that would do this for me. I read the documentation at:
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/api.htm#CHDICGDA
    After reading it, I was still not clear as to how to use it correctly. Is there any documentation on how to implement this function in APEX?
    I did find something that I was hoping would help me. The article is entitled "Show Blob of other table in APEX Form" by Dimitri Gielis can be found here: http://dgielis.blogspot.com/2008/07/show-blob-of-other-table-in-apex-form.html
    I tried to import the file "blob_support.sql" application (on both APEX 3.0 and APEX 3.1 systems) but got errors. I'm not having very much luck here and would appreciate the help in pointing me in the correct direction.
    Help!!
    Thanks
    LEH

    Hello John,
    Your information was helpful. I can now see my images in my form.
    OK, now I would like to be able to call the image using a Region Source of type SQL instead of the HTML Expression. The reason for this is because I need to use logic to determine if the file is an image or not and to determine wether to show a thumbnail or just a link. I did find a "GET_BLOB_FILE_SRC" Function on the internet that suggests that I could do this but I need some help in making it work in my application.
    Here it is as a Region Source of type SQL:
    SELECT ID,
    NAME,
    CASE WHEN NVL(dbms_lob.getlength(document),0) = 0
    THEN NULL
    ELSE CASE WHEN attach_mimetype like 'image%'
    THEN '<img
    src="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'" />'
    ELSE '<a
    href="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'">Download</a>'
    end
    END new_img
    FROM TEST_WITH_BLOB
    If anyone can help me with this that would be appreciated.
    Thanks
    LEH

  • Need help in Publishing the application URL

    hi,
    I am using Aoolication Express 3.0. I need to publish the URL of my application, so that both the database and application can be accessed from any computer using the URL.
    Can anyone help me with that.
    Thank you in advance.

    I read yesterday (from the advanced tutorial documentation):
    "You can determine the URL to your application by positioning the mouse over the RUN icon on the Application home page. The URL appears in the status bar at the bottom of the page."
    It works.
    Deb

Maybe you are looking for

  • Detecting line-breaks within a column of an uploaded tab-delimited file.

    Suppose you upload a tab-delimited file from your laptop and split each row of the file into some structure that you append to an itab. Is there a way inside ABAP to detect that a field of the uploaded file has a CR or CRLF in it?  And if so, where i

  • How to manage video files in FMS 3 ?

    Hello, I have a doubt regarding file managment in FMS 3. I want to create a video on demand aplication using FMS and I want to catalog the videos ( to associate data such as Director, Year, Producer, Actors, Genre, Price, Format, Duration, Language,

  • How to reload games and the collections...please h...

    Ok on the nokia 6300 i accidently deleted the soccer and snakes games and also the world clock and a couple more in that group. I was just wondering on how to find the games and world clock for examplr again because i have looked on the internet and

  • ERROR: IN FK02 TRANSACTION ALTER THE FIELD CHANGE REGION

    In FK02 Transaction when I try to alter the field REGION, the field taxjurcode does not change, so the messsage is showed  "The code of residence xxx does not match the address entered". Somebody knows what do I have to do?

  • Extension Manager Crashes CS5 OSX 10.5.8

    Hi I need to load the Optional Plug Ins for Photoshop CS5 so Photoshop can use TWAIN to import images from my scanner. I've done it on another iMac but need to do it on this one. I have downloaded the files from the Adobe site and the Extension Manag