READ THIS if you use the observer APIs ...

This is just a heads up for developers who take advantage of
the observer APIs in Spry. For the next version of Spry I plan on
making the observer APIs for both the Data Set and the Dynamic
Region consistent.
Currently in Spry PR 1.1 the data set observer mechanism
requires that you register an object with an onDataChanged method
on it. This method is then called with a notification type
(Spry.Data.DataSet.ODC_*) which developers have to manually check
against and conditionally perform their action.
In Spry PR 1.1, the observer mechanism used for the dynamic
region requires that you register a callback function, which gets
passed a region state (Spry.Data.Region.RS_*) whenever it is
called, and it is up to the developer to check against the region
state and conditionally perform their action.
For the next release of Spry, I plan to move to the following
model:
- Both data set and region observer mechanisms will require
an object which defines notification methods for which it wants to
be notified for.
// Create an object with notification methods.
var myObserver = new Object;
myObserver.onDataChanged = function (notifier, data) {
alert("OnDataChanged called!"); };
// Register your object as an observer on the data set.
dsMyDataSet.addObserver(myObserver);
- Notification methods will all have the same signature:
function (notifier, data) {}
The notifier is the object that is dispatching the
notification, and the data is an object that will contain
information regarding the notification, where necessary, or
undefined if no additional data is necessary for the notification.
When called, the 'this' object within the notification method
will be the actual observer object.
- We will publish a list of notification methods that can be
defined on the observer object for both the data set and dynamic
region.
- *All* methods on the observer object are *OPTIONAL*, which
means you only have to define the notification methods that you
want to be called for. For example:
var observerA = new Object;
var observerB = new Object;
observerA.onDataChanged = function (notifier, data) {
alert("observerA.onDataChanged called!"); };
observerA.onSortChanged = function (notifier, data) {
alert("observerA.onSortChanged called!"); };
observerB.onDataChanged = function (notifier, data) {
alert("observerB.onDataChanged called!"); };
myDataSet.addObserver(observerA);
myDataSet.addObserver(observerB);
In the example above both observerA and observerB will be
called whenever the data changes, but only observerA will be
notified whenever a sort happens.
- Some events will have pre and post notifications. For
example onPreLoad(), onPostLoad(), onPreUpdate() and
onPostUpdate(), etc.
If you have any opinions, concerns or feedback on this. Now
would be the time to speak up.
--== Kin ==--

