+ Start a Discussion
Krishna Sahu 1Krishna Sahu 1 

Is it somting wrong in this Map Variable i trying to fix but not resolving.

 Map<String, String> mapOrderType_Role= new Map<>(){'NROP'=>'Trialing Physician', 'NROP'=>'Implanting Physician',
                                                           'NREP'=>'Replacement Physician', 'NREV'=>'Revision Physician'};
Best Answer chosen by Krishna Sahu 1
OFröhlichOFröhlich
Hi,
try that:
Map <String, String> mapOrderType_Role= new Map<String, String>{'NROP'=>'Trialing Physician', 'NROP'=>'Implanting Physician','NREP'=>'Replacement Physician', 'NREV'=>'Revision Physician'};

If this helps, please mark as Best Answer to help others too.

All Answers

OFröhlichOFröhlich
Hi,
try that:
Map <String, String> mapOrderType_Role= new Map<String, String>{'NROP'=>'Trialing Physician', 'NROP'=>'Implanting Physician','NREP'=>'Replacement Physician', 'NREV'=>'Revision Physician'};

If this helps, please mark as Best Answer to help others too.
This was selected as the best answer
mukesh guptamukesh gupta
Hi Krishna,

Please use below code:-
 
Map<String, String> mapOrderType_Role= new Map<String, String>{
			'NROP'=>'Trialing Physician', 
			'NROP'=>'Implanting Physician',
			'NREP'=>'Replacement Physician', 
			'NREV'=>'Revision Physician'
};

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh