Multiple queries and Timer update

I just posted a message but for some reason it's not
displayed. So once again.
First of all. Spry is a great tool and very very easy!
Two questions:
1. How can I make multiple queries. For instance a search
Form with search results.
I tried something like this, but it does not work:
<input id="searchstring" value="" type="text"/>
<a href="#" onclick="query();">search</a>
<script>
function query()
var dsSearch = new
Spry.Data.XMLDataSet("search.php?q="+document.getElementById("searchstring"),
"search");
</script>
<div spryregion="dsSearch">{search}</div>
2. Is it possible to repeat queries frequently. For instance
a temperatur querie every 5 seconds like :
var dsTemperatur = new Spry.Data.XMLDataSet("temperatur.php,
"temperatur",timer="5000");
<div spryregion="dsTemperatur">{temperatur}</div>
Best regards
Frank

Here's a simple example of how to have a JS object or
function called whenever the data in the data set is changed. The
idea would be that your callback or object could then use something
like FABridge to pass the data in the data set to the Flash chart
so it could update automatically.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Data Set Data Changed Observer</title>
<script language="JavaScript" type="text/javascript"
src="../includes/xpath.js"></script>
<script language="JavaScript" type="text/javascript"
src="../includes/SpryData.js"></script>
<script language="JavaScript" type="text/javascript">
// Step 1: Create a data set.
dsData = new Spry.Data.XMLDataSet("data.xml", "/data/item");
// Step 2: Define an object that has an onDataChanged method
on it.
// The args to the function will be the data set object and
// the notification type.
var obj = { onDataChanged: function(dataSet,
notificationType) { alert("myObjectCallback called!"); } };
// Step 3: Register your object as an observer.
dsPeople.addDataChangedObserver("myObjectCB", obj);
// If you want to have a function called instead of an
object, you'll have to
// define a temporary object that uses your callback
function. I'm thinking of
// changing addDataChangedObserver to just take a function
instead of an object.
// Folks can use closures within their callback function to
refer to any data or
// objects they need when the callback is triggered.
function myCallback(dataSet, notificationType)
alert("myFunctionCallback called!");
dsPeople.addDataChangedObserver("myFunctionCB", {
onDataChanged: myCallback });
</script>
</head>
<body>
<input type="button" value="Load Data"
onclick="dsData.loadData();" />
</body>
</html>
--== Kin ==--

