CF9 cfscript documentation/examples?

I am in the process of updating the CFML mode in the editor I use for CF development and have spent some time going through the available CF9 documentation. In looking through the downloadable PDFs, I am trying to find either examples or reference material for some of the new stuff and have failed. For example, the "Developing Applications" document, on p. 105-108 lists a number of CFML tag/CFSCRIPT equivalents (some of which are indicated as being new) for which I can find no examples or references describing the syntax or what they look like:
savecontent
trace
location
Can someone point me either to examples or (preferably) to reference material for these elements of CFSCRIPT?
In addition, in looking at exception-related topics in CFSCRIPT, I'm wondering about throw. How does "throw" in CFSCRIPT compare from CFML? p. 18 of the "Developing Applications" document has a single example of
throw "message";
but I'm wondering what throw really looks like in terms of the other attributes (detail, errorCode, extendedInfo, message, object, type).
Is Adobe actively working on the CF9 documentation? These aren't the only areas I have found in trying to go through the docs to see what is new, changed, etc., where they seem a little fuzzy or incomplete, but maybe I'm just not looking in the right places.
Thanks in advance.
/ron

Thanks for the follow up, Adam. I'll look some more at the throw() stuff to see if I just missed it in the docs.
Given all of the changes to CFSCRIPT in CF9, I would have thought having decent docs would have been a priority for Adobe, particularly given the nature of the changes. I've always liked CFSCRIPT for logic, but have wanted a more complete coverage of the capabilities available via the CF tags to also be available in CFSCRIPT; as a result, I've really been looking forward to CF9 with that in mind.
I've got to say, however, that the expansions to CFSCRIPT feel very ad hoc: poor (as in incomplete, in error, and inconsistent in coverage and format) documentation and lack of consistency in how the expanded coverage is provided: some via component, some via function, and some via a couple of different formats of statement.
I'll keep digging in the docs, and I'm hoping to have a CF9 box fairly soon to start trying some of this against to verify syntax.
/ron

