143: -- The identifier is different to the previous call to this function, or
144: -- this is the first call to this function.
145: --
146: FOR l_template_item IN csr_template_items
147: (p_application_id => hr_form_template_info.application_id(p_form_template_id)
148: ,p_form_id => hr_form_template_info.form_id(p_form_template_id)
149: ,p_form_template_id => p_form_template_id
150: )
151: LOOP
144: -- this is the first call to this function.
145: --
146: FOR l_template_item IN csr_template_items
147: (p_application_id => hr_form_template_info.application_id(p_form_template_id)
148: ,p_form_id => hr_form_template_info.form_id(p_form_template_id)
149: ,p_form_template_id => p_form_template_id
150: )
151: LOOP
152: IF (l_template_item.template_item_id IS NULL)
192: --
193: g_template_items_pst := g_null_template_items_pst;
194: l_index_number := 1;
195: FOR l_template_item IN csr_template_items
196: (p_application_id => hr_form_template_info.application_id(p_form_template_id)
197: ,p_form_id => hr_form_template_info.form_id(p_form_template_id)
198: ,p_form_template_id => p_form_template_id
199: )
200: LOOP
193: g_template_items_pst := g_null_template_items_pst;
194: l_index_number := 1;
195: FOR l_template_item IN csr_template_items
196: (p_application_id => hr_form_template_info.application_id(p_form_template_id)
197: ,p_form_id => hr_form_template_info.form_id(p_form_template_id)
198: ,p_form_template_id => p_form_template_id
199: )
200: LOOP
201: IF (l_template_item.template_item_id IS NULL)