• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Error Occurred While Processing Request Element REQUESTOR is undefined in FORM.

Community Beginner ,
May 01, 2020 May 01, 2020

Copy link to clipboard

Copied

I am taking over for someone that coded a page a long time ago and is no longer at our office.  I am having a heck of a time figuring out why i keep getting this error.  This seemed to work yesterday and not sure what changes were made but when i go to submit this page i get this error and can't figure it out.  any help would be greatly appreciated it.

<!--- Get the info needed --->

<cfquery name="Requestor" datasource="" username="" password="">
SELECT *
FROM v_employeeinformation
ORDER BY v_employeeinformation.Last_Name
</cfquery>

<!---
<cfquery name="Recordset1" datasource="" username="" password="">
SELECT * FROM v_helpdesk
</cfquery>
--->

<cfquery name="OITAssigned" datasource="" username="" password="">
SELECT *
FROM v_employeeinformation
WHERE v_employeeinformation.Department LIKE 'Information Technology'
ORDER BY v_employeeinformation.Last_Name
</cfquery>
<cfquery name="OITStaff" datasource="" username="" password="">
SELECT *
FROM v_employeeinformation
WHERE v_employeeinformation.Department LIKE 'Information Technology'
ORDER BY v_employeeinformation.Last_Name
</cfquery>

<cfquery name="Recordset3" datasource="" username="" password="">
SELECT * FROM v_helpdesklists ORDER BY v_helpdesklists.Category
</cfquery>

<!--- End Getting the info needed --->

 

<cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
<cfif IsDefined("FORM.MM_UpdateRecord") AND FORM.MM_UpdateRecord EQ "form1">

<!--- Include the CFIF to insert right category --->
<CFINCLUDE template="cfif_category.cfm">

<cfquery datasource="">
UPDATE v_helpdeskfindnames SET Summary=
<cfif IsDefined("FORM.Summary") AND #FORM.Summary# NEQ "">
'#FORM.Summary#'
<cfelse>
NULL
</cfif>
, Requestor=#FORM.Requestor#, OIT_Staff=#FORM.OIT_Staff#, Priority=
<cfif IsDefined("FORM.Priority") AND #FORM.Priority# NEQ "">
'#FORM.Priority#'
<cfelse>
NULL
</cfif>
, Open_Date=
<cfif IsDefined("FORM.Open_Date") AND #FORM.Open_Date# NEQ "">
'#FORM.Open_Date#'
<cfelse>
NULL
</cfif>
, Min_Spent=
<cfif IsDefined("FORM.Min_Spent") AND #FORM.Min_Spent# NEQ "">
'#FORM.Min_Spent#'
<cfelse>
NULL
</cfif>
, OIT_Time_Spent=
<cfif IsDefined("FORM.OIT_Time_Spent") AND #FORM.OIT_Time_Spent# NEQ "">
'#FORM.OIT_Time_Spent#'
<cfelse>
NULL
</cfif>
, Close_Date=
<cfif IsDefined("FORM.Close_Date") AND #FORM.Close_Date# NEQ "">
'#FORM.Close_Date#'
<cfelse>
NULL
</cfif>
, Description=
<cfif IsDefined("FORM.Description") AND #FORM.Description# NEQ "">
'#FORM.Description#'
<cfelse>
NULL
</cfif>
, Solution=
<cfif IsDefined("FORM.Solution") AND #FORM.Solution# NEQ "">
'#FORM.Solution#'
<cfelse>
NULL
</cfif>
, Type=
<cfif IsDefined("FORM.Type") AND #FORM.Type# NEQ "">
'#FORM.Type#'
<cfelse>
NULL
</cfif>
, Category=
<cfif IsDefined("FORM.Category") AND #FORM.Category# NEQ "">
'#FORM.Category#'
<cfelse>
NULL
</cfif>
WHERE Ticket_Num=#form.Ticket_Num#
</cfquery>
<cflocation url="editticketaction.cfm">
</cfif>

<cfquery name="Recordset1" datasource="" username="" password="">
SELECT *
FROM v_helpdeskfindnames
WHERE v_helpdeskfindnames.Ticket_Num LIKE '#url.Ticket_Num#'
</cfquery>

