When working with XMod Pro, you may sometimes receive the error message below: "Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control" The message isn't all that helpful in the context of XMod Pro. It doesn't provide much useful information to help track down the source of the error. When you see this message, it typically indicates that you've tried to use an XMod Pro "token" where it can't be used. Field tokens [[MyField]], environmental tokens [[Portal:ID]] [[User:ID]], and function tokens [[Join()]] are examples of tokens that may be the culprits. So, start looking for tokens that are used outside of the data-binding context. If you are using a <NoItemsTemplate>, that's a good place to start. Also look for areas where you're using tokens outside the form or template tag or in other areas that aren't bound to data.
|