I work on field-type control and based on the scenario it has to behave differently depending on the type of form:
For the create form scenario control has to be disabled. For the update form scenario it has to be enabled. Here is the code that works:
if (context.page.entityId == null) {
//Code for create
} else {
//Code for update
}Here is the problem - when I create a record and save it control is not re-rendered so "Create" scenario control is shown. Is there any trick I'm not aware of to make it work?
@OOlashyn @DynamicsNinja you did attachments-viewer controls. How did you solve that scenario?