<!--- sample code for select

<select name="select" name="userName">
<cfoutput query="getUser">
<option value="#id_user_pk#" <cfif #URL.idUser# EQ #id_user_pk#>selected="selected"</cfif>>#name#</option>
</cfoutput>

--->

<html>
<head>
<title>Edit Ticket - OIT Helpdesk Tracker</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- American format mm/dd/yyyy -->
<script language="JavaScript" src="calendar2.js"></script><!-- Date only with year scrolling -->
</head>

<body>
<cfset currentdate = DateFormat(now(), 'mmm dd, yyyy')>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="Images/heading.gif" width="332" height="31"></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="29" colspan="2"> <table width="100%" height="33" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="33" bgcolor="91db5a">
<TABLE width="100%" height=33 border=0 cellPadding=0 cellSpacing=0 bgColor=#91db5a>
<TBODY>
<TR>
<TD width="89" noWrap bgColor=#c8edad><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><STRONG>&nbsp;
<a href="index.cfm">&nbsp;<FONT color=black>Home</FONT></a>
&nbsp;</STRONG></font></TD>
<TD width="348" noWrap><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><STRONG>&nbsp;
<A
href="http://www.visualpharm.com/faq.html"></A> &nbsp;</STRONG></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><STRONG>&nbsp;
<A
href="http://www.visualpharm.com/overview.html"></A> &nbsp;</STRONG></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><STRONG>&nbsp;
<A
href="http://www.visualpharm.com/contacts.html"></A> &nbsp;</STRONG></font></TD>
<td width="332"><div align="right"><font color="#FFFFFF" size="4" face="Verdana, Arial, Helvetica, sans-serif"></font></div></td>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table width="100%" height="60" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="28%" bgcolor="#f3fced">&nbsp;</td>
<td width="72%" bgcolor="#e6f9d8">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td height="15">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="138" colspan="2">
<table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#999999">
<tr>
<td colspan="3" valign="bottom">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="100%"><div align="center">
<form method="post" name="form1" action="<cfoutput>#CurrentPage#</cfoutput>">
<table width="100%" border="0">
<tr>
<td height="45" colspan="4"><div align="center"><img src="Images/editticketheading.gif" width="140" height="33"></div></td>
</tr>
<tr>
<td width="14%"><div align="left"><font color="#69C029"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Ticket Number </font></strong></font></div></td>
<td width="34%"><cfoutput><strong><font color="##69C029" size="2" face="Verdana, Arial, Helvetica, sans-serif">#Recordset1.Ticket_Num#</font></strong></cfoutput></td>
<td width="15%"><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#69C029" size="2">Ticket Creator</font></strong></font></div></td>
<td width="37%"><strong><cfoutput><font color="##69C029" size="2" face="Verdana, Arial, Helvetica, sans-serif">#Recordset1.ITStaffPreferredName# #Recordset1.ITStaffLastName#</font></cfoutput></td>
</tr>
<tr>
<td><div align="left"><font color="#69C029"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Summary</font></strong></font></div></td>
<td><input type="text" name="Summary" value="<cfoutput>#Recordset1.Summary#</cfoutput>" size="32"></td>
<td width="20%"><strong><font color="#69C029" size="2" face="Verdana, Arial, Helvetica, sans-serif">OIT Staff Assigned</font></strong></td>
<td><strong><cfoutput><font color="##69C029" size="2" face="Verdana, Arial, Helvetica, sans-serif">#Recordset1.ITAssignedPreferredName# #Recordset1.ITAssignedLastName#</font></cfoutput></td>
</tr>
<tr>
<td><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#69C029" size="2">Requestor</font></strong></font></div></td>
<td><strong><cfoutput><font color="##69C029" size="2" face="Verdana, Arial, Helvetica, sans-serif">#Recordset1.RequestorPreferredName# #Recordset1.RequestorLastName#</font></cfoutput></td>
<!--
<td><div align="left"><font color="#69C029"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Type</font></strong></font></div></td>
<td><div align="left"><font color="#69C029"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><cfoutput>#Recordset1.Type#</cfoutput></font></strong></font>
-->
</td>
<td>
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#69C029" size="2">Priority</font></strong></font></div></td>
<td>

