259:
260: /** Get the username for a given resource id **/
261: l_TaskAccessTbl(i).GranteeKey := get_username(l_CalAccessTbl(i).GranteeKey);
262: IF (l_TaskAccessTbl(i).GranteeKey = '-1') THEN
263: fnd_message.set_name('JTF', 'JTF_CAL_USERNAME_NOT_FOUND');
264: fnd_msg_pub.add;
265: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
266: END IF;
267:
297: l_CalAccessTbl(i).AccessLevel := CALENDAR_FULL_PRIVILEGE;
298: /** Get the username for a given resource id **/
299: l_TaskAccessTbl(i).GranteeKey := get_username(l_CalAccessTbl(i).GranteeKey);
300: IF (l_TaskAccessTbl(i).GranteeKey = '-1') THEN
301: fnd_message.set_name('JTF', 'JTF_CAL_USERNAME_NOT_FOUND');
302: fnd_msg_pub.add;
303: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
304: END IF;
305:
317: /** Get the instance_set_id for instance_name RESOURCE_TASKS_SET **/
318: /** It is required in fnd_grants function **/
319: l_instance_set_id := get_instance_set_id(jtf_task_security_pvt.RESOURCE_TASKS_SET);
320: IF ( l_instance_set_id = -1) THEN
321: fnd_message.set_name('JTF', 'JTF_CAL_INST_SET_ID_NOT_FOUND');
322: fnd_msg_pub.add;
323: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
324: END IF;
325: