Help with Apex.

Hi, i work with Oracle XE and Apex 2.1.0, i need generate reports using Word Documents,
i need create the reports, based in template of Word, my question is:
How create a new Word Document based in template and store in the field BLOB type?
Can i have using PL/SQL PROCESS?
And finally, how open the Word Documents from Apex? One example please.
Thank.
Roberto.

Hi, have a problem to open documents Word:
My table is:
file_subjects;
NAME .............................VARCHAR2(4000)
SUBJECT.........................VARCHAR2(4000)
ID.....................................NUMBER
BLOB_CONTENT..............BLOB()
MIME_TYPE.....................VARCHAR2(4000)
...i created a report with column link , call to procedure DOWNLOAD_MY_FILE as URL:
#OWNER#.download_my_file?p_file=#ID#
My store procedure is:
create or replace
PROCEDURE download_my_file(p_file in number) AS
v_mime VARCHAR2(48);
v_length NUMBER;
v_file_name VARCHAR2(2000);
Lob_loc BLOB;
BEGIN
SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
INTO v_mime,lob_loc,v_file_name,v_length
FROM file_subjects
WHERE id = p_file;
owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
-- set the size so the browser knows how much to download
htp.p('Content-length: ' || v_length);
-- the filename will be used by the browser if the users does a save as
htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
-- close the headers
owa_util.http_header_close;
-- download the BLOB
wpg_docload.download_file( Lob_loc );
end download_my_file;
....i clicking on column link, generate the error:
Forbidden
The requested operation is not allowed
Help me, please.
Roberto.

Similar Messages

  • Help with apex to ebusiness suite 11.5.10

    Hello,
    posted on ebusiness suite side, but they say to try here on apex side.
    We are trying to follow the Cabot document found at
    http://www.stuffspec.com/Read/_sp.d3d3Lm9yYWNsZS5jb20-sp..sltechnetwork.sl_developer-tools.sl_apex.sl_apex-ebs-wp-cabot-consulting-169064.pdf
    but are having troubles just trying to get the ebusiness set up part done.
    We are having troubles on page 5 of 8 where it talks about creating the plsql form function with the following attributes.
    When we set the Properties/Type to be SSWA plsql function, it does not want to accept it and will not save as SSWA plsql function.
    I have searched and read and followed so many links my head is spining. Has anyone else had this type of issue, and could tell us what we are doing wrong? Does the Cabot approach work for everyone, or is there another method that will work better?
    We are using a stand alone apex server. We have a 11.5.10.2 e-bus suite which we use SSO for the hrSelfService. We are trying to add the new apex application to the hrselfservice menu. I following the Cabot white paper and I have created the procedure apex_launch as follows. I have some questions about it that are inline:
    PROCEDURE APPS.apex_launch (
    application IN NUMBER
    , page IN NUMBER DEFAULT 1
    , request IN VARCHAR2 DEFAULT NULL
    , item_names IN VARCHAR2 DEFAULT NULL
    , item_values IN VARCHAR2 DEFAULT NULL)
    Is
    Begin
    OWA_UTIL.mime_header('text/html', false); ---- Is the url correct? Since my apex server is separate, do I need the APPS_FRAMEWORK_AGENT???
    OWA_UTIL.redirect_url( ---- Do i need to create a DAD for pls/apex?
    'https://ourserver.school.edu/pls/apex/f?p='||
    application||':'||page||'::'||request||':::'||
    item_names||':'||item_values);
    End apex_launch;
    I created the form function with the following attributes:
    Properties/Type -> SSWA plsql function
    Web HTML/HTML Call -> apex_launch
    Form/Parameter -> application=310
    I am able to save the plsql form function with no errors. However, when i go back in to look at the form function: property type, it is set to "database provider portlet". (I have opened an SR on this issue and as yet, i don't have a solution.)
    I then add the new form function to the hr self service menu. When I go into self service, the new function does not display.
    If I change the property to SSWA plsql function that opens a new window (Kiosk mode) and save the form function and don't change anything else, when I go into self service the new function displays. However ,when I click on it, it opens another e-bus suite logon page. After entering the username/password it just brings up the ebus suite application, not the apex application.
    Can anybody help me? thanks.
    Thank you,
    Mark

    Hi Mark,
    Nope, that is the one of the issue im facing still that is the single sign on(even if i integrated APEX with EBS R12), im having issues with that.
    It is asking two login credentials for me
    <li>one is Ebs login credentials
    <li>The other one is Apex Login credentials.
    Soon after logging into the ebs, if i clicked the APEX menu means, the APEX login page is appearing.
    If it is SSO means, the APEX login page should not appear soon after clicking the APEX menu in the EBS.
    How to pass my APEX login credentials to the EBS, so that i can enter into my APEX application (via) EBS only with the EBS login page. Soon after entering into the EBS login page into the application. While if i clicked the APEX menu means, i need to navigate directly to the APEX Application page. And APEX login page should not appear.
    Thanks
    Regards,
    Mini

  • Help with APEX.COLLECTIONS in v. 3.2

    Hello, we are trying to create an apex.collection in our program similar to the one used in the sample application "Matrix Order 1.0"
    Working Code used in "Matrix Order 1.0" is as follows:
    if APEX_COLLECTION.COLLECTION_EXISTS (p_collection_name => 'MATRIX' ) then
    APEX_COLLECTION.DELETE_COLLECTION (p_collection_name => 'MATRIX' );
    end if;
    APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY(
    p_collection_name => 'MATRIX',
    p_query => 'select PRO_STYLE,PRO_COLOUR,PRO_UNIT_PRICE,S,M,L,XL from MATRIX_PRODUCTS_BY_SIZE order by 1,2,3' );
    What we've tried in ours is as follows:
    if APEX_COLLECTION.COLLECTION_EXISTS (p_collection_name => 'TRAINING' ) then
    APEX_COLLECTION.DELETE_COLLECTION (p_collection_name => 'TRAINING' );
    end if;
    APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY(
    p_collection_name => 'TRAINING',
    p_query => 'select * from IDEAS_USERS_VIEW' );
    End result is a message stating "no data found"
    Any thoughts?
    Additional information:
    we've tried above creating a view from a table, we've also tried putting the table name right in the query field - same results.
    we've also tried several over variations of the code found on the web such as the following:
    APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY(
    p_collection_name => 'TRAINING',
    p_query => 'select * from IDEAS_USERS_VIEW' ,
    p_generate_md5 => 'NO' );
    Again - same result - "no data found"
    Please Help!

    My teammate figured it out.
    the problem was under the Conditional Processing section they had the following set:
    Condition Type = "Request = Expression 1"
    Expression 1 = NEW
    Solution was to set to "No Condition" and deleted the value of "NEW"
    I'm sure we'll be back soon with questions on how to update and store it.... stay tuned.

  • Help with apex 4.0 installation steps

    i tried to install apex 4.0 running on my laptop with oracle 11g on windows7.
    unfortunately i am stuck at a point it doesnot accept admin password.
    the installation guide listed below is too unstructured and am not sure what all the components it require for apex running?
    if anyone has list of software required and the steps (including pre-requisites) in the PROPER ORDER, PLEASE POST. Appreciate your help
    It will be a quite bit of help. I have spent enough time on this but the document i found below for installation is not good. It is just my opinion.
    http://download.oracle.com/docs/cd/B32472_01/doc/install.300/b32468.pdf
    Edited by: rajugopalli on May 18, 2011 1:02 AM
    Edited by: rajugopalli on May 18, 2011 1:03 AM

    Hi,
    If you like install Apex version 4, it might help and advisable if you read same version documentation.
    http://download.oracle.com/docs/cd/E17556_01/doc/install.40/e15513/toc.htm
    Link you did post is release 3.0 document
    Regards,
    Jari

  • Help With apex.server.process

    Hello,
    I am trying to use the new apex.server.process function to and I seem to be having some issues with it. The call itself seems to be working fine as in firebug it returns what I expect. Its just that I am returning the json string into an object and that is what is causing the problem.
    Here is my on-demand process:
    DECLARE
      lv_json             VARCHAR2(4000 CHAR);
      lv_score            NUMBER(12);
    BEGIN
        --Will get the score from the database...
        lv_score := round(fm_apex.events_api.get_percent_complete(:P40_EVENT_ID,'TOTAL'));
        IF lv_score = 100 THEN
          lv_json := '{"success":true}';
        ELSE
          lv_json := '{"success":false}';
        END IF;
        htp.p(lv_json);
    END;
    And this is my javascript function:
    function checkScore(pThis)
        var getScore = apex.server.process(
            'IS_SCORE_COMPLETE_JSON',
                pageItems: "#P40_EVENT_ID"
        if ( eval(getScore.success) )  {
            alert('This is successful');
            //doSubmit(pThis.id);       
        } else {
            openModal('notScoredFully');
    What is happening is when the response is {"success":false} and in firebug it is still evaluating it to true? Can anybody see what I am doing wrong?
    Cheers,
    Paul.

    1/ apex.server.process is asynchronous. You are handling it as if it is not. You fire the call and it is gone, unlike htmldb_get which works synchronously (=makes the browser wait for the return). You need to use the success function.
    JavaScript APIs apex.server.process
    The return value of the server.process call is a jqXHR object, documentation on which you can find here: jQuery.ajax() | jQuery API Documentation
    I would just use success though, as demonstrated in the example of the documentation.
    apex.server.process ( "MY_PROCESS", {
      x01: "test",
      pageItems: "#P1_DEPTNO,#P1_EMPNO"
    success: function( pData ) { ... do something here ... }
    Thus something along these lines:
    apex.server.process(   'IS_SCORE_COMPLETE_JSON'
                         , { pageItems: "#P40_EVENT_ID" }
                         , { success: function( pData ) {
                                        if(pData.success){
                                          alert('This is successful');
                                        } else {
                                          alert('This is NOT successful');
    2/ apex.server.process by default handles the return value as a json datatype. You would not need to "eval" it.

  • Request for help with apex page popup on button press.

    Apex 3.2/Solaris 10
    I'm attempting to open an apex page (report) in a popup window when a button is pressed following the plethora of examples in the forum.
    I've applied the following in "Edit Page Buttons" to either of "Button Attributes" and "URL Target" trying to open my report (page 14) in a popup window.
    javascript.popupURL('f?p=&APP_ID.:14:&SESSION.');
    javascript.popup2('f?p=&APP_ID.:14:&SESSION.');
    window.open('f?p=&APP_ID.:14:&SESSION.');
    I've also implemented the conditional branch for this button to alleviate the "page not found - restart application" error.
    The window.open variant does not work. The 2 javascript. variants open the page, but in the same window (no popup).
    also I've read that in order to close my pop up report (should it be working), a window.close(); should be issued somehow associated with a close button on the popup page. Specifically, where would this code be placed?
    Thank you!
    Paul

    Paul:
    Specify the URL as
    javascript:popupURL('f?p=&APP_ID.:14:&SESSION.');
    instead of
    javascript.popupURL('f?p=&APP_ID.:14:&SESSION.');
    Varad

  • Need help with Apex 4.0 tabular form and searchable select list

    I would like to use an exisiting plugin for a searchable combo box on a tabular form. When I define the item types on my tabular form I don't see the plugin as an option. I reviewed the help documentation for the apex_item api for the tabular form but I didn't see how I could reference the plugin. Has anyone done this or have other ideas? Any help would be greatly appreciated.

    I noticed this problem in the first beta version but I thought this is so obvious and it will be corrected so I didn't follow on it further. This looks like a bug in 4.0. If I use firebug, I will see that the selected value is still RESEARCH allthough the display changes - <option selected="selected" value="20">RESEARCH</option> If I click on SAVE than wrong values will be changed.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • I need help with apex send mail

    I have created a apex send email, I tried to make it work I need help
    DECLARE
    v_Message VARCHAR2(4000);
    v_MsgHTML VARCHAR2(4000);
    v_CRLF VARCHAR2(6) := CHR(13) || CHR(10);
    begin
    v_Message := 'Your request has been sent to the Help Desk team:' ||
    v_CRLF || v_CRLF;
    v_Message := v_Message || 'YOUR_NAME: ' || :P10_YOUR_NAME || v_CRLF;
    v_Message := v_Message || 'COMPANY_Name: ' || :P10_COMAPNY_NAME || v_CRLF;
    v_Message := v_Message || 'ADDRESS: ' || :P10_ADDRESS || v_CRLF;
    v_Message := v_Message || 'CITY: ' || :P10_CITY || v_CRLF || v_CRLF;
    v_Message := v_Message || 'STATE: ' || :P10_STATE || v_CRLF;
    v_Message := v_Message || 'ZIP: ' || :P10_ZIP || v_CRLF;
    v_Message := v_Message || 'DAYTIME_PHONE: ' || :P10_DAYTIME_PHONE || v_CRLF;
    v_Message := v_Message || 'EVENTING_PHONE: ' || :P10_EVENTING_PHONE || v_CRLF || v_CRLF
    v_Message := v_Message || 'MOBILE_PHONE: ' || :P10_MOBILE_PHONE || v_CRLF;
    v_Message := v_Message || 'FAX: ' || :P10_FAX || v_CRLF;
    v_Message := v_Message || 'EMAIL_ADDRESS: ' || :P10_EMAIL_ADDRESS || v_CRLF;
    v_Message := v_Message || 'OCCASION: ' || :P10_OCCASION || v_CRLF || v_CRLF
    v_Message := v_Message || 'TYPE_OF_PARTY: ' || :P10_TYPE_OF_PARTY || v_CRLF;
    v_Message := v_Message || 'DATE_OF_EVENT: ' || :P10_DATE_OF_EVENT || v_CRLF;
    v_Message := v_Message || 'TIME_OF_EVENT: ' || :P10_TIME_OF_EVENT || v_CRLF;
    v_Message := v_Message || 'LOCATION_OF EVENT: ' || :P10_LOCATION_OF EVENT || v_CRLF || v_CRLF
    v_Message := v_Message || 'ESTIMATED_GUEST_COUNT: ' || :P10_ESTIMATED_GUEST_COUNT || v_CRLF;
    v_CRLF := '
    v_MsgHTML := 'Your request has been sent to the Help Desk team:' ||
    v_CRLF || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'YOUR_NAME: ' || :P10_YOUR_NAME || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'COMPANY_Name: ' || :P10_COMAPNY_NAME || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'ADDRESS: ' || :P10_ADDRESS || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'CITY: ' || :P10_CITY || v_CRLF || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'STATE: ' || :P10_STATE || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'ZIP: ' || :P10_ZIP || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'DAYTIME_PHONE: ' || :P10_DAYTIME_PHONE || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'EVENTING_PHONE: ' || :P10_EVENTING_PHONE || v_CRLF || v_CRLF
    v_MsgHTML := v_MsgHTML || 'MOBILE_PHONE: ' || :P10_MOBILE_PHONE || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'FAX: ' || :P10_FAX || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'EMAIL_ADDRESS: ' || :P10_EMAIL_ADDRESS || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'OCCASION: ' || :P10_OCCASION || v_CRLF || v_CRLF
    v_MsgHTML := v_MsgHTML || 'TYPE_OF_PARTY: ' || :P10_TYPE_OF_PARTY || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'DATE_OF_EVENT: ' || :P10_DATE_OF_EVENT || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'TIME_OF_EVENT: ' || :P10_TIME_OF_EVENT || v_CRLF;
    v_MsgHTML := v_MsgHTML || 'LOCATION_OF EVENT: ' || :P10_LOCATION_OF EVENT || v_CRLF || v_CRLF
    v_MsgHTML := v_MsgHTML || 'ESTIMATED_GUEST_COUNT: ' || :P10_ESTIMATED_GUEST_COUNT || v_CRLF;
    HTMLDB_MAIL.SEND(
    P_TO => '[email protected]',
    P_FROM => :P16_EMAIL,
    P_BODY => v_message,
    P_BODY_HTML => v_MsgHTML,
    P_SUBJ => :P16_CHURCH_NAME || ' Help Request');
    APEX_MAIL.PUSH_QUEUE;
    end;
    YOUR_NAME,
    COMPANY_NAME,
    ADDRESS,
    CITY,
    STATE,
    ZIP,
    DAYTIME_PHONE,
    EVENTTIME_PHONE,
    MOBILE_PHONE,
    FAX,
    EMAIL_ADDRESS,
    OCCASION,
    TYPE_OF_PARTY,
    DATE_OF_EVENT,
    TIME_OF_EVENT,
    LOCATION_OF EVENT,
    ESTIMATED_GUEST_COUNT

    DECLARE
    v_message VARCHAR2 (4000); v_msghtml VARCHAR2 (4000); v_crlf VARCHAR2 (6) := CHR (13) || CHR (10);BEGIN v_message := 'Your request has been sent to the Help Desk team:' || v_crlf
    || v_crlf; v_message := v_message
    || 'YOUR_NAME: ' || :p10_your_name
    || v_crlf; v_message := v_message
    || 'COMPANY_Name: ' || :p10_comapny_name
    || v_crlf; v_message := v_message
    || 'ADDRESS: ' || :p10_address
    || v_crlf; v_message := v_message
    || 'CITY: ' || :p10_city
    || v_crlf
    || v_crlf; v_message := v_message
    || 'STATE: ' || :p10_state
    || v_crlf; v_message := v_message
    || 'ZIP: ' || :p10_zip
    || v_crlf; v_message := v_message
    || 'DAYTIME_PHONE: ' || :p10_daytime_phone
    || v_crlf; v_message := v_message
    || 'EVENTING_PHONE: ' || :p10_eventing_phone
    || v_crlf
    || v_crlf; v_message := v_message
    || 'MOBILE_PHONE: ' || :p10_mobile_phone
    || v_crlf; v_message := v_message
    || 'FAX: ' || :p10_fax
    || v_crlf; v_message := v_message
    || 'EMAIL_ADDRESS: ' || :p10_email_address
    || v_crlf; v_message := v_message
    || 'OCCASION: ' || :p10_occasion
    || v_crlf
    || v_crlf; v_message := v_message
    || 'TYPE_OF_PARTY: ' || :p10_type_of_party
    || v_crlf; v_message := v_message
    || 'DATE_OF_EVENT: ' || :p10_date_of_event
    || v_crlf; v_message := v_message
    || 'TIME_OF_EVENT: ' || :p10_time_of_event
    || v_crlf; v_message := v_message
    || 'LOCATION_OF EVENT: ' || :p10_location_of_event
    || v_crlf
    || v_crlf; v_message := v_message
    || 'ESTIMATED_GUEST_COUNT: ' || :p10_estimated_guest_count
    || v_crlf;
    v_crlf := '
    '; v_msghtml := 'Your request has been sent to the Help Desk team:' || v_crlf
    || v_crlf; v_msghtml := v_msghtml
    || 'YOUR_NAME: ' || :p10_your_name
    || v_crlf; v_msghtml := v_msghtml
    || 'COMPANY_Name: ' || :p10_comapny_name
    || v_crlf; v_msghtml := v_msghtml
    || 'ADDRESS: ' || :p10_address
    || v_crlf; v_msghtml := v_msghtml
    || 'CITY: ' || :p10_city
    || v_crlf
    || v_crlf; v_msghtml := v_msghtml
    || 'STATE: ' || :p10_state
    || v_crlf; v_msghtml := v_msghtml
    || 'ZIP: ' || :p10_zip
    || v_crlf; v_msghtml := v_msghtml
    || 'DAYTIME_PHONE: ' || :p10_daytime_phone
    || v_crlf; v_msghtml := v_msghtml
    || 'EVENTING_PHONE: ' || :p10_eventing_phone
    || v_crlf
    || v_crlf; v_msghtml := v_msghtml
    || 'MOBILE_PHONE: ' || :p10_mobile_phone
    || v_crlf; v_msghtml := v_msghtml
    || 'FAX: ' || :p10_fax
    || v_crlf; v_msghtml := v_msghtml
    || 'EMAIL_ADDRESS: ' || :p10_email_address
    || v_crlf; v_msghtml := v_msghtml
    || 'OCCASION: ' || :p10_occasion
    || v_crlf
    || v_crlf; v_msghtml := v_msghtml
    || 'TYPE_OF_PARTY: ' || :p10_type_of_party
    || v_crlf; v_msghtml := v_msghtml
    || 'DATE_OF_EVENT: ' || :p10_date_of_event
    || v_crlf; v_msghtml := v_msghtml
    || 'TIME_OF_EVENT: ' || :p10_time_of_event
    || v_crlf; v_msghtml := v_msghtml
    || 'LOCATION_OF EVENT: ' || :p10_location_of_event
    || v_crlf
    || v_crlf; v_msghtml := v_msghtml
    || 'ESTIMATED_GUEST_COUNT: ' || :p10_estimated_guest_count
    || v_crlf;
    HTMLDB_MAIL.SEND(
    P_TO => '[email protected]',
    P_FROM => '[email protected]',
    P_BODY => v_message,
    P_BODY_HTML => v_message,
    P_SUBJ => 'Application Comments!!');
    APEX_MAIL.PUSH_QUEUE;
    end;

  • Need help with apex listener administration username & passwd

    Hello,
    I downloaded apex ODD and tried to lunch listener admin http://localhost:8888/apex/listenerAdmin
    Please help me the username and password.
    Thank you very much.

    Hailt wrote:
    Hello,
    I downloaded apex ODD and tried to lunch listener admin http://localhost:8888/apex/listenerAdmin
    Please help me the username and password.
    Thank you very much.1) To not attempt to eat a listener. It is not good for you.
    2) Are you sure you are in the right forum for this? (You may be .. but you may well not be) ... if ODD is open developer day the information on passwords is usually in the installation instructions.
    .. i cant recall having to worry about apex listeners, but i havant used the latest versions ...
    The main purpose of the post way to correct your possible eating disorder.

  • Need help with APEX Collection - C

    Hi
    I have values in 2 fields on my page that I use to build a collection - "On Submit - After Computations and Validations"
    I want to delete collection using HTMLDB_COLLECTION.DELETE_COLLECTION ; and recreate if user changes a value in any of the above 2 fileds ( field 1 is LOV and field 2 is DATE )
    I know I have to use AJAX but could not figure out how to code it . Can someone please direct me to any similar peice of code or suggest the steps?
    Thanks
    Aali

    You can find it here:
    http://apex.oracle.com/pls/otn/f?p=31517:246
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Need Help with Address Display

    I need help with APEX.
    Here's my situation:
    I have a report that displays brief employee information. Among the information displayed is the Address. Right now, it's display as:
    Mr X
    Employee Id
    Accounting Department
    Address 1
    Mr X
    Employee Id
    Accounting Department
    Address 2
    I would like it to display
    Mr X
    Employee Id
    Accounting Department
    Address 1
    Address 2
    1) I have thought of using the Break functionality; however, the function only allows break at column 1, 2, 3. As you can see Address starts at column 4. Also, Address has a few columns; Address Line 1, Address Line 2, City, State, Zipcode.
    2) Stragg functions - I'm not sure how to implement it since it has more than 1 columns.
    Any ideas?
    Thanks in advance
    Andrew

    The example I gave you, using analytic functions is a simple one.
    Now, you are saying:
    1. some of the employees may have two adresses?
    2. if this is the case, your employee appears in the report twice?
    3. you don't want his name, employee id and accounting department to appear twice?
    4. only his address has to be displayed?
    If the answer to all the questions is yes, this kind of query will help you. I repeat:
    SELECT CASE
              WHEN LAG (employee_id) OVER (ORDER BY employee_id) =
                                                        employee_id
                 THEN NULL
              ELSE employee_name
           END employee_name,
           CASE
              WHEN LAG (employee_id) OVER (ORDER BY employee_id) =
                                                          employee_id
                 THEN NULL
              ELSE employee_id
           END employee_id,
           CASE
              WHEN LAG (employee_id) OVER (ORDER BY employee_id) =
                                                employee_id
                 THEN NULL
              ELSE accounting_department
           END accounting_department,
           street, postal_code, city, state, country
      FROM your_employees_table;Give it a try.
    Denes Kubicek

  • Help with getting a better understanding on how APEX submits its pages

    Hi,
    I have implemented jquery with my app and have just applied the jquery UI plugins.
    I have the jquery UI dialog function working which gives the users some options. Now as an example, I have a cancel and a continue button. If the user clicks cancel it simply stops the page from submitting. Which works perfectly however, I cannot get the continue button to carry on with the request.
    I gather that I will need to determine what the href was of the link/button that was clicked before the dialog box appears.
    I know Apex uses a javascript function call doSumit() which simply submits the page but what does it use for other href like links to other pages?

    The problem is that you're taking a camcorder format that Premiere Elements is able to work with and converting it to a format that it can NOT work with.
    That Canon camcorder produces AVCHD video. You should shoot any video you want to edit in Premiere Elements only in MXP or FXP mode. Then, when you're ready to edit the video in Premiere Elements, you should set up a project for AVCHD 1920x1080 stereo. (Unless you're shooting in 5.1 audio. This cam shoots in a number of formats.)
    DO NOT CONVERT YOUR VIDEO BEFORE YOU PUT IT IN PREMIERE ELEMENTS.
    You can then use these specs to output high-quality video for YouTube.
    http://forums.adobe.com/thread/623549?tstart=0
    If you need some basic help with the program, be sure to check out my free 8-part Basic Training tutorial series at Premiere Elements support site Muvipix.com.
    http://forums.adobe.com/thread/537685?tstart=0

  • Combining APEX help with a frame-like TOC html help system (I used DITA)

    Problem:
    The APEX page-oriented help system is bad at helping users find how to do something. I prefer to use a task-oriented help system for that, with a table of contents that users can browse around in. I like the DITA (Darwin Information Typing Architecture) system's topic based help with its ideas of tasks, concepts and references. But, I also like the context-based feel of a page-based help system and the way that the APEX help system automatically aggregates all of the item-based help on a page for you.
    My Solution:
    I'm no html genius, so this may be totally wrong, but what I did was to create a task oriented html user guide that also included a page based help TOC entry for each page. I then used iframes in the APEX help page to allow me to have a TOC always showing with links that controlled a content "pane," but still also display the automatically-generated item help for the page help is called from.
    * Downloaded the DITA open toolkit (http://sourceforge.net/projects/dita-ot ), full package distribution and installed using the user guide (http://dita-ot.sourceforge.net/doc/ot-userguide131/xhtml/ )
    * Downloaded and installed XMLmind XML editor free personal edition version ([http://www.xmlmind.com/xmleditor/download.shtml]). I'm not endorsing this thing, but it's free and it works great out of the box for editing DITA files.
    * Created an html user guide by modifying the garage sample that's included with the DITA open toolkit and publishing to xhtml (I also published to pdf2, by the way, to provide a printable user guide for my users to download...one of the nice things about DITA). I set up my files so that they would all be in a topics subfolder, rather than the standard task, concept, and reference folders of the example. I did this so that I wouldn't have to worry about linking to a different folder from APEX (more on that later). I made a concept topic for each page of my application with the filename "Concept_About_page_X.dita," where X is the APEX page number.
    * I run APEX using Oracle Application Server 10g, so I uploaded the files to a subdirectory of their own in the i/ folder on the OAS server. In my case this was APPSERVER_HOME/apache/apache/images/doc/MyAppHelp/
    * The DITA toolkit generates html pages that look for a CSS called commonltr.css, located at the same level as the index.html file. I copied my APEX theme's CSS file to that same place and renamed it commonltr.css (in my case that was APPSERVER_HOME/apache/apache/images/themes/theme_13/theme_V3.css). Now, the proper thing to do would be to configure DITA to point at the real location of the theme's CSS, I guess. But I didn't want to figure out how to do that at this point.
    * Now, in APEX, I deleted all of the page-level help text from my pages, since I had now duplicated this information into the DITA page concept topics. Instead, on each page I put
    * On the help page (the page that you create when you're first setting up Help in APEX, mine is page 50), I added the following iframe tags in the header text of the page: \\      &lt;iframe src="../../i/doc/gradevalhelp/index.html" width="40%" height="50%" align="left"&gt;&lt;/iframe&gt;&lt;iframe name="contentwin" src="../../i/doc/gradevalhelp/topics/Concept_About_page_&REQUEST..html" width="60%" height="50%" align="right"&gt;&lt;/iframe&gt;&lt;br&gt; \\      Note the &lt;br&gt; at the end. I had to put that in to prevent the item level help from printing over my content iframe. Again, someone who knows something about html could probably tell you the right way to do that. The DITA toolkit generates a base tag (&lt;base target="contentwin"/&gt;) in the head section of the index.html file, to make the target of the TOC links be the content frame. Notice how I use it to map the links in the first iframe to the second iframe on the APEX help page, by naming the second frame "contentwin". Notice how the &REQUEST. Substitution string is used to present the proper DITA html file. I also tried setting it up to use a calculated hidden item that looks up the page alias for the requesting page; this had the advantage of allowing me to name my DITA files using page alias instead of page number, but it was too slow.

    Look at all the apdiv's you have.  Those are absolutely positioned layers.  I'm assuming by your post that you are very new to Dreamweaver and HTML and CSS.  I would highly recommend not using absolutely positioned layers until you have a better grasp on HTML and CSS.
    Looking at your code I would suggest that you consider using one of Dreamweaver's built in, or downloadable templates as a starting point and work from there. 
    http://www.adobe.com/devnet/dreamweaver/articles/dreamweaver_custom_templates.html

  • Help with htmldb_Get calling an on_demand application proccess

    Hi,
    I wonder if anyone can help with a problem I have. I have a button (coded in Javascript) that uses htmldb_Get to call an on_demand application process that should be updating the database. Unfortunately it does not, and I cannot see what I've done wrong! Perhaps some fresh eyes can help?
    Call to htmldb_get / application process
    var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=applicationProcessSaveToDB',0);
    get.add('STO_ID',myStoId)
    get.add('DTE_ID',myDteId)
    get.add('ADJ',myAdj)
    var gReturn = get.get();
    alert( 'gReturn <'+gReturn+'>' ) ;
    On_demand process code
    DECLARE
    l_msg VARCHAR2 (2000);
    BEGIN
    SELECT :ADJ || CHR(10) || :STO_ID || CHR(10) || :DTE_ID
    INTO l_msg
    FROM dual;
    UPDATE fid_live.tffd_cash_sls
    SET local_est_manl_adj = :ADJ
    , est_manl_adj = pk$_sa_exchange.f$_get_ukp_value
    TO_NUMBER( pk$_sa_sel.f$_sel_sto_no( :STO_ID ) ),
    :ADJ,
    pk$_sa_sel.f$_sel_calendar_dte( :DTE_ID )
    WHERE sto_id = :STO_ID
    AND dte_id = :DTE_ID;
    -- COMMIT;
    HTP.prn (l_msg);
    EXCEPTION WHEN OTHERS THEN
    l_msg:='Exception has occurred '||SQLERRM||', '||SQLCODE;
    HTP.prn (l_msg);
    END;
    I was expecting to see (a) the database updated (it is not) and (b) the text string l_msg echoed back via the alert(gReturn) - it does not (but does if I comment out the UPDATE statement, which makes me wonder if the SQL is being rejected, but then I'd hope that the exception block would return an error message).
    Can anyone help?
    Many thanks,
    MarkB...

    Hi Mark,
    for the future in case you have again a problem with an on-demand process. The following posting which I have written some time ago should help you to test it.
    http://inside-apex.blogspot.com/2006/12/how-to-test-on-demand-process.html
    Testing without the javascript call and seeing the actual result values is much easier then the through javascript.
    Greetings
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Copy db with apex and then rename it

    Hi all,
    developers asked me to create several db with apex installed. So I created one installed everything they needed and then copied the files, renamed them, renamed the database and everything was ok.
    One question prevails:
    Is ther any key, hash value or whatsoever that apex uses to identify apllications or for use of authentication which could cause problems in the case described above as these database all have the same contents as far as apex is concerned.
    Any help apperciated.
    FJH

    Hi Cousins --
    Glad to have helped!  Thd dots indicate the level of helping --
    https://discussions.apple.com/static/apple/tutorial/reputation.html
    I was thinking this may help you in your conversion from "the dark side," LOL.
    It's an article just for switchers:
    http://www.apple.com/support/switch101/

Maybe you are looking for

  • How many domains can Prime Collaboration Advanced manage with the BE6000?

    The BE6000 Administration guide states that "Most BE6K deployments have a single domain as part of a Standard Prime installation. Multiple domains are available with Prime Collaboration Advanced (available for purchase) that can be used for complex B

  • Is IOS 6.1.3 better for iPhone 4 or should I wait for IOS 6.1.4?

    I was hesitating to update this because my phone is still on recovery mode. I accidentally updated it without using iTunes, what I did is that i turned off my WiFi to stop installing the new IOS but then as i open my WiFi, the new IOS started to load

  • Suitcase Fusion 5 making Adobe CC apps slow?

    Hi. New Macbook Pro Retina. Just moved back to Suitcase Fusion 5, after really liking Fontcase for several years. It seems the Extensis plugins are really decreasing the startup time for Photoshop, etc. I don't even have any fonts loaded or activeted

  • WD Java -BuiltIn Type or Simple Type expected

    Hi, As part of ECC upgrade we reimported RFCs into WD from new ECC system. We have 6 DCs and created 6 separate activities. Except one activity, rest of all activities got activated and released. For one DC, I got error BuiltIn Type or Simple Type ex

  • Why is Box Not Showing Up?

    Hi, I have done all of this using only the "code" view. I am trying to figure out why I can't see the "main content" box in green when it is green in my code? http://www3.telus.net/~jessum/# .maincontent { background-color: #0CC; height: 200px; .head