AnsweredAssumed Answered

Error Create Child - "AHD05807: One or more Properties require values."

Question asked by rmps on May 12, 2016
Latest reply on Dec 14, 2016 by douglas.sue

Hi everybody,


I have a custom function to facilitate the creation of children. This function was created following the instructions in: Simplified Child Creation - SDU


But I have one small issue with the Create Child. I have had it implemented and working for a while but some of my users brought this to my attention.


If you have a Request ticket that uses a Request Area that has properties defined (one or more required) and you click on the Create Child button, the new ticket (in edit mode) Properties tab shows "No properties are defined for this Incident/Problem/Request Area" instead of the list of properties defined for the Request Area. If you try to save the ticket then you get an error "AHD05807: One or more Properties require values." but still no properties show in the Properties tab.



It is my form code of fuction "make_child":


<FORM NAME="make_child">

<!-- For all ticket types -->

<INPUT TYPE=hidden NAME=SET.requested_by VALUE="$args.log_agent">

<INPUT TYPE=hidden NAME=requested_by_combo_name VALUE="$args.log_agent.combo_name">

<INPUT TYPE=hidden NAME=SET.customer VALUE="$args.customer">

<INPUT TYPE=hidden NAME=customer_combo_name VALUE="$args.customer.combo_name">

<INPUT TYPE=hidden NAME=SET.category VALUE="$args.category">

<INPUT TYPE=hidden NAME=KEY.category VALUE="$args.category.sym">

<INPUT TYPE=hidden NAME=SET.description VALUE=<PDM_FMT ESC_STYLE=JS2>"$args.description <P>(Child created from Parent $args.ref_num)"</PDM_FMT>>

<INPUT TYPE=hidden VALUE="$">

<INPUT TYPE=hidden NAME=group_combo_name VALUE="$">

<INPUT TYPE=hidden NAME=SET.priority VALUE="$args.priority">

<INPUT TYPE=hidden NAME=SET.rootcause VALUE="$args.rootcause">

<INPUT TYPE=hidden NAME=KEY.rootcause VALUE="$args.rootcause.sym">

<INPUT TYPE=hidden NAME=SET.status VALUE="OP">

<INPUT TYPE=hidden NAME=SET.summary VALUE=<PDM_FMT ESC_STYLE=JS2>"$args.summary"</PDM_FMT>>



<PDM_IF "$prop.form_name_2" == "chg">

<!-- For Change Orders only -->

  <INPUT TYPE=hidden NAME=SET.organization VALUE="$args.organization">

  <INPUT TYPE=hidden NAME=SET.parent VALUE="$">

  <INPUT TYPE=hidden NAME=KEY.parent VALUE="$args.chg_ref_num">

  <INPUT TYPE=hidden NAME=SET.requestor VALUE="$args.requestor">

  <INPUT TYPE=hidden NAME=requestor_combo_name VALUE="$args.requestor.combo_name">


<!-- For everything BUT Change Orders -->

  <INPUT TYPE=hidden NAME=SET.parent VALUE="$args.persistent_id">

  <INPUT TYPE=hidden NAME=KEY.parent VALUE="$args.ref_num">




<PDM_IF "$prop.form_name_2" == "iss">

