JQUERY integration within APEX

Hi everybody and merry chrismas...
I have a problem with jquery within apex. I looked for in previous posts but I can not achieve to make it works...
I am running apex 3.2.1 on linux with apex listener.
I want to refresh a report and I found that it was possible to do so using jQuery(...).trigger('apexrefresh'). So I tried to declare jquery...
I downloaded jquery-1.8.3.js from http://jquery.com and uploaded both as static files in shared components with apex.
Now I try to define the file in my javascript section like this :
<script src="#APP_IMAGES#jquery-1.8.3.js" type="text/javascript"></script>
<script type="text/javascript">
     // refresh of regions impacted by the change of PXX_ID_OPERATION item
     alert("#APP_IMAGES#jquery-1.8.3.min.js");
     alert(apex.jQuery().jquery);
</script>
But the javscript failed on the apex.jQuery().jquery instruction.
What is my mistake ? I am certainly completely wrong but I did not find a clear tutorial on internet. Thank you in advance for help.
Regards...

>
Please update your forum profile with a real handle instead of "975489".
I have a problem with jquery within apex. I looked for in previous posts but I can not achieve to make it works...
I am running apex 3.2.1 on linux with apex listener.
I want to refresh a report and I found that it was possible to do so using jQuery(...).trigger('apexrefresh').Where did you find this?
So I tried to declare jquery...
I downloaded jquery-1.8.3.js from http://jquery.com and uploaded both as static files in shared components with apex.
Now I try to define the file in my javascript section like this :
<script src="#APP_IMAGES#jquery-1.8.3.js" type="text/javascript"></script>
<script type="text/javascript">
     // refresh of regions impacted by the change of PXX_ID_OPERATION item
     alert("#APP_IMAGES#jquery-1.8.3.min.js");
     alert(apex.jQuery().jquery);
</script>
Always post code wrapped in tags<tt>\...\</tt> tags to preserve formatting and prevent it being mangled by the forum software.
But the javscript failed on the apex.jQuery().jquery instruction.
What is my mistake ? I am certainly completely wrong but I did not find a clear tutorial on internet. Thank you in advance for help.The <tt>apexrefresh</tt> event and <tt>apex</tt> namespaced jQuery are APEX 4.x features that are not available in 3.2&mdash;even if you add jQuery yourself.
APEX 3.2 support expired in February 2012, so the first recommendation is to upgrade to the latest version (4.2) where reports can be refreshed declaratively using Dynamic Actions.

