Dot notation in cfc

Hi,
Can someone help me with this?
I have a directory that uses a dot in its name, like
robedob.com as the name of the directory. in this directory I have
a cfc directory. How can I use dot notation to invoke a cfc object
like that:
<cfobject component="dev.[directory name].cfc.Client"
name="ObjClient"> if the directory name has a dot in it?
Will this work? <cfobject
component="dev.robedob.com.cfc.Client" name="ObjClient">

I am confused. If in the base of your web site, you have a
folder called
cfcs/my/component.cfc. All you should have to do is call it
by:
cfcs.my.component or <cfobject name=MyObject"
component="cfcs.my.component"/>
Where ever the first index.cfm for your site is located (the
home page) is
the base of your site.
I am on shared hosting and the path to my cfcs are
pet/store/cfcs/. It comes
up as www.mysite.com/pet/store/cfcs.
The location to my component (myComponent.cfc) is then:
<cfobject name="MyPetObject"
component="pets.store.cfcs.myComponent"/>
Does that help?

Similar Messages

  • Dot notation in Forms6i ??

    I would like to make a generic program unit that would loop through all the text items and change thier properties to show up with no BEVEL, blending into the background color and not being editable. This would be a query in report or display only mode (not a real Oracle Report, I don't want to maintain two different objects - a FORM for editing and a REPORT for display only). To EDIT I would have a button to change all the properties to the default or original ones.
    I used to be able to do this in Power Builder, way back when, with dot notation.
    WINDOW.FORM.BLOCK.TEXT_ITEM.NAME.PROPERTY := 'STRING';
    and be able to change all the properties that were available for the TEXT_ITEMs in a loop of some kind.
    Any information would be appreciated. Bill :)

    All the information you need is available through GET_BLOCK_PROPERTY and GET_ITEM_PROPERTY etc.
    You can obtain the next iten relative to the current item and so on - not as neat as dot notation but workable

  • Email with dot notation help

    I recently made a new email address at google and it contained a dot notation, this seems to be the only difference between the two addresses, with the new address i can't login to the gmail pop server, the strange part it my origanal email will connect to the server fine. is this a mail problem or something on gmail's side. Thanks for your help.
    15" Powerbook G4   Mac OS X (10.4.6)  

    I use a dot in my gMail address without any problems.
    Make sure that you have set up Pop forwarding in your gmail account.
    Login to Gmail, click on settings, top right, Then click on POP and Forwarding, in the middle.
    Then in the POP Download section, select what you want to do.
    Will
    1GHz G4, 15" PowerBook, Airport Extreme & Express, 1G iPod Mini   Mac OS X (10.4.6)   Please help others by marking questions as Answered (+perhaps Solved or Helpful)

  • Problem with dot notation in wsdl-file

    Hello,
    I want to consume a soap web service that is created in the sap system within a ios app. I am generating the stub files with sudzc. Unfortunately sudzc is making classes with a dot in its name. This is caused by the wsdl-file:
    <wsdl:types>
    <xsd:schema attributeFormDefault="qualified" targetNamespace="urn:sap-com:document:sap:rfc:functions">
    <xsd:simpleType name="RfcException.Message.Number">
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="3"/>
    <xsd:pattern value="\d*"/>
    </xsd:restriction>
    </xsd:simpleType>
    Does someone know how to delete the dot in RfcException.Message?
    Greetings, Vanessa

    Hi Vanessa,
    In WSDL file , value of tag "<wsdl:service name"  decides the Stub class name .
    Remove dot from this tag.
    Many Thanks,
    Jitendra

  • Known issue..?  dot notation in XSD..

    I have an HL7 exported schema.. very large 1.5 MB
    In my sample payload I have good data:
    <receiveInput_Read_Input>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="ADT_A01">
    <ADT_A01 xmlns="http://www.edifecs.com/xdata/200" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" XDataVersion="2.0" Standard="HL7" Version="2.3.1" CreatedDate="2005-08-16T16:52:26" CreatedBy="ECXEngine_826" GUID="{1A2726C6-B00E-DA11-8F7A-080020C8D296}">
    <MSH>
    <MSH.1>|</MSH.1>
    <MSH.2>^~\&</MSH.2>
    <MSH.3>
    <HD.1>#Property(MessageSendingApp)#</HD.1>
    </MSH.3>
    <MSH.4>
    <HD.1>#Property(MessageSendingFacility)#</HD.1>
    </MSH.4>
    <MSH.5>
    <HD.1>#Property(MessageReceivingApp)#</HD.1>
    </MSH.5>
    <MSH.6>
    <HD.1>#Property(MessageReceivingFacility)#</HD.1>
    </MSH.6>
    <MSH.7>
    <TS.1>20050804162010</TS.1>
    </MSH.7>
    <MSH.8 xsi:nil="true" />
    <MSH.9>
    <MSG.1>ADT</MSG.1>
    <MSG.2>A01</MSG.2>
    </MSH.9>
    <MSH.10>10010</MSH.10>
    <MSH.11>
    <PT.1>#Property(ProcessingID)#</PT.1>
    </MSH.11>
    <MSH.12>
    <VID.1>2.3.1</VID.1>
    </MSH.12>
    <MSH.13 xsi:nil="true" />
    <MSH.14 xsi:nil="true" />
    <MSH.15>AL</MSH.15>
    <MSH.16>ER</MSH.16>
    <MSH.17>#Property(CountryCode)#</MSH.17>
    <MSH.18>ASCII</MSH.18>
    <MSH.19>
    <CE.1>ENG</CE.1>
    </MSH.19>
    </MSH>
    <PID>
    <PID.1>1</PID.1>
    <PID.2 xsi:nil="true" />
    <PID.3>
    <CX.1>A0000010</CX.1>
    </PID.3>
    <PID.4 xsi:nil="true" />
    <PID.5>
    <XPN.1>
    <FN.1>TEST, Patient 01_10</FN.1>
    </XPN.1>
    </PID.5>
    <PID.6 xsi:nil="true" />
    <PID.7>
    <TS.1>20001001</TS.1>
    </PID.7>
    <PID.8>F</PID.8>
    </PID>
    <PV1>
    <PV1.1>1</PV1.1>
    <PV1.2 xsi:nil="true" />
    <PV1.3 xsi:nil="true" />
    <PV1.4 xsi:nil="true" />
    <PV1.5 xsi:nil="true" />
    <PV1.6 xsi:nil="true" />
    <PV1.7 xsi:nil="true" />
    <PV1.8 xsi:nil="true" />
    <PV1.9 xsi:nil="true" />
    <PV1.10 xsi:nil="true" />
    <PV1.11 xsi:nil="true" />
    <PV1.12 xsi:nil="true" />
    <PV1.13 xsi:nil="true" />
    <PV1.14 xsi:nil="true" />
    <PV1.15 xsi:nil="true" />
    <PV1.16 xsi:nil="true" />
    <PV1.17 xsi:nil="true" />
    <PV1.18 xsi:nil="true" />
    <PV1.19>
    <CX.1>10010</CX.1>
    </PV1.19>
    </PV1>
    </ADT_A01>
    </part>
    </receiveInput_Read_Input>
    This is my input variable w/in my bpel proc. When I try to access that data via xPath, I get:
    <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    <part name="summary">
    <summary>empty variable/expression result. xpath variable/expression expression "bpws:getVariableData('receiveInput_Read_Input','ADT_A01','/ns4:ADT_A01/ns4:MSH/ns4:MSH.7/ns4:TS.1')" is empty at line 48, when attempting reading/copying it. Please make sure the variable/expression result "bpws:getVariableData('receiveInput_Read_Input','ADT_A01','/ns4:ADT_A01/ns4:MSH/ns4:MSH.7/ns4:TS.1')" is not empty.</summary>
    </part>
    </selectionFailure>
    I am wondering if the '.' in the naming convention is causing it to choke.. I have tried an assign, xsl transformation, etc.
    Insight appreciated!!!!!!!!!

    I just tried a simplified version of your code and it worked fine.
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload" query="/client:XPathDotProcessRequest/client:level.1.item"/>
    <to variable="outputVariable" part="payload" query="/client:XPathDotProcessResponse/client:level.1.item"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload" query="/client:XPathDotProcessRequest/client:level.2/client:level.2.item"/>
    <to variable="outputVariable" part="payload" query="/client:XPathDotProcessResponse/client:level.2.level.2.item"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload" query="/client:XPathDotProcessRequest/client:level.2/client:item.2"/>
    <to variable="outputVariable" part="payload" query="/client:XPathDotProcessResponse/client:level.2.item.2"/>
    </copy>
    </assign>
    I suspect it may be something else in the schema that is causing it to break.
    Can you see the input message in the BPEL console and verify that it is correct?
    Have you tried selecting /ns4:ADT_A01/ns4:MSH/ns4:MSH.1 to make sure you can get that?
    Have you tried selecting /ns4:ADT_A01/ns4:MSH/ns4:MSH.5/ns4:HD.1 to make sure you can get that?

  • Which IOS for BGP dot notation? (7206VXR)

    Hello there! I'm currently using a Cisco 7206VXR (NPE-G1) and need to begin peering with a BGP neighbour that is using a 4-byte ASN. It looks like the firmware I'm using is too old to support this (it's from 2006!) and am wondering what IOS release is best to be using. I'm currently using 12.4(9)T1 for the IOS. The bootloader and rommon look pretty old too. Will I need to upgrade those as well? Should I be jumping right into the 15.x releases or should I stick on 12.4 T releases? Here is an output from a "show version"
    Cisco IOS Software, 7200 Software (C7200-ADVIPSERVICESK9-M), Version 12.4(9)T1, RELEASE SOFTWARE (fc2)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2006 by Cisco Systems, Inc.
    Compiled Wed 30-Aug-06 20:48 by prod_rel_team
    ROM: System Bootstrap, Version 12.3(4r)T1, RELEASE SOFTWARE (fc1)
    BOOTLDR: 7200 Software (C7200-KBOOT-M), Version 12.3(23), RELEASE SOFTWARE (fc5)

    Hi,
    BGP was supported starting from the SP feature set (not in IP Base and IP Voice)
    Beginning from 12.4(4)T, BGP is supported with advance security feature set.
    Begining from 12.4(11)T, BGP is supported with even IP base and IP voice feature set.
    Please use Cisco Feature Navigator to find information about Cisco IOS software images and the supported features for your platform(s):
    http://tools.cisco.com/ITDIT/CFN/jsp/index.jsp
    BR,
    Mohammed Mahmoud.

  • Invoking a CFC in another directory

    If, off the main root, I have a folder called components and
    I put all the
    site CFCs in there. How to I invoke them from the main root
    and from another
    folder (root/news for example)
    Wally Kolcz
    Developer / Support

    Wally, you can also specify the location of the component
    using dot notation
    For example, if you have a component called calculator in the
    components directory you could use <cfobject> to invoke it
    like so:
    <cfobject name="cfcCalculator"
    component="components.calculator">
    You can nest folders as deep as you want and the last part of
    the component attribute will always be the component name, minus
    the .cfc extension.

  • CFC invokes kill the page

    Hi all,
    I've used CFC's before just fine but for some reason the same
    code that works locally is dying on the live server. For example,
    in my application.cfc I have this...
    <cffunction name="onApplicationStart" returnType="boolean"
    output="false">
    <cfset application.system = createObject("component",
    "system") />
    <cfreturn true />
    </cffunction>
    Then in my template I have something like...
    <cftry>
    <cfinvoke component="system" method="getItems"
    returnvariable="items">
    <cfinvokeargument name="item_id" value="#url.item_id#"
    />
    </cfinvoke>
    <cfcatch type="any"><p
    class="error"><strong>Problem Invoking CFC
    Method</strong></p></cfcatch>
    </cftry>
    Everytime I execute the page I get the message from the cftry
    block. If I remove the cftry tags, everything AFTER the invoke is
    blank and it's killed everything - but no native Coldfusion error
    occurs s I'm a bit lost as to what's causing it.
    One thing to note here is that this is a seperate
    application.cfc to another above it and everything I'm working on
    is in it's own folder so it shouldn't be a problem. The folder is
    also mapped as a sub-domain...would that make any difference?
    Another thing I noticed is that if I navigate directly to the
    cfc through the browser, it just looks blank instead of presenting
    me with the coldfusion administrator like it normal should. e.g. if
    i type the path...
    http://mysubdomain.mysitewhatever.com/cfc/system.cfc
    (i changed the sub domain and site name for security but the
    structure is the same)
    Any help with this would be much appreciated.
    Regards,
    Michael.
    here's my web site structure:
    - main website (folder)
    - application.cfc
    - index.cfm
    - subdomain (folder)
    - - application.cfc
    - - index.cfm
    - - cfc (folder)
    - - - system.cfc

    OK, Captain, it looks to me like your syntax is NOT correct.
    From what I can see, when you instantiate your CFC, it should
    be:
    <cfobject name="application.system"
    component="main_website_folder.Subdomain_folder.Cfc_folder.system"/>
    or (I like this better, it’s a matter of personal
    preference):
    <cfset application.system =
    createObject(“component”,
    “main_website_folder.Subdomain_folder.Cfc_folder.system”)>
    Also, remember that these dot-notated paths may not be the
    same on your live server as on your ‘localhost’,
    depending on how your site is structured.
    You can neither <cfoutput> nor <cfdump> the
    entire component; you must call one of the functions in the CFC,
    then you can <cfoutput> that. For example:
    <CFSET someVariable = APPLICATION.system.someFunction()
    > and then,
    <cfoutput>#some Variable#</cfoutput>
    Try it, I think you’ll like it.
    Carlos

  • Error executing CFC. Parameter index out of range (2 number of parameters, which is 1)

    Hi,
    My CFC component is defined as:
    <cffunction name="updateNote" output="false" access="remote"  returntype="void" >
         <cfargument name="notedetails" required="true" type="string" >
         <cfargument name="notename" required="true" type="string" />
         <cfquery name="qupdateNote" datasource="notes_db">
               UPDATE
                   notes
               SET
                   notes.notedetails=<CFQUERYPARAM CFSQLTYPE="CF_SQL_VARCHAR" VALUE="#ARGUMENTS.notedetails#">,
               WHERE
                   notename="<CFQUERYPARAM CFSQLTYPE="CF_SQL_VARCHAR" VALUE="#ARGUMENTS.notename#">"
        </cfquery>
    </cffunction>
    In Flash builder when I test the operation I get this error:
    "There was an error while invoking the operation. Check  your server settings and try invoking the operation again.
    Reason:  Server error Unable to invoke CFC - Error Executing Database Query. Parameter  index out of range (2 > number of parameters, which is 1)."
    Im really quessing that this is something small but right now its causing me to pull my hair out of my head!! Argg. Tried a bunch of things but I know thik im stuck.
    Help would be very very appreciated.
    Thanks

    Create test.cfm along these lines:
    <cfset myObj = createObject("component", "dotted.path.to.cfc.file")>
    <cfset myResult = myObj.myMethod(arg=value1, etc)>
    <cfdump var="#myResult#">
    Or, really, you could just browse to this:
    http://your.domain/path/to/your.cfc?method=yourMethod&arg1=value1 [etc]
    Although I dunno which of those two approachs will give you a better error message (indeed, it might be the same).
    Try both.
    Adam

  • Using a dot "." in defining/scoping variables

    I've always felt it was a best practice to scope EVERY CF
    variable and still do. However, a new co-worker to me feels that
    using a DOT in variable names could cause problems. I completely
    disagree but would like others opinions. To me scoping variables is
    absolutely a best practice.
    She specifically referred to the article below but to me the
    point of this article was about using "primitive" variables such
    as: "var1.var2.var3".
    http://www.coldfusionmuse.com/index.cfm/2006/3/14/dot.operator
    Looking forward to others opinion especially seasoned CF
    folks from Adobe.

    NUHuskers65 wrote:
    > I've always felt it was a best practice to scope EVERY
    CF variable and still
    > do. However, a new co-worker to me feels that using a
    DOT in variable names
    > could cause problems. I completely disagree but would
    like others opinions.
    > To me scoping variables is absolutely a best practice.
    >
    I think this co-worker misunderstood the point of that
    article as
    surmised in its last paragraph, and I quote:
    "The solution is to avoid using dotted notation for primitive
    variables.
    Only use dotted notation for variable naming when you intend
    to create a
    structure."
    All variable scopes in modern, aka MX, aka Java Based,
    ColdFusion are
    structures. You use the dot [.] character to specify the keys
    of
    structures. So you are doing what you are supposed to do.
    This article refers to older versions of ColdFusion where all
    the
    variable scopes where *not* structures and you could get away
    with dots
    in your primitive, i.e. non-structure, variable names. It
    also tells
    how one can still do this by using array notation.
    This is a bad practice and should be avoided for the very
    reason that in
    modern ColdFusion, dots are meant to be interpreted as
    structures. It
    does not say to not even use dots for these structures where
    they are
    meant to be used.

  • Dont want to hard code the -Djava.class.path...notation question

    Hello everyone,
    I have a c++ program that is compiled into a DLL file. It calls the JNI_CreateJavaVM. I have the whole thing working but now I need to port it and the jar file to another machine.
    right now i am setting the options this way:
    #define USER_CLASSPATH "c:\\javaClasses\\intec.jar.zip" /* where PRLocalBridge.class is */
    #define PRCLASS "com/intec/intecapi/PRLocalBridge"
    bool PRLocalBridgeMain(){
         JavaVMOption options[1];
         options[0].optionString = "-Djava.class.path=" USER_CLASSPATH;
         vm_args.version = JNI_VERSION_1_4;//0x00010002;
         vm_args.options = options;
         vm_args.nOptions = 0;
         vm_args.ignoreUnrecognized = JNI_TRUE;
        /* Create the Java VM */
        res = JNI_CreateJavaVM(&jvm, (void**)&env,&vm_args);
        if (res < 0) {
         return (bool*)errorHandler('b', CANT_INVOKE_JVM);
        cls = env->FindClass(PRCLASS);
    }where USER_CLASSPATH is hardcoded directly to where the jar
    file is located. in other machines, it may not be loaded
    in that file structure. how do i softcode the path?
    ive put the jar in my classpath but that doesnt seem to work
    (unless i didnt have USER_CLASSPATH set properly). Thanks
    in advance :)
    txjump

    hi bschauwe,
    thanks for the suggestions! i was hoping you would reply. You have helped some others with classpath questions. :)
    since its a dll, can you pass it values?
    we do have an ini file that is already created but the file parser is in java so i would have to write another one in c. id like to stay away from that though. cause if it gets messed up or goes missing, clients wont be able to reach the java program, and in turn the database.
    the classpath environment variable sounds like a good idea...will check into that. eventually we plan to wrap our software up in installshield so that would really be nice. clients could be ignorant of environment variables and still be able to run everything.
    my solution for now has been to find my jar file by recursively searching the c drive. and use GetFilePath() to get the full path and pass that to JNI_CreateJavaVM. i did get it to work...just wondering if this is a good idea.
    i was thinking that if the dll is in the same folder as the jar file i could just use dot notation but that just doesnt seem like a good idea to make that assumption. but i think java does something similar 'cause Sun says not to move the java.dll file.
    thanks for your input,
    txjump

  • HMAC MD5 Hash Error

    i am tryingti implement the linshare affiliate program in Cf
    using this method
    Linkshare
    affiliate program in Coldfusion
    in this method it talks about the failure of the HMAC MD%
    function in Coldfusion and uses this java component method to get
    around it.
    http://blog.shortfusion.com/index.cfm/2008/11/21/ColdFusion-HMACMD5-function">Coldfusion
    HMACMD5 function[/L]
    i have 90% of this implemented but i cannot get the component
    recognized by the server and so am stuck on the final stage.
    here is the error i am getting.
    "Could not find the ColdFusion Component or Interface
    /components.utils. Ensure that the name is correct and that the
    component or interface exists.
    The error occurred on line 87.
    on the /ls_post.cfm page "
    The relevant code is attached
    i have a components folder sitting in the webroot and a
    utils.cfc in there containing all the stuff to perform the HASH.
    can anyone see why the server is not recognizing the
    component?
    thanks

    Get rid of the slash so the path consists of dot notation
    only:
    <cfinvoke component="components.utils"
    ...>
    See also the documentation for information about how CF
    searches for components.
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=buildingComponents_27.ht ml

  • Could someone help me understand component extension?

    I've read a couple chapters over on component extension (use of the EXTENDS attribute in a CFCOMPONENT tag) but something isn't clicking; so I'm looking to the forums for some supplemental info that'll help me have a eureka moment and comprehend.
    As a preface, I have, what I would call, an intermediate knowledge of CF (working towards advanced).  So if we can keep the explanations into as much Layman's terms as possible, that would be appreciated and most helpful.
    To my knowledge, if you have a component, you can make its THIS-scope variables and its methods available to other components if those components have an EXTENDS attribute in their CFCOMPONENT tag that uses a fully-qualified dot notation path to the "extended-from" component.
    I tried to put this into practice by having a master.cfc and slave.cfc  The master is located off the root in a folder called 'www'.  The slave is located off the root in at the location: 'www/app/coms'.  So in the slave.cfc component I wrote:
    <cfcomponent extends="www.master" ...
    Assuming that it was the same as CF starting from the root of the website and looking into the www folder and then seeing the master.cfc.
    But when I have the slave component call a function that exists in the master, it says it cannot find it.  What am I not getting here?  This sounds like a POWERFUL way to share the application.cfc's THIS-scope variables, so I'd like to comprehend this ability, but there's something I'm missing it seems.

    OK, here's the issue I'm having so far.
    In the application.cfc (located at '/www/application.cfc') in the pseudo constructor, I created a THIS.mappings structure and made a key in it called '/app' which maps to 'c:\inetpub\wwwroot\localhost\www', a valid location)
    Then down in the onApplicationStart() code, for S&G's, I wrote the following:
    <cfdump var="#fileExists( expandPath( '/app/application.cfc' ) )" abort="1">
    Since no such folder ('app') exists at the root, the only way this code would return YES/TRUE is if the THIS.mappings '/app' key worked (cause there is an application.cfc in the root's 'www' folder)
    Sure enough, it says "YES" when I run the code.  So everything's good.
    Well, I'm now going through code in the oAS() that instantiates componenents and stores it into the application scope.  The testing component is called 'template.cfc' (located at c:\inetpub\wwwroot\localhost\files\framework\current\coms)  In that template.cfc I set the attribute to each of the following in multiple attempts:
    extends="/app.application"
    extends="/app/application"
    extends="app.application"
    When the template.cfc is stored into the APPLICATION scope, it is put into a variable called 'application.coms.template'.  But when that component is processsed, I keep getting the error:
    COULD NOT FIND THE COLDFUSION COMPONENT OR INTERFACE /app.application
    I checked CF10 documentation, and it says that the EXTENDS attribute can take such a FQDN pathing... wasn't it supposed to respect values set in the THIS.mappings?

  • RecordCount Error

    Can someone please look over this code and check for any
    problems? I'm receiving the RECORDCOUNT is undefined error for the
    following line:
    <cfif GetStudentDetails.RecordCount eq 0>
    Thanks!
    \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Authenticate.cfm/////////////////////////////////////// ////////
    <cfsetting enablecfoutputonly="true">
    <cfsetting enablecfoutputonly="false">
    <!--- Check the supplied Username and Password against the
    database. --->
    <cfif GetStudentDetails.RecordCount eq 0>
    <!---
    If the query recordcount is zero, the username did not
    exist. Send the user back to the login form
    and show the appropriate error message.
    --->
    <cfset variables.errorMessage = "The Student ID you
    provided, <b>" & FORM.Username & "</b>, is an
    invalid Student ID.">
    <cfelse>
    <!--- The username exists, validate the supplied password
    for this user. --->
    <cfset variables.hashedPassword = Hash(FORM.Password)>
    <cfif variables.hashedPassword neq
    GetStudentDetails.PIN>
    <!--- If the supplied password for this user does not
    equal the password on record, set the error message. --->
    <cfset variables.errorMessage = "The Pin you supplied for
    user <b>" & FORM.Username & "</b> was
    incorrect.">
    <cfelse>
    <!--- A valid user has authenticated with the system,
    perform necessary actions. --->
    <!--- Update the LastLogin timestamp. --->
    <cfquery name="qryUpdateLastLoginTS"
    datasource="#request.datasource#">
    UPDATE Users
    SET LastLogin_TS = #CreateODBCDateTime(Now())#
    WHERE STUDENTID = #GetSudentDetails.STUDENTID#
    </cfquery>
    <cfquery name="GetStudentDetails"
    datasource="#request.datasource#">
    SELECT STUDENTID, STUDENTLASTNAME, STUDENTFIRSTNAME,
    STUDENTMIDDLENAME FROM StudentClasses
    </cfquery>
    <!---
    Create the request scope structure to hold the user data.
    Notice it is NOT necessary to first create the
    request.User structure with StructNew(). Simply using dot
    notation after the User portion will tell
    ColdFusion the variable is a structure.
    --->
    <cfset request.User.LoggedIn = "1">
    <cfset request.User.Username = FORM.Username>
    <cfset request.User.FirstName =
    GetStudentDetails.STUDENTFIRSTNAME>
    <cfset request.User.LastName =
    GetStudentDetails.STUDENTLASTNAME>
    <cfset request.User.LastLogin =
    GetStudentDetails.LastLogin_TS>
    <cfset tmpMessage = "You were last here on " &
    DateFormat(GetStudentDetails.LastLogin_TS, "mm.dd.yyyy") & " at
    " & TimeFormat(GetStudentDetails.LastLogin_TS, "hh:mm tt")
    & ".">
    <cfset request.User.LoginMessage =
    IIF(GetStudentDetails.LastLogin_TS neq "", "tmpMessage", DE("This
    is your first visit!"))>
    </cfif>
    </cfif>

    Here's my query:
    <cfquery name="GetStudentDetails"
    datasource="#request.datasource#">
    SELECT STUDENTID, STUDENTLASTNAME, STUDENTFIRSTNAME,
    STUDENTMIDDLENAME
    FROM StudentClasses
    WHERE STUDENTID = #FORM.Username#
    </cfquery>
    We have already moved the query up. :)
    The error has changed from a record count error to a database
    error:
    Error Executing Database Query.
    Data type mismatch in criteria expression.
    The error occurred in
    C:\CFusionMX7\wwwroot\securitytutorial\authenticate.cfm: line 33
    Called from
    C:\CFusionMX7\wwwroot\securitytutorial\Application.cfc: line 106
    Called from
    C:\CFusionMX7\wwwroot\securitytutorial\authenticate.cfm: line 33
    Called from
    C:\CFusionMX7\wwwroot\securitytutorial\Application.cfc: line 106
    31 : SELECT STUDENTID, STUDENTLASTNAME, STUDENTFIRSTNAME,
    STUDENTMIDDLENAME
    32 : FROM StudentClasses
    33 : WHERE STUDENTID = #FORM.Username#
    34 : </cfquery>
    35 :

  • ColdFusion Setup for Flex

    I have two questions about setting up ColdFusion to access a remote CFC from FLEX (Flash Builder 4.5).  I host several domains on my ColdFusion 8 server with IIS 6.  I would like to set things up so that I can hit a CFC that is not on the same domain as my "main" coldfusion server (ColdFusion .CFM files run fine from this domain).  I can't seem to do it though.
    If I adjust my service control endpoint so that it USES my main coldfusion domain, it works:
    _serviceControl.endpoint = "http://www.myMainColdFusionDomain.com/flex2gateway/"
    but if I try a different domain, it does not work:
    _serviceControl.endpoint = "http://www.notMyMainColdFusionDomain.com.com/flex2gateway/
    Also, I am having trouble with putting my CFC in a subdirectory and still getting it to work.  In other words, building from the above working URL, I can't seem to just add a subdirectory to the URL--it doesn't work:
    _serviceControl.endpoint = "http://www.myMainColdFusionDomain.com/subDirectory/flex2gateway/"
    I am sorry if what I am asking seems very basic, I am just learning.
    Thank you.

    Ok, I think worked this out for myself.
    First, I adjusted my default website in IIS so that it pointed to the directory of the domain I wanted to use, that cleared up the domain issue--not really the way I thought it would be done, but it works...
    Next for my directory question, I used a dot notation to indicate there is a subdirectory, and plugged it into my super class as follows: 
    _serviceControl.source = "subdirectory.myCFCsName";

Maybe you are looking for

  • How to connect my iPhone and iPad to Apple TV

    How to connect my iPhone and iPad to Apple TV

  • Pop-up window for eBay

    I use dreamweaver to make some eBay adds for work, so I can just copy the code into eBay's web site. This also allows me to input more pictures and links in my advert. Is there a way to set a behaviour so a picture will open up in a new smaller pop u

  • 8800 screen light

    Does anyone know if it is at all possible to adjust the time out on the screen light and make it stay on longer?

  • Date format in file Formetter.js using Web IDE

    Hi Experts, I know that at the forum includes discussions which relate to date format, but I couldn't find topics of the date format using Formatter.js file in Web IDE. To the point. It's the fragment of my index.html file, where can find resourceroo

  • "Accounts" questions

    I have a slot loading iMac that is shared by my wife, 2 kids and myself. I have 10.4.7 setup with Accounts so that each of us has a separate login. I have fast user switching enabled. Two questions: 1. If I am running a program that requires Classic