As one person who asked for this, I like what your planning.
Is that onPreLoad() an event that will get fired before an Ajax
request goes out for new data? Cuz I could really use that.
A tagentally related thought: Notifications are great, but in
some cases, I might want to control whether some behavior happens.
Say, perhaps I want to control whether the load actually happens.
In that case, I'd want a delegate object, which would have some
methods on it that could cancel the event that is going happen.
Just as an example:
var delegate = {
willFireLoad: function(...) { if (somecondition) return
false; else return true; },
unknownValueForKey: function(key, dataset) { ... return
dynamic value ... },
unknownValue_desc: "Description"
dataSet.setDelegate(delegate);
The first would allow me to stop the data from being loaded.
The second would allow me to return a value for a key that isn't
present in the dataset. And the third could be a way to hardcode a
value for the key 'desc'.
Just kinda an idea as far as what could be done, and I'm sure
there might be other control points too.
-d

Similar Messages

  • Do You Use the TestStand API Reference Poster?

    The TestStand R&D Team would like to know how you use the TestStand API Reference Poster that ships with TestStand.  How often do you use it?  Is it hanging up near your computer?  What tasks do you use it for?
    Allen P.
    NI

    Hi,
    I dont use the hard copy. I unfolded the it the first time it appeared in version 3.0. Refolded it, put it back in the box and have never bothered with it since.
    I have used the electronic version now again, when I haven't got access to the programmer help doc which you find in the teststand\bin folder.
    I find its use limited, as it only really gives you the relationship between classes and a list of the properties and methods. This you can obtain for the help document.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Read this if you have the Looping Audio issue...

    I was having this problem and it was driving me nuts. It would do it randomly everytime I used iTunes. I searched around the web but could not find anything related to this issue except for these forums.
    What fixed it for me -
    Go into your Sound preferences and look at the Output tab. Is the balance centered? Mine wasn't. It was moved a few notches to the left. This problem has been occuring for quite awhile where the balance will move by itself! I moved it to the center and have NOT had a single problem with the looping audio anymore.
    Try it! Let me know if it works! =)

    I had same problem not with XP but with Windows 7 beta. I posted online and a lot of people said Realtek this and Realtek that, it didn't work for me. I finally tried installing Bootcamp 2.1 and voila it worked. While it was installing drivers, I noticed bootcamp saying "Removing Realtek audio ... " then "Installing SigmaTel audio ... " few seconds later i started hearing all the bells and whistles of Windows 7. Woohoo!
    I guess Realtek works for some people with various configurations but for me it was Siggy.

  • How to use the UME api in order to search the LDAP?

    Hello,
    I have an application which connects to the LDAP the portal is connecting to and search users according to a certain search criteria.
    Here is the relevant piece of code:
    Hashtable env = new Hashtable();
    DirContext ctx = new InitialDirContext(env);
    SearchControls controls = new SearchControls();
    String filter = "firstName=..."
    NamingEnumeration results = ctx.search("OU=OUs", filter, controls);
    I would like to do this same search using the UME API.
    Can someone please show me the equivalent code to it using the UME API?

    Hi Roy,
    you find the Configuration File you are using in your portal via System Administration -> System Configuration -> UM Configuration -> Data Sources
    or in sapume.properties where you can find
    ##xml file that configures the persistence except roles
    ume.persistence.data_source_configuration=YOUR_DATASOURCE_CONFIG_FILE.xml
    In this xml file, there is the entry
    <principal type="user">:
    <principal type="user">
         <nameSpaces>
         <nameSpace name="com.sap.security.core.usermanagement">     
    <attributes>                               
    <attribute name="firstname" populateInitially="true"/><attribute name="displayname" populateInitially="true"/>               <attribute name="lastname" populateInitially="true"/>                    <attribute name="fax"/>                         <attribute name="email"/>                    <attribute name="title"/>               <attribute name="department"/>                    <attribute name="extensionAttribute2"/>               <attribute name="mobile"/>          <attribute name="telephone"/>                    <attribute name="streetaddress"/>               <attribute name="pobox"/>                    <attribute name="location"/>               <attribute name="telephoneShort"/>               </attributes>
         </nameSpace>
         <nameSpace name="com.sap.security.core.usermanagement.relation">
         <attributes>
         <attribute name="PRINCIPAL_RELATION_PARENT_ATTRIBUTE"/>
         </attributes>
         </nameSpace>
        </nameSpaces>
    </principal>
    According to your company LDAP attributes, you will have to extend the above attributes, telephoneShort for example is an attribute within our company.
    The UME API does the rest.
    All you have to do, is request the right attribute (in my above example it was the last name).
    (Sorry for the format, but it is quite cumbersome to format it properly with the available editor   )
    Kind regards,
    Rebecca

  • I keep getting the box that asks "Do you use the Yahoo! Toolbar on multiple Computers. It asks Save to my Yahoo! ID, or No thanks, just save to this computer. How do I get rid of this one way or the other?

    When I log on to Firefox, I get this block that pops up saying, "Do you use the Yahoo! Toolbar on multiple computers? It has 2 buttons asking "Save to my Yahoo! ID or No thanks, just save to this computer" It drops down from the Yahoo toolbar, next to the Y! on the left side of the tool bar. I have tried the Save button and no response, I tried the No thanks button no response. I tried the underlined "Learn more" and it too no response. I tried the close X but that does not get rid of this box. I tried right clicking and no response. It stays there through out while working on the mail, I cannot access the that toolbar so I cannot use the buttons on this tool bar. Please help or I will have to try another browser to see if it go away.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • Reading sub folders in ifs using the ifs api

    hi,
    Is there any way i could get all the sub folders under the parent folders ,using the ifs api.
    i am able to get the all the folders starting from the root ( parent folders) but i am unable to get the folders under each parent folder.
    for example
    at my root level i have folders x, y ,z etc..
    and under x i have folders a,b,c etc.
    i am able to get x,y,z but not able to get the sub folders under x i.e a, b,c folders etc.
    Thanks
    Arvind

    A much more elegant method would be to utilize the oracle.ifs.search package!
    You will see in there a Folder Restrict Qualification.
    You can set your search class to be Folder.CLASS_NAME
    Matt.

  • Do you use the e-mail APIs in Oracle 9iFS?

    Have you built an application that uses the Oracle 9iFS e-mail
    APIs?
    * oracle.ifs.adk.user package classes?
    * oracle.ifs.adk.mail package classes?
    * EmailUserProfile?
    If so, we would like to learn more about your requirements.
    Please contact me at [email protected]

    You cannot secure just the mail app other than to go into the Mail settings and remove the password there, a process you would have to repeat every time you wanted to access the email and were then done. Setting a screen lock passcode is, as Ed indicated, the way to protect your information on your iPad in case of loss or theft. If you use the long password rather than the simple (four digit) code, cracking into your iPad to access your data and accounts would be quite difficult for even an experienced thief.
    Regards.

  • Have been told if you use the same itunes account with two iphone you will receive each others text messages, is this true

    Have been told if you use the same itunes account on two iphones, you will receive each others text messages, is this true?

    you can use the same itunes id for purchases and so on, but have separate icloud id's for imessaging and all the icloud stuff. it's not preferable, but it isn't a problem either.
    http://support.apple.com/kb/HT4895?viewlocale=en_US&locale=en_US

  • The FTP server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the

    When i tried to login in inbrowserediting.adobe.com i see that:
    The FTP server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the same user.
    What does it mean? What is problem?

    Hi,
    I have just created my First website using Muse and Its all been uploaded to my FTP server but i cant access the in browser editing which was the whole reason why i re-done the website for my client using muse
    its saying the following
    "The FTP server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the same user. server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the same user."
    Yet i Can access my website fine "www.calmwood.com.au"
    My ftp server responds to either the IP Address or the DNS Address www.calmwood.com.au
    so i am not understanding how it thinks its different. when its fully referenced
    any help would be appreciated.
    thanks

  • How to count number of lines inside methods() using the Doclet API

    Wrote a custom doclet using the [Doclet API|http://java.sun.com/j2se/1.3/docs/tooldocs/javadoc/doclet/index.html ] .
    The purpose for the doclet is to load Java source files and create stubs (which are identical Java source files but do not contain any method implementation details).
    Instead, the method implementation details need to be replaced with blank lines...
    public class MyDoclet {
         private static String TAB = "\t";
         public static boolean start(RootDoc root) {
              ClassDoc[] classes = root.classes();
              // Parse through class or interface
              for (ClassDoc clazz : classes) {
                   Type superClass = clazz.superclassType();     
                   // Print Methods
                   MethodDoc[] methods = clazz.methods();
                   for (MethodDoc method : methods) {
                        Parameter[] parameters = method.parameters();
                        println();
                        if (!method.isPrivate()) {
                             print(TAB + method.modifiers() + " "
                                                    + method.returnType().simpleTypeName() + " " + method.name());
                             print("(");
                             for (int i=0; i < parameters.length; i++) {
                                  Parameter parameter = (Parameter) parameters;
                                  print(parameter.type().simpleTypeName() + " " + parameter.name());
                                  if (i != parameters.length - 1) {
                                       print(", ");
                             print(")");
                             println(" {");
                             println("\n");
                             println(TAB + "}");
              return true;
    As one can see, I am just creating the method and placing the opening and closing curly braces (along with a new \n line escape sequence, in between).
    Am not really that familiar with the Doclet API...
    Question(s):
    (1) What is the best way to figure out how many lines of code are inside each method and then use a for loop to insert the exact same number of blank lines inside the methods?
    (2) Is there a way to do it using the com.sun.javadoc.SourcePosition.line() method?
    Would really appreciate it if someone could help me because this is an important requirement (hence the 10 Duke Stars).
    Happy coding to all,
    Mike                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    This is not possible using the Doclet API, because JavaDoc does not store any information regarding implementation detail. Although MethodDoc#position will give you the line where the method is declared, there is no way to determine where the method body starts and ends.
    If you need that much information, maybe you would be better of using a tool such as Eclipse's Abstract Syntax Tree parser. AST will provide you with line numbers for each code expression, hence it is relatively easy to compute the first and last line in a method body.

  • How to use the windows API GetCaretPos with FireFox? It works with IE

    I want to get caret position from a windows desktop application using the Windows API GetCaretPos. It works in any windows Application and in IE. It worked also in FireFox for some minutes in version 3.6.8 but than it stopped working. Can anyone tell me how to make it work?
    == This happened ==
    Every time Firefox opened

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Did this fix your problems? Please report back to us!

  • "select into" query statements using the DI API

    I am trying to use the DI API (6.5) t create a temp table based on an existing table.  For example, here is a query string....
    select * into ORDR_TEMP from ORDR
    Code...
    oRecordSet := IRecordset(oCompany.GetBusinessObject(BoRecordset));
    oRecordset.DoQuery(sSql);
    Error I get...
    1). [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot use SELECT INTO in browse mode. 2). [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared
    For any other regular select statements the previous code works.  Does anyone know for sure if a "select into" statement is not possible using the DI API?

    Hi Bill,
    I´m not really sure if select into is avaiable. But here you´ve got a hint: You could use a user defined function to do it, and just call the function from your code.
    SELECT dbo.MyFunction()
    Having this function defined in your SQL Server:
    CREATE function MyFunction ()
    returns char(2)
    AS
    Begin
    select * into ORDR_TEMP from ORDR
    Return ('OK')
    End
    Hope this helps,
    Ibai Peñ

  • How to use the Worklist API from Java (classpath ??)

    Hi all,
    Sorry for a novice question but I couldn't find the way to go about this (probably because it's such common knowldge...)
    I would like to try and use the Worklist API from my Java code in Eclipse, and according to the BPEL dev-guide I need to add an Import command for oracle.tip.pc.api.worklist. Where do I find these classes ?????
    I guess I need to change my CLASSPATH but I couldn't find a single word about this in the BPEL dev-guide (chapter 17), BPEL installation guide or elseware.
    thanks.

    Hi all,
    Ok now.
    To summarize - I was trying the code from BPEL developer guide, chapter 17, page 40 for using the Worklist local API's.
    Only after adding the following JAR's to the build path, was I able to compile it:
    orabpel-common.jar
    orabpel.jar
    bpm-infra.jar
    bpm-services.jar
    So, these 4 JAR's are required for using the Worklist local API's (not a clue in the dev guide itself for this requirement though...)
    Thank you very much for your help,
    assaf.

  • Accessing Business Graphics using the WebDynpro API

    I would like to access Business Graphics created with IGS using the WebDynpro Business Graphics API.
    I have no problem displaying the graphic in WebDynpro UI, but i have no idea how to access the binary data of the graphic to work with it outside of WebDynpro UI (in fact i want to embed it into a PDF form).
    Is there any possibility to do this using the WebDynpro API?
    I would appreciate your help!
    Regards,
    Christoph

    Thanks, but this al clear to me. I am able to display business graphics on web without problem (I have dynamic Business Graphic in my WebDynpro User Interface).
    The Problem is, that i want to make further processing with the graphic. Therefore i need to access the binary data of the graphic.
    Do you know if there is any possibility to get the binary data of the bmp - image generated by IGS into a byte array?

  • Using the Desktop API in Java SE 6 (Mustang)

    <p>The Java platform continues to evolve, and Java applications can now integrate with the host desktop better than ever before. This new article describes how to integrate your Java application into the desktop using new Java SE 6 features:</p>
    http://java.sun.com/developer/technicalArticles/J2SE/Desktop/mustang/desktop_api/

    peterwkc wrote:
    Hello to all,
    this is some sort of theoretical question.
    I been reading the JMS documentation for a while.
    1.I could not understand what this statement means :
    >
    This section describes the ways in which using the JMS API in enterprise bean applications or web applications differs from using it in application clients.
    What a developer is allowed to do is different depending on whether they are writing code to run in a container or not. The container already provides lots of services so some code you would write for outside a container is not needed when you write for a container. There are APIs that you are not allowed for in container code if you want to adhere to the spec.
    >
    2. What is the difference to use the JMS in java EE web orEJB container and application client ?
    Thanks.Read more of that document to find out the differences. Application components in Web/EJBs must not create more than one active session per connection while application clients are allowed to do so.

Maybe you are looking for

  • Reinstall applications servers in EHP installation

    Hi, the installation guide EHP5 for ERP say this: "Before the downtime [page 80] begins, you uninstall all dialog instances, stop SAP Management Console (MMC) and Software Deployment Manager (SDM), stop jcmon and other standalone monitoring tools. If

  • [Non IE Regression] Support for full screen mode with multiple monitors

    This seems to be a regression with Flash Player v11.2.202.x (for all other browsers). With Internet Explorer it is still working. http://kb2.adobe.com/cps/890/cpsid_89050.html == Support for full screen mode with multiple monitors == Full screen cont

  • How necessary is it to sleep the mini?

    I just bought my parents a mini with a beautiful 19" flat panel display. They adore the "flurry" screensaver. They like it to run all the time. How necessary is it to sleep the mini? Are there any reasons I shouldn't just set the computer and monitor

  • Lion quarantine causing applications to not launch/open

    Hello all, I seem to have tripped over this quarantine bug in Lion. Newly downloaded apps simply sit in the Dock with the sphere pulsing, and disappear when clicked on. I've found a few places that talk about possible workarounds with Terminal, but h

  • Advise using sql in java?

    Hello, Could anyone offer some advise, about adding records to mysql using java. I managed all the connection, and understand some sql. The database has two tables: table author: authid lastname firstname table isbn: authid isbn When adding values to