Integrate AJAX with Apex 3.2
Hi
I am new to APEX we are doing enhancements to User Interface using Apex 3.2.
I want to add generic AJAX tool tip code for similar components in all the pages in apex.
where do i write the code and how to integrate with with apex pages.
your help in resolving this issue is highly appreciated.
Edited by: 817204 on Dec 1, 2010 4:09 AM
Hi,
I think this blog post is quite simple for start learn Ajax in Apex
http://www.oracleapplicationexpress.com/tutorials/68
Regards,
Jari
Similar Messages
-
Hi All,
I'm new to Ajax and I'm trying to create an alert that prompts the user if the information that they entered into a form results in a primary key violation. The problem is that the application procedure that I created is not returning a value when it should be, because I am not receiving the alert when I violate a primary key...I don't know what I am doing wrong. Any help would be much appreciated.
My javascript code is as follows:
function checkNull(){
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=P3PK',0);
get.add('P3_MEMIMPNUM',$x('P3_MEMIMPNUM').value);
get.add('P3_ACTIONDATE',$x('P3_ACTIONDATE').value);
get.add('P3_ACTION',$x('P3_ACTION').value);
ajaxresult = get.get();
if (ajaxresult)
alert("Primary Key Violation!");
get = null;
The application process P3PK is processed On Demand and the PL/SQL Block is as follows:
DECLARE
str_memimpnum varchar2(15);
BEGIN
SELECT memimpnum
INTO str_memimpnum
FROM tblaction
WHERE memimpnum = :P3_MEMIMPNUM AND
actiondate = :P3_ACTIONDATE AND
action = :P3_ACTION;
HTP.prn(str_memimpnum);
END;
Finally, the save button is set to redirect to a URL and the URL target is as follows:
javascript:onclick=checkNull();
Note: There is more to the checkNull function, but I only included the section that I felt was applicable to this issue.
Thanks in advance!Hello,
Most likley it's an issue with your OnDemand Process.
Change your alert to
alert(ajaxresult);
And then in your process change it to with a htp.prn('Hello World'); to make sure your calling the right thing.
Then output the item values.
htp.prn(:P3_MEMIMPNUM);
Just work your way through it.
Also you can easily debug these returns using Firebug addon in Firefox. http://www.getfirebug.com
then
Regards,
Carl
blog : http://carlback.blogspot.com/
apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5 -
Problems using Ajax with Apex 3
Hi folks,
I've got a client website biult with Application Express on a Oracle Database System. I attached some Ajax funtionallities on fields and there are standard Interactive Reports which are biult on Ajax as well.
When I try to access the site normally (http) there are occuring no problems at all. But when I try to access the site via https, the Ajax functionallity doesn't work right.
For example: There is a field named P37_STD_ERFASSTER_WERT which has an onblur javascript event: onblur="viertelstunde_runden(this)". This calls the following javascript function.
The Java Script code calls an Application Process which calls a PL/SQL function on my database.
JavaScript code:
+function viertelstunde_runden(obj) {
var std = obj.value;
std = std.replace(".", ",");
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=rundStdErfassterWert',0);
get.add('P37_STD_ERFASSTER_WERT', std);
result = get.get();
obj.value = result;
}+
So I'm filling '2.4' into the field. After the Process i get the following response: "<html><body><p>2,5</p></body></html>". Does somebody have a clue, why the response is packed into the html tags?
As a proxy I've got an Apache2 server on a Ubuntu Server 8.1. Is there something wrong defined in the Apache2 Config?
Thanks for all tips and other helping responses.
Greetings
SandroHi Roel,
Thx for your quick answer.
The App-Process looks like this:
declare
l_std_erfasster_wert number;
begin
l_std_erfasster_wert := br_stunden.runde_viertelstunde(v('P37_STD_ERFASSTER_WERT'));
htp.prn(l_std_erfasster_wert);
end;
And the PL/SQL Procedure on the DB like this:
-- erfasste Stunden auf Viertelstunde-genau runden
FUNCTION runde_viertelstunde (
i_std_erfasster_wert IN stunden.std_erfasster_wert%TYPE
RETURN NUMBER
IS
l_std NUMBER;
l_min NUMBER;
BEGIN
l_std := TRUNC (i_std_erfasster_wert);
--Rest von Stunden sind Hundertstel-Minuten
l_min := (i_std_erfasster_wert - l_std) * 100;
--Hundertselminduten runden auf 25/50/75 oder 100
l_min := ROUND (l_min / 25) * 25;
--wenn Minuten aufgerundet auf volle Stunde (100), gibt es eine Stunde mehr
--und Minuten sind 0
IF l_min = 100
THEN
l_std := l_std + 1;
l_min := 0;
END IF;
RETURN l_std + (l_min / 100);
END runde_viertelstunde;
:Sandro -
I'm a newbie and I'm trying to incorporate simple AJAX in my application by following this whitepaper.
http://www.oracleapplicationexpress.com/2009/02/basics-of-ajax.html
workspace: SVENKAT
user: [email protected]
Password: shaan
My requirement is when the user enters the empno and select Submit, the ename textfield should be populated. I'll be more than happy if I can do it without the "Submit" button. I have to have the EMPID and ENAME columns of source database_column. Any help is really appreciated. I know this is too small a problem for pros like you. Thanks!!!Hey,
I have created one under Populate--Jesh
Check it out....guess this is what you were looking for, lemme know if your question was answered
Good Luck
Jesh
Edited by: user11095252 on Jun 8, 2009 9:54 PM -
Anychart 5.1.2 Integration with APEX
Hi,
I bought Anychart 5.1.2 with Maps. Now, they have pointed me to a webpage where I can down load a Zip file that contains a bunch of png, swf, xml files. How do I integrate this with APEX? What are the steps..
-VatsaHello,
I assume you're talking about this page -
http://anychart.apex-evangelists.com
Take a look through those steps listed on that page, if you're still having problems, drop us a mail to [email protected] and we will help you out.
Thanks,
John.
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! -
Hi all,
I want to integrate OBIEE with APEX, In the OBIEE Application, i have created a cookie for username and passing it in the apex applicatin,while running the apex application, I will get the username , it has to check for the user from a table and if valid, the application should open,
without asking for any authentication.
Could i achieve that........? IF so please help me out with some suggestions
thanks in advance
kavitha lHi Kavitha,
we have a how to document about this in german language here
http://www.oracle.com/global/de/community/tipps/biee-apex/index.html
Perhaps this helps ...
Best regards
-Carsten
Deutsche Application Express Community!
http://www.oracle.com/global/de/community/index.html
SQL und PL/SQL: Tipps, Tricks & Best Practice
http://sql-plsql-de.blogspot.com -
Is there a way to Integrate Oracle calendar with Apex
Hi
I'm using APEX 3.2. Is there a way to integrate Oracle Calendar (workspace calendar) with Apex?Yes, Just sync them to the same calendar on your computer or internet, i.e. Google, Yahoo, etc.
-
AJAX with htp (Not APEX)
Hi,
anybody has an idea if I can use AJAX with htp, what iam really looking for is a very simple example for that. pleaaaase
Thanx a lotHi.
First thanks for your fast answers.
regarding your questions :
You're using an Ondemand process right?Hm. I copied the code from the demo app of Denes Kubicek. And the sql Statement there looks ok for me.
And I have created this as on Demand Application Process in my App.
Are you sure you get some values back from that process? Dont think so. I put an alert right after the point where the return should be. This alert tells me, that i get back "[object]". I don't seen any "cleartext" data here.
- Are you using the right ITEM_VALUE in your where clause?What do mean exactly with this ? What clause ? The sql statement in the application process ? What ITEM_VALUE ?
Have a look at the session state (developer toolbar) of the itemsSession state of the items on my page are not modified, because page is not submitted.
Greetings
Bernd -
Hello, I have a question for those of you who are using JQuery with Apex:
This is my HTML header:
<script type="text/javascript" src="&WORKSPACE_IMAGES.jsapi.js"></script>
<script type="text/javascript">
google.load("jquery", "1.3.2");
</script>
The problem is that JQuery still loads from Google and since the Company Intranet has the cookies blocked the privacy icon appars in IE. I am sure somebody will one day notice this and it's gonna be a "big" problem.
I suspect that something must be changed below to make the privacy icon dissapear,
if (!window['google']) {
window['google'] = {};
if (!window['google']['loader']) {
window['google']['loader'] = {};
google.loader.ServiceBase = 'http://www.google.com/uds';
google.loader.GoogleApisBase = 'http://ajax.googleapis.com/ajax';
google.loader.ApiKey = 'notsupplied';
google.loader.KeyVerified = true;
google.loader.LoadFailure = false;
google.loader.Secure = false;
google.loader.GoogleLocale = 'www.google.com';
Any ideas how to change this code and if this is going to work?
GeorgeHi,
If you do not like use jQuery from Google, discard your code
<script type="text/javascript" src="&WORKSPACE_IMAGES.jsapi.js"></script>
<script type="text/javascript">
google.load("jquery", "1.3.2");
</script>and use e.g. this guide to integrate jQuery to your Apex apps
http://www.oracleapplicationexpress.com/tutorials/66-integrating-jquery-into-apex
Br,Jari -
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,
RownaldAPEX 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 -
Hi,
Can anyone help me ..
I need to implement the AJAX with select list in a tabular form but I am not able do it . It is possible to do it in a normal form , but while implementing the same thing in a tabular form i am getting error (here it uses 2 dimensional arrays to identify a cell).
The problem is I am not able to get the value from the select list .
Can anyone help me..
My application is "http://apex.oracle.com/pls/otn/f?p=23480:6" . The thing I need is when I select the 'Product name' corresponding 'List price need to be displayed.
ThanksHi Carl,
Sorry for that..
I requirement is in my application (http://apex.oracle.com/pls/otn/f?p=23480:6) , When I select the 'Product Name' from the select list the value should be populated automatically in the 'List Price' according to the product name.
Hope the reqirement is clear ,
My javascript is as follows
==============================================
<script language="JavaScript1.1" type="text/javascript">
var g_table;
function va_GetCellPos(p_cell,p_what)
for (var j=0;j<g_table.rows.length;j++) {
var column=g_table.rows[j]
for (var k=0;k<column.cells.length;k++)
if (column.cells[k]==p_cell) return p_what=="row"?j:k
function f_getfetch (p_input)
var td=html_CascadeUpTill(p_input,'TD');
if (!g_table) g_table=html_CascadeUpTill(p_input,'TABLE');
var rownum=va_GetCellPos(td,"row");
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=getfetch',0);
get.add('PRODUCT_NAME',g_table.rows[rownum].cells[va_GetCellPos(html_GetElement('PRODUCT_NAME'),"column")].getElementsByTagName('input')[0].value);
gReturn = get.get();
if(gReturn)
{ g_table.rows[rownum].cells[va_GetCellPos(html_GetElement('LIST_PRICE'),"column")].innerHTML = gReturn }
else
{ g_table.rows[rownum].cells[va_GetCellPos(html_GetElement('LIST_PRICE'),"column")].innerHTML = 'null' }
get = null;
</script>
===============================================
Here I am not able to get the value from the select list , its taking null (g_table.rows[rownum].cells[va_GetCellPos(html_GetElement('PRODUCT_NAME'),"column")].getElementsByTagName('input')[0].value) )
If u need to have a look into the application ,I can give you my login details.
with regards,
Dilip. -
Hi Friends,
Any one tell me How to integrate google calendar with Apex.
ThanksHi 805629,
Please see the following: http://www.google.com/intl/en/googlecalendar/event_publisher_guide.html#site
Ta,
Trent -
Do you have support to integrate echosign with Dynamics CRM 2015, If Not, When it will be possible?
Hey Mantas,
Do not expect that feature any time soon. I do not even see that being a feature this year.
Considering all that is going on and required to be finished and sorted a lot more is/will need to be done.
In terms of what you can do I have done things like used the refer a friend form which you can style and use that to send emails out to the needed people. I have submitted multiple web forms with ajax etc as well.
You have the custom fields for the people and emails (if not you can add them) and you can use those to send emails off to people, you just do not have a workflow so your not pestered with it but the notification message is the one that goes out and can have a template applied.
So there is a number of things you can do to get that going along those lines. I have done a few variations of this on different sites.
Warning note though - Ajax submission for custom web forms has a total character limit (all fields) of 1024 characters, which is not a lot. -
How to integrate OMR into Apex app?
Hi guys,
My app would be ideal for OMR data entry. OMR is Optical Mark Recognition. Remember marking answers on tests by coloring in bubbles? That's what I'm talking about. ScanTron is the market leader in the field. Anyway, can anyone share advice about how to integrate OMR into an Apex app?
Thanks,
KimHi,
You can find lot of discussion from this forum how integrate devices like scanner or bar code reader with APEX.
And you might find that HTML and JavaScripts are not best chose to communicate with local devices.
Regards,
Jari -
Integrating Oracle APPS with APEX using popay_apex package...
Hi,
I am a newbie in APEX and tried to explore it only a few months back...
I must admit that this tool is Awesome..!!!
Also, I tried to integrate Oracle EBS 11i with APEX using [popay package |https://sites.google.com/a/popay.be/apex-on-apps/integration] and the integration was absolutely fantastic...!!!
h6. (Thanks Thierry for your impecabble work on developing and releasing this excellent package under BSD License !!!)
My question is,
I have created an Online Leave Application (OLA) in APEX which should retrieve the username from EBS Login and display the leave information of that particular user.
I have created the OLA in APEX and registered it in EBS as a form function and also attached it to a user responsibility.
When I run the form thru the EBS Responsibility logged in as a EBS user, the OLA Application opens in a new window...
But,
The username is retrieved as APPS instead of the user's login info.
because of this retrieval the global variable :APP_USER is storing the username as APPS and all my internal references with :APP_USER has been erroring with "NO DATA FOUND", since there is no user login as APPS.
Is there any way to overcome this bottleneck...?
Or Do I need to add any code in the APEX >Application >Security > VPD
Thanks in Advance...
BenHi,
I have solved the issue, Thanks to Rod & Thierry !
I have created a cookie to send the apps username to my APEX application.
(Added this code snippet in the popay_apex.start_application procedure)
--------<CODE>------------------------------------------
l_user := fnd_global.USER_NAME;
OWA_COOKIE.send
+(NAME=>'APEX',+
VALUE=>l_user,
path=>'/');
---------<ENDS>----------------------------------------
(Created an on-load before header process at page 1 and fetched the cookie value to an application item.)
-----------<CODE>-------------------------------------
DECLARE
c OWA_COOKIE.cookie;
a wwv_flow_global.vc_arr2;
BEGIN
c := OWA_COOKIE.get('APEX');
a := htmldb_util.string_to_table(c.vals(1));
+:F101_USER := a(1);+
EXCEPTION WHEN OTHERS THEN
NULL;
END;
-------------<ENDS>---------------------------------------
It's a mashup of Rod & Thierry's work....!
Hat's off to Rod & Thierry !
Ben
Maybe you are looking for
-
How do I remove my card details from payment and make it none again
need to find out how to remove my bank card from payment info and make it none again
-
Lenovo Yoga 2 Pro: WiFi doesnt work after driver upgrade
After experiencing Wireless issues I tried to upgrade my Lenovo Yoga 2 Pro 13" with Windows 8.1 64Bit to the latest drivers from the lenovo support site. Ever since I cannot connect to the WLAN anymore. What puzzles me is that the driver status in th
-
Photoshop elements 1.0.1 to windows 7
can photoshop elements 1.0.1 be loaded on windows 7?
-
Extensions seems still enabled but missing in extensions menu
After upgrading firefox to version 8, I was expecting the one time "Select your Add Ons" dialog to appear. This did not happen, instead I got a script error from one of my extensions "Zotero" and firefox failed to start. I restarted firefox and it op
-
Since I upgraded to Lion my screen does not go to sleep. I have set and reset the Energy saver settings but it just seems to have a full bright screen all day and night. Hot corners work and I can set the screen to sleep but when I come back a few i