Similar Messages

  • Re:  Integrate jQuery Grid / inGrid /Flexigrid functionality within APEX

    Hi All,
    Can anyone let me know to integrate jQuery Grid / inGrid /Flexigrid functionality within APEX?
    I have had little searched on jQuery Grid on Google but most of examples are for PHP & ASP.Net.
    Anyone help would be great to me.
    Thanks in advance.
    Regards!!
    Dip, Canada
    Edited by: user8609115 on 12-Feb-2010 7:56 AM

    Hi All,
    Can anyone let me know to integrate jQuery Grid / inGrid /Flexigrid functionality within APEX?
    I have had little searched on jQuery Grid on Google but most of examples are for PHP & ASP.Net.
    Anyone help would be great to me.
    Thanks in advance.
    Regards!!
    Dip, Canada
    Edited by: user8609115 on 12-Feb-2010 7:56 AM

  • Is Application Migration Workshop integrated within free APEX workspace?

    Is Application Migration Workshop integrated within the free APEX workspace hosted by Oracle at.http://apex.oracle.com/pls/otn?
    I am trying to evaluate the "Oracle Application Express Application Migration Workshop" (to convert Access Applications into APEX Applications) and it would be nice to not have to create the extensive development environment which can be very time consuming.
    Thanks!

    Hello User.
    Please change your name from the default #'s to either your name or a nickname.
    From my understanding,
    No the APEX Migration workshop is not installed in the free Oracle demo apex public workspace environment.
    One of the Apex experts will be able to confirm this information.
    I've only used the tool in my own environment and I've never tried looking for it on the free oracle apex workspace.

  • Creating simple jquery TABS in apex

    All,
    I am creating basic jquery TABS in apex but i realized its just not working as i thought... i really need help on this please?
    what i did created in my region i added below code
    <div id="tabs">
    <ul>
    <li><a href="#">Nunc tincidunt</a></li>
    <li><a href="#">Proin dolor</a></li>
    <li><a href="#">Aenean lacinia</a></li>
    </ul>
    </div>
    then at page header i made references,
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    <link rel="stylesheet" href="#WORKSPACES_IMAGES#style.css" />than i added child region to the above.
    but all isn't working ....your help is appreciated regards

    First off, why are you referencing a newer version of jquery than what is bundled with APEX? Here is a simple solution for your problem: http://www.warp11.nl/2011/04/tabs-within-apex-using-jquery/
    Thank you,
    Tony Miller
    LuvMuffin Software
    Ruckersville, VA

  • Using jquery FullCalendar in APEX with dynamic query

    Hi,
    I am trying to implement jquery FullCalendar in APEX and came across thie following post but I am unable to get the events to work. I would really like to see it working with an Application_Process:
    How we can highlight events in Calendar
    Currently I created an Application Process that simply calls a DB table and convert it into json format.
    DECLARE
    v_sql varchar2(400);
    BEGIN
    v_sql := 'SELECT * FROM CAL_FEED';
    apex_util.json_from_sql(v_sql);
    END;
    But I am unsure how to add the events via an Application_Process.
    I have tried the following in numerious ways (events:function, url feed, etc). It does work if I just do an array but would like it as a dynamic query.
    $('#calendar').fullCalendar({
    events: "http://server:8080/apex/f?p=101:53:4352610578859707:APPLICATION_PROCESS=IAT_TEST_CAL_FEED"
    Thank you in advance,
    Jimmy

    Hi,
    I was able to get the events into Fullcalendar with an Application Process but not sure if this would scale well with alot of events.
    Would someone be able to tell me if there is a better way?
    I am currently using an On Demand Application Process called IAT_TEST_FEED:_
    DECLARE
    lv_cal_list VARCHAR2(16000);
    lv_return_str VARCHAR2(32000);
    BEGIN
    FOR i IN (SELECT "CAL_FEED"."ID" as ID,
    "CAL_FEED"."title" as caltitle,
    "CAL_FEED"."start" as calstart,
    "CAL_FEED"."end" as calend
    FROM "CAL_FEED")
    LOOP
    lv_cal_list := lv_cal_list || '{"id":' || CHR(39) || i.ID || CHR(39) || ',' ||
    ' "title":' || CHR(39) || i.caltitle || CHR(39) || ',' ||
    ' "start":' || CHR(39) || i.calstart || CHR(39) || ',' ||
    ' "end":' || CHR(39) || i.calend || CHR(39) || '},';
    END LOOP;
    lv_return_str := '[' || RTRIM(lv_cal_list,',') || ']';
    htp.prn(lv_return_str);
    EXCEPTION WHEN OTHERS THEN
    htp.prn('error');
    END;
    In a HTML Region on a page within the Region Header:_
    <link rel="stylesheet" type="text/css" href="#WORKSPACE_IMAGES#fullcalendar.css" />
    <script type="text/javascript" src="#WORKSPACE_IMAGES#ui.core.js"></script>
    <script type="text/javascript" src="#WORKSPACE_IMAGES#ui.draggable.js"></script>
    <script type="text/javascript" src="#WORKSPACE_IMAGES#ui.resizable.js"></script>
    <script type="text/javascript" src="#WORKSPACE_IMAGES#jquery.js"></script>
    <script type="text/javascript" src="#WORKSPACE_IMAGES#fullcalendar.js"></script>
    <script type="text/javascript" src="#WORKSPACE_IMAGES#fullcalendar.min.js"></script>
    <script type='text/javascript'>
    $(document).ready(function() {
    $('#calendar').fullCalendar({
    events: function(start, end, callback) {
    $.ajax({
    type: "POST",
    url: "wwv_flow.show",
    dataType: "json",
    data: {
    p_flow_id:$('#pFlowId').val(),
    p_flow_step_id:$('#pFlowStepId').val(),
    p_instance:$('#pInstance').val(),
    p_request:"APPLICATION_PROCESS=IAT_TEST_FEED"
    success:function(calevents){
    $.each(calevents, function(i, calevent){
    $('#calendar').fullCalendar('renderEvent', calevent, true);
    </script>
    The line within the ajax call is basically where my concern would be
    $('#calendar').fullCalendar('renderEvent', calevent, true);
    Thank you,
    Jimmy

  • Send email from within apex 2.1 application

    Hello,
    I like to send email from within apex application. I use oracle 10g xe with apex 2.1
    thx for advice
    Edited by: wucis on Feb 27, 2012 11:49 AM

    That is a very old version indeed. The documentation for sending emails from Apex 2.2 is here:
    http://docs.oracle.com/cd/B31036_01/doc/appdev.22/b28550/advnc.htm#BABJHJJF

  • Problem in Integration of Apex with R12

    Hello,
    I followed the paper apex-ebs-extension-white-paper-345780.pdf to do Integration of Apex with R12. but stuck on one step.
    I am done with all the steps in R12. Now if i click the menu in R12, its going to my existing Apex aplication but still asking username and password.
    Can anyone help me out in what exactly I need to change in Apex Authentication scheme in Apex. Right now I am using Authentication scheme as Application Express.
    Please help me out
    Thanks in advance
    Ananya
    Edited by: Ananya on 26 Dec, 2011 8:51 PM

    Hi Mini,
    Thanks a lot for ur replies. But it is not working for me. I am not able to figure out whats going wrong.
    My Requirement is to redirect to the first page of my application without asking for the APEX login page from the EBS menu.
    So summarizing whatever I steps i have followed:-
    (1) Created Profile and function in APPS as given in "apex-ebs-extension-white-paper-345780.pdf"
    (2) I created the following package in APPS schema
         CREATE OR REPLACE PACKAGE APPS.XXAPX_SECURITY_PKG AUTHID DEFINER AS
         FUNCTION generate_hash (
         p_string IN VARCHAR2
         , p_offset IN NUMBER DEFAULT 0) RETURN VARCHAR2;
         FUNCTION validate_hash (
         p_string IN VARCHAR2
         , p_hash IN VARCHAR2
         , p_delay IN NUMBER DEFAULT 5) RETURN BOOLEAN;
         END XXAPX_SECURITY_PKG;
         CREATE OR REPLACE PACKAGE BODY APPS.XXAPX_SECURITY_PKG AS
         g_key VARCHAR2(100);
         FUNCTION generate_hash (
         p_string IN VARCHAR2
         , p_offset IN NUMBER DEFAULT 0) RETURN VARCHAR2
         IS
         BEGIN
         IF p_string IS NULL THEN RETURN NULL; END IF;
         RETURN RAWTOHEX(UTL_RAW.cast_to_raw(
         DBMS_OBFUSCATION_TOOLKIT.MD5(
              input_string=>p_string||':'||
              TO_CHAR(SYSDATE-(p_offset/24*60*60), 'YYYYMMDD HH24MISS')||g_key)));
         END generate_hash;
         FUNCTION validate_hash (
         p_string IN VARCHAR2
         , p_hash IN VARCHAR2
         , p_delay IN NUMBER DEFAULT 5) RETURN BOOLEAN
         IS
         BEGIN
         FOR i IN 0..p_delay LOOP
         IF p_hash = generate_hash (p_string, i) THEN RETURN TRUE; END IF;
         END LOOP;
         RETURN FALSE;
         END validate_hash;
         BEGIN
         SELECT encrypted_user_password INTO g_key
         FROM FND_USER WHERE user_name = 'SYSADMIN';
         END XXAPX_SECURITY_PKG;
    (3) Created a function in the APPS schema:-
         create or replace FUNCTION ebs_authenticate (
         p_username IN VARCHAR2
         , p_password IN VARCHAR2) RETURN BOOLEAN
         AS
         BEGIN
         IF apps.XXAPX_SECURITY_PKG.validate_hash (p_username, p_password) THEN RETURN TRUE; END IF;
         RETURN (apps.FND_WEB_SEC.validate_login (p_username, p_password) = 'Y');
         END ebs_authenticate;
    (4) In my authentication scheme of my apex application i have changed it to use custom authentication to use the below function
         return apps.ebs_authenticate
    (5) Created a procedure in the APPS schema:-
         create or replace PROCEDURE apps_logon
         IS
         v_username VARCHAR2(100);
         v_password VARCHAR2(32);
         BEGIN
         wfa_sec.getsession(v_username);
         v_password := xxapx_security_pkg.generate_hash(FND_GLOBAL.user_name);
         IF v_password IS NOT NULL THEN
         APEX_CUSTOM_AUTH.login(
              P_UNAME => v_username,
              P_PASSWORD => v_password,
              P_SESSION_ID => v('APP_SESSION'),
              P_APP_PAGE => apex_application.g_flow_id||':38'
         ELSE
         RAISE_APPLICATION_ERROR(-20001, 'Password is null, session id = '||icx_sec.g_session_id);
         END IF;
         END apps_logon;
    (6) In my login page, i have created a process Get Username Cookie and with the process point: onload(Before Header)
         BEGIN
         apps.apps_logon;
         EXCEPTION WHEN OTHERS THEN NULL;
         END;
    Now I am getting this error with the login page :-
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small Content-type: text/html; charset=UTF-8 Set-Cookie: WWV_CUSTOM-F_1120314105059329_811=B4134623EB436033; path=/; Location: f?CallFromForm='Y'&p=811:38
    Please help me figure out the problem as I am struggling a lot with this from last few days :(
    Thanks in advance.

  • How do I open a word document held on a file system within APEX

    I am trying to open a variety of documents, word, excel and pdf from within apex. The file locations are stored in a table so the users can click on a link and the document will open, apex just appears to fail even when attempting to open in a new window.
    Any help please!

    Assuming you already have the files loaded in to a blob, the following sql is used in a tabular report:
    select NAME , CREATED_BY, CREATED_DATE ,doc_id, description,
    '^a href="download_file?p_doc_id=' || doc_id ||'" target="_blank"><img src="/i/download.gif"></a^' download
    from DOCS where doc_id=:p2_doc_id
    ****NOTE*****
    the forum code is trying to process my link example in the sql statement above. Replace the two "^" with "<" and ">" to start and end the code segment.
    ****NOTE*****
    It uses the following proc to extract the blob from the table.
    CREATE OR REPLACE PROCEDURE download_file(p_doc_id IN number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    v_Lob_loc BLOB;
    BEGIN
    SELECT MIME_TYPE, doc_CONTENT, name,DBMS_LOB.GETLENGTH(doc_content)
    INTO v_mime,v_lob_loc,v_file_name,v_length
    FROM docs
    WHERE doc_id = p_doc_id;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    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)|| '"');
    -- use inline if you want file to open without asking. It opens in the current browser window
    --htp.p('Content-Disposition: inline; 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( v_Lob_loc );
    end download_file;
    Edited by: ABD - DBA on Aug 5, 2010 8:30 AM
    Edited by: ABD - DBA on Aug 5, 2010 8:30 AM
    Edited by: ABD - DBA on Aug 5, 2010 8:32 AM

  • How to call Operating System commands / external programs from within APEX

    Hi,
    Can someone please suggest how to call Operating Systems commands / external programs from within APEX?
    E.g. say I need to run a SQL script on a particular database. SQL script, database name, userid & password everything is available in a table in Oracle. I want to build a utility in APEX where by when I click a button APEX should run the following
    c:\oracle\bin\sqlplusw.exe userud/password@database @script_name.sql
    Any pointers will be greatly appreciated.
    Thanks & Regards,

    Hi Guys,
    I have reviewed the option of using scheduler and javascript and they do satisfy my requirements PARTIALLY. Any calls to operating system commands through these features will be made on the server where APEX is installed.
    However, here what I am looking at is to call operating systems programs on client machine. For example in my APEX application I have constructed the following strings of commands that needs to be run to execute a change request.
    sqlplusw.exe user/password@database @script1.sql
    sqlplusw.exe user/password@database @script2.sql
    sqlplusw.exe user/password@database @script3.sql
    sqlplusw.exe user/password@database @script4.sql
    What I want is to have a button/link on the APEX screen along with these lines so that when I click that link/button this entire line of command gets executed in the same way it would get executed if I copy and paste this command in the command window of windows.
    Believe me, if I am able to achieve what I intend to do, it is going to save a lot of our DBAs time and effort.
    Any help will be greatly appreciated.
    Thanks & Regards,

  • Can XML Publisher 5.6.3(EBS) be integrated with APEX?

    On the following document, XMP Publisher 5.6.2 does not support integration with APEX. May I know about 5.6.3? Or is it about the product being an add-on with EBS causing the non-support to integration(meaning, even 5.6.3 is not supported)?
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    Thanks,
    Rownald

    APEX integrates with the standalone version of BI Publisher. There was not a server component with the standalone 5.6.3 release. The integration relies on publisher providing a servlet for APEX to communicate with, 5.6.3 does not have this.
    If you are talking 5.6.3 under EBS then I guess you could build a servlet on the mid tier that called the BIP conversion APIs - it would all be custom work.
    The APEX integration needs 10.1.3.2 BIP to work with out of the box.
    Regards
    tim

  • Integration of apex with other applications

    hi all,
    i'm planning on integrating my apex application to a .net express application.. since some of my screens will use webforms and some will use winforms.. to state the obvious, i will use apex for my webforms and .net for my winforms.
    what i want to do is that when i login to apex, i will also be automatically logged in to the .net app whenver i open one of its forms and vice versa.
    i did some reading that apex uses wwv_flow_custom_auth_std package and it executes wwv_flow_custom_auth_std.login after successful authentication? is this right? anyways, what i don't know is how apex checks if a user is logged in so that i can probably have my .net app do the same thing.
    any thoughts?
    thanks
    allen

    Allen
    it executes wwv_flow_custom_auth_std.login after successful authentication? is this right?Not exactly. This procedure, aka "the login api" causes the steps defined in the application's authentication scheme to be followed. It's usually called from the login page and accepts the username, password, session ID and some other information as input. One of the steps in an authentication scheme is credentials verification. Normally, if this optional step succeeds, the session is then registered, i.e., the authenticated username and the current session ID are recorded in the sessions table and a cookie is sent to the browser to be used for session management for the duration of the session. Then the indicated after-login page is redirected to. This is one way to structure an authentication scheme. Another is to use the code often referred to here as the "ntlm page sentry". You can find this is you search a bit. This method causes the user's authenticated status (and identity) to be obtained from the environment, e.g., from headers set by Windows NTLM. So really an application can do authentication and session management any way the developer chooses. It's completely flexible.
    ...anyways, what i don't know is how apex checks if a user is logged inApplication Express doesn't know or care if a user is logged in. Your application can check for this in whatever way you see fit. One way is to compare the value of APP_USER with a known list of unauthenticated users, e.g., APEX_PUBLIC_USER, ANONYMOUS, and nobody.
    Scott

  • Can shared components be shared among different applications within APEX

    Can shared components be shared among different applications within APEX ?
    -Louis Rosa
    Florida Center for Library Automation (FCLA)
    Gainesville,FL

    Not entirely true.
    Some like LOVs, Authorizations, Authentications can be shared amongst applications in the same workspace.
    Varad

  • What are the steps to convert any jQuery Plugin to Apex Plugin?

    Dear Apex Experts,
    What are the steps to convert any jQuery Plugin to Apex Plugin?
    Best Regards

    you might also want to have a look at the documentation at http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/advnc_plugins.htm#HTMDB27009
    Missed this Patrick
    We (Oracle) also provide some plug-in examples at http://apex.oracle.com/plugins which you can use as a blueprint. The "Masked Text" would be a good example for you on how to wrap a jQuery plug-in as APEX plug-in.
    Never used that, So don't know that it was a jquery
    Thanks

  • Render Pages within Apex using XML

    Hi All,
    Just wondering whether it is possible within Apex to render pages using XML by where you have a high level item, such as Cloth Size, which would be the Label attached to an underlying table field, and might have the values XL, L, M and S which might be rendered as a radiogroup.
    I guess what I am trying to establish is whether this is actually possible within Apex.
    I guess it might be similar to rendering items dynamically but using XML within the database.
    Hope this makes sense and someone can assist.
    Thanks.
    Tony.

    Hello,
    You need to put more details into what you want.
    Do you want client side rendering or server side rendering.
    Do you want to use CSS or XSLT?
    Do you need to do the entire page or will just a region in the page suffice?
    Past that the answer is yes for most of those but without more detail it will be tough to help you out.
    You might also want to look at different usages of XML and PL/SQL especially using XMLDB and is Oracles XMLType none of which are APEX specific but can all be used in and APEX page.
    Carl

  • Is eCATT a component integrated within SAP Solution Manger?

    Is eCATT (extended Computer Aided Test Tool) a component integrated within SAP Solution Manager? or Netweaver Solution Manager?
    OR
    Is eCATT automatically gets installed if we install Solution Manager?
    Further, does Solution Manager gets installed if we install SAP/Netweaver components or is it a stand alone component?
    Please let me know.
    Thanks & Regards.
    Sapster.
    Edited by: sapster on Feb 13, 2008 10:41 PM

    Dear Fr,
    I think you got confused with solman & eCATT ,this is a testing tool and has got no dependency upon solution manager.
    this a free testing tool used for testing SAP applications, it is based upon Web Application Server.
    Please follow the link,
    http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm
    You can link ECATT and QTP scripts,combination of both.
    In addtion you can execute them from solution manager itself.
    Whereas solution manager is used for managing your test plans and can organize all type of test cases which can be automatic like ecatt QTP etc or manual.
    follow my; blog to learn testing with solutin manager.
    https://weblogs.sdn.sap.com/cs/weblog/view/wlg/5181
    Please rewad points.

Maybe you are looking for

  • Convert m4P & m4a files to mp3

    Hi there, I tried to burn a music CD in MP3 format with some files from iTunes library but it did not work. Some files are in m4p (purchased) the others in m4a format. Any suggestions ? I even downloaded some free/trial ware to convert files but with

  • 802.1x and IP Phone

    Is it possible to enable dot1x and voice on the same interface? If so which switches and IOS support this feature ? Any references to documents ? Commands that cannot be configured together :- switch voice vlan xxx dot1x port-control auto

  • Issue when Kinect Hand Cursor Leaves the Application Screen

    Hi Everyone  i have an application in v2. i have implemented the hand cursor and when the cursor leaves the application or when the user stop using hands the sensor takes time to detect the sensor back and sometimes it does not come back.  We updated

  • Connecting non wi-fi enabled G5 to exisitng network

    I'm sure this should be simple I have a shred wi-fi network in my building. My wi-fi enabled powerbook connects no problem. Stupidly, when I bought my G5, I didn't get it wi-fi enabled, but I now want to access the net using the exisiting network. I

  • Why fixed layout is more expensive than reflow?

    Hi i'm a beginner in epub and css. I noticed that fixed layout is more expensive than reflow and i do not understand why. To my mind, the work is the same : modify css and some other pages (toc etc.) so the price should be the same. sorry for this qu