<HTML>
<HEAD><TITLE>Using &lt;CF_UsingFilmRecord&gt;</TITLE></HEAD>
<BODY>
  <H2>Using &lt;CF_UsingFilmRecord&gt;</H2>

  <!--- Create a Film Record --->
  <CF_FilmRecord
    Action="Create"
    MovieTitle="The Bruise Brothers"
    PitchText="Identical twins fight to the finish."
    AmountBudgeted="5000"
    ReturnVariable="NewFilmID">

  <!--- Display new Film ID --->  
  <P>Inserted film record.  New FilmID is:  
  <CFOUTPUT>#NewFilmID#</CFOUTPUT>  
  
  <!--- Update a Film Record --->  
  <CF_FilmRecord
    Action="Update"
    FilmID="#NewFilmID#"
    AmountBudgeted="5000000">
  
  <!--- Update a Film Record --->  
  <CF_FilmRecord
    Action="Update"
    FilmID="#NewFilmID#"
    PitchText="Identical twins fight in a futuristic boxing match!">
  
  <!--- Show Film in Callout --->
  <CF_FilmRecord
    Action="ShowInCallout"
    FilmID="#NewFilmID#">
  
  <!--- Get information about the film --->
  <CF_FilmRecord
    Action="GetData"
    FilmID="#NewFilmID#"
    ReturnVariable="FilmData">
  
  <!--- Display Title of Movie --->  
  <P>Retrieved film information.  The title is:
  <CFOUTPUT>#FilmData.GetFilm.MovieTitle#</CFOUTPUT>  
    
  <!--- Delete A Film --->
  <CF_FilmRecord
    Action="Delete"
    FilmID="#NewFilmID#">
  
  <P>Film has been deleted.
  
</BODY>
</HTML>