When configuring a label of type Dynamic, Static or Query, there should be an option to have different values for what is displayed in the WDE form vs. what actually gets stored in the label. For example, you might want to create a query label where the display is a query on a field with a name while the stored value is a query on the associated ID.