Coldfusion essential training, working with databases

I am currrently working through the videos coldfusion9 essential training, the current folder is working with databases, after following the tutorial very carefully on section 4.08 "Creating an application directory and home page"
It states making a new project & naming it " Photo Gallery"  after going through the process, of setting up the project and copying and pasting the relevant files into the folder,  there are now four folders in the project namely" home, images, Image source and styles.css"
The tutorial then tells you to click on the "home" file and inside there are default.htm files,  this file opens fine in the browser and shows all the details and banner and color,   the tutorial goes on to say right click the default.htm file and change it to index.cfm
after making this change however and loading up the page as a cfm file all it  shows is the text of the page with no banner or color
can anybody help to throw some light on the problem thanks
dm

Lynda.com Tutorials by David Gassner

Similar Messages

  • How OEM works with database

    Hi,
    We use OEM (12c),have db (11.2,10.2/1).
    How OEM works with database?
    When oem initated a job aginst  db,What are the steps preformed by OEM?What are the info updated in OEM DB and Normal DB regading jobs?And Where?
    Br

    At what point do you get this message?
    Have a look at the Windows Service. Ensure the EM Agent is running. Your database and Listener may be running, but if the Agent is not running, you will not be able to see correct status.
    Stop and start the Agent

  • OPA work with database repository

    Does OPA work with database repository?

    OPA does not provide direct database connectivity. Your application retrieves all necessary data, then passes it to OPA for performing auditable determinations and calculations.
    Davin Fifield

  • ColdFusion Script not work with Httpservice

    At first I use PHP to generate xml output on page then use
    the data to my httpservice with resultformat e4x. Everything is
    fine. But now I want to use coldfusion script since I'm planning to
    use ColdFusion as my web server. I have this script located on my
    server and generate the data in XML file then the XML file is used
    in my web, loaded through httpservice.
    My PHP code was like this :
    <?php
    define( "DATABASE_SERVER", "localhost" );
    define( "DATABASE_USERNAME", "root" );
    define( "DATABASE_PASSWORD", "" );
    define( "DATABASE_NAME", "MyCinema" );
    $mysql = mysql_connect(DATABASE_SERVER, DATABASE_USERNAME,
    DATABASE_PASSWORD) or die(mysql_error());
    mysql_select_db( DATABASE_NAME );
    $Query = "SELECT * FROM film";
    $Result = mysql_query( $Query );
    $Return = "<movies>";
    while ( $film = mysql_fetch_object( $Result ) )
    $Return .= "<film><judul>".$film->JUDUL.
    "</judul><deskripsi>".$film->DESKRIPSI.
    "</deskripsi><genre>".$film->GENRE.
    "</genre><produser>".$film->PRODUSER.
    "</produser><produksi>".$film->PRODUKSI.
    "</produksi><homepage>".$film->HOMEPAGE.
    "</homepage><durasi>".$film->DURASI.
    "</durasi><url>".$film->URL."</url></film>";
    $Return .= "</movies>";
    mysql_free_result( $Result );
    print ($Return);
    ?>
    And now I try to get the same result using coldfusion script.
    At first I dont write the XML to file, I just cfoutput it just like
    I do with PHP just print result but it doesnt work out with my
    HTTPservice. Until I try to write it to XML file then coding my
    httpservice to read directly from that XML file. here is my
    coldfusion code.
    <cfcomponent>
    <cffunction name="a" returnType="Void" output="true"
    access="remote">
    <cfprocessingdirective suppresswhitespace="Yes">
    <cfquery name="GetFilm" datasource="myCinemaData">
    SELECT b.* FROM playing a, film b
    WHERE a.kode_film=b.kode_film AND a.start >
    <cfqueryPARAM value = "#DateFormat(Now())#"
    CFSQLType = "CF_SQL_STRING">
    </cfquery>
    <cfxml variable="userXML">
    <movies>
    <cfloop query="GetFilm">
    <cfoutput>
    <film>
    <judul>#GetFilm.JUDUL#</judul>
    <deskripsi>#GetFilm.DESKRIPSI#</deskripsi>
    <genre>#GetFilm.GENRE#</genre>
    <produser>#GetFilm.PRODUSER#</produser>
    <produksi>#GetFilm.PRODUKSI#</produksi>
    <homepage>#GetFilm.HOMEPAGE#</homepage>
    <durasi>#GetFilm.DURASI#</durasi>
    <url>#GetFilm.URL#</url>
    </film>
    </cfoutput>
    </cfloop>
    </movies>
    </cfxml>
    </cfprocessingdirective>
    <cffile action="write"
    file="#expandPath(".")#\userXML.xml" output="#userXML#">
    </cffunction>
    </cfcomponent>
    Because I need to create the XML files first I try to execute
    this coldfusion script first using webservice before I execute my
    Httpservice but the XML file creation is slower than the execution
    of my httpservice afterthat so it shows an error that my XML file
    isn't not available. What can i do? I've tried to show the output
    using cfoutput and run that script directly on my httpservice just
    like the way I use print result on PHP but it produce an
    error.

    ... I try to execute this coldfusion script first using
    webservice before I execute my Httpservice but the
    XML file creation is slower than the execution of
    my httpservice afterthat so it shows an error
    that my XML file isn't not available.
    Then it might help to apply a named lock to ensure that the
    Httpservice runs only after the web service call is complete. For
    example, apply an exclusive named lock on the code that calls the
    web service and a readonly lock of the same name to the Coldfusion
    code that interacts with the Httpservice.

  • Date/Time erros when working with Database Connectivity toolkit

    Hi!,
    We are observing errors with date/time when working with LV. The error occurs when the system datetime format is set such that day precedes month (e.g. dd/mm/yyyy). Our VI uses LV 7.1, Database Connectivity 1.0 and SQL Server 2000 on a Win2000 machine.
    Problem details
    Our database in SQL server has a table having columns with data type "datetime"
    If the system date format (as set in control panel) is "mm/dd/yyyy", the 'insert into database' vi works fine. This function inserts the date and time (among other things) into the above mentioned table.
    However, when the system datetime is set to dd/mm/yyyy we start receiving error that date and time is beyond range for dates in which the date had the day field greater than 12 (e.g. 23/10/2005). With the same settings, if the date is such that day field is equal or less than 12 (e.g. 03/10/2005), we do not receive an error but the date is interpreted as 10 March 2005 rather than 03 September 2005.
    Clearly LV (or is it SQL) is mistaking the day field as month.
    We have taken care that when sending and receiving date, the format date and time string is set as per system settings.
    Thus, if system setting is "dd/mm/yyyy" our format string is "%d/%m/%Y"
    And if the setting is "mm/dd/yyyy" our format string is"%m/%d/%Y"
    Any help on problem cause and cure is welcome.
    Thanks,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Hi Xu,
    You answer led me to some very interesting fact finding on how SQL server handles date and time. I have attached a zip file which contains webpages that throw more light on this issue.
    The attached pages tell me that SQL has an inbuilt date/time reference format. The default in mm/dd/yyyy. Which explains why my VI worked when I used that format to write to SQL.
    However there is a catch:
    SQL expects the date/time to be in its inbuilt reference format when you WRITE data to SQL. If the date/time is in a different format, better tell SQL about it by using say the SET command you mentioned.
    BUT what about the date/time format when you are reading data from SQL?
    Our finding is that SQL sends date/time string in the system date format when you READ from SQL !!! That is very surprising behaviour (why differentiate between write and read?).
    Is our finding correct?
    So, we adopted the following simple strategy (yet to be fully tested):
    1) Whenever we write date/time to SQL, the string is formatted as mm/dd/yyyy. Presently, the user's SQL server is in the default state. Caveat is that if the user changes SQL date/time from default (which is mm/dd/yyyy) to anything else, our software will give errors. But then he changed it  ;-)
    2) When we read date/time from SQL we format the string as per system date/time format.
    I know this is not very robust coding. But assuming the user keeps his SQL in the current setting, should we expect smooth working?
    In other words, are there any errors and/or flaws in our strategy?
    Thanks,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

  • Make LR work with database on a network drive

    Although multiple users functionality would be great it is not what I mean with this. For starter it would be great to be able to have the database on a network drive so that several machines can use the same database (only one at a time).
    I use my laptop most of the time but sometimes I want to work with my PC so having the database on a network drive would be great. As I already have all of my images on a network drive having the same drive letters on all machines is therefore not a problem.
    I actually was able to do this with ACDSee. I could even have the cache on the network drive!

    Ha! I was going to ask for this as well. Why does Lightroom even care whether the (Windows) drive letter happens to point to a local drive or to a remote drive? The underlying database software works with either.
    Here's why I'd like this capability. I put important files like the LR database onto a remote drive so that I can then set that drive (or whatever folders I want on that drive) to be offline. There are a lot of benefits to this; some are: (1) it allows me to work with LR on my laptop when the laptop is not connected to my network and (2) I get two copies of the LR database automatically (one on the PC hosting the remote drive and one in the CSC folder on my laptop).
    And as far as I can tell you cannot request a backup (or a restore for that matter) from the File menu. You have to wait until the time specified in the Preferences has elapsed before LR prompts you to do a backup. I'd much prefer to be able to do a backup on my own schedule, and outside of LR. And what do you do with the backup file(s) that LR creates when you need to do a restore? (I can't find a Restore command.)
    Thanks.
    -glenn-

  • Help with working with databases

    Hello-
    I'm familiar with the basics of Dreamweaver and now I want to
    start working with dynamic content. To start, all I want to do is
    create a page that has a form where users can input search criteria
    to search a database and then are sent to a page that returns the
    results. I found a tutorial somewhere else online but I couldn't
    get it to work.
    From what I can tell the process may be a bit lengthy, so I
    don't expect that someone will post step-by-step directions in this
    forum (although that would be awesome!). But, can anybody point me
    in the right direction, or give me a basic run-down of what I need
    to do to set this all up in Dreamweaver? I know I have to have a
    server to work with and I'd like to use the IIS that comes with
    Windows XP. I've got that all setup already, so now I just need to
    know what to do to get the pages up and running.
    Any help or direction is greatly appreciated.
    Thanks.

    Hallo SuKeSnr1,
    Ik wil je gerust verder helpen, je mag me mailen op
    [email protected]
    Groeten,
    "SyKeSnr1" <[email protected]> a écrit
    dans le message de news:
    [email protected]...
    >
    quote:
    Originally posted by:
    SyKeSnr1
    >
    quote:
    Originally posted by:
    Newsgroup User
    > Give your pages the extension .asp
    >
    > Page search
    >
    > Create a form, Action = page whit results.asp, method =
    get
    >
    > Create a textbox, where you put the keywords for
    searching, name it
    > "search"
    > or whatever.
    >
    > Create a submit button
    >
    >
    >
    > Page result
    >
    > Create via the bindings panel a Request.QuerySting for
    each field in the
    > DB
    > and name it the same you named the fields in your table.
    For facility put
    > "var" in front of the names
    >
    > Create a recordset with the fields you want to search in
    >
    > In advanced mode you need to ad
    >
    > SQL:
    >
    > SELECT *
    >
    > FROM yourtable
    >
    > WHERE fieldname LIKE%varyourfield% OR fieldname
    LIKE%varyourfield%, go on
    > for al the fields.
    >
    > Parameters
    >
    > Clic the + sign to ad parameters
    >
    > Name: varyourfield, Type: Text, Value:
    request.querystring("search")
    > "search
    > or whatever", Default value: %
    >
    >
    >
    > Put on the result page the data you want to show, whit a
    repeat region.
    >
    >
    >
    > This is my way and I hope this will work for you
    >
    >
    >
    > Cheers
    >
    > www.WaterlooCity.be
    >
    >
    > "MN4NU" <[email protected]> a
    écrit dans le message de news:
    > [email protected]...
    > > Hello-
    > >
    > > I'm familiar with the basics of Dreamweaver and now
    I want to start
    > > working
    > > with dynamic content. To start, all I want to do is
    create a page that
    > > has
    > > a
    > > form where users can input search criteria to
    search a database and then
    > > are
    > > sent to a page that returns the results. I found a
    tutorial somewhere
    > > else
    > > online but I couldn't get it to work.
    > >
    > > From what I can tell the process may be a bit
    lengthy, so I don't expect
    > > that
    > > someone will post step-by-step directions in this
    forum (although that
    > > would be
    > > awesome!). But, can anybody point me in the right
    direction, or give me
    > > a
    > > basic
    > > run-down of what I need to do? I know I have to
    have a server to work
    > > with
    > > and
    > > I'd like to use the IIS that comes with Windows XP.
    I've got that all
    > > setup
    > > already, so now I just need to know what to do to
    get the pages up and
    > > running.
    > >
    > > Any help or direction is greatly appreciated.
    > >
    > > Thanks.
    > >
    >
    >
    >
    >
    >
    > I completely understand how you get this to work and why
    it works,
    > however, i
    > cant find a lot of the named options you gave. I work
    with dreamweaver cs3
    > and
    > when I create a form I can not seem to find an Action
    (to input page with
    > results), method etc. Also, I am unable to find the
    request query string
    > in the
    > bindings tab/menu.
    >
    > help please, because this seems like an easy way to
    integrate search
    > function
    > that only searches my access database, exactly what I
    need, because ZOOM
    > seems
    > quite complex in setting that up.
    >
    > Most important, when setting up the binding for the
    result page, the code
    > you
    > described did not seem to work: "syntaxfout" or in
    english syntaxmistake
    > in
    > that lin:
    >
    > SELECT ProductID, Product, Omschrijving,
    Productcategorie, Prijs
    > FROM Products
    > WHERE fieldname LIKE%varProductID% OR fieldname
    LIKE%varProduct% OR
    > fieldname
    > LIKE%varOmschrijving% OR fieldname LIKE%varPrijs%
    >
    >
    >
    > Oke, I came a bit further this is how I edited my
    bindings:
    >
    > SELECT ProductID, Product, Prijs
    > FROM Products
    > WHERE Product LIKE varProduct
    > ORDER BY Marge DESC
    >
    > In the parameter I filled in:
    > Name: varProduct
    > Type: Text
    > Value: "Request.QueryString("varProduct")
    > Default value: Some text that will appear when it finds
    nothing written in
    > Dutch.
    >
    > I tested the search box by uploading my search page
    (frontpage) and the
    > searchresults.asp page.
    > When i test it by typing in a random product
    (varProduct) I get this
    > error:
    >
    > Microsoft JScript compilation error '800a03ee'
    >
    > Expected ')'
    >
    > /Searchresults.asp, line 5
    >
    > if (String("Request.QueryString("varProduct")) !=
    "undefined" &&
    >
    >
    >
    >
    > Line 5 - 7 says this in my results page code:
    >
    > 5. if (String("Request.QueryString("varProduct")) !=
    "undefined" &&
    > 6. String("Request.QueryString("varProduct")) != "") {
    > 7. Searchresults__varProduct =
    > String("Request.QueryString("varProduct"));
    >
    > Whats going wrong?
    >

  • How to work with database files on an external hard drive (USB 2.0 or 3.0)

    I have Oracle 11gR2 installed on my laptop. I would like to create a database instance on my laptop, but to put the datafiles on an external hard drive (USB 2.0 or 3.0). The external drive will always be attached to the laptop, whenever the database is used. This is going to be a development machine, just to develop a prototype. Laptop is limited to 150 GB on local disk and I want to have a 1 TB database on it. Can this be done with Oracle 11g for Windows XP SP2 ?
    I presume that a network attached storage NAS device would be better solution, but I cannot attach it on my LAN.
    Thank you,
    Milan

    Sure. You can put the data files wherever you'd like assuming that the external drive is going to be mapped to the same drive letter (I'm guessing your laptop is running Windows).
    Justin

  • Which is the Best option to work with Database using Polling or AQ or Event

    Hi,
    We can initiate a BPEL process in a SOA composite from database using Database Polling . But few people suggest not to use polling because resource will always be busy polling and heavy load can cause issues.
    So they suggest to use AQ to push message to initiate the BPEL process or SOA composite.
    Is this true??
    Also we can use EDN to intiate a process from PL/SQL.
    So is it a better option than AQ.
    What are the factors we should consider while using Poling ,AQ or Event based system?
    Regards
    Pradosh

    Any pointer to this Question??

  • Working with database in flash

    Hi!
    I am developing one full flash website, in that i have to
    create some forms which will collects information from server and
    retrieves the data from the server. These forms are like login
    forms, account request and forgot password. How can I do these in
    flash? Do you suggest me to use server side pages like aspx or
    something else? If its so, How can I retrieve the information sent
    by server side pages? Please help me. Any suggestion will be
    appreciated..! Thanks in advance!

    Hi,
    This should get you started...
    http://www.flash-creations.com/notes/servercomm_database.php
    Regards,
    Manish

  • How i can associate my app user with database role

    In my application (oracle forms application developed in-house - We are using Oracle Forms 11gR2 with WebLogic 10.3.5 ), i want to use "application user" instead of database user.
    I have an application users table, actually, i have database users,and of course, menu application works with database roles (It was developed with oracle forms menu module), my question is, How i can associate my application user with database role, for reusing oracle forms menu funcionality?. It's possible?
    Thanks,
    Edward

    user8929172 wrote:
    In my application (oracle forms application developed in-house - We are using Oracle Forms 11gR2 with WebLogic 10.3.5 ), i want to use "application user" instead of database user.
    I have an application users table, actually, i have database users,and of course, menu application works with database roles (It was developed with oracle forms menu module), my question is, How i can associate my application user with database role, for reusing oracle forms menu funcionality?. It's possible?
    Hi Edward
    You can do this by assigning the role functionality to the application user. For example
    create the table to enter user name.
    create table to enter group name.
    create table to assign user to group.
    assign role to group.
    assign functionality for the user by coding.
    hope this helps

  • How to work with framewok

    Hi,
         I want to create a small program in Xcode which create a excel speedsheet with fiew sheet and put data into sheet using
         VisualBasicforApplication.framework.
         What can i do, so that i can create/write excel files in xcode on Mac OS X?
         Please help me as soon as possible.
    Thanks

    Originally Posted by skoltogyan
    How to work with database in the Teaming ?
    I need create some web-forms and store it in the database on the server.
    Any example - how i can do this with Teaming ?
    Please, Help me.
    Serg
    Hi Serg,
    Not sure what you are looking for and I'm also no dev...
    Maybe this link will help : Episode X: Teaming Templates | Novell User Communities

  • Working with audio | Learn Premiere Pro CS6 | Adobe TV

    This movie introduces the robust audio tools in Premiere Pro. Abba Shapiro shows how to preview and trim audio in the Source Monitor. Whether it’s an audio-only file or the audio channel of a video clip, Abba shows how to enable sub-frame audio scrubbing and trimming. He also shows how to interpret clips to combine or separate stereo channels. At the same time, he introduces fundamental audio tools that are essential to working with audio in Premiere Pro.
    http://adobe.ly/To00IZ

    Is it possible to specify what audio channels to capture during capture from tape? It seems Premiere wants to mix the lavaliere mic and camera mic into a stereo track all the time, and then I have to modify audio settings and force it to mono in the project. In Final Cut pro 7, I am able to specify which audio tracks to capture, and this simplifies things in editing. I cannot see anywhere to do this in Premiere....

  • How to work with FKI1?

    hi!
    I need to make a report like fbl1n, but the credit column should be accumulative;
    if fbl1n how these lines:
    vendor     credit
    500555    100
    500555    120
    50055      -30
    my report should look like this:
    vendor     credit
    500555    100
    500555    220
    500555    190
    i was advised by someone from this forum to use transaction fki1, but i
    don't know how to work with in order to produced the desired report.
    So, can anyone help me with this?
    one last thing - transaction S_ALR_87012079 present accumulative credit of each
    month, not every line of the vendor so i can't use it instead.

    Originally Posted by skoltogyan
    How to work with database in the Teaming ?
    I need create some web-forms and store it in the database on the server.
    Any example - how i can do this with Teaming ?
    Please, Help me.
    Serg
    Hi Serg,
    Not sure what you are looking for and I'm also no dev...
    Maybe this link will help : Episode X: Teaming Templates | Novell User Communities

  • JSR 296 - How to work with arguments?

    Hi Everyone,
    I am developing an application by using a JSR 296 Swing Application Framework but I don�t make any idea about how I could manage a line-command arguments.
    Should I try through Application.getInstance().getContext().getResourceMap() or something like that?
    My intention is to get access to arguments within the method startup(). However, note that they are not directly available for use unless I create a array member and explicitly assign them to this new member (I suppose it must have a suitable way for doing this instead of I mentioned):
    I am using Netbeans 6.0 beta 1 to create this application, under the option File < New Project < Java Desktop Application
    See below a snippet. As you can see, I would like to get a value of the first argument passed by user from line command.
        * Main method launching the application.
        public static void main(String[] args) {
            launch(MyApplication.class, args);
        @Override protected void startup() {
            // here I would like to access the arguments
            String firstArg = ?
            // show main frame
            show(new MyApplicationView(this));
        }Does anyone know how to make it possible?
    ~Fernando
    Edited by: [email protected] on Oct 17, 2007 10:08 AM
    Edited by: [email protected] on Oct 17, 2007 3:18 PM

    Originally Posted by skoltogyan
    How to work with database in the Teaming ?
    I need create some web-forms and store it in the database on the server.
    Any example - how i can do this with Teaming ?
    Please, Help me.
    Serg
    Hi Serg,
    Not sure what you are looking for and I'm also no dev...
    Maybe this link will help : Episode X: Teaming Templates | Novell User Communities

Maybe you are looking for