Editing a record and adding cffile, please help

Hello;
I am writting an editor page for a web site. I am trying to
add cffile to the edit function. This page acts as 2 ways of
editing the DB records, it can add a new one, and it can edit an
exisitng one.
What I am trying to do is this:
1. When you add a record, you can upload an image and add all
the content in the other feilds, click the ok button and it will
upload the file, and add the file name to the DB table.
2. when you want to edit the record, the file upload feild is
blank and under it is the name of the file being used, so you can
upload a new file and change the one that record is using.
Here is my code so far, I don't have it set to do number 2.
yet, I am not sure how to do it and same goes for uploading the
file in the action script and making it add it to the DB record.
edit page code:
<cfset FormFieldList = "title,image,discription,body">
<cfif ParameterExists(URL.RecordID)>
<cfquery name="featRec" dataSource="creative"
maxRows=1>
SELECT feature.title, feature.image, feature.discription,
feature.body, feature.ID AS ID_Field
FROM feature
<cfif ParameterExists(URL.RecordID)>
WHERE feature.ID = #URL.RecordID#
</cfif>
</cfquery>
<cfif not ListFind( FormFieldList, "ID" )>
<cfset FormFieldList = ListAppend( FormFieldList, "ID"
)>
</cfif>
<cfset title_Value = '#featRec.title#'>
<cfset image_Value = '#featRec.image#'>
<cfset discription_Value = '#featRec.discription#'>
<cfset body_Value = '#featRec.body#'>
<cfelse>
<cfset title_Value = ''>
<cfset image_Value = ''>
<cfset discription_Value = ''>
<cfset body_Value = ''>
</cfif>
<head>
</head>
<body>
<cfoutput query="featRec">
<form action="Action.cfm" method="post" name="content"
id="content" onsubmit="saveIt()">
<input type="hidden" name="FieldList"
value="#FormFieldList#">
<cfif ParameterExists(URL.RecordID)>
<input type="hidden" name="RecordID"
value="#URL.RecordID#">
<input type="hidden" name="ID" value="#URL.RecordID#">
</cfif>
<input type="text" name="title" class="textInputs"
value="#title_Value#" maxLength="510">
<!--- this is the file uploader --->
<input type="file" name="MYFile">
<cfif MYFile IS defined>
#file#
</cfif>
<!--- end file uploader code --->
<input type="text" name="image" class="textInputs"
value="#image_Value#" maxLength="510">
<input type="text" name="discription" class="textInputs"
value="#discription_Value#" maxLength="510">
<textarea cols="" rows="" name="PDSeditor" style="display:
none">#Body_Value#</textarea>
</cfoutput>
<input type="submit" class="formButtons" name="feat_OK"
value=" OK ">
<input type="submit" class="formButtons"
name="feat_Cancel" value="Cancel">
</form>
Action Script:
<cffile Action="upload" filefield="uploadfile"
destination="
http://www.myurl.com/img/feature"
nameconflict="MAKEUNIQUE">
<cfif ParameterExists(Form.RecordID)>
<cfupdate dataSource="#sitedatasource#"
tableName="feature" formFields="#Form.FieldList#">
<cflocation url="feature_RecordView.cfm>
<cfelse>
<cfquery datasource="#sitedatasource#" dbtype="ODBC"
username="#siteUserID#" password="#sitePassword#">
INSERT INTO feature (title, image, discription, Body)
VALUES ('#form.title#', '#form.image#', '#form.description#',
'#form.PDSeditor#')
</cfquery>
<cflocation url="feature_RecordView.cfm>
</cfif>
<!--- End code --->
Can anyone help me? I am confused on how to make this work.
Thank you.
Phoenix

Las listas de reproducción de vídeos se eliminaron del ios6 así que tienes que modificar los archivos de cada video y modificarlos como programas de TV, es la única solución por el momento. Atentamente desde Chile. Esteban flores

