Qatar visa if there is already UAE visa

Hello all, i want to enquire about one of my friend she was working in UAE, but she go back to Phillipine after 9 months working there on the marriage of her daughter, then her daughter send her visit visa and she come here in Qatar, now she is working from Janury 2008 here in QATAR, and now she was going to change her visa to work visa, but her employer started the process and now he told her that her visa cannot be done as there is already work visa of UAE over ther, her sponsor has to cancel her, but she didin't have the number of her spnsor in UAE now. How can she transfer her visa without leaving the country. OR suggest that how can she get work visa here now.
she is already about six months here in Qatar and it is more than six months that she had left UAE, but still her new employer when went with her to immigration, they said it has to be cancelled. HEr medical and finger prints had already been done.
we will go agian to Immigration and will clarify about this, If there is any other suggestion please let me know.
Thanks for all that information
Unfortenately she needs to cancel resident visa in UAE if she wants to get resident status in Qatar. I had a same problem, I left company in Dubai and removed here. Former company refused to cancel my UAE resident permit, I went trough all immigration procedure here in Qatar but Immigration could not stamp resident visa in my passport until I cancel the UAE one. Immigration cannot cancel visa without permision from company. After almost three months finaly I finished it.
The other way is, maybe easier, if she cannot find her sponsor from UAE, six months from the date of exiting UAE, if you not enter in UAE in that period, visa will be automaticly cancelled by Immigration.