Call APEX gurus

I am calling APEX gurus and need your help on this. I'm currently developing a page to display some data from an Oracle table.
SSN on the page currently is a "Display Only". SSN data in the table is encrypted. We developed a package to encrypt/decrypt it by using DBS_OBFUSCATION_TOOLKIT.
The package looks like p_info.push(SSN) which means encrypt; p_info.pop(SSN) which means decrypt. On APEX page, in Source section,
Source Used - Only when current value in session state is null; Source Type - SQL Query (return single value); Source value or expression -
select p_info.pop(SSN) from table_A where seqno =:P2_seqno. It works very well.
However, now we need to change SSN on the page from "Display Only" to be able to EDIT. So, I tried to change it "Display Only" to "Text field". Source Used - Always, replacing
any existing value in session state; Source Type and Source value or expression are as same as above. But, when ran the page, after making changes on SSN and hit "Apply Change" button, SSN didn't get changed. Is there anything I'm missing?
Your help will be truly appreciated.

Option 1: The Trigger....this really is better because your data will work no matter how the table is updated, i.e. via APEX or SQL*Plus or whatever...
CREATE OR REPLACE TRIGGER BRIU_MYSSN
BEFORE INSERT OR UPDATE
ON MYSSN
REFERENCING NEW AS new OLD AS old
FOR EACH ROW
DECLARE
   lc_EncryptedSSN CHAR(32);
BEGIN
   lc_EncryptedSSN := pinfo.pop(:new.SSN);
   :new.SSN := lc_EncryptedSSN;
EXCEPTION
   WHEN OTHERS
   THEN
      -- Consider logging the error and then re-raise
      RAISE;
END;
Option 2: APEX
On you page, under Page Processing, right-click on Computations. Pick Item on this Page. Pick the page item corresponding to the SSN. Pick After Submit for you Computation Point. Pick PL/SQL for the function body.
BEGIN
   RETURN info.pop(:P8_SSN);
END;-Joe

Similar Messages

  • Calling APEX page in cognos report

    Hello,
    I am very new to APEX. I have the below requirement.
    I have Oracle database with Cognos tool. My cognos report display the data and business
    wanted to have url on the cognos report. Business wanted to click that link and open
    another page and they need to modify the data and save the data back to database.
    Is this possible to call apex page in cognos report? I just wanted to check this before
    i take this path.. Any suggestion is highly appreciated.

    govindts wrote:
    Hello,
    I am very new to APEX.You appeared in the wrong forum. Oracle Application Express (APEX) is propably better one.

  • Calling Apex page from Oracle Forms

    Hi,
    I haven't managed to find a similar thread anywhere.
    I would like to call an apex page from a form. The page is in an app that requires authetication.
    I can able to open the page by using web.show_document but that only takes me to the login page.
    How can I overpass the authentication by passing somehow the username and password?
    Is there any similar or easier way to do what I am after?
    Many thanks

    Hi,
    You could try the BRANCH_TO_PAGE_ACCEPT URL functionality. There are a few threads on this subject - for example: Re: authentication with credentials from another domain? I haven't used this myself, but if you do a search on the forum for this, you may find other threads that can help.
    Andy

  • Calling APEX form with dynamic parameters from Oracle Apps 11.5.8

    I have successfully managed to setup access to APEX forms from Oracle Apps 11.5.8 menus utilising Form Functions passing a number of hardcoded parameter values as outlined in the document, http://www.oracle.com/technology/products/database/application_express/pdf/Extend_Oracle_Applications_11i.pdf.
    I am now trying to ZOOM from an Oracle Form passing values of form items (dynamic parameters) to an APEX form. I have so far not been able to do this.
    I've also tried using;
    web.show_document('http://derep.obup.co.uk:4657/pls/apex/f?p=100:1::::::p1_cust_account_id:'||name_in('ast_cu_act.account_id')||':', '_TOP');
    but this prompts for a username/password again as this bypasses the APEX Launch process that is defined in my Form Function.
    Is this possible in the parameters section of Form Functions? or elsewhere.
    Regards,
    Naeem

    Hi Daan
    We do havea couple of customers doing this, they have taken two approaches:
    1. Install XMLP on a separate server entirely - kick off conc request to extract data and then use Java Messaging Service (JMS) to push the resulting XML to the external server where they are using AQ to set up jobs for the XMLP server to work through, generating and delivering the final documents.
    2. Set XMLP up as a virtual printer - here the conc request again generates XML but this time the result is directed to a virtual printer namely XMLP. There is a perl or similar wrapper that gets called as the printer and accepts the data, template, output format and delivery destination as parameters.
    Apologies for the 10,000 feet overview, hope it helps. Tim

  • Call APEX from Oracle*Forms

    My first APEX
    I have "built" a APEX-Application to upload and download documents (APEX advanced tutorial).
    It works as a stand-alone-solution.
    Now I want to call this APEX-Form from Oracle*Forms (web.show_document(url))
    I found that I can call a specific Apex-Page by application-id and page-Number.
    But APEX still asks for Username/ Password. And I want to transfer some other parameters to apex.
    The url I could hide. I also think about encryption/ time-stamp mechanism.
    I think there should be a standard-mechanism.
    But now I am in doubt: Is this possible at all?

    hi Scott.
    i actually developed a javabean to communicate with a mikrotik router and it works very nice on Oracle forms 10g !
    but i need to develop an mobile interface for users , so i am using apex to accomplish this task, but i will need to call the javabean from apex.
    thanks

  • Calling Apex Application using a php script

    Hi guys,how can i directly call my Apex Application using a php script.i have apex 2.1 intalled on my system.i created an application and i want my application users to connect directly to the applications login page.I mean somthing like this
    (http://127.0.0.1:8080/apex/f?p=103)
    and i want users to connect using somthing like this
    (http://my system/index.php) or localhost/index.php?
    i can run a script query and access my data stored on the database,but what i really want is to connect directly to the login page of my application,so that the staffs in HR can connect direstly to there HR application while those in Sales Will connect direcly to there applications page so it will look like this
    http://my system/hr.php
    http://mysystem/sales.php

    Originally, I had problems w/ the file being placed in
    C:/whatever.ext b/c I wasn't using relative paths.
    This is the code I use:
    $MAXIMUM_FILESIZE = 1024 * 1024 * 2; // 2MB
    $newFileLoc = "./wherever/file.jpg"
    if ($_FILES['Filedata']['size'] <= $MAXIMUM_FILESIZE) {
    move_uploaded_file($_FILES['Filedata']['tmp_name'],
    "./temporary/".$_FILES['Filedata']['name']);
    rename( "./temporary/".$_FILES['Filedata']['name'],
    $newFileLoc );
    chmod( $newFileLoc, 0777 );
    Modified from this article by Adobe:
    http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Live Docs_Book_Parts&file=17_Networking_and_communications_173_6.html

  • How to call APEX form from OAF

    Hi
    WE upgraded from 11i to R12. In 11i we have Apex Forms hanging off Customer forms. The customer forms in R12 became self service/OAF.
    We now need to figure out how to call the old APEX form from new selfservice Customer form
    Can some one help me with this?
    thank you

    Please review https://blogs.oracle.com/stevenChan/entry/new_whitepaper_extending_e_business which will hopefully answer your questions
    regards
    Mike

  • Help on Javascript call APEX on demand process

    Hi, Guys:
    I have a problem needs help: I need to add session protection with checksum for one of my page (page 2); but I have another page (page 1) which displays a Gogle map with a marker with infowindow, in this infowindow there should be a link that leads to my page 2. The problem is: my link needs checksum on demand. So I did the following thing:
    #1 add session protection with checksum on page 2.
    #2 add two application items requires checksum: CURRENT_URL, URL_WITH_CHECKSUM
    #3 add a on demand application process URL_Checksum as follows:
    DECLARE
    l_url varchar2(2000);
    BEGIN
    select APEX_UTIL.PREPARE_URL(
    p_url => :CURRENT_URL,
    p_checksum_type => 'SESSION') into l_url from dual;
    :URL_WITH_CHECKSUM:= nvl(l_url,:CURRENT_URL);
    htp.prn(:URL_WITH_CHECKSUM);
    END;#4 rewrite javascript as follows:
    <img src="#WORKSPACE_IMAGES#1938.JPG"\><script type="text/javascript"       src="http://maps.googleapis.com/maps/api/js?sensor=false">     </script>    
    <script type="text/javascript">      
    function initialize() { 
    var myOptions = { zoom: 18, mapTypeId: google.maps.MapTypeId.ROADMAP};  
    var map = new google.maps.Map(document.getElementById("map"), myOptions);
    var markerBounds = new google.maps.LatLngBounds();
    var point=new google.maps.LatLng(&P1_H_MARK_GEOCODING.);
    markerBounds.extend(point); 
    map.fitBounds(markerBounds);
    var listener = google.maps.event.addListener(map, "idle", function() { 
      map.setZoom(map.getZoom()-4); 
      google.maps.event.removeListener(listener); 
    var marker;
    marker = new google.maps.Marker({ position: new google.maps.LatLng(&P1_H_MARK_GEOCODING.), map: map });
    var infowindow = new google.maps.InfoWindow({    content: "&P1_TF_OFFENDER_ID."});
    var test_prefix = "http://apex.oracle.com/pls/apex/f?p=";
    var current_parameter ="&APP_ID.:2:&SESSION.::NO::P2_H_OFFENDER_ID:"+"&P1_TF_OFFENDER_ID.";
    var my_URL=test_prefix +encodeURIComponent(current_parameter);
    //alert(my_URL);
    //var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=URL_Checksum',PAGE);
    //get.add('CURRENT_URL',my_URL);
    //gReturn = get.get();
    //get = null;
    //alert(gReturn);
    infowindow.setContent('<a href='+my_URL+'>&P1_TF_OFFENDER_ID.</a>');
    google.maps.event.addListener(marker, 'click', function() {  infowindow.open(map,marker);});
    </script> Note: I comment the part related to AJAX call and use variable my_URL, as there is a problem: infowindow is no longer available after I uncomment this part and uses gReturn as URL in the infowindow. Could anyone help me on this?
    My application on apex.oracle.com:
    workspace: LIAPEXTEST
    acc: [email protected]
    pwd: lxus2000
    application ID: 55785 - test AJAX
    Thanks a lot!
    Sam

    Hi, Jari:
    I am required to set session protection with checksum required level for one page (offender detail) in my project, as this page displays sensitive information. Ths page will show content depending on offender_id. However, some of offender_ID is NOT open to public. Right now people can easily manuplate URL by changing offender_Id value in URL, so they can see information that is not open to them. That is the reason that I need to add session protection for that page.
    However, on the other side, I need to provide Google map for radius search offenders. The infowindow of markers should include link which leads to offender detail page as well. Therefore, I have add checksum for URL in infowindow to let users access offender detail page through link in the infowindow. Otherwise, the link in infowindow won't work.
    I thouht about generating URL with checksum on page loading. But there are hundreds of markers that need URL with checksum, I do not know how to pass it into javascript.
    Could you give me a suggestion about it?
    Thanks for your time.
    Sam
    Edited by: lxiscas on Aug 26, 2012 12:35 PM

  • Calling Apex Page

    Hi friends,
    I have integrated APEX with ebis - R12 with the help of Rod Document and now i can redirect to the APEX page from the ebiz menu. Now whether it is possible to call the APEX page from the workflow notification.
    As now the APEX is within Ebiz. Whether now it is possible to call the APEX page (via) Workflow notification.
    As anyone done this before.
    Brgds,
    Mini

    Hi Andrew,
    have you other self defined html input tags in your form? When you look into the Apache log file you will probably notice that mod_plsql isn't able to map this field names to parameters of the F procedure.
    BTW, have you already looked at the PayPal Packaged Application and the White paper which explains it? http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html#PAYPAL
    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/

  • Calling Apex restful service in android

    Hi frnds i have created apex restful service, now i want to access it in android...
    So any one can help me how to call restful services using ksoap2.jar

    I got solution using HttpClient, but i can acces only "GET" method of restful services
    But how to access Restfukl service using "POST" method
    here is my code that i use to access rest service using "GET"
    String url = "http://198.16.11.12:2000/apex/jigar/mr/employees/10";
    HttpClient httpclient = new DefaultHttpClient();
    HttpGet hg = new HttpGet(url);
    HttpResponse response = httpclient.execute(hg);
    str = inputStreamToString(response.getEntity().getContent());
    Now insted of GET when i use POST to access service it returns null, what can be my URl in case of post?

  • Integrating Forms and Apex. (Calling Apex from Forms).

    Hi all.
    We'll soon start an upgrade of our Forms / Reports 6i Application to 11g.
    I was wondering, maybe, it would be nice to add some value for the upgrade process as a whole, using some of Apex new features like web mobile interface or maybe an integration between Forms an Apex, for example to provide users with the powerful features of Interactive Reports, just to name one.
    I have found this interesting link: http://roelhartman.blogspot.com/2008/11/integrate-oracle-forms-with-apex.html. (not a 100% clear for me, but at least it is a start).
    Obviously, to make it attractive, one would expect automatic login between the two Apps. As far as i know, this could be done like this:
    1) Using SSO. With that a Portal / Forms / Reports/ Discoverer/ version would be mandatory (too expensive for some clients).
    2) Oracle Access Manager? Not sure, can Oracle Forms connect to Access Manager? or LDAP? How about the licensing costs?. Not a clue.
    3) Make all Apex pages public? Not feasible.
    4) Now this one: in our forms application, every user authenticates within the application and we internally map that application user to an actual database user. At all times we hold metadata info about the current user (app, and DB), as well as application context. So this is my question:
    It is possible to create an Apex app, with database authentication method, and somehow pass the metadata from forms, and have a kind of custom login procedure that does all the application to DB user conversion process and application context setting????
    This is a very important question for us, although not sure where to really post it...
    Feedback will be greatly appreciated .....!
    Regards,Luis ....:)=

    I did something like that once. What you can do is set some random session id after logging in in Forms. Pass this session id to Apex every time and let Apex check if it is a valid session id.
    More information here:
    http://sqlcur.blogspot.com/2009/04/forms-apex-integration-2.html
    In that example I create a new session id on every call to an Apex page from Forms, but you can use the same session id as long as the user is logged in in Forms.
    Ino

  • Calling APEX page in Rich Text Editor Content

    In my application I am using the Rich Text Editor to allow users to enter a block of text that is rendered within a page. In some cases, they would like to link to other pages in the application from within that block. The problem I am having is figuring out how to use a relative URL (f?p) path and maintain the session ID. If I try to enter f?p=&APP_ID.:1:&APP_SESSION.as the link expression from within the editor, the resulting HTML comes out<a href="http://f?p=&amp;APP_ALIAS.:home:&amp;APP_SESSION.">Any ideas on how to do this such that the substitution strings get processed properly would be greatly appreciated.

    Hi,
    Here what you can do with substitution problem
    Create procedure
    create or replace PROCEDURE editor_url(p VARCHAR2)
    AS
    BEGIN
    f (p => v('APP_ID') || ':' || p || ':' || v('APP_SESSION'));
    END;
    Create public synonym
    CREATE PUBLIC SYNONYM editor_url FOR your_schema.editor_url;
    Grant execute on procedure for DAD user
    GRANT EXECUTE ON editor_url TO APEX_PUBLIC_USER; -- OHS or APEX Listener in use
    GRANT EXECUTE ON editor_url TO ANONYMOUS; -- EPG
    Then in editor link url you enter
    editor_url?p=1
    That will then you then to page 1 and procedure handles app id and session substitution
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai
    Edited by: jarola on Jul 25, 2012 7:58 PM
    Edited by: jarola on Jul 25, 2012 8:06 PM
    I did not test this fully. It do not work :(

  • Calling Apex Page from third party

    Hi All,
    I have a requirement where I need to integrate Oracle Apex with third party application.
    In the third party application, I have to create a link and on the click of the link have to open the APEX application page in another window.
    Here the username and password needs to be sent through the link itself and user should not be asked to enter the login details.
    Can anyone guide me how this can be achieved?
    Regards,
    Arvind

    Hi Jonivdb,
    Thanks for your reply. I think you have understood my problem. I am new in Apex and there is one link by which I can login into Apex.
    The link which I used is to connect Apex from html page is using action as "http://site/pls/apex/wwv_flow.accept" with method type "post".
    Now my problem is I have to pass username and password as hidden parameters. Client do not want to pass username and password in this format.
    What they wanted is to encrypt it at there side and the wanted us to decrypt it. My problem is I do not have any idea How to customize "wv_flow.accept" method or URL.
    Any help would be really useful.
    Regards,
    Arvind

  • So called Java gurus..... try this!!!!!!

    This program simulates a tower of cans. It implements an interface, and uses a private data structure myStack which uses a linked list approach. An applet calls addCan method to add a can at the bottom level. addCan returns coordinates of the can, accordng to which a can is painted onto the applet. For example if we press on keyboard m m m the tower should be:
    --m
    m m
    and after m m m m m
    --m
    -mm
    mmm
    my code below adds cans like this:-
    --mm
    -mm
    mm
    When there are 2 cans on a level, the next can is pushed on top of the two cans. So the tower grows from bottom left. Please see why my code is going wrong? {The rest of the classes are correct, it is just this code}
    CODE
    public class TowerOfCans implements TowerOfCansInterface
    private myStack[] myStackArray;
    int top;
    public TowerOfCans()
    myStackArray = new myStack[11];
    for(int i = 1; i < myStackArray.length; i++)
    myStackArray = new myStack();
    public coord addCan(int can)
    coord coordinates= new coord();
    int j = myStackArray.length - 1;
    boolean found = false;
    while( j > 1 && !found)
    if(myStackArray[j].size() == 0)
    j--;
    else
    found = true;
    }//while
    if(myStackArray[j].size() - myStackArray[j+1].size() == 2)
    myStackArray[j+1].push(new Integer(can));
    coordinates.x = j+1; // x = array subscript
    coordinates.y = myStackArray[j+1].size(); // stack level size
    top = j+1;
    else
    myStackArray[j].push(new Integer(can));
    coordinates.x = j;
    coordinates.y = myStackArray[j].size();
    return coordinates;
    Soory folks for not explaining my problem (applologiez). My problem is that according to my above code, the tower does not build properly. You press two keys (eg mm ) and two integer objects are pushed onto the stack (array subscript = stack level). Now for the 3rd can (ie 3rd user key) the can should go on top of two cans. And it does. We now have:-
    -m
    mm
    but the next can should go along the bottom row, since a can always spans two other cans. ie
    m
    mmm (< 3rd can) and 4th can will go onto the top now
    ie
    -mm
    mmm etc.
    My code does not do this....... it does this
    ---mm
    --mm
    -mm
    mm
    PLEASE GIVE ME AN IDEA WHY IT IS not building properly.

    The problem is not so much that it is homework -- at least some work has been done -- but that there is not enough information in the question for anyone to answer it. There's some stuff about pressing two keys, but you can't tell what is done when those two keys are pressed. And so on, it isn't worth the trouble.

  • Calling CSS gurus

    Hi,
    I'm trying to get a fixed width div and an elastic div play
    together
    inside an elastic wrapper div. So now I'm wondering is that
    possible at all?
    What I have working is this...
    HTML:
    <div id="wrapper">
    <div id="content">This is the
    content</div><!-- /content -->
    <div id="sidebar">test sidebar</div><!--
    /sidebar -->
    <div class="cleardiv"></div><!-- /cleardiv
    -->
    </div><!-- /wrapper -->
    CSS:
    #wrapper{margin:0
    auto;text-align:left;width:90%;position:relative}
    #content {float:left;width:65%;padding:20px 0
    40px;line-height:1.5em}
    #sidebar {
    padding:10px;width:25%;font-size:.9em;overflow:hidden;float:right;background:#fef1fe;marg in:
    30px 0 20px;}
    What I want is the below CSS... but that doesn't work because
    the
    sidebar drops below the content div. If I put the fixed width
    sidebar on
    the left and the elastic content div to the right it works
    fine... but
    that is not what I need.
    CSS
    #wrapper{margin:0
    auto;text-align:left;width:90%;position:relative}
    #content {float:left;width:65%;padding:20px 0
    40px;line-height:1.5em;margin-right:320px}
    #sidebar
    {padding:10px;width:280px;font-size:.9em;overflow:hidden;float:right;background:#fef1fe}
    Anyone...?
    Kim

    It seems I've figured it out.
    Kim skrev:
    > Hi,
    >
    > I'm trying to get a fixed width div and an elastic div
    play together
    > inside an elastic wrapper div. So now I'm wondering is
    that possible at
    > all?
    >
    > What I have working is this...
    >
    > HTML:
    > <div id="wrapper">
    > <div id="content">This is the
    content</div><!-- /content -->
    > <div id="sidebar">test sidebar</div><!--
    /sidebar -->
    > <div class="cleardiv"></div><!--
    /cleardiv -->
    > </div><!-- /wrapper -->
    >
    > CSS:
    > #wrapper{margin:0
    auto;text-align:left;width:90%;position:relative}
    > #content {float:left;width:65%;padding:20px 0
    40px;line-height:1.5em}
    > #sidebar {
    >
    padding:10px;width:25%;font-size:.9em;overflow:hidden;float:right;background:#fef1fe;marg in:
    > 30px 0 20px;}
    >
    >
    > What I want is the below CSS... but that doesn't work
    because the
    > sidebar drops below the content div. If I put the fixed
    width sidebar on
    > the left and the elastic content div to the right it
    works fine... but
    > that is not what I need.
    >
    > CSS
    > #wrapper{margin:0
    auto;text-align:left;width:90%;position:relative}
    > #content {float:left;width:65%;padding:20px 0
    > 40px;line-height:1.5em;margin-right:320px}
    > #sidebar
    >
    {padding:10px;width:280px;font-size:.9em;overflow:hidden;float:right;background:#fef1fe}
    >
    >
    > Anyone...?
    >
    > Kim

Maybe you are looking for