Similar Messages

  • HT1349 my iphone was stolen at the airport, it was in the laggage. it is still sealed and not activated. please help

    Dear Sirs,
    my iphone was stolen at the airport, it was in the laggage. it is still sealed and not activated. please help how to find my iphone.
    these are my iphone detail:
    IMEI Numbers for Item 000010
    Serial Numbers for Item 0010
    F7*******5MV
    <Edited By Host>

    You are not addressing Apple. They would not be able to help you. This is a user to user forum. If the device had not been activated, there is no way to track it. Report the theft to the appropriate law enforcement agency.

  • My iphone4  ipod shows no video, but i have videos recorded by my iphone. please help me

    my iphone4  ipod shows no video, but i have videos recorded by my iphone. please help me

    Just to to clear.
    The Photos app on your iPhone is the only place you will see your recorded movies and/or movies synced from iPhoto on your computer.
    As Rudegar suggests, the Photo app is divided between your camera roll where unsynced movies/photos are kept and Photo Library shows movies/photos that have been synced from iPhoto on your computer to your iPhone.
    Like music, your movies will only be available in the iPod app if you purposely imported your recordings into iTunes itself, i.e. they exist in the movies section of iTunes on your computer.
    Hope this helps, Rodí

  • Manage ODS : Difference of Transferred Records and Added Records

    Hi there,
      When I click on Manage ODS , I have the following fields
      Transferred Records and Added Records.
      Please advice the difference

    Hi,
    Transferred Record coloumn indicated how many records were tranferred from the source system to BW,means how many records were extracted at that point of time and another Column indicates that the total number of records added to your data target.these two cloumn vales may not be same for all the time,becoz if you have filters at the update rule level....in this case numbers records tranfered and numbers records added might be different.......
    Transferred refers to the number of records that are transferred from the datasource (arrive in BW). Added is the number records inserted into the ODS. Both can be different numbers, like due to any processing of the data.
    Added records refer to which is really inserted in ODS (your start routine, for example, can reduce the number of transferred records by deleting something!)
    Ex
    transferred records means the total records from source e.g ods. say data coming from ods
    docnumber docitem customer qty
    001 1 x 10
    001 2 y 20
    002 1 x 30 (3 records)
    and your infocube has char customer and keyfigure qty, so
    record added
    customer qty
    x 40
    y 20 (2 records)
    so here you have transferred records = 3 and added records = 2
    Refer these posts:
    Re: transferred records and added records
    Re: Transfered and Added Records
    Re: Clarification about ODS - Transferred & Added records
    -Shreya

  • My appstore wont let me download anything. It says i have to agree to the terms and i agree and again it pop up the same thing over and over! Please help me

    My appstore wont let me download anything. It says i have to agree to the terms and i agree and again it pop up the same thing over and over! Please help me

    I thought i was the only one!! but its happening on my ipad! and i dont even want to try on my iphone uhhh its annoying!

  • "Connect to iTunes to Use Push Notifications" comes almost in every app that I open and it does not notify me when I got message in Whatsapp and Viber. Please help me to overcome it, it is becoming quite annoying!

    "Connect to iTunes to Use Push Notifications" comes almost in every app that I open and it does not notify me when I got message in Whatsapp and Viber. Please help me to overcome it, it is becoming quite annoying!

    Did you get any help on this? From what I can see from surfing this site, it's a BUG that no one has offered a solution to. It sometimes happens after a 'reset' and going to ITunes does not offer a way to 'set up push notifications'.

  • I have an itunes account on my home PC. I want to use my same account but on my laptop. How do i do this with out wiping out my phone and backing up all my Pictures and Apps? Please Help.

    I have an itunes account on my home PC. I want to use my same account but on my laptop. How do i do this with out wiping out my phone and backing up all my Pictures and Apps? Please Help.

    Copy everything from the old computer or your backup copy of your old computer to your new one.
    Type "move itunes library from pc to mac" or similar into the google search bar.

  • I'm having multiple crashes on my new 5s. I can't connect to my Mac Pro!! Power cord broken. How can I fix this without connecting to my MacBook? Very frustrating and disappointing. Please help!!!

    I'm having multiple crashes on my new 5s. I can't connect to my Mac Pro!! Power cord broken. How can I fix this without connecting to my MacBook? Very frustrating and disappointing. Please help!!!

    Hi there Rlong50,
    You may want to try force closing all open apps and resetting the device as an initial troubleshooting step. Take a look at the articles below for more information.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    -Griff W.

  • I have a problem with itunes when I sync the saved music and want to sync my iphone 5 ios 7.0.6 no longer passes the music thing is that just stays on "waiting for sync" and not worry please help are more than 400 songs that do not want to hear who are wi

    I have a problem with itunes when I sync the saved music and want to sync my iphone 5 ios 7.0.6 no longer passes the music thing is that just stays on "waiting for sync" and not worry please help are more than 400 songs that do not want to hear who are wi

    Plawexki wrote:
    ...  do you know if the contacts, photos, messages etc will be wiped?
    Yes... Everything will be Wiped and Replaced with what is currently on Your Mac.
    SYNCING with iTunes
    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/
    You may find this information of interest...
    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • Iphone 4 went into recovery mode when trying to restore, only option available now is to "restore and update" however this will not work, how can you restore from a backup once in recovery mode and only option is "restore and upgrade"? Please help!

    iPhone 4 went into recovery mode when trying to restore it. Now the only option iTunes allows is for "restore & upgrade", it is not offer an option to restore from a backup, says that must first do the upgrade, when attempting to do the upgrade the iPhone won't accept it.
    How can I restore from a back up in recovery mode when the only option is "restore and upgrade"?
    Please help.

    You don't you must restore your phone first and then you will have the option to restore from your backup.
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support

  • My iPod shuffle will not turn on, nor is it recognized by the computer to pull up iTunes. I have order new USB cords and nothing. Please help!

    My iPod shuffle will not turn on, nor is it recognized by the computer to pull up iTunes. I have order new USB cords and nothing. Please help! Not sure of the generation of iPod shuffle, I think 3rd.

    first: why did you download the iOS Beta 8? If you are a developer, go to the Apple Developers website and check what they can do for your case.
    second: setup an appointment to a Genius Bar for service.

  • I need to pass a query in form of string to DBMS_XMLQUERY.GETXML package...the parameters to the query are date and varchar ..please help me..

    I need to pass a query in form of string to DBMS_XMLQUERY.GETXML package...the parameters to the query are date and varchar ..please help me build the string .Below is the query and the out put. ( the string is building fine except the parameters are with out quotes)
    here is the procedure
    create or replace
    procedure temp(
        P_MTR_ID VARCHAR2,
        P_FROM_DATE    IN DATE ,
        P_THROUGH_DATE IN DATE ) AS
        L_XML CLOB;
        l_query VARCHAR2(2000);
    BEGIN
    l_query:=  'SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),''9999999.000'') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),''$9,999,999.00'') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),''9999999.000'') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,''mm/dd/yyyy'') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,''hh24:'
          ||'mi''), ''00:'
          ||'00'',''24:'
          ||'00'', TO_CHAR(s_datetime+.000011574,''hh24:'
          ||'mi'')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = '
        ||P_MTR_ID||
       ' AND s_mtrch   = ''1''
        AND s_datetime BETWEEN TO_DATE('
        ||P_FROM_DATE||
        ',''DD-MON-YY'') AND (TO_DATE('
        ||P_THROUGH_DATE||
        ',''DD-MON-YY'') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = '
        ||P_MTR_ID||
        ' AND s_mtrch   = ''2''
        AND s_datetime BETWEEN TO_DATE('
        ||P_FROM_DATE||
        ',''DD-MON-YY'') AND (TO_DATE('
        ||P_THROUGH_DATE||
        ','' DD-MON-YY'') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)';
    SELECT DBMS_XMLQUERY.GETXML('L_QUERY') INTO L_XML   FROM DUAL;
    INSERT INTO NK VALUES (L_XML);
    DBMS_OUTPUT.PUT_LINE('L_QUERY IS :'||L_QUERY);
    END;
    OUTPUT parameters are in bold (the issue is they are coming without single quotes otherwise th equery is fine
    L_QUERY IS :SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),'9999999.000') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),'$9,999,999.00') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),'9999999.000') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,'mm/dd/yyyy') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,'hh24:mi'), '00:00','24:00', TO_CHAR(s_datetime+.000011574,'hh24:mi')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = N3165 AND s_mtrch   = '1'
        AND s_datetime BETWEEN TO_DATE(01-JAN-13,'DD-MON-YY') AND (TO_DATE(31-JAN-13,'DD-MON-YY') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = N3165 AND s_mtrch   = '2'
        AND s_datetime BETWEEN TO_DATE(01-JAN-13,'DD-MON-YY') AND (TO_DATE(31-JAN-13,' DD-MON-YY') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)

    The correct way to handle this is to use bind variables.
    And use DBMS_XMLGEN instead of DBMS_XMLQUERY :
    create or replace procedure temp (
      p_mtr_id       in varchar2
    , p_from_date    in date
    , p_through_date in date
    is
      l_xml   CLOB;
      l_query VARCHAR2(2000);
      l_ctx   dbms_xmlgen.ctxHandle;
    begin
      l_query:=  'SELECT
        a.s_datetime DATETIME,
        a.downdate Ending_date,
        a.downtime Ending_time,
        TO_CHAR(ROUND(a.downusage,3),''9999999.000'') kWh_Usage,
        TO_CHAR(ROUND(a.downcost,2),''$9,999,999.00'') kWh_cost,
        TO_CHAR(ROUND(B.DOWNUSAGE,3),''9999999.000'') KVARH
      FROM
        (SELECT s_datetime + .000011574 s_datetime,
          TO_CHAR(S_DATETIME ,''mm/dd/yyyy'') DOWNDATE,
          DECODE(TO_CHAR(s_datetime+.000011574 ,''hh24:'
          ||'mi''), ''00:'
          ||'00'',''24:'
          ||'00'', TO_CHAR(s_datetime+.000011574,''hh24:'
          ||'mi'')) downtime,
          s_usage downusage,
          s_cost downcost
        FROM summary_qtrhour
        WHERE s_mtrid = :P_MTR_ID
        AND s_mtrch   = ''1''
        AND s_datetime BETWEEN TO_DATE(:P_FROM_DATE,''DD-MON-YY'')
                           AND (TO_DATE(:P_THROUGH_DATE,''DD-MON-YY'') + 1)
        ) a,
        (SELECT s_datetime + .000011574 s_datetime,
          s_usage downusage
        FROM summary_qtrhour
        WHERE s_mtrid = :P_MTR_ID
        AND s_mtrch   = ''2''
        AND s_datetime BETWEEN TO_DATE(:P_FROM_DATE,''DD-MON-YY'')
                           AND (TO_DATE(:P_THROUGH_DATE,'' DD-MON-YY'') + 1)
        ) B
      where a.S_DATETIME = B.S_DATETIME(+)';
      l_ctx := dbms_xmlgen.newContext(l_query);
      dbms_xmlgen.setBindValue(l_ctx, 'P_MTR_ID', p_mtr_id);
      dbms_xmlgen.setBindValue(l_ctx, 'P_FROM_DATE', to_char(p_from_date, 'DD-MON-YY'));
      dbms_xmlgen.setBindValue(l_ctx, 'P_THROUGH_DATE', to_char(p_through_date, 'DD-MON-YY'));
      l_xml := dbms_xmlgen.getXML(l_ctx);
      dbms_xmlgen.closeContext(l_ctx);
      insert into nk values (l_xml);
    end;

  • The enter key is not working in firefox but it has working fine in chrome and IE so please help me to rid out from this.

    The enter key is not working in firefox but it has working fine in chrome and IE so please help me to rid out from this.

    Hello gokulaan, '''try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • What's the difference between Transferred Records and Added Records?

    When right click an ODS or a cube to select Manage, then under the 3rd tab called Requests, there are two columns called Transferred Records and Added Records, what's the difference between these two?
    Thanks

    Hello KeLviN,
    How r u ?
    Consider a realtime example.
    Assume a transfer of Transactional Data from R/3(with PSA) which is having Unit values in it.
    Now, I found in RSA3 2844168 of records. In BW I saw one Data Packet with 306 error records(because of a UNIT value is not available in BW T006 table, Eg. YDD) which are automatically collected in PSA. Now in the Monitor screen you could see 2 Monitor status with GREEN Signals for 2 set of data.
    1. with 2843862 records
    2. with 306 records
    Now, if u manage the Data Target you will get 2844168 in the Transferred Records & 2843862 in the Added Records. and the 306 error records are in the PSA.
    Hope this is clear.
    Best Regards....
    Sankar Kumar
    +91 98403 47141

  • I try to access the itunes store and my bar goes halfway and stop. Please help

    I am trying to access the Itunes Store and my bar goes halfway and stop.
    Please help.

    Is it endlessly saying "Accessing iTunes Store"? Or is something a bit different going on?

Maybe you are looking for