Apex 3.0 in spanish

Hello team,
i was working with the Apex 3.0 sandbox and i was looking at the spanish translation of certain on-line help items, in search of inspiration as i am checking out a translation for one of my sites.
I find the spanish translation of Apex very good in general, as far as my mexican spanish goes, and even too "accurate" in the case of the following page item:
p_item_id=22210144053.4001
page 4316 of application 4000, "Expresión de Validación 1".
The translator translated even the PL/SQL code :-)
For instance, example number 3:
v('ITEM_1') no es nulo
should have been left
v('ITEM_1') is not null
and further on with example 4:
(v('ITEM_1') no es nulo y v('ITEM_2') es nulo) o bien
(v('ITEM_1') es nulo y v('ITEM_2') no es nulo)
Esta validación garantiza que sólo un elemento (ITEM_1, ITEM_2) tiene un valor.
from the original:
(v('ITEM_1') is not null and v('ITEM_2') is null) or
(v('ITEM_1') is null and v('ITEM_2') is not null)
I didn't check if this applies to other translations too.
Bye,
Flavio
Byte64's Annals of Oracle Improbable Errors
http://oraclequirks.blogspot.com

Flavio,
If I get your point you are referring to item help text that happens to contain an example in PL/SQL and the translator translated some of the PL/SQL into Spanish when it should have been left alone. Thanks for pointing that out.
Scott