Similar Messages

  • Multiple Queries and Web Template

    Hi,
    I've about 15 queries to output with a certain web template, and 15 more with another web template. How can I do this ?
    Is there a parameter to assign a web template in a query or not ? I don't find it.
    Thanks.

    Gilad,
    I was searching for how to associate multiple data providers with 0ANALYSIS_PATTERN web template in SDN BW forum and I saw your post. I have a similar problem except I have a TAB page in my development. I have 2 data providers with each tab show one data provider. But both tabs should show the default template of 0ANALYSIS_PATTERN so I will get the consistent look for all the tabs. I tried a few ways but none of them works. Can you please suggest what I should to do to resolve this problem?
    Thanks in advance for your help!
    Sharon

  • Date and time update

    Apple tv is not working. it connects to WiFi but when it has to update date & time it holds on that screen and do nothing. I have done everything and looks to be working properly but it does not connect outside. I have reviewed my Internet connection also and is working ok. I have internet access with my other deivces. NEED HELP!!!

    That actually means it is having trouble connecting to the network. Make sure location is set correctly via settings. DNS should be set to automatic. Reboot device and router, make sure router is up to date. Try Ethernet to rule out wifi issue.

  • ISE 1.3 - Multiple ADs and time zone

    Hi all,
    I have a question regarding time zone settings, AD interaction and ISE PSN.
    Assuming the following deployment:
    - ISE distributed deployment with 3
    - Each PSN is joined to a AD at a specific site (example: one in USA, one in Europe, one in Asia)
    If the DCs at each site have different clocks (same UTC time source, but different time zone) I'll probably run into issues, right?
    Because:
    First fact:
    Set correct time and timezone. Kerberos needs to be within 5 mins of the DCs you use
     (Source: Cisco Live Breakout BRKSEC-2132)
    Second fact:
    Also, it is important to have all the nodes in a single ISE deployment configured to the same
    time zone. If you have ISE nodes located in different geographical locations or time zones, you should
    use a global time zone such as UTC on all the ISE nodes.
     (Source: ISE 1.3 admin guide)
    So the first recommendation is, that the ISE PSN has the same clock as the local DC - on the other hand the time zones in one distributed deployment should be the same on all nodes.
    What to do?
    Big thanks in advance!
    Johannes

    Not yet - In my lab environment I'm not having a multi-tier CA (and I'm not very good when it comes to Microsoft Active-Directory stuff :) )
    Edit:
    I did one very limited test in my testlab. In my testlab I'm having one DC and two ISE appliances.
    Test1: I removed the AD join of the ISE appliances. The ISEs are configured for CET and I reconfigured the time zone of the DCs to UTC-7:00.
    ISE and DC clocks are correct (synced against NTP), but the absolute time is different due to different time zones.
    Then I joined the ISEs again - and it worked.
    Test2: I removed the AD join of the ISE appliances. The ISEs are configured for CET and I configured an incorrect static time to the DCs (some weird time).
    ISE join won't work
    Error Description: Clock skew detected with active directory server
    Support Details...
    Error Name: LW_ERROR_CLOCK_SKEW
    Error Code: 40087
    Perfect - different time zones are obviously ok...

  • Multiple columns and rows update using select staement

    i am trying to update the 2 colums of a table based on the cursor result set with key values are matching.
    DECLARE
    CURSOR update_master
    IS
    SELECT B.cust_num,c.cust_num,
    B.cust_name,B.cust_bal
    FROM
    Table_one B
    JOIN
    Table_two C
    ON B.cust_num= C.cust_num;
    BEGIN
    FOR master_rec IN update_master
    LOOP
    UPDATE Table_three
    SET col1 = master_rec.cust_name,
    Col2 = master_rec.cust_bal,
    Where WHERE Cust_num = master.cust_num;
    END LOOP;
    COMMIT;
    END;
    The 3 tables are having around 50000 records individually............
    It is taking too much of time to execute......more than 6 minutes......
    how can we optimize it?? can we write this update statement directly? instead of writing it in procedure?

    Here's a general approach:
    update some_table s
    set   (s.col1, s.col2) = (select x.col1, x.col2
                              from   other_table x
                              where  x.key_value = s.key_value
    where exists             (select 1
                              from   other_table x
                              where  x.key_value = s.key_value
    ;

  • Multiple queries and formatting issues

    I am running a report with 2 queries in a csv format. It displayed the right format with one query but with the new query , I have all sorts of formatting issues. The data is displayed in random cells. Why would this happen? Any ideas?
    thanks

    Sripathy,
    No, the data is not mixed up. However, the data is displayed in random fashion. Data which should be displayed in one cell, is coming in 2 cells. Sometimes, it is skipping a few cells. It could be due to field widths- I tried changing the widths of the groups in the Data model and also in the layout editor, but nothing has worked so far. Does it not automatically adjust the width depending on the data. I have Vertical elasticity Expand and horizonta Fixed.
    Thanks,
    Srikanth

  • Multiple queries in reports with XSL-FO and without BI Publisher

    Hello,
    I'm trying to find out how to create a complex report in APEX for printing. The report contains multiple queries in different layout, images and static text.
    I don't have the possibility to use BI Publisher and I'm not an XSL-FO expert. However I'm trying to find out if it's possible at all not using BI Publisher.
    I'm having the impression that multiple report queries and layouts in APEX can only be used in combination with BI Publisher. I'd be glad if someone could give me an example of how to do multiple queries and layout in a single report only using XSL-FO.
    Thanks in advance,
    Jan Willem

    Hello,
    I'm trying to find out how to create a complex report in APEX for printing. The report contains multiple queries in different layout, images and static text.
    I don't have the possibility to use BI Publisher and I'm not an XSL-FO expert. However I'm trying to find out if it's possible at all not using BI Publisher.
    I'm having the impression that multiple report queries and layouts in APEX can only be used in combination with BI Publisher. I'd be glad if someone could give me an example of how to do multiple queries and layout in a single report only using XSL-FO.
    Thanks in advance,
    Jan Willem

  • Creating report with multiple queries in clear quest

    Hi,
    I am new to reports and currently working with creating reports that connect to clear quest(CQ).
    I have successfully created several reports, that connect to the CQ, but they all have data from only one query.
    Now I am trying to create a slightly complex report where I need to fetch data from multiple queries. All these queries use 2 parameter to filter their data. I have dynamic cascading parameters to get them. When just connecting they all work ok. I used the link tab to link them to two fields of one query, to make sure that they all filter to fields from same query.
    The problem is when I drop the fields from the various queries on the form, the data is fetched multiple times.
    I also played with links to make them outer links but in that case I get error and unable to run the report completely.
    Any ideas on how to work with multiple queries and provide same parameters to all of the queries?
    Thanks in advance.
    -PAP

    - How do I make sure that the relationship is not one to many?
    You don't. That's the nature of the data. For example a single person can order multiple items. A simple one to many relationship.
    - In the link tab, I can only point to queries, is there a way I can point the fields to report params?
    You should be seeing tables... I think you're having a tough time with the basic terminology.
    - How does these Enforce Joins (4 options) work.
    There is rarely if ever any reason to switch from the default "not enforced". Leave it alone. The only one you'll touch 90% of the time is the Join Type.
    PAP,
    Based on the questions you're asking, it sounds like you are missing some major database fundamentals. My suggestion would be to step away from CR for the time being and read a little bit about relational databases (what makes them relational) and database normalization. This will also give you an idea about the various join types and when to use one over the other.
    You can know every feature and function in CR, but until you have at least a basic knowledge of how data relates, you'll never pull in the data you need.
    Jason

  • Can't remotely connect to my server if I automatically set date and time

    Hello.
    I have configured my OS X 10.6.2 server and am able to remotely manage it.
    The only ports I have opened on my router is for Mail and VPN services.
    Things work perfectly because I can connect using VPN to iChat, iCal, Address Book, Server Admin, Workgroup Manager, AFP, FTP and such.
    The problem is that on my laptop from home, or wherever, if its time is set to update automatically from an NTP server (I have tried with Apple's as well as my server for the NTP Servers) then I cannot connect to my server at all...
    The moment I turn off the auto date and time and reconnect to the office's VPN, I am able to use Server Admin, AFP, FTP, Workgroup Manager, Screen Sharing, etc, etc, etc.
    It's utterly frustrating because I have to open system preferences, disable the automatic date and time update, connect to the VPN and do stuff on the server. Then I have to disconnect from VPN and re enable the auto date and time.
    Could someone explain why this is happening and any possible solutions I might be able to try?
    Thanks in advance,
    Felipe.

    OK, after some testing things seem to be working now.
    I opened the NTP port for my server (So I don't have to be on VPN to update the time)....But regardless of that, Server admin and my corporate site work fine.
    Here is my problem, I don't understand why it's working now when 30 minutes ago I was having trouble connecting to my server regardless of what NTP Server I used.
    The only service I can't access is Workgroup Manager, but I don't know if that is supposed to be accessible only locally (though it doesn't matter since I can screen share but I would still like to know).
    Thanks in advance,
    Felipe.

  • Multiple Queries  in Shared Components Report Queries

    Hey all,
    I am creating a report query which has multiple queries and I am running into to some issues with the builder.
    1.Whenever I try to edit a query it always sends me to the same query. (I can see that it is passing a different ID in the url, but the query never changes)
    - Ex: I create a report query and add two queries, SELECT 1 FROM DUAL and SELECT 2 FROM DUAL. no matter which querry i try to edit it always shows SELECT 1 FROM DUAL.
    2. There is no way to delete individual queries.
    - does anyone know a workaround to delete a query? (rather than just deleeting the entire report query)
    Cheers,
    Tyson Jouglet

    This was a bug that has been fixed in APEX version 3.2.1
    (its always helpful to list the version you are using along with your question)
    If you are using this with a BI publisher report layout, you will also get problems with earlier versions as the rowsets don't always get returned in the correct order.
    See this thread for more details....
    Bi Publisher result set question
    I ended up deleting my whole query and spending a long, careful afternoon adding the 33 queries I had in order one by one having made SURE they were all EXACTLY what I wanted using SQL Developer.
    Gus..
    You can reward this reply by marking it as either Helpful or Correct
    ;-)

  • Multiple queries without multiple tables?

    Greetings,
    Is there anyway I can choose between multiple queries and have the results come out on the one display table or do I have to have one display table per query?
    I'm thinking like having a dropdown list bound to queries and the results being displayed per selection.
    Many Thanks,
    Phil.

    I have this in _init() of myPage.java :
    myOwnRowSet.setDataSourceName("java:comp/env/jdbc/test1");
    myOwnRowSet.setCommand(getSessionBean1().getMethod());
    myOwnRowSet.setTableName("testTable");
    dataTable1Model.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{myPage.myOwnRowSet}"));Then in the sessionbean getMethod()returns SQL query based on the input from user. In myPage.java i have the table already constructed and inside table I have hyperlink with link_action_method() that goes like this:
    getSessionBean1().setSomeMethod(""+getValue("#{currentRow['TRIP']}"));
    log("field's value is "+(String)getValue("#{currentRow['TRIP']}"));but in log I can see If i clicked let's say on 15th row it will store data in sessionbean not from 15th row of the table beeing displayed but from the 15th row from database! What am I doing wrong? Thx for your help,
    bojanidis
    See also http://forum.sun.com/jive/thread.jspa?threadID=104342&tstart=0

  • Execute Multiple Queries on Screen Load: ADF Swings

    how can i execute multiple queries and populate each query value to corresponding combo box .assume i what to execute 5 different query and populate it into 5 different combo box.
    Prakash

    Hi,
    if you work with ADF then all iterators are accessible through the panelBinding object
    DCIteratorBinding dciter = (DCIteratorBinding) panelBinding.get("Iterator Name");
    dciter.execute();
    If you need to add query parameters like bind parameters then a call to the execute with params method (if available in the binding) could be perfomed as an OperationBinding
    OperatioNBinding oper= (OperatioNBinding ) panelBinding.get("ExecuteWithParams");
    oper.getParamMap().put("bind variable name", <value>);
    oper.execute();
    Frank

  • I am using Windows 7 Home Premium 64-bit OS.  I've never had this problem before... today I opened iTunes and it prompted me to download the newest version.  I use iTunes all the time and have updated it multiple times with no issues.  During the installa

    I am using Windows 7 Home Premium 64-bit OS.I've never had this problem before... today I opened iTunes and it prompted me to download the newest version.  I use iTunes all the time and have updated it multiple times with no issues.  During the installation process it gave me an error message that said: 
    Runtime error! 
    Program C:\Program Files\iTunes.exe
    R0634
    An application has made an attempt to load the C runtime library incorrectly.
    Please contact the application's support team for more information.
    I quit the installation, uninstalled iTunes and rebooted my computer.  I now receive a similar message with a slight difference:
    Runtime error! 
    Program C:\Program Files (x86)...
    R0634
    An application has made an attempt to load the C runtime library incorrectly.
    Please contact the application's support team for more information.
    I did not leave anything out from the error message.  It doesn't point to a specific file, it just ends with "(x86)..."  Every time I boot up my computer, this error message pops up on my desktop.
    How do I repair this issue?  I have found multiple suggested solutions but am unsure which one is the best, and I don't want to try a bunch of different things for fear I may make the problem worse.  I would like to try and fix this myself if possible but I need to know if that is really possible or if I need to take my computer to someone for repairs.  Any suggestions will be greatly appreciated!!

    Hi lustyln,
    I'm having a little trouble understanding all of what you are trying to explain. From what I can tell, it sounds like your PC has a lot of software problems and you want to know what is supposed to be there and what isn't.
    For reference, here are your product specifications:
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c01893242&lc=en&product=4043282
    To get your PC software back to how it was when it was first purchased, run a system recovery:
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c01867418&lc=en&product=4043282
    I hope this helps.
    ...an HP employee just trying to help where I can, but not speaking on behalf of HP.

  • 8g touch updated 4.2.1, problems synching apps and music. gives multiple errors; device times out, internal device errors, network times out, duplicate file, too many files open. itunes diagnostics ok. what to do?

    have an 8g ipod touch which has had problems trying to play games and downloading update 4.2.1. went to the apple store who kindly downloaded the software update but now can't synch and generates multiple error messages; device times out, internal device error, network times out, duplicate file and too many files open etc etc. have latest i tunes download and diagnostic test ok. what can i do?

    Does the ext directory have the php_oci8.dll? In the original steps the PHP dir is renamed. In the given php.in the extension_dir looks like it has been updated correctly. Since PHP distributes php_oci8.dll by default I reckon there would be a very good chance that the problem was somewhere else. Since this is an old thread I don't think we'll get much value from speculation.
    -- cj

  • Insert Date and Time doesn't update

    i am inserting a date and time in my numbers documents so that i know which paper copy is the most current. i do this by going to Insert pulldown and selecting Data and Time while in a Footer Cell.
    this data does not update upon re-opening the file and i end up printing multiple copies over weeks and months with simply the date that I inserted the Date and Time into the footer.
    is there a way to do this so that it updates?
    TIA

    As most of the times,
    this kind of question is answered in Numbers User Guide.
    When you insert a date_time value in a cell, you insert a fixed value.
    If you want a living one, you must insert a formula.
    =NOW()
    or
    =TODAY()
    would achieve your goal.
    Yvan KOENIG (VALLAURIS, France) dimanche 25 décembre 2011 21:40:50
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

Maybe you are looking for