Similar Messages

  • Local interfaces documentation/examples

    i'm looking for good examples/documentation on using local interfaces
    with weblogic (6.1).
    i gave it a try and kept getting a class cast exception while trying to
    cast the ic.lookup result to the localhome interface. something tells
    me that some deployment descriptors weren't up to snuff perhaps. i'm
    using stateless session beans one main bean trying to call others. i'm
    also using xdoclet to generate all the interfaces, but not the
    deployment descriptors. i've reverted to using remote interfaces for
    the time being just to get it all working.
    one specific question that i've been getting mixed answers on. for
    ejb's to use local interfaces, do they need to be in the same jar/war?
    all our beans are deployed as one bean per jar file. makes for lots of
    descriptor files ;).
    thanks!
    ~mark

    none wrote:
    i'm looking for good examples/documentation on using local interfaces
    with weblogic (6.1).You might have a look at the bands example. You could also check out
    http://learnweblogic.com/updates/webauction.zip
    >
    i gave it a try and kept getting a class cast exception while trying to
    cast the ic.lookup result to the localhome interface. The best way to debug ClassCastExceptions is to print out the class name
    and loader of each class.
    Something like this:
    Object h = ic.lookup("fooHome")
    System.out.println("lookup returned "+h.getClass().getName());
    System.out.println("loaded by "+h.getClass().getClassLoader());
    System.out.println("Trying to cast into "
    +FooHome.class.getClassLoader());
    something tells
    me that some deployment descriptors weren't up to snuff perhaps. i'm
    using stateless session beans one main bean trying to call others. i'm
    also using xdoclet to generate all the interfaces, but not the
    deployment descriptors. i've reverted to using remote interfaces for
    the time being just to get it all working.I'd suggest you check out EJBGen as well.
    >
    one specific question that i've been getting mixed answers on. for
    ejb's to use local interfaces, do they need to be in the same jar/war?
    all our beans are deployed as one bean per jar file. makes for lots of
    descriptor files ;).Personally I'm not a big fan of 1 ejb per jar file. You can make local
    calls between jars if they are packaged within the same ear.
    -- Rob
    >
    thanks!
    ~mark

  • Adapter Development - No documented examples.

    Hi All,
    There is documentation in regards to the example custom adapter at the following location:
    http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/frameset.htm
    However, the code and the help files do not really advise how you build any type of adapter from scratch.  This seems to be a tightly held secret at SAP and I was wondering if someone can provide or reference a blog or similar which describes the process to build a custom adapter (in and/or outbound).  I don't feel it's really that complicated as I believe most of the code in the example should be reusable.
    Note - I can't even get this type of information from my SAP XI subject matter expert and I feel this is an area where XI is perceived as not mature!
    Regards,
    Matt
    ps. It's not my intent for rampant custom adapters to be developed, but where the design is impacted poorly due to limitations in say the JDBC adapter, we need to understand what's involved to build an adapter.

    Hi Matt,
    The information you are looking for is available from service.sap.com.
    Specifically, you want to download the XI PCK, which contains the code for a complete adapter.  The PCK also includes testing tools for "loop back" so you can examine the contents of messages sent without using an XI system.
    PCK is used by various 3rd parties to develop adapters.
    To install PCK, you will need to download the WebAS J2EE also.
    Regards,
    Bill

  • Documentation/Example Code for WAPI

    Can anybody point me to a place from where i can get Documentation or Example Code for WAPI calls. Especially
    SAP_WAPI_START_WORKFLOW
    SAP_WAPI_WRITE_CONTAINER.

    Can anybody point me to a place from where i can get Documentation or Example Code for WAPI calls. Especially
    SAP_WAPI_START_WORKFLOW
    SAP_WAPI_WRITE_CONTAINER.

  • Can't download file from Steve Muench not yet documented examples

    I'm trying to download example 64 - Recalc Sum of Salary at the view object level but the link is broken? Can someone provide me the file?
    Thanks.

    Thanks for reporting the issue. We have been able to reproduce it at our end and shall let you know when this gets fixed in one of the future releases.
    Thanks,
    Adobe Reader Team

  • Where are steves "not yet documented example file"

    hello
    i am tryin go test some of the examples that are demonstrated in http://blogs.oracle.com/smuenchadf/resource/examples page
    One of them for example is #113. It URL is broken as are all other examples that i have tried (http://java.net/projects/smuenchadf/sources/samples/content/BindVariablesAppliedToDetail.zip)
    where can i find them please
    m. bani yanseen

    mohammad,
    I know that Oracle is in the process of migrating stuff from samplecode.oracle.com to the java.net infrastructure - apparently those haven't been moved yet, but the links are pointing to where they should eventually end up.
    John

  • Com.bea.p13n.cache any documentation/examples

    I'm looking for some samples or documentation on using the
    com.bea.p13n.cache routines.
    I want to create a global cache for my application.
    Thanks

    its there in server class path,,,, do i need to copy it from server path and paste somewhere else ,,,, and as i searched this jar in my appdoain but didnt found it ... what is the resolution of this issue ,,, its already there in server class path

  • Not Yet Documented Array Example as JSP doesn't work.

    Example:
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
    Steve, in the Not yet documented examples, you have an Array of String Domain Example. We tried to modify this to create a simple struts flow that sets up the view with some parameters and then shows a datapage of the results.
    When run in batch mode, you get:
    Validation Error
    You must correct the following error(s) before proceeding:
    JBO-28302: Piggyback write error
    oracle.sql.CharacterSet1Byte
    JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-25063: Operation getCurrentRowSlot cannot be performed because the working set object is not bound.
    JBO-25063: Operation getCurrentRowSlot cannot be performed because the working set object is not bound.
    the 28302 and 25063 errors are undocumented.
    If you switch to Immediate mode, it works.
    Similarly, we tried to use a numeric Array in our current project to filter a view of records to a specific client list (client and his associations). The view renders OK the first time, but when you click a setCurrentRowWithKey hyperlink, the view ends up getting "refreshed" so that our JSTL expressions that point back to this "master page" bindings, i.e. ${data.MasterPageUIModel.ViewPfRptsDueView1} show incorrect data.
    Normally, if you drop a view object on the page, and have a setCurrentRowWithKey, then navigate to a detail set, it RETAINS the row selected when you return to this view. Without changing ANYTHING else, other than the where clause to read: client_id in (' || my_client_list ||')', it worked perfectly. It also worked perfectly if we switched our sync mode to: Immediate instead of batch.
    Can you/anyone elaborate why it works in one mode and not in another?

    Repost.
    Here's a section of the batch mode bc4j.log:
    [221] Array.getInternalArray(281) Warning:No element type set on this array. Assuming java.lang.Object.
    [222] RuntimeViewRowSetIteratorInfo.rangeRefreshed(1266) [RangeRefreshEvent: EmpArrayView1 start=0 count=3]
    [223] Diagnostic.printStackTrace(405) java.io.NotSerializableException: oracle.sql.CharacterSet1Byte
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
    =====> at oracle.jbo.domain.Array.writeObject(Array.java:748)
    ... [ much removed ] ...
    NOTE [221] and [223].
    It appears to work in batch mode, if you make a call to the array method: useElementType, i.e.
    arr = new Array(descriptor,conn,names);
    arr.useElementType( java.lang.String.class);
    However, this method appears to be written incorrectly. IF I just change the array.java useElementType method to read:
    public void useElementType( Class claz )
    if ( mElemType == null )
    mElemType = claz;
    instead of:
    public void useElementType(Class claz)
    if (mElemType != null)
    mElemType = claz;
    it works.
    I'm just trying to get some closure on this.

  • Problems with SNMP examples in WL documentation

    I am using WL 5.1 on NT. Tried to follow SNMP use examples shown in WL
    documentaion. Command line examples refuse to work- I either get an
    error that ...Remote Host Unknown... or ...Errored Object ID...
    1. after many iterrations launched SNMP agent with the following
    command-
    java webloghic.SNMPAgent -serverURLs localhost
    with password of WL administrator=weblogic
    agents reports that initialization was completed
    2. Documentation examples do not seem to work.
    3. I presume that snmp.mycompany.com reference is an error,
    snmp.weblogic.com is probably correct (?)
    Can anyone suggest how to make this thing work It's driving me nuts :-)
    Thanks,
    Vadim

    Vadim,
    please see comments inline....
    vadim t <[email protected]> wrote in message
    news:[email protected]..
    I am using WL 5.1 on NT. Tried to follow SNMP use examples shown in WL
    documentaion. Command line examples refuse to work- I either get an
    error that ...Remote Host Unknown... or ...Errored Object ID...
    1. after many iterrations launched SNMP agent with the following
    command-
    java webloghic.SNMPAgent -serverURLs localhost
    with password of WL administrator=weblogic
    agents reports that initialization was completed
    The serverURLs value doesn't seem right, see below .... (this is the URL
    used by the agent to connect to the managed WLS server)
    You should try the following commandline as in
    http://www.weblogic.com/docs51/admindocs/snmpagent.html
    " java weblogic.SNMPAgent
    -password foo
    -serverURLs t3://dns_host_name:7001 "
    where 'foo' is the 'system' password, and after replacing appropriate values
    for your setup.
    Also, if you prefer you can use - startSNMPAgent.cmd /sh which is in
    <install_dir>/weblogic, after filling in the blanks.
    2. Documentation examples do not seem to work.
    3. I presume that snmp.mycompany.com reference is an error,
    snmp.weblogic.com is probably correct (?)
    Can anyone suggest how to make this thing work It's driving me nuts :-)
    Thanks,
    Vadim

  • I need some examples

    Does one know where I can find some well documented examples how to use OWF, how to create plsql code with ?
    The documentaitions from oracle are not usable.
    regards

    Hi! I'm new in this, Where I find this Zip File?? If some one have any example I try with Oracle Workflow Designer, and try with OW4J and Jdev 9.05 , 10.1.3 but I don't understand how work the Oracle Workflow Some one have any documentation or functional example????
    Please I need Help :'( Pleaaaseeeeeeee some one.

  • Need documentation for writing GPIB drivers for RTOS-32 using Borland C 5.51

    Greetings,
    I need to develop GPIB drivers (using the NI GPIB card) for the RTOS-32 operating system (by On-Time). I am using Borland C 5.51 as the compiler. I am looking for info/examples on writing/porting low level drivers for the GPIB. The examples I have found come with the low levels drivers in an object file which you link in, but nothing on how to write the low level drivers.
    Any pointers on what documentation/examples that I should look at would be greatly appreciated.
    Thank you for your time,
    Fred A. Ennerson
    Electro-Optical/Sonatech

    Fred,
    National Instruments offers a DDK for customers to develop NI-488 drivers for operating systems that we do not support directly. Refer to the following product data sheet on using the NI-488DDK. http://www.ni.com/pdf/products/us/4gpib664.pdf
    Craig A
    National Instruments Engineer

  • Using cf tags in cfscript

    I would like to use cf tags inside cfscript, for example
    cfquery and cflocation. What is the best way to achieve this.
    Cheers

    Here is the way to use cfquery within cfscript
    <cfoutput>
    <CFSCRIPT>
    SQLString = "<!---Your Query Here --->";
    DATASOURCE = "<!---Datasource here --->";
    checkUser = CFQUERY(SQLString: SQLString,DATASOURCE:
    DATASOURCE);
    if (checkUser.recordCount neq 0)
    WriteOutput("Welcome Back, " & checkUser.first_name);
    else
    WriteOutput("Your UserName is Wrong.. try again!");
    </CFSCRIPT>
    <cffunction name="CFQUERY" access="public"
    returntype="query">
    <cfargument name="SQLString" type="string"
    required="yes">
    <cfargument name="Datasource" type="string"
    required="yes">
    <cfargument name="dbType" type="string" default="">
    <cfquery name="RecordSet"
    datasource="#arguments.Datasource#" dbtype="#arguments.dbType#">
    #preserveSingleQuotes(arguments.SQLString)#
    </cfquery>
    <cfreturn RecordSet>
    </cffunction>
    </cfoutput>
    thanks
    Satyajit Behera
    MindfireSolutions,
    Bhubaneswar

  • Servlet Example

    Sir,
    Based on bug 7313163; the documentation example http://youngcow.net/doc/oracle10g/appdev.102/b14259/xdb23jv1.htm#i1045379 is for a non-existing feature.
    Thread Re: javax.naming.* classes don't work inside the database to load XMLDB doc talks about this.
    Mark Drake said: "demo that shows how to write some JNDI wrappers over JDBC to get some (not all) of the JNDI methods working", I need this example plz.
    Islam.

    Please download the latest version of the XFiles demo from the XML DB page on OTN.

  • HRFORMS documentation?

    Hello.
    I'm searching some documentation/examples about HRFORMS (HRFORMS transaction, not PE51). I just downloaded "HRFORMS Cookbook" from help.sap.com but I think it is very simple. Someone has more information?
    Thanks in advance. Regards,
    Roberto Campo

    Hello.
    Thanks for the info but I allready know this tcode. I need documentation for HRFORMS, some explained examples.
    Regards,
    Roberto Campo

  • CRM 11i Web Services Examples

    Hi,
    I've read some old presentations on CRM 11i Web Services and the 11i XML gateway. I'm interested in creating a web service to create a CRM service request from another application of ours. I haven't found any good material/documentation/examples on CRM web services and how they can help me do this. Any recent info on this would be great.
    Thanks,
    Matt

    Hi,
    There used to something called XML-Services in CRM. It should be part of 11.5.7 release. You may find the details in JTT developers' guide.
    Since the re-org of CRM and ERP, the XML-Services and XML-Gateway are join force. There are something thing brewed for the Web Services.
    You may find lastest HLD and Functional Spec. at http://www-apps.us.oracle.com:1100/atg/wf/ws/. (note, implementation is coming forth).
    Hope it helps!
    jason

Maybe you are looking for