<select name="Priority" required="yes">
<option value="High" <cfif #Recordset1.Priority# EQ "High">selected="selected"</cfif>>High</option>
<option value="Medium" <cfif #Recordset1.Priority# EQ "Medium">selected="selected"</cfif>>Medium</option>
<option value="Low" <cfif #Recordset1.Priority# EQ "Low">selected="selected"</cfif>>Low</option>
</select>

</td>
</tr>
<tr>
<td><div align="left"><font color="#69C029"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Category</font></strong></font></div></td>
<td>

<select name="Category" name="Category1">
<cfoutput query="Recordset3">
<option value="#Category#" <cfif #Recordset1.Category# EQ #Category#>selected="selected"</cfif>>#Recordset3.Category#</option>
</cfoutput>

</td>
<td><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#69C029" size="2">Date Requested</font></strong></font></div></td>
<td><input type="text" name="Open_Date" value="<cfoutput>#DateFormat(Recordset1.Open_Date, 'mm/dd/yyyy')#</cfoutput>" size="32">&nbsp;<a href="javascript&colon;cal4.popup();"><img src="Images/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a></td>
</tr>
<tr>
<td><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#69C029" size="2">Minutes Spent</font></div></td>
<td><input type="text" name="Min_Spent" value="<cfoutput>#Recordset1.Min_Spent#</cfoutput>" size="5"></td>
<td><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#69C029" size="2">Date Completed </font></strong></font></div></td>
<td><input type="text" name="Close_Date" value="<cfoutput>#DateFormat(Recordset1.Close_Date, 'mm/dd/yyyy')#</cfoutput>" size="32">&nbsp;<a href="javascript&colon;cal5.popup();"><img src="Images/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><strong><font color="#69C029" size="2" face="Verdana, Arial, Helvetica, sans-serif">OIT Time Spent</font></strong></td>
<td><input type="text" name="OIT_Time_Spent" value="<cfoutput>#Recordset1.OIT_Time_Spent#</cfoutput>" size="5">&nbsp;<font color="#69C029" size="2" face="Verdana, Arial, Helvetica, sans-serif">(minutes)</font> </td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><div align="left"><font color="#69C029"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Problem</font></strong></font></div></td>
<td>&nbsp;</td>
<td><div align="left"><font face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#69C029" size="2">Solution</font></strong></font></div></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><textarea name="Description" cols="40" rows="8"><cfoutput>#Recordset1.Description#</cfoutput></textarea></td>
<td>&nbsp;</td>
<td><textarea name="Solution" cols="40" rows="8"><cfoutput>#Recordset1.Solution#</cfoutput></textarea></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><input type="submit" value="Update record"></td>
</tr>
</table>
<input type="hidden" name="MM_UpdateRecord" value="form1">
<br>
</form>

<script language="JavaScript">
<!-- // create calendar object(s) just after form tag closed
// specify form element as the only parameter (document.forms['formname'].elements['inputname']);
// note: you can have as many calendar objects as you need for your application
var cal4 = new calendar2(document.form1.Open_Date);
cal4.year_scroll = true;
cal4.time_comp = false;
var cal5 = new calendar2(document.form1.Close_Date);
cal5.year_scroll = true;
cal5.time_comp = false;
//-->
</script>
<p>&nbsp;</p>
</div></td>
</tr>
</table></td>
</tr>
</table>

<br>
<div align="center"></div>




</td>
</tr>
<tr bgcolor="#e6f9d8">
<td colspan="2">&nbsp;</td>
</tr>
</table>
</body>
</html>

Views

2.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 01, 2020 May 01, 2020

Copy link to clipboard

Copied

I see you reference FORM.Requestor, which I assume is where the error is occuring, but at the top you have a query named "Requestor", that you do not seem to reference anywhere, that will be replacing any "Requestor" variable from the form.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 01, 2020 May 01, 2020

Copy link to clipboard

Copied

That's an interesting observation, John. But note first that his reference to the requestor var is indeed prefixed with form., so even if they WERE using that query called requestor, it would work (as long as they were careful), but you're right that it could be confusing (to CF or a reader of the code).

 

But I don't even see that the code is showing ANY field called requestor in the form. I'd think that was the real problem.

 

