External use of Javascript API

Hello All,
I was wondering two things.
1 - What is the file that contains the javascript API functions.
2 - Could one use this outside the realm of APEX. --> I have a desktop application which connects to APEX and does a whole bunch of things. I have have however run into a problem. CLOBS. In apex I can use $S , but outside of APEX, what would be the equivalent.
I know this is a shot in the dark, but well knowing does nto hurt.
Thanks
Jan

1) These files can be found in /i/javascript
$s for instance is found in apex_4_1.js
2) Depends on the function. You can use these js files to track down exactly how Apex actions these tasks (I do this sometimes to learn a little more javascript), but if it ultimately talks to the db, then obviously you can't use that out of context.

Similar Messages

  • Is it possible to change out of the box Callout content for already existing library using some javascript API ?

    Is it possible to change out of the box Callout content (change DOM elements) for already existing library using some javascript API?
     API ?

    Hi,
    We can use CSS and jQuery to achieve it.
    Please add the following code into the Content Editor Web Part.
    <style type="text/css">
    .js-callout-content{
    display:none;
    .js-callout-mainElement span{
    display:none;
    .js-callout-mainElement{
    border-width:0px;
    </style>
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {
    $("a[title='Open Menu']").click(function(){
    setTimeout(function(){
    $(".js-callout-body .js-callout-bodySection").eq(0).html("<span>Test</span>");
    $(".js-callout-mainElement span").show();
    $(".js-callout-content").show();
    $(".js-callout-mainElement").css("border-width","1px");
    },1000);
    </script>
    Result:
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Get Direction Map using Mapviewer Javascript API

    Hello Gurus,
    I have coordinate information for a route which I got using routing engine. Now, my requirement is to get map (Similar to eLocation GetDirection map) which can show routing curve in map. Using Javascript API, how can I achieve this?
    If I am not not wrong, I will have to create new FOI with MVSdoGeometry, but I am not sure about how to create MVSdoGeometry for the lat-lang I have which will display a curve?
    Thanks in advance.
    -Hardik

    Currently you can not add zooming event listener. We'll support it in the next release.

  • How do I use OracleMaps Javascript API from a different host than MapViewer

    Hello,
    I have successfully set up the Mapviewer quick start 10131, and am able to view the sample page showMap.html perfectly. I would like to run this same sample on a different server than where Mapviewer is installed. Let say mapviewer is installed on jstraub-winsvr:8888 and I want to run showMap.html from jstraub-linux1:7777. I tried changing the function showMap and the location to oraclemaps like the following:
    <script language="Javascript" src="http://jstraub-winsvr:8888/mapviewer/fsmc/jslib/oraclemaps.js"></script>
    function showMap()
    var baseURL = "http://jstraub-winsvr:8888/mapviewer";
    var mapCenterLon = -122.45;
    var mapCenterLat = 37.6706;
    var mapZoom = 4;
    var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,8307);
    var mapview = new MVMapView(document.getElementById("map"), baseURL);
    mapview.addBaseMapLayer(new MVBaseMap("mvdemo.demo_map"));
    mapview.setCenter(mpoint);
    mapview.setZoomLevel(mapZoom);
    mapview.display();                
    Now when I try running this page on jstraub-linux1:7777 I get a Javascript error, and in Firebug, I can see that there are request like the following:
    POST: http://jstraub-linux1:7777/mapviewer/ReturnLocaleOper
    GET: http://jstraub-linux1:7777/mapviewer/mcserver?xml_request=%3C?xml+version=%221.0%22+standalone=%22yes%22?%3E%3Cmap_cache_admin_request%3E%3Cget_client_config+map_cache_names=%22mvdemo.demo_map%22+format=%22JSON%22/%3E%3C/map_cache_admin_request%3E
    Obviously those requests are bogus since mapviewer is at jstraub-winsvr:8888 and not jstraub-linux1:7777, I just want to run the page from jstraub-linux1:7777. Anybody know how I do this?
    Regards,
    Jason

    I believe that I am having the same problem. While I don't yet have a resolution, I do have a bit more information that may be useful. I have examined the oraclemaps.js script file and found some relevant references to the Javascript document.location object. As I watch the script execute, it seems that the author has made the assumption that the page served to the user has been served from the same Oracle Application Server running MapViewer. I have listed the lines that contain references to document.location below. (The line numbers may be off by a line or two as I have made some minor changes to facilitate my investigation.)
    Line 742 : //_f16._f104="http://"\+document.location.host\+"/mapviewer/foi";
    Line 6280 : var x2=String(document.location);
    Line 10270 : var x40=String(document.location);
    By changing line 742 to...
    f16.f104="http://mymvserver:8888/mapviewer/foi";
    ...I believe I have the script looking in the right place. (Previously, it had been looking for /mapviewer/foi on the server that originally served the page.)
    The x2 variable (at line 6280) seems to provide the current document location as a means to determine the MapViewer URL. Once again, the author seems to presume that MapViewer is found on the same server that originally served the page.
    this._f53=x2.substring(0,x3\+x5\+2)+"/mapviewer";
    I changed this line to read:
    this._f53="http://mymvserver:8888/mapviewer";
    Having made these changes, I have moved past the "object not found"-types of errors I had been getting. I now get "Permission Denied" errors which, I am thinking, may be the result of cross-site scripting problems predicted by the previous poster.
    So, my question is this: Is it really expected that the page that integrates the map display must be served by the same Oracle Application Server instance on which MapViewer is running? This strikes me as an absurd limitation, so I assume it is not the case. Indeed, there is a post on this forum by another user who claims to have written an ASP.Net application that uses the Javascript interface to integrate MapViewer and the map display ( Link:securing mapviewer ). This is precisely what we are trying to do; but I have yet to determine how to go about doing it.
    Can this be done? Is there any documentation that describes how to accomplish this?

  • CS6 JavaScript API .mxi path

    How can I call the .mxi using the JavaScript API?
    In previous versions of the plugin I could easily call upon the mxi file to grab a token definition value using the dw.getConfigurationPath().
    As in the following example: dw.getConfigurationPath() + ’/Extensions/myextension.mxi’;
    The reason for storing the path in the mxi is because it is the only place that I know will dynamically create the path such as: Macintosh HD:Users:<UserName>:Desktop:MyFolder: or C:\Users\<UserName>\Desktop\MyFolder respectively when I enter a token definition of $userhomefolder/Desktop/MyFolder.
    However now that the .mxi file has been moved to the extension manager folder in CS6 I can no longer use
    dw.getConfigurationPath(). My question is how do I now obtain the .mxi path now?
    Thanks.

    You need to post scripting questions in the Adobe Photoshop Scripting forum.
    -X

  • How complete is the javascript API?

    Hi,
    I am trying to serealize a AI document using the javascript API. Based on the "AI CC SCRIPTING REFERENCE" I assumed this could be done by simple traversing the dom and saving the type and properties of each object. It seems however that the API isn't complete. For example, I can't figure out how to read the transformation matrix of a symbolItem. (i.e. when creating a new symbolItem from a symbol and then resizing/rotating/repositioning it, how can I find these new properties?)
    This is just one thing I ran into, that might be fixed using the C SDK. I am wondering however if this is worth the effort or more like filling a bucket full of holes? How complete is the javascript API?
    Thanks,
    Tom

    the DOM in Illustrator is very limited, half the features are not exposed to scripting, SymbolItem Matrix is one of them.

  • How to add a polygon to mapviewer using Javascript API

    Hi,
    I am using JavaScript API for the MapViewer.
    Using redlining tool, my application allows user to draw polygon onto the map.
    I would like to have union, difference and intersect tools. I know the back end logic can be done using using JTS or SDO_Union, SDO_difference, and SDO_intersection. but how do i display the result polygon on the map? Note that I am not going to store the polygon in the database.
    Thanks for any ideas.

    Hi,
    If I understand well you are using Oracle Maps. User do some redlining, then you somehow makes FOI polygons. Then you get the coordinates of the polygons and send them to the back-end where you can use spatial functions and get the coordinates of the new polygon.
    You can store those coordinates in i.e. hidden input field on page (if you use JSF it is very simple) and then use JavaScript to parse them and Oracle Maps API to create new FOI polygon and add it to mapviewer object. One disadvantage of this concept is that reloading of page (submit) is necessary.
    Branislav

  • How can i use  a adf javascript api

    hi
    can i use the adf javascript api for creating the AdfRichInputText .is there any producer
    to create the AdfRichTextInputText in javascript .plz guide me
    Thanks and Regard
    Message was edited by:
    Prapan Sol

    Hi,
    the ADF JavaScript API is not meant for you to create JSF components on the fly. For this you please use teh ADF Facesserver side components.
    The RichInputText component is defined by a pair of components, the AdfRichInputText and its Peer component. I don't know what your usecase is, but my impression is you are looking at it from the wrong end
    Frank

  • Use of LORD APIs from external Java application

    We have a need (business scnerio driven) to write an external Java application for Sales Order/Quotation entry. We have recently updated to EHP4 to make use of LORD APIs built by SAP for CRM processes. We are going through published APIs and learning them the hard way (tral and error). We are making progress but slow. Currently we are working through function group ERP_LORD which contains 32 function modules (ERP_LORD_LOAD etc)
    Does anyone know have documentation on basic order entry scnerios and APIs to use and further information on variations of ERP_LORD_SET that may save us some time?
    Any additional information will be appreciated.

    How will they be able to access your application if they aren't users of the system?

  • Can I use ant's api without using javascript ?

    Can I use ant's api without using javascript and which tasks we cant do without javascript in ant's build file?
    eq:
    jar=project.createTask("jar");
    jar.setDestFile(new java.io.File(project.getProperty("lib")+"/myJarFile.jar"));
    jar.setBasedir(new java.io.File(project.getProperty("classes")));
    jar.setIncludes(project.getProperty("GenericDirStructure")+"/**");
    jar.setIncludes("META-INF/**");
    jar.perform();
    can I create above jar without using javascript i. e<script language="javascript"> in build.xml file.
    Thanks,
    Archan

    Archana144 wrote:
    hello georgemc
    How to use ant's api without javascript in build.xml file because it gives error if I tries to do something like
    project.createTak("echo").in build.xml..etc ..without including this in <script language="javascirpt">
    And I cant use <jar> task directly because ..I want to crete multiple jar files depending on some configuration done in properties files..so I m doing this jar creation in loop.
    Thanks,
    Archan
    Edited by: Archana144 on Aug 13, 2008 6:00 PMHave you read all the Ant documentation? The <script> task was only added in 1.7, before that, there was no using Javascript in build files

  • Displaying a theme-based FOI layer as a whole image with javascript API v2

    Hi,
    I have looked the Oracle maps V2 tutorial developed in mvdemo.war application provided with Oracle Mapviewer v11.1.1.7. I have looked how to use theme-based FOI layers and I have not found how to set the "whole image" property for these layers. This feature is present in javascript API V1 and it greatly improves application performance. Our applications use this property very often.
    Is this property present in javascript API V2 but not documented?
    If it's not present, do you know if it will be?
    How can we show a layer with many geometry features and obtain the same performance we have now with the whole image property?
    Thanks,
    Arturo

    Hi,
    since this is a very crucial feature for us I'm very interested in that functionality as well. Is there a comparable functionality in the V2 API or will it be available in feature releases?
    Thanks
    Dominik

  • Error while using LiveCycle java APIs with Http servlets:"Remote EJBObject lookup failed for ejb/Inv

    Hi all,
    When i try to run more than one servelt of the Quick Start samples that using Livecycle Java APIs and i get an error of "Remote EJBObject lookup failed for ejb/Invocation provider" from any servelt i run.
    I try some Quick samples which is not servelts (java class) and it works fine, which makes me sure that my connection properties is true.
    Environment:
    The LiveCycle is based on "Websphere v6.1", and i use "Eclipse Platform
    Version: 3.4.1".
    i install "tomcat 5.5.17" to test the servelts in developing time through Eclipse.(only for test in developing time not for deploy on )
    The Jars i added in the classpath:
    adobe-forms-client.jar
    adobe-livecycle-client.jar
    adobe-usermanager-client.jar
    adobe-utilities.jar
    ejb.jar
    j2ee.jar
    ecutlis.jar
    com.ibm.ws.admin.client_6.1.0.jar
    com.ibm.ws.webservices.thinclient_6.1.0.jar
    server.jar
    utlis.jar
    wsexception.jar
    My code is :
    Properties ConnectionProps = new Properties();
    ConnectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "iiop://localhost:2809");
    ConnectionProps.setProperty ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,ServiceClientFactoryProperties.DSC_ EJB_PROTOCOL);
    ConnectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE,ServiceClientFa ctoryProperties.DSC_WEBSPHERE_SERVER_TYPE);
    ConnectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "Administrator");
    ConnectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");
    ConnectionProps.setProperty("java.naming.factory.initial", "com.ibm.ws.naming.util.WsnInitCtxFactory");
    //Create a ServiceClientFactory object
    ServiceClientFactory myFactory = ServiceClientFactory.createInstance(ConnectionProps);
    //Create a FormsServiceClient object
    FormsServiceClient formsClient = new FormsServiceClient(myFactory);
    //Get Form data to pass to the processFormSubmission method
    Document formData = new Document(req.getInputStream());
    //Set run-time options
    RenderOptionsSpec processSpec = new RenderOptionsSpec();
    processSpec.setLocale("en_US");
    //Invoke the processFormSubmission method
    FormsResult formOut = formsClient.processFormSubmission(formData,"CONTENT_TYPE=application/pdf&CONTENT_TYPE=app lication/vnd.adobe.xdp+xml&CONTENT_TYPE=text/xml", "",processSpec);
    List fileAttachments = formOut.getAttachments();
    Iterator iter = fileAttachments.iterator();
    int i = 0 ;
    while (iter.hasNext()) {
    Document file = (Document)iter.next();
    file.copyToFile(new File("C:\\Adobe\\tempFile"+i+".jp i++;
    short processState = formOut.getAction();
    ...... (To the end of the sample)
    My Error was:
    com.adobe.livecycle.formsservice.exception.ProcessFormSubmissionException: ALC-DSC-031-000: com.adobe.idp.dsc.net.DSCNamingException: Remote EJBObject lookup failed for ejb/Invocation provider
    at com.adobe.livecycle.formsservice.client.FormsServiceClient.processFormSubmission(FormsSer viceClient.java:416)
    at HandleData.doPost(HandleData.java:62)
    at HandleData.doGet(HandleData.java:31)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    a

    I assume here that your application is deployed on a different physical machine of where LCES is deployed and running.
    Do the following test:
    - Say that LCES is deployed on machine1 and your application is deployed on machine2. Ping machine1 from machine2 and note the ip address.
    - Ping machine1 from machine1 and note the ip address.
    The two pings should match.
    - Ping machine2 from machine1 and note the ip address.
    - Ping machine2 from machine2 and note the ip address.
    The two pings should match.
    Usually this kind of error would happen if your servers have internal and external ip addresses.

  • Post/Create a poll using Yammer REST API

    Hi everybody,
    I have been working on a project where there is a requirement to develop a custom web part that displays the feeds from Yammer. Also, the logged in user should be able to post messages, attachments, polls from the web part.
    I was able to post messages and attachments using rest api and with yammer embed. But I couldn't find any information/documentation on how to post/create a poll via Yammer API using JavaScript. I've browsed through the documentation provided by Yammer( https://developer.yammer.com/documentation/ )
    and googled a lot, but couldn't get any help.
    Any suggestions regarding this would be highly appreciated.
    Regards,
    Srivikas Nallamilli.
    -- Thanks & Regards, Srivikas.

    Hi,
    Use the same API that you use to fetch messages from yammer i.e https://www.yammer.com/api/v1/messages.json
    When you post a poll, above api will return json respose something as below:
    "external_references":[
    "meta":{
    "requested_poll_interval":60,
    "realtime":{
    "uri":"https://7-791.rt.yammer.com/cometd/",
    "authentication_token":<TOKEN>
    "channel_id":<CHANNEL ID>
    "last_seen_message_id":null,
    "current_user_id":1530316230,
    "followed_references":[
    "ymodules":[
    "id":12147685,
    "inline_html":"<INLINE HTML>",
    "viewer_id":1530316230
    "newest_message_details":null,
    "feed_name":"Company Feed",
    "feed_desc":"",
    "direct_from_body":false
    you will get the poll message in inline html section highlighted in code above.
    Let me know if it works.
    Thanks,
    Avni Bhatt
    If this helped you resolve your issue, please mark it Answered

  • PDF embedding & Acrobat's JavaScript API

    Hello,
    I have two questions.
    I currently using Safari 1.3.2 and Acrobat Reader 7.0.9 to test an PDF document embedded in a Web page. In Safari 1.3.2 I get a "This operation is not allowed" warning when the HTML object element and the embed element are encountered.
    I have also tested it in Safari 3.0 on Windows, with plug-ins enabled in the Preferences and Acrobat Reader 8 installed. The PDF file is not shown and no warning is given either.
    So, does Safari 2.0 support embedding PDF files at all?
    My other question is, assuming Safari does support PDF embedding, whether it is possible to interface from an HTML page to the Acrobat plug-in via Acrobat's JavaScript API. In IE this is a simple as getting the object element by id and for example, invoking its Print() method. Is this possible in Safari?
    Thank you in advance,
    Adal Fraile

    Hello,
    I have two questions.
    I currently using Safari 1.3.2 and Acrobat Reader 7.0.9 to test an PDF document embedded in a Web page. In Safari 1.3.2 I get a "This operation is not allowed" warning when the HTML object element and the embed element are encountered.
    I have also tested it in Safari 3.0 on Windows, with plug-ins enabled in the Preferences and Acrobat Reader 8 installed. The PDF file is not shown and no warning is given either.
    So, does Safari 2.0 support embedding PDF files at all?
    My other question is, assuming Safari does support PDF embedding, whether it is possible to interface from an HTML page to the Acrobat plug-in via Acrobat's JavaScript API. In IE this is a simple as getting the object element by id and for example, invoking its Print() method. Is this possible in Safari?
    Thank you in advance,
    Adal Fraile

  • Suppressing Applet alerts when using java mail api

    Hi,
    Im using the following code to send email from my application. Im using JSF (tomahawk), Spring and hibernate in my application. I'm using spring email API classes to send email. This code works perfectly fine in the sense its parsing template and sending emails to the configured email id.
    I have defined this class as a managed bean and i have a commanButton is UI which is bound to this sendEmail() method
    <t:commandButton value="Send email" action= #{email.sendEmail}/>
    import java.io.StringWriter;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    import java.util.Properties;
    import javax.mail.MessagingException;
    import javax.mail.internet.MimeMessage;
    import org.apache.velocity.Template;
    import org.apache.velocity.VelocityContext;
    import org.apache.velocity.app.VelocityEngine;
    import org.apache.velocity.exception.ParseErrorException;
    import org.apache.velocity.runtime.resource.loader.StringResourceLoader;
    import org.apache.velocity.runtime.resource.util.StringResourceRepository;
    import org.springframework.mail.MailException;
    import org.springframework.mail.SimpleMailMessage;
    import org.springframework.mail.javamail.JavaMailSenderImpl;
    import org.springframework.mail.javamail.MimeMessageHelper;
    import au.gov.nsw.railcorp.onlineticketing.external.model.request.ServiceFees;
    public class EmailService {
         JavaMailSenderImpl sender;
         VelocityEngine engine;
         public EmailService(){
         sender = new JavaMailSenderImpl();
             sender.setHost("<smtp ip>");
             sender.setPort(25);
             sender.setUsername("<user id>");
             sender.setPassword("<password>");
             engine = new VelocityEngine();
             Properties p = new Properties();
             p.setProperty("resource.loader", "string");
             p.setProperty("string.resource.loader.class",
                  "org.apache.velocity.runtime.resource.loader.StringResourceLoader");
             try {
                   engine.init(p);
              } catch (Exception e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         public VelocityEngine getEngine() {
              return engine;
         public void setEngine(VelocityEngine engine) {
              this.engine = engine;
         public JavaMailSenderImpl getSender() {
              return sender;
         public void setSender(JavaMailSenderImpl sender) {
              this.sender = sender;
         public static void main(String args[]){
              EmailService emailService=new EmailService();
              emailService.sendEmail();
         public boolean sendEmail(){
         try{
                 MimeMessage message = sender.createMimeMessage();
                 MimeMessageHelper helper = new MimeMessageHelper(message);
                 helper.setTo("<to email id>");
                 helper.setFrom("<from email id>");
                 helper.setSubject("Teting velocity");
                 VelocityContext context = new VelocityContext();
                 StringWriter writer =  new StringWriter();
                 Template template =new Template();
                    StringResourceRepository repository =StringResourceLoader.getRepository();
                    String tempText="<html><body>Hi, ${username}...<p> this is a some template!</p></body></html>";
                 repository.putStringResource("myTemplate",tempText );
                 context.put("username", "Marc");
                 template = engine.getTemplate("myTemplate");
                  template.merge(context, writer);
                  System.out.println("VM Template:\n" + tempText);
                  System.out.println("Output:\n" + writer);
                  String body=writer.toString();
                  helper.setText(body,true);
                  sender.send(message);
            catch (MessagingException ex) {
                // simply log it and go on...
                System.err.println(ex.getMessage());           
            catch (MailException ex) {
                // simply log it and go on...
                System.err.println(ex.getMessage());           
            } catch (ParseErrorException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         } catch (Exception e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         return true;
    }The problem i have is when i try to invoke the function sendEmail() from my UI it is throwing a series of applet alerts (some 10 of them) . The following are the alerts that i get
    1. The applet is attempting to invoke the java/lang/System.getProperty() operation on java.home
    2. The applet is attempting to perform a read operation on the file C:\Program Files\java\jre1.5.0_14\javamail.providers
    3. The applet is attempting to perform a read operation on the file C:\Program Files\java\jre1.5.0_14\javamail.address.map etc....
    For ever applet alert i had to click on 'allow' for it to proceed. But there is no problem in sending mail after that. One more interesting this is i DONT get this alert when i try to execute this java class directly instead of calling the method from another class or from UI.
    Can someone please let me know the reason for this applet alert and the way to suppress it?
    Its really urgent .. please help
    Thank you..

    Hi Subhadip,
    Thanks for the quick response :)
    Please help me understand this.. Im not explicitly using applet anywhere .I guess it should be used internally by one or many of the API classes i have used . In this scenario how can self sign the applet and which one?
    I have included some jars like activation.jar,mail-1.4.2.jar,velocity-1.6.2.jar in my webapp lib . Is there a means to sign these jars and use? Is this what you are suggesting me to do?
    One more doubt i have is how come the same method runs without any problem when executed as a standalone java class (with main() method)
    Will be really helpful if you could help me understand this...
    Thanks,
    Swami

Maybe you are looking for