NSDP from within javascript?

Hi,
I have noted that it has been suggested that utilisation of a Non Spatial Data Provider(NSDP) could actually speed up dynamic theme FOI rendering as the spatial column is not needed in the join towards the BaseMap.
Can that be done from within javascript? Any examples? Could it speed up rendering even though basemap as well as foi themes are located in the same database?
I'm experiencing somewhat poor performance using dynamic theme FOI rendering via jdbc_query.
10.1.3.1
Best regards Jesper

Can you provide more details on the query and the performance issue you're experiencing.
I'm not sure how using NSDP will speed things up. The spatial data still has to be queried and retrieved in order to render it.
Jayant

Similar Messages

  • Accessing java objects from within javascript

    Hello,
    Anyone with an idea of a useful toolkit for accessing java objects from within javascript will be much appreciated.
    Thanks in advance,
    Antana.

    What do you mean by accessing Java objects? Do you mean interacting with an applet via JavaScript? Something else?

  • Accessing Instance variables from within javascript

    Is it possible to access Instance variables of a JSP using
    javascript? If so, an example would be very much appreciated.
    LaMont

    <script language="JavaScript">
    var scriptVar = "<%= jspVar %>";
    </script>

  • Not able to display javascript alert message from within a pl/sql block

    Hello,
    Can anyone please help me out with this issue. I wanted to display an javascript alert message from within a pl/sql block for an update button. Below is sample code which i am using. P1_ITEM is my hidden item on the report.
    begin
    if :P1_ITEM IS NOT NULL then
    HTP.p ('<script type="text/javascript">');
    HTP.p ('alert(''Please complete the item which is already assigned to you!'');');
    HTP.p ('</script>');
    end if;
    end;
    and I have made this code to be executed conditionally when request = Expression1
    Expression1: SUBMIT
    The thing is I am not able to display an alert message when the update button is clicked.
    Can anyone please help me with this one.
    Thanks,
    Orton

    varad but I also have an update statement within that block for the update button something like this i want to achieve.
    begin
    if :P1_ITEM IS NULL THEN
    update sample_tbl
    set col1 =:APP_USER,
    col2 = 'Y'
    where pk_col = ---;
    commit;
    HTP.p ('<script type="text/javascript">');
    HTP.p ('alert(''Successfully assigned an item!'');');
    HTP.p ('</script>');
    end if;
    if :P1_ITEM IS NOT NULL then
    HTP.p ('<script type="text/javascript">');
    HTP.p ('alert(''Please complete the item which is already assigned to you!'');');
    HTP.p ('</script>');
    end if;
    end;
    thanks,
    Orton

  • Can 'Form Data' Be Called From Within A JavaScript?

    Hi,
    I'm trying to import form data from within a JavaScript. What would the following code be changed to, if my form data file was called "NewDoc"?
    n=app.alert("Are you sure you want to Reset?/Êtes-vous certain de vouloir recommencer?",2,1);
    if (n==1)
    this.resetForm();

    First you will need to set the other PDF's "disclosed" property to "true" so you can open it in the first PDF.
    Then you can modify the following code from example 3 for the "app.openDoc" method:
    oDoc = app.openDoc({
    cPath:"/C/myDocs/myInfo.pdf",
    bHidden: true
    }); // oepn other PDF
    var v = oDoc.getField("myTextField").value;
    this.getField("yourTextField").value = v; // get value of field in other document
    oDoc.closeDoc(); // close the other document

  • Adobe Javascript from within Excel VBA

    I have some limited experience with Excel VBA and Adobe Javascript separately, but have never tried to put them together. I am rather baffled by the use of “DoJavaScript” from within Excel VBA. I have a number of Illustrator JavaScripts that do various tasks (mostly measure and set properties on illustrator drawing objects to determine some geometric metrics). I wanted to run these scripts from within Excel VBA (they run without problem when directly called into Illustrator). My hope was to pass a few real numbers from VBA into the JavaScript before one ran to set some run parameters and then get a few real numbers back out from the JavaScript back into VBA. I cannot seem to get even the simple DoJavaScript command given in the Adobe VBscript reference to run. Reading other posts that seem somewhat related it is not clear if I am doing something very simple wrong, or if my understanding of the use of the DoJavaScript command is misguided. Anyone able to shed some light on this?
    My last try was this simple test...almost directly from the Adobe reference:
    Private Sub SetScale_CommandButton1_Click()
    Set appRef = CreateObject("Illustrator.Application")
    Set myNumberOfDocuments = appRef.DoJavaScript("documents.length;")
    MsgBox myNumberOfDocuments
    End Sub
    I am really hoping to be able to run javascripts that are a few hundred lines long....but if I cannot even get something simple to go then I am about to give up on it.
    Thanks for any suggestions

    Carlos;
    I am most grateful! ... I was stumped on that for hours, thought I had tried about every combinatory possible, and was about to give up on getting the DoJavaScript  method to work. There are few examples of this on the web, so for anyone else who would like a bit more verbose  example I post below is a simple VBA sub-routine that uses a javascript function to return the number of selected objects in the current active illustrator document and displays that number in a message box in excel. Simple example, but it was the sort if thing I was looking for all over the web before Carlos’ help.
    Cheers,
    Brian
    Private Sub ObjectNum()
    Set appRef = CreateObject("Illustrator.Application")
          tmp$ = "function myfunction() {"
          tmp$ = tmp$ + "var idoc = app.activeDocument;"
          tmp$ = tmp$ + "var sel = idoc.selection;"
          tmp$ = tmp$ + "var numobj = sel.length;"
          tmp$ = tmp$ + "return numobj;};"
          tmp$ = tmp$ + "myfunction();"
    numobj = appRef.DoJavaScript(tmp$)
    MsgBox numobj
    End Sub

  • Calling a webservice from within Bex Web Application Designer

    Hi
    I have a web-template built with BEx web application designer which also contains textboxes. This text should be stored by calling a webservice (standard BI-documents are not an option).
    Can anyone tell me how I could call a webservice from within the BEx web template to store the text contained in the textbox? The webservice-call should include some of the filter-varialbes of the web application.
    Is this only possible by the use of a JavaScript WebItem? If so - does anyone have an example of such a JavaScript.
    Thanks a lot in advance.
    Kind regards.
    Christoph

    Thanks for your response. The BSP page would work out fine if I only needed to save the data.
    But the next time I call the webtemplate, the textarea should be filled by another webservice call with the stored text (so the text can be modified und saved again). This will not be possible by calling a BSP page.
    Do yoiu have any suggestions how to integrate the text (return value from the webservice call) into the textbox in the webtemplate?
    Kind regards.
    Christoph

  • 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,

  • Call Process within javascript

    NEWBIE QUESTION:: If possible, how can you call a page process from within a javascript code segment.
    I have a for loop that needs to call a process.

    AJAX is part of your browser.. APEX supports it.. Maybe you should do some reading on the subject...
    Thank you,
    Tony Miller
    Webster, TX
    What if you really were stalking a paranoid schizophrenic... Would they know?
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Invoking a command link's action from a javascript, on pressing enter key

    i have the foll java script function. on pressing enter within an input field i want a certain commandlink's action to be automatically performed:
    function checkKeycode() {
         alert("entered");
              var keycode;
              if (window.event) keycode = window.event.keyCode;
              //else if (e) keycode = e.which;
              if(keycode==13){               
                   alert("keycode: " + keycode);           
                   var x=document.getElementById("form10:link1");
                   alert("about to click");
                   x.click();
                   //document.forms[0].link1.click();               
                   //if(validate('form1:_system_username,form1:_system_password','form1:_id0,form1:_id1','2'))
                        //alert("about to submit page");
                        //submitPage();
         }This fn is being called from the input text as follows:
    <h:inputText styleClass="inputText" id="text1" size="32" onkeypress="checkKeycode();"></h:inputText>And the code containing the command link who's action i want to be called is:
    <h:commandLink styleClass="commandLink" id="link1"
                             action="#{pc_Test.doLink1Action1}">
                             <hx:graphicImageEx border="0" styleClass="graphicImageEx"
                                  id="imageEx1" url="../../images/search.gif"></hx:graphicImageEx>
                        </h:commandLink>
    The javascript is being entered as i get an alert saying that enter key was pressed. However it is not performing the action requried, saying that "null is null or not an object"
    could sumone please help????

    Hi
    From your javascript , it is known that this is only work in IE,
    And indeed it works fine, mybe there is another button which the default in your jsp
    Change your code like this:
    onkeypress="return checkKeycode();"
    and at end of your javascript return false when you call x.click
    Message was edited by:
    okoi80

  • How to call a Oracle Form from within the APEX

    Hi,
    I have a requirment where need to call a oracle form from within the Oracle APEX application?
    I will appriciate if can someone help me out.
    Thanks

    Hi,
    are you working with Forms 6i or 10g?
    If you want to call a forms 10g page. Just use a button with javascript:
    - Target type: URL
    - URL Target: javascript:window.open ('http://<server>:<port>/forms/frmservlet?config=<conf>','Forms window');
    With Forms 6i you can open the directory where your forms file is inside (works just with IE):
    <script type="text/javascript">
    function fnc_window()  {w = open('C:\\FormsFiles', "winLov","scrollbars=yes,resizable=no,width=600,height=400");
    if (w.opener == null)
    w.opener = self;
    </script>Or execute the forms file with vbscript (IE only):
    <script language = "vbscript">
    sub fnc_forms()
    dim progName
    progName = "c:\FormsFiles\myForm.exe"
    set oShell = createobject("wscript.shell") 'create a shell
    '***use the line below to call your app, defined above with the "progName" variable:
    oShell.run(progName)
    end sub
    </script>

  • Cfquery within javascript

    hi,
    I am trying to do the following:
    I wrote a cfquery within javascript function as below:
    <script language="javascript1.2" type="text/javascript">
    <cfquery name="query1 datasource="abc">
    </cfquery>
    <cfif query1.recordcount neq "0">
        <cfoutput query = "query1">
           <cfquery name="query2 datasource="abc">
      select * from table1 where name=#query1.name#
           </cfquery>
        </cfoutput>
         alert(<cfoutput>#query2.RecordCount#</cfoutput>);
    </cfif>
    </script>
    The alert value is 1 but the debugging section shows 0, and 0 is the correct value. is there something wrong that I am doing.
    If so can you please point out...

    The problem comes from how CF and JS work: Coldfusion is a "Server Side" language while Javascript is "Client Side". This means the server runs through all the CF code in your page and sends the finished product on to the user's browser which THEN starts handling the Javascript.
    I'm not sure of your intended outcome ... do you want a series of "alerts" as soon as the page loads? If you are using the alert for debugging (just to see what is being returned, you can replace it with <p> tags and you will see the output on screen. Try this:
    <cfif query1.recordcount neq "0">
         <cfoutput query = "query1">
              <cfquery name="query2 datasource="abc">
              select * from table1 where name=#query1.name#
              </cfquery>
              <p>#query2.RecordCount#</p>
         </cfoutput>
    </cfif>
    2 more notes:
    you don't the inner "cfoutput" around you record output if you are going to use cfoutpu to loop over your query.
    the output line needs to be INSIDE the loop or you'll only output the last iteration.

  • Cfoutput within javascript

    Just trying to install the google ecom tracking code supplied
    by google. It
    does some nice things like the actual ROI depending on pay
    per click word
    chosen.
    Ive never had to output cold fusion varibles beofre within
    javascript. Do i
    need to use use the toscript tag or would the code below
    work? Any help
    appreciated.
    <!----google e-com tracking--------->
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-xxxxxx-1");
    pageTracker._trackPageview();
    <!------Output query results into javascript-------->
    <cfoutput query="order2">
    pageTracker._addTrans(
    "#i_orderid#", // Order ID
    "#d_grandtotal#" // Total
    </cfoutput>
    // add item might be called for every item in the shopping
    cart
    // where your ecommerce engine loops through each item in
    the cart and
    // prints out _addItem for each
    <cfoutput query="lines" >
    pageTracker._addItem(
    "#lines.i_orderid#", // order ID
    "#lines.s_partno#", // SKU/code - required
    "#lines.d_price#", // unit price - required
    "#lines.i_quantity#" // quantity - required
    </cfoutput>
    pageTracker._trackTrans();
    </script>

    Hi Dan
    i did run the code and a part of it works. a transcation
    with google gets
    recorded however all the other parameters are not recorded. I
    suspect this
    is due to my syntax.
    Im a hack and dont know too much about js arrays but from
    what ive been able
    to find on the web, would it look something like this?
    Should they be js variables do you think?
    <!----google e-com tracking--------->
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-xxxxxx-1");
    pageTracker._trackPageview();
    <!------Output query results into javascript-------->
    <cfoutput query="order2">
    pageTracker._addTrans(
    var #toScript(i_orderid, "OrderID")#; // Order ID
    var #toScript(d_grandtotal, "Total")#; // Total
    </cfoutput>
    "Dan Bracuk" <[email protected]> wrote in
    message
    news:g9oiia$t5s$[email protected]..
    > If you want to know if the code works, run it.
    >
    > There are a couple of ways to mix cold fusion variables
    with javascript.
    > One
    > is the to_script tag. The other is to surround the
    entire javascript
    > block
    > with cfoutput.
    >
    > In your case, to_script seems like a better approach.
    Make each query
    > column
    > a js array.
    >

  • HTML control doesn't allow browser pop-ups from within page

    I've noticed that pop-ups are not allowed from inside of the
    mx:HTML control. Both JavaScript popups and the targeting of a new
    browser window from within both an HTML page or SWF movie doesn't
    seem to work. I would hope that the user's default browser would be
    utilized in this sort of instance.
    For example: if I load www.cnn.com using the HTML control
    into an AIR app - and then click an ad on that site - under normal
    circumstances a new browser window would be launched - in AIR
    nothing happens.
    Is this a limitation or is there some sort of workaround?
    Thanks,
    David

    In order to accomplish this one has to override the createWindow function of the htmlhost class
        override public function createWindow(windowCreateOptions : HTMLWindowCreateOptions) : HTMLLoader {
            //Option1:
            //var initOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
            //var bounds:Rectangle = new Rectangle(windowCreateOptions.x,windowCreateOptions.y,windowCreateOptions.width,windowCre ateOptions.height);
            //var htmlControl:HTMLLoader = HTMLLoader.createRootWindow(true, initOptions, windowCreateOptions.scrollBarsVisible, bounds);
            //htmlControl.htmlHost = new HTMLHost2();
            //if(windowCreateOptions.fullscreen){
            //htmlControl.stage.displayState =
            //StageDisplayState.FULL_SCREEN_INTERACTIVE;
            //return htmlControl;
            //Option2:
            //var initOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
            //var window:NativeWindow = new NativeWindow(initOptions);
            //window.visible = true;
            //var htmlLoader2:HTMLLoader = new HTMLLoader();
            //htmlLoader2.width = window.width;
            //htmlLoader2.height = window.height;
            //window.stage.scaleMode = StageScaleMode.NO_SCALE;
            //window.stage.addChild(htmlLoader2);
            //return htmlLoader2;

  • CFCONTENT from within any AJAX layout

    CFCONTENT does not work as documented when I call it from
    within my AJAX app. Workarounds that call the code from another
    directory are way too kludgey for the client, but proved my
    standard code works outside of AJAX layout areas.
    This problem was first mentioned here in January '07 but
    never answered. Has anyone found a workaround?

    > Thanks and apologies... I should have just said
    "CFCONTENT does not work when
    > called from within any AJAX container," for example
    CFDIV, CFWINDOW,
    > CFLAYOUTAREA.
    > [...]
    > The result is exactly as tSpark described... I see the
    HTML table
    > in a standard browser window, it does not launch and
    display in Excel. The same
    > code works as expected (and as I've used it repeatedly
    for at least 4 or 5
    > years) if it is in a non-AJAX page.
    Right. Well I think you might be misunderstanding how all
    this works.
    Firstly, here's a very small replicable case:
    <!--- mimeTypeTestMain.cfm --->
    <cfwindow initshow="true" source="./mimeTypeTestInner.cfm"
    />
    <!--- mimeTypeTestInner.cfm --->
    <cfcontent type="application/msexcel" reset="true">
    <cfheader name="Content-Disposition"
    value="filename=mimeTypeTestInner.xls">
    <table border="1">
    <tr><td>Foo</td></tr>
    <tr><td>Bar</td></tr>
    </table>
    As you say, this just displays an HTML table in the window.
    Now, first things first, the <cfcontent> tag is indeed
    doing its job
    exactly as intended. If you watch the underlying HTTP
    requests/responses
    taking place, you'll see the MIME type of
    mimeTypeTestInner.cfm is indeed
    being set to application/excel, and the content-disposition
    is being set to
    the correct file name.
    However that sort of thing is only ever interpretted by the
    browser as
    starts receiving a new response from a request it itself has
    made (you
    know, typing in a URL in the address bar, or clicking on a
    link or
    sumbitting a form on the referring page, etc.
    A <cfwindow> is *not* a "window" in the sense of a
    browser window (or a
    browser frame or iframe), it's just a <div> with some
    styling applied to it
    to make it look "window-y". Part of the <cfwindow> tags
    functionality is
    that behind the scenes, a Javascript XML object is making a
    request back to
    the server to get the content for the window as specified in
    the "source"
    attribute. Having received some data back, some client side
    JS (which
    <cfwindow> has previously sent down to the browser)
    grabs it and pops it
    into the innerHtml of the <div>. It doesn't pay any
    attention to your
    headers. It doesn't actually make any sense it pay any
    attention to header
    information like that, because the content of the request is
    being
    integrated into an existing doc, which already has a name and
    a MIME type.
    Make sense?
    I've singled out <cfwindow> here because I happen to be
    getting myself up
    to speed with CF8 at present, and <cfwindow> was one of
    those tags I have
    never used in production code: so it's kind of "on my radar"
    at present.
    The other AJAX-esque tags will work the same way, for the
    same reasons
    though.
    Adam

Maybe you are looking for

  • Why won't my iPad 2 connect to my 802.11g network?

    Hello everyone, Today I received an iPad 2 as a gift.  It is the first Apple product I have ever owned.  I spent about 3 hours this morning trying to get it to turn on -- it kept displaying an image of a USB cord so I connected it to my computer.  St

  • Adding CSS to an existing site

    Our Chorus has had a website up for many years, developed first in FrontPage, then in MS Expressions Web. We expect to continue evolving it and adding content. http://www.sandiegofestivalchorus.org I finally bought DreamWeaver CS4 and it works very w

  • JTree - problems with names of elements

    I have a Jtree thats populated with expandable elements. These elements are loaded on startup, but some of the elements don't get their full names, just i.e "dem..." instead of "demo3". WHen I expand the node, the full name appears, and remains. Anyo

  • Need Help on Executing Shell Scripts through PL-SLQ

    Hi All, I am trying to execute a shell script from PL-SQL but I am not getting it right . the code i used is as follows ----JAVA CLASS --- CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "Host" AS import java.io.*; public class Host { public static v

  • Installed Enemy Territory boots then quits possible vid driver problem

    ok I followed the instruction on how to recompile and install ET on a 64bit Arch here http://bbs.archlinux.org/viewtopic.php?id=46846 Punk buster ran and updated fine I went to play tthe game but it wouldn't launch so I looked for the folders ( there