Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

FormDataSource.object method

Volodymyr Giginiak Profile Picture Volodymyr Giginiak
There is a nice way to change a property for all controls on a form that are bound to the same field, for example, hide\unhide or enable\disable. FormDataSource has method object() which accepts field number as parameter and returns an object of type FormDataObject which has several properties to change controls' behavior, like visible(), enabled(), allowEdit() and others.
Example:
inventBatch_ds.object(fieldnum(InventBatch, ItemId)).visible(false);
This way to change controls' properties is more preferable than working with individual controls, since it's possible that user will add new controls for the same field using user setup.

This was originally posted here.

Comments

*This post is locked for comments