jbulldog13, I know you said you are "just taking over" for someone, but I don't see how this could ever have worked. You leave open the possiblity that someone may have changed it since it worked yesterday. If you confirm the file has a date modified date since then, it seems someone removed the field that this code expects to reference. (And maybe it's that you can remove the reference to the field, if it's no longer needed.)

 

It may help for us to know: is this a situation where the person who left was the only CFML developer? And are you or others not needing to "fix things" even when you may not really be familiar with CFML? If so, this could be a slog for you, with one such challenge after another. But this community is one place to get help, and there are others. I point to them here: https://www.cf411.com/cfhelp. Hope the transition goes smoothly for you.


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 01, 2020 May 01, 2020

Copy link to clipboard

Copied

You are correct Charlie, I should have read through one more time before replying.

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 04, 2020 May 04, 2020

Copy link to clipboard

Copied

I am working on restoring the file to when i know it worked, but we have been workign from home and hard to get physcal access to the building.  It takes some time. Unforunately I know nothing of coldfusion and just was assinged since they left so long ago and noone has touched this system in a while and now they want to dig back into it.  I do appreicate the assitance.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 04, 2020 May 04, 2020

Copy link to clipboard

Copied

To your situation, and your org seemingly just wanting "to dig back into" this system, I'll add some more info that may help you (and folks in your situation).

 

1) First, I suppose that CF in general may have been neglected. In that case, you may need also to update cf (within whatever version you're on, let alone perhaps to a newer version), as well as to update the cf web server connector (which is needed after various cf updates), and the finally to update the jvm that cf runs atop.

 

Getting these updated can take as little as 15 mins (all 3, not each), for someone comfortable with the process. (And even upgrading CF to a new version can go simply for some folks, though may take longer for others.)

 

And the steps for doing these updates have been covered in various docs and blog posts. I'm just saying consider getting them done, for security sake especially, as well as for bug fixes. There have been 9nuodates to cf2018 

 

2) While some will prefer to try such things on their own, note that you can just get direct help from folks offering such services.

 

When it comes to updates or general troubleshooting, I list several such alternatives (including myself) at cf411.com/cftrouble.

And if you need help with CFML development, I list folks/orgs doing that at cf411.com/cfappdev.

 

3) And finally, as you're just getting into cf, note that there are many more self-help resources from docs (cf411.com/dochelp), to tutorial (cf411.com/cftut), to online CF communities of various forms (cf411.com/cfhelp). And that cf411.com site itself has many more resources and tools to help any CFer, new or experienced.

 

Hope the effort goes well.

To your situation, and your org seemingly just wanting "to dig back into" this system, I'll add some more info that may help you (and folks in your situation).
 
1) First, I suppose that CF in general may have been neglected. In that case, you may need also to update cf (within whatever version you're on, let alone perhaps to a newer version), as well as to update the cf web server connector (which is needed after various cf updates), and the finally to update the jvm that cf runs atop.
 
Getting these updated can take as little as 15 mins (all 3, not each), for someone comfortable with the process. (And even upgrading CF to a new version can go simply for some folks, though may take longer for others.) And the steps for doing these updates have been covered in various docs and blog posts.

My point is that you or someone there should consider getting them done, for security sake especially, as well as for bug fixes. At this writing, there have been 9 updates to cf2018, 15 to cf2016, and so on. And both Java 8 and 11 were updated last month.
 
2) While some will prefer to try such updates on their own, note that you can just get direct help from folks offering such services.
 
When it comes to updates or general troubleshooting, I list several such alternatives (including myself) at cf411.com/cftrouble.

And if you need help with CFML development, I list folks/orgs doing that at cf411.com/cfappdev.
 
3) And finally, as you're just getting into cf, note that there are many more self-help resources you can turn to from docs (cf411.com/dochelp), to tutorial (cf411.com/cftut), to online CF communities of various forms (cf411.com/cfhelp). And my cf411.com site itself has many more resources and tools to help any CFer, new or experienced.
 
Hope the effort goes well.


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 01, 2020 May 01, 2020

Copy link to clipboard

Copied

You can tell it was written a long time ago.. font, strong, and other tags that have been deprecated from HTML a while ago.

 

