i am first fetching values from the table like following
here NOL is the variable in which i am fetching value from dropdown field
then i fetch the leave code in the variable nol like following
and if i am trying to print this code individually then it is giving right output but if i am trying insert this nol value in another table like following
then it is giving me following error
An Error Had occurred while accessing the database ORA-02291: integrity constraint (TRANS_R_LEAVE_FK1) violated - parent key not found
i don't understand why this is giving error as i am not inserting any value i am just fetching value
on following constraint it is giving me error
so the above constraint should give problem when i am trying to insert something .