<!-- For Issues only -->

  <INPUT TYPE=hidden NAME=SET.actions VALUE=<PDM_FMT ESC_STYLE=JS2>"$args.actions"</PDM_FMT>>

  <INPUT TYPE=hidden NAME=SET.flag1 VALUE="$args.flag1">

  <INPUT TYPE=hidden NAME=SET.flag2 VALUE="$args.flag2">

  <INPUT TYPE=hidden NAME=SET.flag3 VALUE="$args.flag3">

  <INPUT TYPE=hidden NAME=SET.flag4 VALUE="$args.flag4">

  <INPUT TYPE=hidden NAME=SET.flag5 VALUE="$args.flag5">

  <INPUT TYPE=hidden NAME=SET.flag6 VALUE="$args.flag6">

  <INPUT TYPE=hidden NAME=SET.person_contacting VALUE="$args.person_contacting">

  <INPUT TYPE=hidden NAME=SET.product VALUE="$args.product">

  <INPUT TYPE=hidden NAME=SET.reporting_method VALUE="$args.reporting_method">

  <INPUT TYPE=hidden NAME=SET.service_num VALUE="$args.service_num">

  <INPUT TYPE=hidden NAME=SET.type_of_contact VALUE="$args.type_of_contact">

  <INPUT TYPE=hidden NAME=SET.user1 VALUE=<PDM_FMT ESC_STYLE=JS2>"$args.user1"</PDM_FMT>>

  <INPUT TYPE=hidden NAME=SET.user2 VALUE=<PDM_FMT ESC_STYLE=JS2>"$args.user2"</PDM_FMT>>

  <INPUT TYPE=hidden NAME=SET.user3 VALUE=<PDM_FMT ESC_STYLE=JS2>"$args.user3"</PDM_FMT>>


<!-- For everything BUT Issues -->

  <INPUT TYPE=hidden NAME=SET.rootcause VALUE="$args.rootcause">

  <INPUT TYPE=hidden NAME=SET.impact VALUE="$args.impact">




<PDM_IF "$prop.form_name_2" == "chg" || "$prop.form_name_2" == "iss">

<!-- For Change Orders and Issues only -->

  <INPUT TYPE=hidden NAME=SET.actual_comp_date VALUE="$args.actual_comp_date">

  <INPUT TYPE=hidden NAME=SET.act_total_time VALUE="$args.act_total_time">

  <INPUT TYPE=hidden NAME=SET.backout_plan VALUE=<PDM_FMT ESC_STYLE=JS2>"$args.backout_plan"</PDM_FMT>>

  <INPUT TYPE=hidden NAME=SET.cost VALUE="$args.cost">

  <INPUT TYPE=hidden NAME=SET.effort VALUE=<PDM_FMT ESC_STYLE=JS2>"$args.effort"</PDM_FMT>>

  <INPUT TYPE=hidden NAME=SET.est_comp_date VALUE="$args.est_comp_date">

  <INPUT TYPE=hidden NAME=SET.est_cost VALUE="$args.est_cost">

  <INPUT TYPE=hidden NAME=SET.est_total_time VALUE="$args.est_total_time">

  <INPUT TYPE=hidden NAME=SET.justification VALUE=<PDM_FMT ESC_STYLE=JS2>"$args.justification"</PDM_FMT>>






<PDM_IF "$prop.form_name_2" == "cr" || "$prop.form_name_2" == "in" || "$prop.form_name_2" == "pr">

<!-- For Requests, Incidents, and Problems only -->

  <INPUT TYPE=hidden NAME=SET.affected_resource VALUE="$args.affected_resource">

  <INPUT TYPE=hidden NAME=KEY.affected_resource VALUE="$args.affected_resource.COMMON_NAME">

  <INPUT TYPE=hidden NAME=SET.change VALUE="$args.change">

  <INPUT TYPE=hidden NAME=KEY.change VALUE="$args.change.chg_ref_num">

  <INPUT TYPE=hidden NAME=SET.charge_back_id VALUE="$args.charge_back_id">

  <INPUT TYPE=hidden NAME=SET.severity VALUE="$args.severity">

  <INPUT TYPE=hidden NAME=SET.urgency VALUE="$args.urgency">

  <input type="hidden" name="SET.prop0.value" value="$">

    <input type="hidden" name="SET.prop1.value" value="$">






<PDM_IF "$prop.form_name_2" == "in">

<!-- For Incidents only -->

  <INPUT TYPE=hidden NAME=SET.problem VALUE="$args.problem">

  <INPUT TYPE=hidden NAME=KEY.problem VALUE="$args.problem.ref_num">






I believe it should be necessary to modify the form above so that it copies the properties of the Request Area of the original ticket. Right? Can someone help me?


How can I correct the error displayed ?


Thanks very much,