BTW, the code action="<cfoutput>#CurrentPage#</cfoutput>" can be removed.  If the action is left blank, the default is to submit to itself.

 

But, yeah, I agree with Charlie on this one.. I looked through the form and did not find one single form element named REQUESTOR.  I just assumed that this was your issue.  And, as Charlie stated, if it isn't used anymore you can remove it from the processing portion of code.  If it _is_ needed, then put it back and it should work.

 

HTH,

 

^ _ ^

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 03, 2020 May 03, 2020

Copy link to clipboard

Copied

It is apparent, as others have said, that the error is caused because the submitted form contains no field named Requestor. This is very likely to be true. But there is another possibility.

 

Just before the first line referring to form.Requestor, there is a cfinclude. If the included page cfif_category.cfm had contained some code similar to <cfparam name = "form.Requestor" default = "the_default_requestor">, then the error would not have occurred.  This may sound like a purely academic question. But I am including it just for the sake of completeness. You never know. It might or might not be what you had in mind.

 

In any case, there are at least 4 more form-scoped variables for which the fields are missing in the form. They are:

 

OIT_Staff
Open_Date
Type
Ticket_Num

 

I would suggest you create a new test page just for debugging. Exclude from it the CSS, Javascript and table elements. The page should contain just the query, form and any code relevant to the form and query.  

 

See example below. Such simplification will enable you to debug the code faster. It will also enable you to see where you could make the code more efficient. For example, the use of just one pair of cfoutput tags at the beginning and end of the form.

 

When you no longer get errors, you could then copy code from the test page back to the original page.

 

 

 

 

 

<!--- Get the info needed --->

<cfquery name="Requestor" datasource="" username="" password="">
SELECT *
FROM v_employeeinformation
ORDER BY v_employeeinformation.Last_Name
</cfquery>

<cfquery name="OITAssigned" datasource="" username="" password="">
SELECT *
FROM v_employeeinformation
WHERE v_employeeinformation.Department LIKE 'Information Technology'
ORDER BY v_employeeinformation.Last_Name
</cfquery>

<cfquery name="OITStaff" datasource="" username="" password="">
SELECT *
FROM v_employeeinformation
WHERE v_employeeinformation.Department LIKE 'Information Technology'
ORDER BY v_employeeinformation.Last_Name
</cfquery>

<cfquery name="Recordset3" datasource="" username="" password="">
SELECT * FROM v_helpdesklists ORDER BY v_helpdesklists.Category
</cfquery>


<cfset CurrentPage=GetFileFromPath(GetTemplatePath())>

<cfif IsDefined("FORM.MM_UpdateRecord") AND FORM.MM_UpdateRecord EQ "form1">

<!--- Include the CFIF to insert right category --->
<CFINCLUDE template="cfif_category.cfm">

<cfquery datasource="">
UPDATE v_helpdeskfindnames SET Summary=
<cfif IsDefined("FORM.Summary") AND FORM.Summary NEQ "">
'#FORM.Summary#'
<cfelse>
NULL
</cfif>
<!--- I have modified the following 2 ifs --->
<cfif IsDefined("FORM.Requestor")>, Requestor=#FORM.Requestor#</cfif>
<cfif IsDefined("FORM.OIT_Staff")>, OIT_Staff=#FORM.OIT_Staff#</cfif>
 Priority=<cfif IsDefined("FORM.Priority") AND FORM.Priority NEQ "">
