@Ernestom Sorry for the late response.
The Drop and MSLB takes the values from different data connections (Different SharePoint Lists)
I had set up something like a Cascading Multiple Selection List Box
SharePoint Lists:
List A (Columns): Site Name
List B(Columns): Shift Name, Site Name(Lookup from List A)
Infopath Form:
Drop Down: Takes values from List A
MSLB: Based on the selection made in drop down, all the associated Shift Names will be displayed
I have used the double eval formula from this post http://www.infopathdev.com/forums/p/14658/60141.aspx#60141 , Similarly I want to extract the ID's of the selected items from MSLB.