Calling an On Demand Process in PL/SQL Region without using AJAX

Hi!
I am trying to find a way to call an On demand Process in a PL/SQL Reports Region. The reason is that i need Reportings for about 20 Pages that look like the same but have different parameters. I already have some Processes that return SQL Statements and it works fine. But these Reportings are more complex and it's not possible to return it wirh a SQL Statement.
I have seen some solutions in this forum that used AJAX to call such a process. The problem is, that I'm not allowed to use AJAX because activeX is diabled. I tried it and it works but i need another way to solve this process call.
Thanks in advance
Philipp

At the moment I cannot say if your link can help. Right now the call of the On demand Process looks like this:
Inside annonymous PL/SQL Region:
<script type="text/javascript">
get = new htmldb_Get(null,'||:APP_ID||'.,'APPLICATION_PROCESS=F_REPORT_NAME',0);
gReturn = get.get();
document.write(gReturn);
</script>

Similar Messages

  • How to write a SQL Query without using group by clause

    Hi,
    Can anyone help me to find out if there is a approach to build a SQL Query without using group by clause.
    Please site an example if is it so,
    Regards

    I hope this example could illuminate danepc on is problem.
    CREATE or replace TYPE MY_ARRAY AS TABLE OF INTEGER
    CREATE OR REPLACE FUNCTION GET_ARR return my_array
    as
         arr my_array;
    begin
         arr := my_array();
         for i in 1..10 loop
              arr.extend;
              arr(i) := i mod 7;
         end loop;
         return arr;
    end;
    select column_value
    from table(get_arr)
    order by column_value;
    select column_value,count(*) occurences
    from table(get_arr)
    group by column_value
    order by column_value;And the output should be something like this:
    SQL> CREATE or replace TYPE MY_ARRAY AS TABLE OF INTEGER
      2  /
    Tipo creato.
    SQL>
    SQL> CREATE OR REPLACE FUNCTION GET_ARR return my_array
      2  as
      3   arr my_array;
      4  begin
      5   arr := my_array();
      6   for i in 1..10 loop
      7    arr.extend;
      8    arr(i) := i mod 7;
      9   end loop;
    10   return arr;
    11  end;
    12  /
    Funzione creata.
    SQL>
    SQL>
    SQL> select column_value
      2  from table(get_arr)
      3  order by column_value;
    COLUMN_VALUE
               0
               1
               1
               2
               2
               3
               3
               4
               5
               6
    Selezionate 10 righe.
    SQL>
    SQL> select column_value,count(*) occurences
      2  from table(get_arr)
      3  group by column_value
      4  order by column_value;
    COLUMN_VALUE OCCURENCES
               0          1
               1          2
               2          2
               3          2
               4          1
               5          1
               6          1
    Selezionate 7 righe.
    SQL> Bye Alessandro

  • How to add byte[] array based Image to the SQL Server without using parameter

    how to add byte[] array based Image to the SQL Server without using parameter.I have a column in table with the type image in sql and i want to add image array to the sql image column like below:
    I want to add image (RESIM) to the procedur like shown above but sql accepts byte[] RESIMI like System.Drowing. I whant that  sql accepts byte [] array like sql  image type
    not using cmd.ParametersAdd() method
    here is Isle() method content

    SQL Server binary constants use a hexadecimal format:
    https://msdn.microsoft.com/en-us/library/ms179899.aspx
    You'll have to build that string from a byte array yourself:
    byte[] bytes = ...
    StringBuilder builder = new StringBuilder("0x", 2 + bytes.Length * 2);
    foreach (var b in bytes)
    builder.Append(b.ToString("X2"));
    string binhex = builder.ToString();
    That said, what you're trying to do - not using parameters - is the wrong thing to do. Not only it is insecure due to the risk of SQL injection but in the case of binary data is also inefficient since these hex strings are larger than the original byte[]
    data.

  • Recruitment in Process in Core HR, SSHR without using iRec

    Hi,
    I wanted to know till what extent Recruitment process can be incorporated in Oracle using Core HR and SSHR only , i.e without using iRec. I know iRec will significantly simplify the process , but our client does not have iRec and wants to include as much part of recruitment in Oracle.
    Kindly share your view regarding this, thanks in advance.
    Regards,
    Razz

    Hi,
    Using Core HR of Requirement you can achieve the following functionality.
    1) You Can create vacancy.
    2) You can create Candidate
    3) You can create applicant.
    4) You can conduct interview for the applicant.
    5) You can hire the applicant from core HR or SSHR.
    In-short you can still achieve all the i-Rec basic functionality.
    Thanks
    Asif

  • SQL Query without using Pivot...

    Hi Guys,
    Need help with a query... I think pivot table is the way to go but don't wanna to use it as it is not supported in Oracle 10g.
    Sample data set...
    Part
    Section
    A001
    AC
    A001
    AY
    A001
    AN
    A001
    AX
    A015
    AC
    A015
    AR
    A007
    AC
    A008
    AN
    A008
    AX
    A008
    AE
    A008
    AT
    A008
    AY
    Required output... (Please note that I cannot hard code the Section column as the data is dynamic)
    Part
    AC
    AY
    AN
    AX
    AR
    AE
    AT
    A001
    Y
    Y
    Y
    Y
    A015
    Y
    Y
    A007
    Y
    A008
    Y
    Y
    Y
    Y
    Y
    Can you help me out with this without using pivot tables?
    Thanks,
    Napster

    Hi Napster, Try this
    select part,
    max(decode(section,'AC','Y',NULL)) AC,
    max(decode(section,'AY','Y',NULL)) AY,
    max(decode(section,'AN','Y',NULL)) AN,
    max(decode(section,'AX','Y',NULL)) AX,
    max(decode(section,'AC','Y',NULL)) AC,
    max(decode(section,'AR','Y',NULL)) AR,
    max(decode(section,'AT','Y',NULL)) AT
    from sple group by part
    SQL> /
    Output will be
    PART A A A A A A A
    A001  Y Y Y Y Y
    A007  Y       Y
    A008    Y Y Y     Y
    A015  Y       Y Y

  • Creating webservice for pl/sql API without using BPEL

    Hi All,
    Using BPEL, We have created partner links using DB Adapter for accessing our pl/sql API's.
    Is there any way to create a web service for a pl/sql API having complex datatype parameters like (Record, table of records etc) using DB Adapter or any other tool without using BPEL?
    Thanks,
    Uma.

    We introduced the use of JPublisher to automate the generation of wrappers for PL/SQL procedures that use types such as boolean, record and table. The wizard will invoke JPub and generate artifacts that the partnerlink will use to invoke the wrapper instead of the original API. Boolean is replaced by INT, record is replaced by an object type and table is replaced by a nested table. The wrapper will invoke the original API. JPub also takes care of converting between the different types (i.e. record <-> object).

  • Calling an On Demand Process

    Dear HTML DB Team,
    In my application, I have defined two PL/SQL Anonymous Block "on demand" application processes. Is there a line of code that I can include in application process A to call application process B?
    Process B is called by several pages, but also needs to be included as part of Process A.
    Thanks,
    Chaunaci

    Chaunaci,
    No, this cannot be done.
    Scott

  • 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

  • How to set client within SQL statement without using another pl/sql stmt.

    I have a following select statement
    SELECT SUM (w.prior_forecasted_costs + w.prior_committed_costs)
    FROM xxsuf.job_cost_summary_table w,
    apps.pa_periods p,
    pa.pa_resources bz,
    pa.pa_resource_list_members cz,
    pa.pa_tasks dz
    WHERE w.project_id = z.project_id
    AND w.task_id = dz.task_id
    AND dz.task_number '98000'
    AND w.resource_list_member_id = cz.resource_list_member_id
    AND cz.resource_id = bz.resource_id
    AND NOT EXISTS (SELECT NULL
    FROM pa.pa_tasks zz
    WHERE zz.parent_task_id = dz.task_id)
    AND w.resource_list_member_id != 1000
    AND p.period_name = w.pa_period
    AND p.current_pa_period_flag = 'Y'
    Above select statement uses pa_periods view which only works when I set my client using "exec DBMS_Application_Info.set_client_info(83);" in Toad or SQL*Plus session.
    I was wondering how can I achieve it within select statement. so that I don't have to use another PL/SQL statement to set my client. Is there anyway to set client with my org id within above select statement ?
    Please advise.
    --Rakesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    You can simply create a function which calls dbms_application_info and use that in your sql statement as in
    SQL> create or replace function set_client_info (i_info varchar2)
       return varchar2
    as
    begin
       dbms_application_info.set_client_info (i_info);
       return i_info;
    end set_client_info;
    Function created.
    SQL> create or replace view v_emp
    as
      select * from emp where empno = to_number(sys_context('userenv','client_info'))
    View created.
    SQL> select ename from v_emp where set_client_info(7788) is not null
    ENAME    
    SCOTT    
    1 row selected.
    SQL> select ename from v_emp where set_client_info(7900) is not null
    ENAME    
    JAMES    
    1 row selected.

  • Are there any self-service tools that enable business users to insert, update, and delete data in SQL Server without using SSMS?

    Our IT department spends way too much time maintaining simple reference tables that could easily be maintained by business users, if they had some simple tools that gave them limited access to only the tables they need.  Looking for something other
    than SSMS or MS Access.  These are not tech-savvy users.  They dabble in Excel and Access, and they know their data pretty well, but wouldn't be comfortable with SQL.  Generally the data would initially be in Excel (but not always).

    Create a separate FileGroup on your UAT/pre-prod environment for those Business Users and allocate limited space for them to read/write data here. I expect they create their own reference tables here which are small enough in size. SQL Server does not have
    concept of Quota like Oracle has, so you need to tie back FG with Data Steward user groups using separate mechanism to make sure they have limited rights here. 
    As IT - you verify business changes every sprint and push them to Production. 
    Best Regards
    Shrikant Kulkarni 
     

  • Calling ON DEMAND process for outside APEX

    Hi All,
    I would like to call an ON DEMAND process from outside APEX (using HttpClient java class). I think i have to use wwv_flow.accept but i'm bit lost on how to specify that i'm calling a process on demand.
    Has someone already tried this ? samples or advices would be more then welcome ... The goal behind the scene , would be to have an Apex page acting like a servlet (HTTPClient send a xml request and receive an XML response from the apex page).
    Thks.
    Thierry

    Thierry,
    You need to set up the HTTP request as you would if invoking your application+process from a URL, e.g.,
    ..f?p=100:0:9876543210123456789:APPLICATION_PROCESS=<name of process>
    ..in which request header the authentication cookie is provided, and in which request the correct session ID is provided. You could alternatively do a POST to wwv_flow.show, bypassing the f procedure, but I don't know if that will save you any steps.
    Scott

  • Error while using ajax addParam function in on demand process

    Hi ,
    I am calling an on demand process from a javascript that inserts value from a modal from into a table.
    function f_insert_transaction()
    var ajaxRequest = new htmldb_Get(null, $v('pFlowId'), 'APPLICATION_PROCESS=insert_manual_transaction',73);
              ajaxRequest.addParam('x01', $v('P73_ARRANGEMENT_ID'));
              ajaxRequest.addParam('x02', $v('P73_TRANSACTION_DIALOGID'));
              ajaxRequest.addParam('x03', $v('P73_CUSTOMER_NAME'));
              ajaxRequest.addParam('x04', $v('P73_CUSTOMER_NUMBER'));
    ajaxRequest.addParam('x05', $v('P73_SALES_ORDER'));
    ajaxRequest.addParam('x06', $v('P73_SO_LINE'));
    ajaxRequest.addParam('x07', $v('P73_INVOICE'));
    ajaxRequest.addParam('x08', $v('P73_INVOICE_LINE'));
    ajaxRequest.addParam('x09', $v('P73_ITEM'));
    ajaxRequest.addParam('x10', $v('P73_ITEM_DESC'));
    var ajaxResult = ajaxRequest.get();
    alert(ajaxResult);
    ajaxRequest = null;
    }The insert works fine as long as item names range from x01 - x10.
    When I add the below
    ajaxRequest.addParam('x11', $v('P73_QUANTITY')); The insert stops working, and the alert displays the following error message :
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>404 Not Found</TITLE>
    </HEAD><BODY>
    <H1>Not Found</H1>
    The requested URL /pls/dev1/wwv_flow.show was not found on this server.<P>
    <HR>
    <ADDRESS>Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server Server at </ADDRESS>
    </BODY></HTML>
    Appreciate any help in debugging this
    Thanks,
    Dippy
    Edited by: Dippy on Aug 2, 2010 10:14 AM

    Hello:
    You could concatenate the page-item values into a single string where the values are separated from each other by a suitable delimiter ( a colon for example) and set, x01, to this concatenated value. You could then decompose this concatenated string in the ODP used in the AJAX call to obtain the individual values.
    varad

  • On demand process: addtional params

    Hello,
    I'm calling a on demand process just with the url.
    http://localhost:8080/apex/f?p=200:0:0:APPLICATION_PROCESS=test
    how is it possible to add additional GET parameters without writting them into a page-item/application-item?
    thank you
    Damien

    Hi,
    You can set in url items value. like
    http://localhost:8080/apex/f?p=200:0:0:APPLICATION_PROCESS=test:::Px_MY_ITEM:value1Check URL syntax
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/concept.htm#sthref114
    Regards,
    Jari

  • How to call an On Demand Application Process on PL/SQL

    Hello
    I need your urgent help. I developed an On Demad Application Process that inserts a new record in a table. Then I need to call that Process from another page after while the user is pressing a button on that page. Do you know the code that does that?
    Thank you very much for your help

    Hi,
    APEX processes are written as anonymous blocks i.e. have no names. Procedures and functions stored in the database must have names. Packages are simply a way of grouping procedures and functions into manageable units. There are also security reasons which are not important for this explanation but use packages instead of stand-alone procedures and functions from the beginning. It is not difficult and it will save you some headaches in the future. Packages have a specification and a body. The specification is basically the interface to the package and the body contains the code. Just basically, no flames please from the PL/SQL gurus out there. The name of a procedure or function and their parameters must be published in the spec for the procedure or function to be called from outside the package.
    Creating a packaged procedure is as simple as this:
    Using SQL Workshop/SQL Scripts, create a script giving it a name like CREATE_MY_PACKAGE
    <pre>
    CREATE OR REPLACE PACKAGE my_package IS
    PROCEDURE helloworld;
    PROCEDURE log_user(p_app_user IN VARCHAR2);
    END my_package;
    CREATE OR REPLACE PACKAGE BODY my_package IS
    PROCEDURE helloworld IS
    BEGIN
    HTP.PRINT('Helloworld');
    END helloworld;
    PROCEDURE log_user(p_app_user IN VARCHAR2) IS
    BEGIN
    INSERT INTO my_table(app_user) VALUES (p_app_user);
    END log_user;
    END my_package;
    </pre>
    You can then, for instance, call procedure helloworld from a PL/SQL region in APEX by simply including
    <pre>
    my_package.helloworld;
    </pre>
    in the region source.
    or you can call procedure log_user from an APEX process by simply including
    <pre>
    my_package.log_user(:APP_USER);
    </pre>
    Important: This explanation is only a brief intro to whet your appetite. It is no substitute for good books including the Oracle PL/SQL Reference.
    Hope this helps;
    Regards Garry
    p.s.
    There are several options available to edit the package or work with DB objects generally. Each with different degrees of comfort.
    1. If you DO NOT have SQL*Net access as with oracle.apex.com then use the Apex/SQL Workshop/Object Browser.
    2. If you DO have SQL*Net access you can use Oracle SQL Developer which is the best free option.
    3. If you DO have SQL*Net access and are not short of cash then use either Toad or SQL Navigator from Quest
    Needless to say, option 3 is the only professional choice. They are amazing tools. No, I did not and do not work for Quest - lol.
    Garry
    Edited by: GarryLawton on Jul 19, 2011 2:08 PM

  • How to call an "ON DEMAND" application process

    Dear HTML DB Team,
    With HTML DB you can define "on demand" application processes. ("On Demand: Run this application process when requested by a page process.") These should be callable from page processes.
    How should a call in a page process to such an "on demand process" be written?
    Tried several options, no success. Please help.
    Could not find any information in this forum or html.pdf and help.
    Regards, Erik

    when you create an application-level process in htmldb, you have the option of creating it with a "Point" of "On Demand: Run this application process when requested by a page process". after doing that, you can then add processes to your htmldb application pages with a "Type" of "On Demand - Run an 'on-demand' application process". the next screen after indicating that Type lets you choose the On Demand process you'd like to use.
    hope this helps,
    raj

Maybe you are looking for

  • DVD Player Hasn't set the REGION code

    I just got a new MacBookPro (a replacement for one that had failed). Well, I restored all my data and am working fine... BUT... I think all my settings think that I've already set the Region Code of the DVD drive. But, using a tool, I was able to ver

  • Developer 6.0 - Client/server mode

    Assuming I have an application server between the front and back ends, what needs to be running in the middle tier, if I am running strictly client/server ?

  • Query Syntax for Dynamic Navigation Menu

    I'm trying to build a Navigation menu from a query using the following syntax: select LEVEL,        LABEL,        LINK,        'NO' as IS_CURRENT,        null as IMAGE   from V$RC_MENUS where CLUB = :APP_CLUB start with PID is null connect by prior I

  • How to restrict Firefox to open word document in browser window with href

    How to restrict firefox to open word document from a website link to open in the browser window, instead it should open in native program. 1.I have tried other website, and have clicked on similar links they are opening word document correctly in nat

  • ICS and Hotmail

    Ok - I've had the same problems with ICS as everybody else here (and every other forum). Some questions were answered by people here (which I appreciate - and then I go help someone else out on other forums). [Just FYI - before someone mentions clear