Similar Messages

  • Problem with javascript onload in apex page

    I want to run some javascript in APEX when the user loads the page, but I am having trouble getting the onload function to work. I’m new to javascript so it’s probably a simple mistake on my part .
    All I want to do is to change the background colour of a field (P5_GRPT) depending on the value of another field (P5_MIN_DAYS). I just want to get something basic that works then I can build on it and make it more elegant/generic, but at the moment the script below appears to have no effect whatsoever. Any help would be much appreciated. I have set the cursor focus attribute to “do not focus cursor” (Apex version 3.01.00.12)
    Page header html:
    <script type="text/javascript">
    Function trafficlight()
    c = document.getElementById("P5_MIN_DAYS").value;
    switch(c)
    case 1:
    $x("P5_GRPT").style.backgroundColor = "green";break;
    case 2:
    $x("P5_GRPT").style.backgroundColor = "yellow";break;
    default:
    $x("P5_GRPT").style.backgroundColor = "red";break;
    </script>Page html body:
    onload="trafficlight();"

    hi
    I'm new in apex 3.2 javasrcript and speak spanish
    i have function in html header
    <script language="JavaScript" type="text/javascript">
    function colorSal(pCol){
    var elms=document.getElementsByname(pCol);
    for (i=0; i< elms.length; i++){
    if (elms.value < 1500){
    elms[i].style.backgroundColor ='yellow';
    </script>
    and on body header:
    onload="colorSal ('f07');"
    This should change color column seven of tabular form but it does not happen .
    the query in tabular form is
    select
    "EMPNO",
    "EMPNO" EMPNO_DISPLAY,
    "ENAME",
    "JOB",
    "MGR",
    "HIREDATE",
    "SAL",
    "COMM",
    "DEPTNO",
    "MODIFIED_BY",
    "TICKED"
    from "#OWNER#"."EMP"
    thanks for your help

  • Problems with Spanish language

    Hello!
    i'm connecting my DB with PHP, my problem comes when i try to capture ñ's or accents (á, é, í, ó, ú ). When i capture these character from my APEX they appear:
    20 fátima 20
    But, when i insert info from PHP the characters don't appear:
    15 f�tima 20
    My NLS_CHARACTERSET value on Oracle is AL32UTF8 and
    select * from nls_session_parameters;
    NLS_LANGUAGE MEXICAN SPANISH
    NLS_TERRITORY MEXICO
    NLS_CURRENCY $
    NLS_ISO_CURRENCY MEXICO
    NLS_NUMERIC_CHARACTERS .,
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD/MM/RR
    NLS_DATE_LANGUAGE MEXICAN SPANISH
    NLS_SORT WEST_EUROPEAN
    NLS_TIME_FORMAT HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT DD/MM/RR HH24:MI:SSXFF
    NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
    NLS_TIMESTAMP_TZ_FORMAT DD/MM/RR HH24:MI:SSXFF TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    select * from nls_instance_parameters;
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_SORT -
    NLS_DATE_LANGUAGE -
    NLS_DATE_FORMAT -
    NLS_CURRENCY -
    NLS_NUMERIC_CHARACTERS -
    NLS_ISO_CURRENCY -
    NLS_CALENDAR -
    NLS_TIME_FORMAT -
    NLS_TIMESTAMP_FORMAT -
    NLS_TIME_TZ_FORMAT -
    NLS_TIMESTAMP_TZ_FORMAT -
    NLS_DUAL_CURRENCY -
    NLS_COMP -
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    select * from nls_database_parameters;
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET AL32UTF8
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 10.2.0.1.0
    PHP has this sentence but it has ; (comment)
    ;default_charset = "iso-8859-1"
    Is this problem of ORacle or PHP, and what should i change?
    Thank u!

    Hi Rafael,
    I'm sure my friend Paolo is correct (+5 points buddy)
    I ran into this problem with the Swedish and German language files as well :(
    Swedish;
    http://forum.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Unified%20Communications%20and%20Video&topic=Unified%20Communications%20Applications&topicID=.ee835d2&CommCmd=MB%3Fcmd%3Dpass_through%26location%3Doutline%40%5E1%40%40.2cd33d55/0#selected_message
    German;
    http://forum.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Unified%20Communications%20and%20Video&topic=IP%20Telephony&CommCmd=MB%3Fcmd%3Dpass_through%26location%3Doutline%40%5E1%40%40.2cd4047b/0#selected_message
    Cheers!
    Rob

  • Wrong Apex import application

    Hi people.
    After migrating to Application express 3.1, I discovered the Apex features in SQLdev.
    Finally, today I tried to import an application inside SQLdev that I'd exported yesterday from another instance.
    The app imported without error messages, but when I run the application, strange characters (ñ / á) are replacing special spanish characters as á and ñ letters.
    I'm used to change the settings of character set values of NLS_LANG and other environment variables in installation of products and prior to run IMP and other utilities, due I run translated versions of Oracle Application Express and Oracle Database XE, but in this case, the procedures to run the Apex import inside SQLdeveloper don't include any place to change any international settings.
    After this failed try, I imported the same export app file using the Application express import utility, without errors, and displaying the "special" characters in the right way. (Then, the export file is correct)
    SQL dev didn't foresee this or I'm loosing some in the way?
    Thanks a lot.

    This has been addressed and should be in the next release.
    Sue

  • Looking for apex sensei

    hi all.
    I don't know whether it's possible or not to ask in this forum what i'm about to ask.
    I like very new working with apex, and i'm trying to develop an important app for the company. 2 experts were supposed to be hired to teach me, but that didn't occur.
    Is it possible to ask any of you to be my tutor during the development of this app?. under what terms?
    It's not a full time job, just need a tutor to help me when i get stucked...
    Thanks in advance for your quick response.
    Fernando Arroyo
    EC
    PD: spanish language prefered

    Hello,
    >>
    What i'm looking right now is for free help, therefore, i asume that not many people would like to help me dayly for help.
    >>
    Well I'd stick with the forums the adivce and examples you get here is invaluable though I do have a two pieces of advice.
    1: Work your way through the 2 Day + Developer's Guide and any of the other howto's that you see that pertain to what you are doing, these go over many basic features that will save you time and enargy and are well worth the time to go through.
    http://www.oracle.com/technology/products/database/application_express/html/doc.html
    2: Get a free account on apex.oracle.com to recreate pages that you are having problems on, this will help people help you in a much more productive way.
    Forum contributors have no problem helping you out, in fact I'd say people are happy to help because they remember being in the same situation. But at the same time it's your job to have a clear and concise question to the problem/problems you are having.
    Welcome aboard,
    Carl

  • Apex. calendar es_es bug

    Hello,
    I'm not a parter of Oracle and I don't know how to report a bug so i put this here.
    After spending 5 hours on it I won't give more time to it.
    I've found a bug.
    Steps:
    put the locale to es_es en the web browser.
    create a page based on a calendar.
    Access to the calendar object and without changing anything press aplicar cambios (save changes).
    Be sure nobody is changing the object at the same time and repeat the last step.
    If the locale is changed to en-us the problem is solved.
    Occurs on Apex 4.0.*
    Salut!

    Hi,
    I am able to reproduce to the issue. Please confirm the following steps to recreate is correct and also the error message which you should have seen
    1. Create a Calendar Page
    2. Change the Browser Language to Spanish [es-es]
    3. Goto Edit Page View
    4. edit the Calendar Region
    5. Click on Calendar Attributes and Click on Apply Changes button without making any changes.
    6. Throws the following error.
    ORA-20503: La versión actual de los datos de la base de datos ha cambiado desde que el usuario inició el proceso de actualización. total de control actual = "E32276E3A51E08AD9612CC159B97E66D" total de control de la aplicación = "F3BC70FA0AB99968AAC29DD5A4D8056F"
    No se ha podido procesar la fila de la tabla WWV_FLOW_CALS.
    Volver a la Aplicación
    Is the steps to recreate is right ? and also is this the error which you are getting ?
    Thanks
    JS

  • Apex 4.1 bug? Application language derived from Session changes time zone

    I have created an application in Apex 4.1 and in the "Initialization PL/SQL Code" for the session (what used to be called the VPD section) I have the following code:
    begin
      execute immediate 'alter session set time_zone = ''+01:00''';
    end;This works as expected, UNLESS the "Application Language Derived From" (under "Edit Globalization Attributes") is set to "Session", in which case the session's time zone is also affected (and not just the language, as one would expect).
    This can be seen in the following simple example, which runs the above code to set the time zone, and has the language derived from "Session":
    http://apex.oracle.com/pls/apex/f?p=38595
    This shows
    sessiontimezone = -05:00Even though the session's time_zone has been explicitly set to +01:00 with the ALTER SESSION statement.
    Experimentation with the URL shows that if a p_lang parameter is passed, with a valid language identifier, for example:
    http://apex.oracle.com/pls/apex/f?p=38595&p_lang=de
    then the time zone is affected (showing -05:00 instead of +01:00).
    However, if an INVALID time zone identifier is passed:
    http://apex.oracle.com/pls/apex/f?p=38595&p_lang=xx
    then the session time zone is CORRECT according to the ALTER SESSION command:
    sessiontimezone = +01:00If I change the "Application Language Derived From" to something else than "Session" (for example, "Browser" or "Item Preference"), then the timezone is also correct (ie follows the ALTER SESSION command).
    Running the page in debug mode confirms that the time zone is being set after my VPD/initialization code has been run:
    0.01585     0.00146     ...Application session: 1671806996734123, user=nobody     4     
    0.01731     0.00144     ...Execute Statement: begin begin execute immediate 'alter session set time_zone = ''+01:00'''; end; end;     4     
    0.01875     0.00065     Session: Fetch session header information     4     
    0.01940     0.00073     SESSION Language (nobody): wwv_flow.g_browser_language=en maplang=en     4     
    0.02013     0.00059     alter session set nls_language="AMERICAN"     4     
    0.02071     0.00043     alter session set nls_territory="AMERICA"     4     
    0.02114     0.00094     NLS: CSV charset=WE8MSWIN1252     4     
    0.02208     0.00111     ...NLS: Set Decimal separator="."     4     
    0.02318     0.00062     ...NLS: Set NLS Group separator=","     4     
    0.02380     0.00063     ...NLS: Set g_nls_date_format="DD-MON-RR"     4     
    0.02443     0.00091     ...NLS: Set g_nls_timestamp_format="DD-MON-RR HH.MI.SSXFF AM"     4     
    0.02534     0.00066     ...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"     4     
    0.02600     0.00050     ...Setting session time_zone to -05:00     4     
    0.02650     0.00065     Setting NLS_DATE_FORMAT to application date format: dd.mm.yyyy     4     
    0.02715     0.00056     ...NLS: Set g_nls_date_format="dd.mm.yyyy"     4     
    0.02771     0.00055     ...NLS: Set g_nls_timestamp_format="DD-MON-RR HH.MI.SSXFF AM"     4     
    0.02827     0.00057     ...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"     4     
    0.02884     0.00230     NLS: Language=en     4     
    Conclusion: It seems to me that when the LANGUAGE is set to be derived from the "Session", this also, as a side effect, alters the session TIME ZONE, which must be a bug... ?
    - Morten
    http://ora-00001.blogspot.com
    Edited by: mobra on Sep 24, 2011 7:14 PM

    Hi Arie,
    When you are setting the language to derived from session you actually declare that you are working in a dynamic environment – per session – and not in a static one. Using the Initialization PL/SQL Code is very static as the same code is executed for every database session.I was using a fixed time zone value in the ALTER SESSION to demonstrate the bug/problem... in real life, the actual time zone is derived dynamically based on a user profile stored in the database.
    APEX 4.0 introduced the Automatic Time Zone under the Globalization tab. By default it’s set to No but setting it to Yes will allow you to use your local time zone (as derived from your browser) with whatever language derived setting you choose, including per session with the *&p_lang* parameter.The key point is that LANGUAGE has nothing to do with TIME ZONEs, and vice versa. People speak English (and Spanish, and French, and Chinese for that matter) all over the world. You cannot determine a user's time zone based on the chosen language.
    You're telling me to enable "Automatic Time Zone" to work around an unwanted side effect from changing the language setting. Sorry, but that just sounds like bad advice to me.
    If you want to use session derived language, however the local time zone settings are not good for you, you can still change them with a Before Header and After Submit PL/SQL processes and an appropriate alter session statement, on a per page base. The APEX engine will not ignore a page based session setting.Why should I have to do this for every page when the "VPD" Section (now called "Initialization PL/SQL Code") is made for this purpose?
    If you look at the help text in the Apex builder for that section, it actually says that:
    The code entered here need not pertain to VPD/FGAC and may not be related to security at all.
    Any code that needs to be executed at the earliest point in a page request can be placed here.
    For example, the following code sets the database session time zone for every page request:
    BEGIN
       EXECUTE IMMEDIATE 'alter session set time_zone = ''Australia/Sydney'' ';
    END;So I hope the demonstrated behavior is not intentional, but a bug, and I'm hoping Joel sees it the same way.
    - Morten
    http://ora-00001.blogspot.com

  • Problems whit APEX

    Hello, i've been trying to run the Apex for my DB but it only appears a group of signs, something like this : .
    I downloaded Oracle 11g R2 , but i don't know if this problem has relation with listener or maybe because i'm working in a remote machine.
    I also tried to install apex but at the end it shows me an error in line 1 .
    I'm new with Oracle and i'd be glad if someone gives me an answer
    Thanks!

    while installing appears this message :
    create table www_flow_step_branches_arg(
    Error at line 1:
    ORA-00955: another object is already using this name (i suppose it's somentihg like this because it is in spanish)
    and this error appears in all of the sentence create.
    There is another error while the insert instruction is running:
    ORA -00001 : unique restriction violated

  • Language issues with 11g xe and apex

    Hi,
    Nice work indeed, but I found that there's not a Chinese version of 11g xe, it is in English, and also for apex embeded, is it ok for me to do the same as before, to install a language for apex by running the script offered within the apex package?
    After installing the apex app, some menus are in English in the interacitve report, like the 'action' button and its included functions, like aggregate, caculate, sort,

    Hi ,
    I have found the way, as the manual stated:
    3.3.10 About Running Oracle Application Express in Other Languages
    The Oracle Application Express interface is translated into German, Spanish, French, Italian, Japanese, Korean, Brazilian Portuguese, Simplified Chinese, and Traditional Chinese. A single instance of Oracle Application Express can be installed with one or more of these translated versions. At runtime, each user's Web browser language settings determine the specific language version.
    In order to install other languages you must use the apex_4.0.zip file which contains the extra files referenced below. If you previously downloaded apex_4.0_en.zip, then you don't need to re-install Oracle Application Express. Simply download apex_4.0.zip and unzip the file into the same directory where you unzipped apex_4.0_en.zip.
    The translated version of Oracle Application Express should be loaded into a database that has a character set that supports the specific language. If you attempt to install a translated version of Oracle Application Express into a database that does not support the character encoding of the language, the installation may fail or the translated Oracle Application Express instance may appear corrupt when run. The database character set AL32UTF8 supports all the translated versions of Oracle Application Express.
    You can manually install translated versions of Oracle Application Express using SQL*Plus. The installation files are encoded in AL32UTF8.
    Note:
    Regardless of the target database character set, to install a translated version of Oracle Application Express, you must set the character set value of the NLS_LANG environment variable to AL32UTF8 before starting SQL*Plus.
    The following examples illustrate valid NLS_LANG settings for loading Oracle Application Express translations:
    American_America.AL32UTF8
    Japanese_Japan.AL32UTF8
    3.3.10.1 Installing a Translated Version of Oracle Application Express
    Whether you are installing for the first time or upgrading from a previous release, you must run the load_lang.sql script to run a translated version of Oracle Application Express.
    The installation scripts are located in subdirectories identified by a language code in the unzipped distribution apex/builder. For example, the German version is located in apex/builder/de and the Japanese version is located in apex/builder/ja. Within each of directory, there is a language loading script identified by the language code (for example, load_de.sql or load_ja.sql).
    To install a translated version of Oracle Application Express:
    Set the NLS_LANG environment variable, making sure that the character set is AL32UTF8. For example:
    Bourne or Korn shell:
    NLS_LANG=American_America.AL32UTF8
    export NLS_LANG
    C shell:
    setenv NLS_LANG American_America.AL32UTF8
    For Windows based systems:
    set NLS_LANG=American_America.AL32UTF8
    Navigate to the directory under apex/builder based on the language you need to install. For example for German, navigate to apex/builder/de. Start SQL*Plus and connect to the database where Oracle Application Express is installed as SYS specifying the SYSDBA role. For example:
    On Windows:
    SYSTEM_DRIVE:\ sqlplus /nolog
    SQL> CONNECT SYS as SYSDBA
    Enter password: SYS_password
    On UNIX and Linux:
    $ sqlplus /nolog
    SQL> CONNECT SYS as SYSDBA
    Enter password: SYS_password
    Execute the following statement:
    ALTER SESSION SET CURRENT_SCHEMA = APEX_040000;
    Execute the appropriate language specific script. For example:
    @load_lang.sql
    Where lang is the specific language (for example, load_de.sql for German or load_ja.sql for Japanese).
    though I have to download apex 4.0.2, since the packages not avaliable within 11gXE.

  • Apex Err-1016

    Hi all,
    My application has been migrated to Apex 3.1 and I installed the translations in Spanish (language="es"). When I try to enter the application (in page: http://cdelafue-es:7777/pls/htmldb) I get the error "ERR-1016 Application "4550" Page "11" not found (requested language="es") ".
    Does anyone know the issue?
    Thanks.

    Hello Arie.
    I have done the changes that you pointed but the errors are there. I don´t know what is the problem.
    My dads.conf (in D:\oracle\product\Apex\Apache\modplsql\conf) have the next code:
    # ============================================================================
    # mod_plsql DAD Configuration File
    # ============================================================================
    # 1. Please refer to dads.README for a description of this file
    # ============================================================================
    # Note: This file should typically be included in your plsql.conf file with
    # the "include" directive.
    # Hint: You can look at some sample DADs in the dads.README file
    # ============================================================================
    Alias /i/ "D:\oracle\product\Apex\htmldb\images/"
    <Location /pls/apex>
    Order deny,allow
    PlsqlDocumentPath           docs
    AllowOverride None
    PlsqlDocumentProcedure wwv_flow_file_manager.process_download
    PlsqlDatabaseConnectString orcl
    PlsqlNLSLanguage SPANISH_SPAIN.AL32UTF8
    PlsqlAuthenticationMode Basic
    SetHandler pls_handler
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDatabaseUsername APEX_PUBLIC_USER
    PlsqlDefaultPage htmldb
    PlsqlDatabasePassword @BduyoWLxqVKc3iCZ6rfh+GA=
    PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize
    Allow from all
    </Location>
    My file marvel.conf has the code:
    Alias /i/ "D:\oracle\product\Apex\htmldb\images/"
    <Location /pls/htmldb>
    Order deny,allow
    PlsqlDocumentPath docs
    AllowOverride None
    PlsqlDocumentProcedure wwv_flow_file_manager.process_download
    PlsqlDatabaseConnectString cdelafue-es.es.oracle.com:1521:orcl ServiceNameFormat
    PlsqlNLSLanguage SPANISH_SPAIN.AL32UTF8
    PlsqlAuthenticationMode Basic
    SetHandler pls_handler
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDatabaseUsername APEX_PUBLIC_USER
    PlsqlDefaultPage htmldb
    PlsqlDatabasePassword @BduyoWLxqVKc3iCZ6rfh+GA=
    Allow from all
    </Location>
    Any idea?.
    Thanks.

  • Apex application registered with sso as partner application

    We have 1 apex app registered with sso and working properly.
    I just registered a new apex application with sso. when i authenticate through sso, it directs me to the originally registered application.
    I went in through the portal administrator app and verified my settings all pointed to the new application. I verified that my dad is set up correctly.
    Any ideas?
    APEX 2.0

    i did register and obtain the keys through portal admin.
    to ensure i used the proper keys (i guess there is a possibility i used the keys from db1 registration) i re-ran regapp with the right keys but recieved the following output:
    SQL> @regapp
    Partner Application Configuration
    Enter value for listener_token: HTML_DB:050iasphttp.xxx.na.xxx.com:7777
    Enter value for site_id: EFBE3E14
    Enter value for site_token: MSMXURH1EFBE3E14
    Enter value for login_url: https://050iaspdb.xxx.na.xxx.com:4443/pls/orasso/orasso.wwsso_app_admin.ls_login
    Enter value for encryption_key: 2EBDD126A3A40606
    Enter value for ip_check: N
    ERROR: Error in registration. Please try again
    User-Defined Exception
    Registration successful.
    Listener token: HTML_DB:050iasphttp.xxx.na.xxx.com:7777
    Site id : EFBE3E14
    Site token : MSMXURH1EFBE3E14
    Encryption key: 2EBDD126A3A40606
    Login URL :
    https://050iaspdb.xxx.na.xxx.com:4443/pls/orasso/orasso.wwsso_app_admi
    n.ls_login
    Logout URL :
    https://050iaspdb.xxx.na.xxx.com:4443/pls/orasso/orasso.wwsso_app_admi
    n.ls_logout
    IP check : N
    PL/SQL procedure successfully completed.
    Commit complete.
    No errors.
    SQL>
    ...in spite of the error, i aske the app developer to try and use sso for db2. he now recieves:
    User-Defined Exception
    Error Error in wwv_flow_custom_auth_sso.process_success:l_sso_user_name:l_sess_id:: Please contact administrator.
    OK
    any ideas?

  • APEX-The manullay created column is not getting updated in the database

    Dear all
    I have a form on page, which is created along with a report using Form on a Table with Report option. From the form I have deleted one field and recreated manullay as set the property as database column. When I am calling from the report page (using defualt edit option) the value is showing there, but if I am 'Apply Changes' , the column value in database is get updated with null.
    Please help
    DJ.

    This is the SQL and PL/SQL forum.
    Please re-post this on the APEX forum.
    Oracle Application Express (APEX)

  • APEX LISTENER Install troubleshooting

    Hi, I need help.. :-)
    Default Database connection not configured properly
    What I have done:
         ALTER USER APEX_LISTENER ACCOUNT UNLOCK;
         ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK;
         ALTER USER APEX_REST_PUBLIC_USER ACCOUNT UNLOCK;
         connect APEX_LISTENER/mypasswd1
         connect APEX_PUBLIC_USER/mypasswd2
         connect APEX_REST_PUBLIC_USER/mypasswd1
    Check default.xml
    password: replaced encrypted one with clear text one for APEX_PUBLIC_USER to ensure it is correct
    even tried APEX_LISTENER password just incase
    Is there a simple JDBC test to see if it connects? it is APEX_PUBLIC_USER who is connecting isn't it?
    ======================================================================
    java -jar apex.war
    Feb 22, 2013 12:44:40 PM oracle.dbtools.standalone.Standalone execute
    INFO: NOTE:
    Standalone mode is designed for use in development and test environments. It is not supported for use in production environments.
    Feb 22, 2013 12:44:40 PM oracle.dbtools.standalone.Standalone execute
    INFO: Starting standalone Web Container in: /data/oracle/orawd/product/11.2.0/dbhome_1/apex_listener/apex
    Feb 22, 2013 12:44:41 PM oracle.dbtools.standalone.Deployer deploy
    INFO: Will deploy application path = /data/oracle/orawd/product/11.2.0/dbhome_1/apex_listener/apex/apex/WEB-INF/web.xml
    Feb 22, 2013 12:44:41 PM oracle.dbtools.standalone.Deployer deploy
    INFO: Deployed application path = /data/oracle/orawd/product/11.2.0/dbhome_1/apex_listener/apex/apex/WEB-INF/web.xml
    Feb 22, 2013 12:44:41 PM oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
    INFO: Using configuration folder: /data/oracle/orawd/product/11.2.0/dbhome_1/apex_listener/apex
    Default Database connection not configured properly
    Feb 22, 2013 12:44:42 PM oracle.dbtools.rt.web.SCListener contextInitialized
    INFO: Oracle Application Express Listener initialized
    Application Express Listener version : 2.0.0.354.17.06
    Application Express Listener server info: Grizzly/1.9.49
    Feb 22, 2013 12:44:42 PM com.sun.grizzly.Controller logVersion
    INFO: GRIZZLY0001: Starting Grizzly Framework 1.9.49 - 2/22/13 12:44 PM
    Feb 22, 2013 12:44:42 PM oracle.dbtools.standalone.Standalone execute
    INFO: http://localhost:8888/apex started.

    That could be a problem.
    I was answering the question:
    BillC wrote:
    Is there a simple JDBC test to see if it connects? it is APEX_PUBLIC_USER who is connecting isn't it?Yes - APEX_PUBLIC_USER is the connecting user.
    You can use SQLPLUS to make sure you have the correct password.
    After that, it is the SERVER, PORT, SID/SERVICE in the APEX listener you need to confirm.
    You can TNSPING to confirm you have the correct selections for those.
    You can always re-run the java -jar apex.war setup command to all of the basic settings.
    The reason I mention that is because if you modify the settings manually - we need to ask "which file?" because there is the default and the database specific one too.
    Try making a request to the service in standalone mode and you should get a terminal output (the window stays open) with a more detailed error. I would guess there will be an ORA-12514, TNS listener does not currently know of service requested in descriptor or something similar that will give you the "debug" information you are looking for.
    Regards,
    --Tim St.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem with logging in to apex application builder listener

    I have problem with my settings and am posting this in hope that someone else out there had similar problem and solved it!
    I am trying to use reverseproxy to access to our db through apex listener.
    It's been all set-up and I can login to the application it self either through proxy or no proxy using the listener.
    But when I try to login to apex application builder I cannot do it through proxy(with no proxy, it works).
    It just refreshes the login page when I click login....
    I tried to upgrade the listener to the latest v1.1(using 1.0.2) but it causes my tomcat to crash...
    So solution i am looking for is how to make logging in work through proxy..
    In the firebug it is showing that below and few other request status as 302 moved temporariry
    http://myserver:8080/testsin/apex/wwv_flow.accept
    Where as with no proxy it is saying Found.....
    Any thoughts??
    Thanks
    Sin K

    Hello Sin K,
    so proxy and Tomcat are located on different machines as well? Is the proxy able to commuicate with the Tomcat on the configured internal ports and is the proxy able to lookup the hostname you configured for the Tomcat?
    For the connector, the proxyName and proxyPort should be the parameters the client uses to call APEX. So if your clients should call via http://proxyserver:8080/testsin/apex the settings would be
    proxyName=proxyserver
    proxyPort=8080Reason for this is that applications (e.g. the APEX Listener) generate there URL references with these parameters.
    But does your proxy actually serve on port 8080? And is that port accessible by clients? Do clients accept cookies from that server?
    In my case, there is only one 302 which redirects to http://host:port/apex/f?p=4500:1000:sessionid which is correct.
    If you look into your first post request in firebug, what's in the request header?
    -Udo

  • Need advise on SQL Report  base for APEX or jasper

    Hello everyone,
    I need some advise on how to approach this below report requirement. It has been bugging me for nearly 2 weeks now, and my time is running out.
    Here is a simplified version of the database
    Four tables: Defendant, Engagement, Service, Event.
    A defendant can have more than 1 engagement, but they have only one open engagement at a time.
    For each engagement, they will have services and events.
    These events can be just general events or events that relates to the service.
    Here is the script for the tables and sample data
    CREATE TABLE "DEFENDANT"
       ("DEF_ID" NUMBER,
         "FIRST_NAME" VARCHAR2(50 BYTE),
         "LAST_NAME" VARCHAR2(50 BYTE),
         "ACTIVE" NUMBER DEFAULT 1
    Insert into DEFENDANT (DEF_ID,FIRST_NAME,LAST_NAME,ACTIVE) values (1,'Joe','Bloggs',1);
    Insert into DEFENDANT (DEF_ID,FIRST_NAME,LAST_NAME,ACTIVE) values (2,'John','Doe',1);
    CREATE TABLE "ENGAGEMENT"
       ("ENG_ID" NUMBER,
         "DEF_ID" NUMBER,
         "COURT_NAME" VARCHAR2(20 BYTE),
         "DATE_JOINED" DATE,
         "DATE_TERMINATED" DATE,
         "ETHNICITY" VARCHAR2(50 BYTE),
         "ACTIVE" VARCHAR2(20 BYTE)
    Insert into ENGAGEMENT (ENG_ID,DEF_ID,COURT_NAME,DATE_JOINED,DATE_TERMINATED,ETHNICITY,ACTIVE) values (1,1,'AAA',to_date('01/09/12','DD/MM/RR'),to_date('20/09/12','DD/MM/RR'),'European','1');
    Insert into ENGAGEMENT (ENG_ID,DEF_ID,COURT_NAME,DATE_JOINED,DATE_TERMINATED,ETHNICITY,ACTIVE) values (2,2,'BBB',to_date('01/10/12','DD/MM/RR'),null,'Asian','1');
    Insert into ENGAGEMENT (ENG_ID,DEF_ID,COURT_NAME,DATE_JOINED,DATE_TERMINATED,ETHNICITY,ACTIVE) values (3,1,'AAA',to_date('22/09/12','DD/MM/RR'),null,'European','1');
    CREATE TABLE "EVENT"
       ("EVENT_ID" NUMBER,
         "ENG_ID" NUMBER,
         "NOTES" VARCHAR2(20 BYTE),
         "RELATED_SERVICE_ID" NUMBER,
         "START_DATE" DATE,
         "END_DATE" DATE,
         "ACTIVE" NUMBER DEFAULT 1
    Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (1,1,null,1,to_date('01/09/12','DD/MM/RR'),to_date('02/09/12','DD/MM/RR'),1);
    Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (2,1,null,1,to_date('23/09/12','DD/MM/RR'),null,1);
    Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (3,1,null,2,to_date('15/10/12','DD/MM/RR'),to_date('16/10/12','DD/MM/RR'),1);
    Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (4,2,null,null,to_date('02/10/12','DD/MM/RR'),null,1);
    Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (5,2,null,2,to_date('03/10/12','DD/MM/RR'),null,1);
    Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (6,3,null,null,to_date('22/09/12','DD/MM/RR'),to_date('23/09/12','DD/MM/RR'),1);
    Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (7,3,null,4,to_date('23/09/12','DD/MM/RR'),null,1);
    Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (8,2,null,null,to_date('12/10/12','DD/MM/RR'),null,1);
    CREATE TABLE "SERVICE"
       (     "SERVICE_ID" NUMBER,
         "ENG_ID" NUMBER,
         "DESCRIPTION" VARCHAR2(200 BYTE),
         "DATE_STARTED" DATE,
         "DATE_TERMINATED" DATE,
         "ACTIVE" NUMBER DEFAULT 1
    Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (1,1,'Counselling',to_date('15/09/12','DD/MM/RR'),to_date('18/09/12','DD/MM/RR'),1);
    Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (2,1,'Housing',to_date('20/09/12','DD/MM/RR'),null,1);
    Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (3,2,'Treatment',to_date('01/10/12','DD/MM/RR'),to_date('15/10/12','DD/MM/RR'),1);
    Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (4,3,'Housing',null,null,1);
    Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (5,1,'Other',to_date('05/10/12','DD/MM/RR'),null,0);
    Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (6,2,'Treatment',to_date('16/10/12','DD/MM/RR'),null,1);****
    And this is the view I am thinking to use as the base for the report
    CREATE OR REPLACE FORCE VIEW "BASE_VW"
    AS
      SELECT Def.Def_Id,
        Def.First_Name,
        Def.Last_Name,
        Eng.Eng_Id,
        Eng.Court_Name,
        Eng.Date_Joined,
        Eng.Date_Terminated,
        Eng.Ethnicity,
        Ser.Service_Id,
        Ser.Description,
        Ser.Date_Started    AS Service_Start_Date,
        Ser.Date_Terminated AS Service_Date_Terminated,
        Ser.Active          AS Service_Active,
        Ev.Event_Id,
        Ev.Related_Service_Id,
        Ev.Start_Date,
        Ev.End_Date,
        Ev.Notes,
        ev.active AS event_active
      FROM Defendant Def
      LEFT OUTER JOIN Engagement Eng
      ON Def.Def_Id = Eng.Def_Id
      LEFT OUTER JOIN Service Ser
      ON Eng.Eng_Id = Ser.Eng_Id
      LEFT OUTER JOIN Event Ev
      ON Ev.Eng_Id = Eng.Eng_Id;****
    Requirement:
    Report parameter: Start Date, End Date, Court_name
    From chosen Court_name, list defendants who currently engage in the court.
    For each defendant display
    Section 1: Identifying Details: First Name, Last Name, Ethnicity, Date Joined Court
    Section 2: All Services currently active that the defendant attend
    Section 3: All Events that related to the service that the defendant attend
    Section 4: All other events (don't have Related Service ID)
    User must be able to download the whole report in spreadsheet or PDF format.
    I did try to create a set of union selects (but the format is not that good, when no data return it display nothing, I would rather show some messages like "There is no associated events, rather than nothing")
    and it only produces report for 1 defendant at a time.
    We use Oracle APEX , so only select statement or PL/SQL Code return select statement is valid for report source.
    In our place we use Jasper Report adjacent to APEX, but I have very little experience with Jasper report.
    The developer who knows a lot about jasper report is too busy to help me.
    Currently, I use union selects like below:
    With Current_Engagement As
    ( Select Eng_Id From Engagement
      Where Def_Id =2
      And Date_Joined Is Not Null
      And ( Date_Terminated Is Null Or Date_Terminated > Sysdate)
      And Rownum =1
    Select '1.Defendant ID' as col1, 'First Name' as col2, 'Last Name' as col3, 'Court Name' as col4, 'Ethnicity' as col5, 'Date Joined' as col6, 'Date Terminated' as col7
    From Dual
    Union All
    Select Distinct to_char(Def_Id), First_Name, Last_Name, Court_Name, Ethnicity, to_char(Date_Joined), to_char(Date_Terminated)
    From Base_Vw Inner Join Current_Engagement Ce On Base_Vw.Eng_Id = Ce.Eng_Id
    Union All
    select '2.Service ID', 'Service Description', 'Start Date', 'End Date', Null, Null, Null
    from dual
    Union All
    Select distinct to_char(service_id), description, to_char(service_start_date), to_char(service_date_terminated), null, null, null
    From Base_Vw Inner Join Current_Engagement Ce On Base_Vw.Eng_Id = Ce.Eng_Id
    where service_active =1
    Union All
    Select '3.Event ID', 'Related Service ID', 'Start Date', 'End date', 'Notes', null, null
    From Dual
    Union All
    Select distinct to_char(event_id), to_char(related_service_id), to_char(start_date), to_char(end_date), notes, null, null
    from Base_Vw Inner Join Current_Engagement Ce On Base_Vw.Eng_Id = Ce.Eng_Id
    Where Event_Active = 1
    and related_service_id is not null
    Union All
    Select '4.Event ID', 'Start Date', 'End date', 'Notes', null, null, null
    From Dual
    Union All
    Select distinct to_char(event_id), to_char(start_date), to_char(end_date), notes, null, null, null
    From Base_Vw Inner Join Current_Engagement Ce On Base_Vw.Eng_Id = Ce.Eng_Id
    Where Event_Active = 1
    and related_service_id is nulland the result is kind of what I try to achieve (except that I need to work on display a message 'No data found' rather than nothing), But it seems that my code works only for one defendant.
    COL1                           COL2                           COL3                           COL4                 COL5                 COL6        COL7         
    1.Defendant ID                 First Name                     Last Name                      Court Name           Ethnicity            Date Joined Date Terminated
    2                              John                           Doe                            BBB                  Asian                01/10/12                   
    2.Service ID                   Service Description            Start Date                     End Date                                                             
    3                              Treatment                      01/10/12                       15/10/12                                                             
    6                              Treatment                      16/10/12                                                                                            
    3.Event ID                     Related Service ID             Start Date                     End date             Notes                                           
    5                              2                              03/10/12                                                                                            
    4.Event ID                     Start Date                     End date                       Notes                                                                
    4                              02/10/12                                                                                                                           
    8                              12/10/12                                                                                                                           
    10 rows selected
         However, I struggle to find a way to apply this to more than 1 defendant and still keep the format.
    Defendant 1
    All details related to defendant 1
    Defendant 2
    All details relayed to defendant 2
    Defendant n
    All details relayed to defendant nIs it possible to display a report as above by using only SQL script ?
    Thanks a lot in advance. I am willing to compensate financially to someone who can give me a solution.
    Edited by: Ann586341. View base_vw SQL script is fixed.

    Thanks a lot Jeneesh. (You are really a guru.)
    It is nearly 98% what the requirements ask for.
    I just have one more question.
    If I add more information into the database, just one more defendant
    Insert into DEFENDANT (DEF_ID,FIRST_NAME,LAST_NAME,ACTIVE) values (3,'Minnie','Mouse',1);
    --and one in Engagement table
    Insert into ENGAGEMENT (ENG_ID,DEF_ID,COURT_NAME,DATE_JOINED,DATE_TERMINATED,ETHNICITY,ACTIVE) values (4,3,'BBB',to_date('05/10/12','DD/MM/RR'),null,'Latin America','1');Then I run the select statment again (without changing anything)
    With Current_Engagement As
    ( Select Eng_Id
      From Engagement
      Where /*Def_Id =2
      And*/ Date_Joined Is Not Null
      And ( Date_Terminated Is Null Or Date_Terminated > Sysdate)
      --And Rownum =1
    titles as
    ( Select  .9 dummy_rn,'1.Defendant ID' as col1, 'First Name' as col2, 'Last Name' as col3,
        'Court Name' as col4, 'Ethnicity' as col5, 'Date Joined' as col6,
        'Date Terminated' as col7
      From Dual
      union all
      select  1.9,'2.Service ID', 'Service Description', 'Start Date', 'End Date',
        Null, Null, Null
      from dual
      union all
      Select  2.9,'3.Event ID', 'Related Service ID', 'Start Date', 'End date', 'Notes',
        null, null
      From Dual
      Union All
      Select 3.9,'4.Event ID', 'Start Date', 'End date', 'Notes', null, null, null
      From Dual
    all_titles as
    ( select dummy_rn,eng_id,col1,col2,col3,col4,col5,col6,col7
      from current_engagement,titles
    select col1,col2,col3,col4,col5,col6,col7
    from (
          select dummy_rn,eng_id,col1,col2,col3,col4,col5,col6,col7
          from all_titles
          Union All
          Select Distinct 1,ce.eng_id,decode(Base_Vw.Eng_Id,null,'No Data',to_char(Def_Id)) def_id,
                          decode(Base_Vw.Eng_Id,null,'No Data',First_Name) First_Name,
                          decode(Base_Vw.Eng_Id,null,'No Data',last_Name) Last_Name,
                          decode(Base_Vw.Eng_Id,null,'No Data',court_Name) Court_Name,
                          decode(Base_Vw.Eng_Id,null,'No Data',ethnicity) Ethnicity,
                 to_char(Date_Joined), to_char(Date_Terminated)
          From Base_Vw
                  right outer join Current_Engagement Ce
                  On Base_Vw.Eng_Id = Ce.Eng_Id
          Union All
          Select distinct 2,ce.eng_id,
                decode(Base_Vw.Eng_Id,null,'No Data',to_char(service_id)),
                decode(Base_Vw.Eng_Id,null,'No Data',description) ,
                decode(Base_Vw.Eng_Id,null,'No Data',to_char(service_start_date)),
                decode(Base_Vw.Eng_Id,null,'No Data',to_char(service_date_terminated)) ,
                decode(Base_Vw.Eng_Id,null,'No Data',null),
                decode(Base_Vw.Eng_Id,null,'No Data',null),
                decode(Base_Vw.Eng_Id,null,'No Data',null)
          From Base_Vw
                  right outer Join Current_Engagement Ce
                  On Base_Vw.Eng_Id = Ce.Eng_Id
          where service_active =1
          Union All
          Select distinct 3,ce.eng_id,
                 decode(Base_Vw.Eng_Id,null,'No Data',to_char(event_id)),
                 decode(Base_Vw.Eng_Id,null,'No Data',to_char(related_service_id)),
                 decode(Base_Vw.Eng_Id,null,'No Data',to_char(start_date)),
                 decode(Base_Vw.Eng_Id,null,'No Data',to_char(end_date)),
                 decode(Base_Vw.Eng_Id,null,'No Data',notes),
                 decode(Base_Vw.Eng_Id,null,'No Data',null),
                 decode(Base_Vw.Eng_Id,null,'No Data',null)
          from Base_Vw
               right outer Join Current_Engagement Ce
               On Base_Vw.Eng_Id = Ce.Eng_Id
          Where Event_Active = 1
          and related_service_id is not null
          Union All
          Select distinct 4,ce.eng_id,
                  decode(Base_Vw.Eng_Id,null,'No Data',to_char(event_id)),
                  decode(Base_Vw.Eng_Id,null,'No Data',to_char(start_date)),
                  decode(Base_Vw.Eng_Id,null,'No Data',to_char(end_date)),
                  decode(Base_Vw.Eng_Id,null,'No Data',notes),
                  decode(Base_Vw.Eng_Id,null,'No Data',null),
                  decode(Base_Vw.Eng_Id,null,'No Data',null),
                  decode(Base_Vw.Eng_Id,null,'No Data',null)
          From Base_Vw
              right outer Join Current_Engagement Ce
              On Base_Vw.Eng_Id = Ce.Eng_Id
          Where Event_Active = 1
          and related_service_id is null
    order by eng_id,dummy_rn,col1
    ;The result is
    COL1                           COL2                           COL3                      COL4                 COL5                      COL6        COL7         
    1.Defendant ID                 First Name                     Last Name                 Court Name           Ethnicity                 Date Joined Date Terminated
    2                              John                           Doe                       BBB                  Asian                     01/10/12                   
    2.Service ID                   Service Description            Start Date                End Date                                                                  
    3                              Treatment                      01/10/12                  15/10/12                                                                  
    6                              Treatment                      16/10/12                                                                                            
    3.Event ID                     Related Service ID             Start Date                End date             Notes                                                
    5                              2                              03/10/12                                                                                            
    4.Event ID                     Start Date                     End date                  Notes                                                                     
    4                              02/10/12                                                                                                                           
    8                              12/10/12                                                                                                                           
    1.Defendant ID                 First Name                     Last Name                 Court Name           Ethnicity                 Date Joined Date Terminated
    1                              Joe                            Bloggs                    AAA                  European                  22/09/12                   
    2.Service ID                   Service Description            Start Date                End Date                                                                  
    4                              Housing                                                                                                                            
    3.Event ID                     Related Service ID             Start Date                End date             Notes                                                
    7                              4                              23/09/12                                                                                            
    4.Event ID                     Start Date                     End date                  Notes                                                                     
    6                              22/09/12                       23/09/12                                                                                            
    1.Defendant ID                 First Name                     Last Name                 Court Name           Ethnicity                 Date Joined Date Terminated
    3                              Minnie                         Mouse                     BBB                  Latin America             05/10/12                   
    2.Service ID                   Service Description            Start Date                End Date                                                                  
    3.Event ID                     Related Service ID             Start Date                End date             Notes                                                
    4.Event ID                     Start Date                     End date                  Notes                                                                     
    23 rows selected Is it possible in SQL to display it like this
    COL1                           COL2                           COL3                      COL4                 COL5                      COL6        COL7         
    1.Defendant ID                 First Name                     Last Name                 Court Name           Ethnicity                 Date Joined Date Terminated
    2                              John                           Doe                       BBB                  Asian                     01/10/12                   
    2.Service ID                   Service Description            Start Date                End Date                                                                  
    3                              Treatment                      01/10/12                  15/10/12                                                                  
    6                              Treatment                      16/10/12                                                                                            
    3.Event ID                     Related Service ID             Start Date                End date             Notes                                                
    5                              2                              03/10/12                                                                                            
    4.Event ID                     Start Date                     End date                  Notes                                                                     
    4                              02/10/12                                                                                                                           
    8                              12/10/12                                                                                                                           
    1.Defendant ID                 First Name                     Last Name                 Court Name           Ethnicity                 Date Joined Date Terminated
    1                              Joe                            Bloggs                    AAA                  European                  22/09/12                   
    2.Service ID                   Service Description            Start Date                End Date                                                                  
    4                              Housing                                                                                                                            
    3.Event ID                     Related Service ID             Start Date                End date             Notes                                                
    7                              4                              23/09/12                                                                                            
    4.Event ID                     Start Date                     End date                  Notes                                                                     
    6                              22/09/12                       23/09/12                                                                                            
    1.Defendant ID                 First Name                     Last Name                 Court Name           Ethnicity                 Date Joined Date Terminated
    3                              Minnie                         Mouse                     BBB                  Latin America             05/10/12                   
    2.Service ID                   Service Description            Start Date                End Date                                                                  
    No Service Found
    3.Event ID                     Related Service ID             Start Date                End date             Notes                                                
    No Event Found
    4.Event ID                     Start Date                     End date                  Notes                                                              
    No Event FoundOr just a 'No data found' would do. I am thinking about create a dummy table which contains only one row with text "There is no data found". And so the outer join with the result, but I still cannot work out how to integrate with the condition in your select statement.
    I really appreciate your help.

Maybe you are looking for