,'#FORM.Priority#'
<cfelse>
NULL
</cfif>
, Open_Date=
<cfif IsDefined("FORM.Open_Date") AND FORM.Open_Date NEQ "">
'#FORM.Open_Date#'
<cfelse>
NULL
</cfif>
, Min_Spent=
<cfif IsDefined("FORM.Min_Spent") AND FORM.Min_Spent NEQ "">
'#FORM.Min_Spent#'
<cfelse>
NULL
</cfif>
, OIT_Time_Spent=
<cfif IsDefined("FORM.OIT_Time_Spent") AND FORM.OIT_Time_Spent NEQ "">
'#FORM.OIT_Time_Spent#'
<cfelse>
NULL
</cfif>
, Close_Date=
<cfif IsDefined("FORM.Close_Date") AND FORM.Close_Date NEQ "">
'#FORM.Close_Date#'
<cfelse>
NULL
</cfif>
, Description=
<cfif IsDefined("FORM.Description") AND FORM.Description NEQ "">
'#FORM.Description#'
<cfelse>
NULL
</cfif>
, Solution=
<cfif IsDefined("FORM.Solution") AND FORM.Solution NEQ "">
'#FORM.Solution#'
<cfelse>
NULL
</cfif>
, Type=
<cfif IsDefined("FORM.Type") AND FORM.Type NEQ "">
'#FORM.Type#'
<cfelse>
NULL
</cfif>
, Category=
<cfif IsDefined("FORM.Category") AND FORM.Category NEQ "">
'#FORM.Category#'
<cfelse>
NULL
</cfif>
WHERE Ticket_Num=#form.Ticket_Num#
</cfquery>
<cflocation url="editticketaction.cfm">
</cfif>

<cfquery name="Recordset1" datasource="" username="" password="">
SELECT *
FROM v_helpdeskfindnames
WHERE v_helpdeskfindnames.Ticket_Num LIKE '#url.Ticket_Num#'
</cfquery>


	
<cfoutput>	
<form method="post" name="form1" action="#CurrentPage#">
<input type="text" name="Summary" value="#Recordset1.Summary#" size="32">

<select name="Priority" required="yes">
<option value="High" <cfif Recordset1.Priority EQ "High">selected="selected"</cfif>>High</option>
<option value="Medium" <cfif Recordset1.Priority EQ "Medium">selected="selected"</cfif>>Medium</option>
<option value="Low" <cfif Recordset1.Priority EQ "Low">selected="selected"</cfif>>Low</option>
</select>


<select name="Category">
<cfloop query="Recordset3">
	<option value="#Category#" <cfif Recordset1.Category EQ Category>selected="selected"</cfif>>#Recordset3.Category#</option>
</cfloop>
</select>

<!--- I have added these 5 form fields --->
<input type="text" name="Requestor" value="#Recordset1.Requestor#">
<input type="text" name="OIT_Staff" value="#Recordset1.OIT_Staff#">
<input type="text" name="Open_Date" value="#DateFormat(Recordset1.Open_Date, 'mm/dd/yyyy')#" size="32">
<input type="text" name="Type" value="#Recordset1.Type#">
<input type="text" name="Ticket_num" value="#Recordset1.Ticket_num#">
	
<input type="text" name="Min_Spent" value="#Recordset1.Min_Spent#" size="5">
<input type="text" name="Close_Date" value="#DateFormat(Recordset1.Close_Date, 'mm/dd/yyyy')#" size="32">
<input type="text" name="OIT_Time_Spent" value="#Recordset1.OIT_Time_Spent#" size="5"> 
<textarea name="Description" cols="40" rows="8">#Recordset1.Description#</textarea>
<textarea name="Solution" cols="40" rows="8">#Recordset1.Solution#</textarea>

<input type="submit" value="Update record">

<input type="hidden" name="MM_UpdateRecord" value="form1">

</form>
</cfoutput>	

 

 

 

 

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 04, 2020 May 04, 2020

Copy link to clipboard

Copied

Closed Thank you

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 04, 2020 May 04, 2020

Copy link to clipboard

Copied

LATEST

This was awesome thanks for your help. I guided me perfectly.  Any chance you can help me the same way with a Delete recorod form?  I would like to delete a ticket now through the web interface?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 04, 2020 May 04, 2020

Copy link to clipboard

Copied

Thank you thank you all for the help. It pointed me in the right direction.  I cleaned up some things you all suggested and I am still not sure how but this is back to working.  Thank you all for taking the time to help me out.  I ended up doing everything you all suggestted

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 04, 2020 May 04, 2020

Copy link to clipboard

Copied

Great to hear, and thanks for the update. 


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 04, 2020 May 04, 2020

Copy link to clipboard

Copied

I spoke too soon.  I cleared out all the FORM. that  was all discussed here and i toasted my table it updated but updated every single tick the same.  Well back at it i go.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 04, 2020 May 04, 2020

Copy link to clipboard

Copied

I ok after some more testing finally got it working.  Thanks again everyone for your help

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation