Hi Rizwan,
Is this in a form you've created with Form Builder, to which you've added this dialog? Most likely you'll want to set a value in the fr-form-instance, i.e. xxf:instance('fr-form-instance')/my-section/my-field, not in the form resources.
Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet