/help $did

You need a name and id for $did, in your case, I think using $did(cscfg,39).text *might* resolve your problem

I never was that good with dialogs, so I could be mistaken.