How to call autoSubmit programatically from javascript
Is there a way to call autoSubmit programatically, i.e. not after every value change?
The use case is, that I have three input boxes and only after all of them are filled out the autoSubmit should occur (and then always, if any of them is changed). This will prevent two unneccessary roundtrips to the server after filling first and second input box.
I can think of two ways of doing this:
1. set component's autoSubmit='false' and call autoSubmit from onChange listener, when contitions are met
2. set component's autoSubmit='true' and prevent autoSubmit from onChange listener, when conditions are not met
Thanks in advance,
Viliam
Tim,
In order to consume a SOAP API I recommend you use something other than JavaScript.
Any platform can offer you a good SOAP client should be OK. (.Net, Java, php, Ruby, python).
I didn't see anyone successfully used javascript and consume the Eloqua SOAP API.
I know you can create a SOAP client in Java script but it will be too much work to handle the Eloqua response in some cases.
Regards,
Daniel
Similar Messages
-
How to call SOAP API from JavaScript
Hi,
I'm trying to call the SOAP API to get statistics about emails. Are there any examples on how to call the API from JavaScript?
Here is a link to my original question about using the REST API. REST API URL for email statistics
Thanks,
TimTim,
In order to consume a SOAP API I recommend you use something other than JavaScript.
Any platform can offer you a good SOAP client should be OK. (.Net, Java, php, Ruby, python).
I didn't see anyone successfully used javascript and consume the Eloqua SOAP API.
I know you can create a SOAP client in Java script but it will be too much work to handle the Eloqua response in some cases.
Regards,
Daniel -
How to call java classes from javascript?
i have a button which calls javascript i need to access a class to update the values in the database.. how do you call the java code from within the javascript?
the class is stored under tomcats classes directory and is accessed:
com.Database.Employee
the method is called : UpdateEmployeeDetails
the button
<input type="button" value="Save" onclick="submitForm('save')" />the javascript
<script language="javascript">
function submitForm(process){
document.myForm.action="update.jsp";
document.myForm.submit();
</script>is it not possible?
do i have to refresh the page and read in the values like...
<%
String ename = request.getParameter( "EmployeeName");
session.setAttribute( "ename", ename);
%>and then call the class from here?
looking around ive come across ajax but i dont know how to use it and what you need to install and if its compatable with tomcat and jsp?
is ajax better or not really worth it?
i have anything up to 100 fields that need saving at one save click -
How to call java program from javascript
Hi,
I have an java program which will transform one xml to another xml using XSLT.
I want to call this java program from Javascript? Is this possible? Please suggest me.
Thanks,
Gopalis it not possible?
do i have to refresh the page and read in the values like...
<%
String ename = request.getParameter( "EmployeeName");
session.setAttribute( "ename", ename);
%>and then call the class from here?
looking around ive come across ajax but i dont know how to use it and what you need to install and if its compatable with tomcat and jsp?
is ajax better or not really worth it?
i have anything up to 100 fields that need saving at one save click -
How to call stored procedure from javascript? (about Google Suggest, AJAX)
Hi I want to implement a text field so that it behaves like [Google Suggest|http://www.google.com/webhp?complete=1&hl=en] .
I read this post .
Now I've setup everything according to that document. But it just doesn't work. And I don't know why.
I think problems may fall into the following three categories:
1. Does the text field and the page invoke the proper javascript?
2. Does the javascript successfully call the stored procedure?
3. Can the stored procedure correctly return the formatted result?
I am affirmative for 1 and 3, but I'm not sure about 2. Because I don't know how to tell if a stored procedure has been called? Is there a PL/SQL statement that I can query in SQL*Plus?
Also, I would to know how to debug AJAX in APEX. It involves many things.
Last, I used APEX 3.2 and Oracle XE. I cannot find either dads.conf or marvel.conf file. Is "/apex/" the virtual directory for APEX?
Thanks a lot!Hello,
I recently also ran into problems with this and I will post my solution here:
1) if you need to pass parameters to your procedure, create it using "Flexible Parameter Passing". Then parse the parameters out of the array and put them in local variables inside your PL/SQL procedure.
Example:
CREATE OR REPLACE PROCEDURE MATTHIASH.incsearch(name_array IN owa.vc_arr,
value_array IN owa.vc_arr) as
l_List1 varchar2(4000);
l_List2 varchar2(4000);
l_query varchar2(255);
l_separator varchar2(10) default '';
qu varchar2(4000) default '';
hl varchar2(4000) default '';
BEGIN
FOR i IN 1 .. name_array.COUNT
LOOP
IF name_array(i) = 'qu' THEN
qu := value_array(i);
ELSIF name_array(i) = 'hl' THEN
hl := value_array(i);
END IF;
END LOOP;
l_query := qu||'%';
FOR x IN (
select object_name, object_id from user_objects
where upper(object_name) like upper(l_query) and upper(object_type) = upper(hl) order by 1 asc)
LOOP
l_list1 := l_List1 || l_separator || '"' || x.object_name || '"';
l_list2 := l_List2 || l_separator || '"' || x.object_id || '"';
l_separator := ',';
END LOOP;
owa_util.mime_header('text/html', false);
owa_util.http_header_close;
--htp.p('sendRPCDone(frameElement, "'|| qu ||'", new Array(' || l_List1 || '), new Array(' || l_List2 || '), new Array(""));');
htp.p('sendRPCDone(frameElement, "' || qu || '", new Array(' || l_List1 || '), new Array(' || l_List2 || '), new Array(""));');
END;
/2) grant EXECUTE rights to APEX_PUBLIC_USER (the user APEX uses to connect to the database) on the procedure
grant execute on incsearch to apex_public_user;3) upload the ac.js file as static file to your application
4) put the following javascript code in the HTML Header of your APEX page:
<script src="#WORKSPACE_IMAGES#ac.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
function iac()
InstallAC(document.wwv_flow,document.getElementById('P1_X'),"","!MATTHIASH.incsearch","&P1_OBJECT_TYPE.");
</script>In my example, P1_X is a text field and P1_OBJECT_TYPE is a dropdown list with all user object types.
Good luck,
Matthias Hoys -
How to call Abap Program from Javascript or html ?
Hi All,
I have developed a program using html, abap and javascript. I want to call an abap program while clicking on the button.
How can I do it ?Hi Rajesh,
What kind of program it is? is it a report or a transaction?
If it's transaction, you can call the transaction as below from a link or button.
http://<host>:<port>/sap/bc/gui/sap/its/webgui?~transaction=<transaction>
Please replace the parameters in <..> with appropriate values before testing.
Regards,
Ravi -
How to call Flex app from Javascript in portal question
I've setup my flex 4 app with a callback function. The flex app is embedded in a Java portlet on a WebLogic Portal 10.3.2. How can I call the Flex app from the portlets javascript function? Code below shows how the flex app is embedded in the wrapper jsp.
<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
"src", "<%= srcPath %>",
"id", "<%= (String)request.getAttribute("portlet_name") %>",
"name", "<%= (String)request.getAttribute("portlet_name") %>",
"width", "<%= request.getAttribute("width") %>",
"height", "<%= request.getAttribute("height") %>",
"align", "middle",
"quality", "high",
"FlashVars", "PORTLET_WS=<%= request.getAttribute("window_state")%><%= wsrpEncodedChannel %>",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer");
</script>Thanks for the response. I followed the instructions in the link, but it does not appear to work within a Weblogic 10.3.2 portal. My Flex app is wrapped in a Java JSR 286 portlet. Should this approach work or is there a different approach for the portlets wrapper JavaScript to call a Flex callback function?
thanks
Dan -
Calling a procedure from Javascript
Hello
I have created a procedure with two input paprameters.
I have gratted access to public ... and all works well
I would now like to call this from a Javascript where I supply the input paameters. The procedure has a redirect to another URL so there is no output
Currently I used "window.location" with the prodcedure URL ... I must beable to call the produced directly?
Thanks for taking the time to look at this request
Regards
PetePete,
Have a look at this thread:
How to call stored procedure from javascript? (about Google Suggest, AJAX)
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
http://sourceforge.net/projects/plrecur
You can reward this reply by marking it as either Helpful or Correct ;-) -
How to call java function in javascript
Hello Everyone,
Can anyone tell me solution that:
How to call java function in javascript?
Thanks,
VIDsYou can't since Java is running on the server and javascript is running in the browser long after the Java side of things has finished executing. Assuming you're not talking about an applet here.
But you can make calls back to the server through Ajax. All you need is something like a servlet on the receiving end which you can invoke through Ajax; from that point you can execute any Java code you want. -
How to Call HTML Layers from Flash?
how to Call HTML Layers from Flash? i need a help on example
or script.What do you mean html layers? You can call JavaScript on the
page using the
ExternalInterface class. There's examples in Help if you look
up the EI
class, and it's call method.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Help with calling java functions from javascript
I am using javax.script to interpret javascript from a java applet. it loads the js file into a string, and then does engine.eval(script_string). My question is, how would I make functions in the class file that are available to javascript?
Update: Instead of that, I am loading a js script that will contain all of the usable functions. Here it is:
//core.js for Javasphere 0.31
var pkgs = new JavaImporter(java.lang, java.lang.System, java.awt);
with(pkgs) {
function Abort(msg) {
var graph = new Graphics();
g = graph.getgraphics();
g.drawString(msg, 20, 20);
}When I do engine.eval("Abort(\"something\")"); it throws this error:
javax.script.ScriptException: sun.org.mozilla.javascript.internal.EvaluatorException: error instantiating (0): class java.awt.Graphics is interface or abstract (<Unknown source>#8) in <Unknown source> at line number 8Eggbertx, let's start from scratch if you don't mind. Say you have this Applet
pubic class MyApplet extends Applet
String message;
//CALL THIS METHOD FROM JAVASCRIPT
public void setMessage(String msg)
message = msg;
// this saves you from having
// to call getGraphics() from JavaScript
repaint();
public void paint(Graphics g)
g.drawString(message, 10, 30);
}Then in your HTML file you may have something like this:
<input type="text" id="msg" value=""></input>
<input type="button" value="Set Message" onclick="setAppletMessage()"></input>
<applet id="myApplet" code="MyApplet.class" width="400" height="100"></applet>And in the JavaScript file:function setAppletMessage()
var msg = document.getElementById("msg").value;
document.myApplet.setMessage(msg);
}This is about all you really need to do. See how the Graphics object is no longer in your .js file?
Note: You may run into other difficulties in getting this code to work because of browser, security, or some other pain-in-the-neck issues, but this is the idea.
Eggbertx, I see you added a star to my first post and I think you should take that off because:
1. <tt>Component</tt> is abstract... so you can not call the <tt>new</tt> operator.
2. The call <tt>component.getGraphics()</tt> is not going to work either, because <tt>component</tt> was never created. -
How to call a form from report? in 6i
How to call a Form from Report? In Developer 6i of oracle. Plz tell me tex.
try this
declare
AppID PLS_INTEGER;
begin
AppID := DDE.App_Begin('ifrun60 module=myform.fmx userid=scott/tiger@mydb maximize=no', DDE.App_Mode_Maximized);
exception when others then
srw.message(1,'Errror');
end;Baig
[My Oracle Blog|http://baigsorcl.blogspot.com/] -
How to call a package from the Report in Oracle Application Express
How to call a package from the Report in Oracle Application Express
Hello,
What do you mean? Something like SELECT mypackage.function( par1, par2) from dual?
Or do you want to execute a procedure when something happens on the page, like clicking a button?
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this reply by marking it as either Helpful or Correct ;-) -
How to call business service from xquery transformation in OSB ??
Hi All,
How to call business service from xquery transformation in OSB ??
I need to assign the response variable of Business Service to a target element in XQuery Transformation Mapper file.
It's urgent.
Regards,
Jyoti NayakTransformation is to mapping the source and target of 2 different schemas.
In your case you should have a XQuery transformation between, your Business Service output schema and the target schema.
Thanks,
Vijay -
How to call java program from ABAP
Hi Experts,
My requirement is to call java programs from ABAP. For that i have set up SAP JCO connection by using this link http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/739. [original link is broken] [original link is broken] [original link is broken] Connection gets sucessfully. After this how to call java program from ABAP as per our requirement. Please help me out.
Also i tried this way also.. but while executing the DOS Command line appear & disappear in few seconds. So couldnt see the JAVA output. Please help me out to call java programs in ABAP..
DATA:command TYPE string VALUE 'D:Javajdk1.6.0_20 injavac',
parameter TYPE string VALUE 'D:java MyFirstProgram'.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = command
parameter = parameter
OPERATION = 'OPEN'
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
bad_parameter = 3
file_not_found = 4
path_not_found = 5
file_extension_unknown = 6
error_execute_failed = 7
OTHERS = 8.
Thanks.This depends on the version of your Netweaver Java AS. If you are running 7.0, you will have to use the Jco framework. The Jco framework is deprecated since 7.1 though. If you want to build a RFC server in 7.1 or higher, it is adviced that you set it up through JRA.
Implement an RFC server in 7.0:
http://help.sap.com/saphelp_nw04/helpdata/en/6a/82343ecc7f892ee10000000a114084/frameset.htm
Implement an RFC server in 7.1 or higher:
http://help.sap.com/saphelp_nwce72/helpdata/en/43/fd063b1f497063e10000000a1553f6/frameset.htm
Maybe you are looking for
-
I have been using one apple ID for 4 family members. Up until now it hasn't been a problem but now that we all have our own devices how do I create new apple ID's for each of us and them move the approprioate things from the original apple ID accoun
-
Question on what the syntax should be to perform a search query via Ultra Search revolving around 3 terms ("solaris","access control","buffer overflow"). The search result should return documents which contain the words ("solaris" and "access control
-
Implicit commit in ABAP Web Dynpro?
I wonder if ABAP Web Dynpro is executing an implicit commit. I have two buttons on the same view. The first one inserts an entry into a table, the second one executes a "rollback work" (and to be sure calls function "DB_ROLLBACK"). However, after fir
-
SD Query Install - No Entry Found Problem
Gurus, I have this weird problem in Bex. I installed around 15 Business Content SD query and transported to the assigned Z package. I was able to view the query and have data populated last week. But recently when i tried to open a particular sales
-
Setting property for DefaultMutableTreeNode in Swing.
Hi, I'm working with JTree in Swing. Its getting added with DefaultMutableTreeNode dynamically. I'm using setUserObject() to set the node name what I want to display on the screen. How can I set Id for the node? Based on the Id I want to identify the