We have a weird behavior in our application and so far I have not been able to find the reason for this behavior or a solution:
When I open an A12 document that has an uploaded attachment somewhere in the middle of the form, the browser automatically scrolls down to that attachment and puts the field in focus.
This only happens when this form is opened as a Single-View and not as a MasterDetail-View, even though all activities that are called by the form-engine are exactly the same.
We are using the standard AttachmentHandler from data-services and do not have any custom code on this attachment. Also, we are on the A12-version 2022.06-LTS.
Did anyone experience the same problem or knows a solution?
These are the Activities that are called:
Activity/SET_UI_STATE
payload.uiState.screenLocation[0].locationPath[0].elementName: <First Tab in the form>
Activity/LOAD_DATA
Activity/SET_DATA_BY_DESCRIPTOR
Module/CHANGE_MODULE
payload.id: <Module id>
Activity/FORM_ENGINE_EVENT
payload.engineEvent.type: "form-engine/event/ATTACHMENT_TRANSACTION_STATUS"
payload.engineEvent.payload.status: "busy"
payload.engineEvent.payload.path: <Path to Attachment>
Activity/FORM-ENGINE-COMMAND
payload.engineEvent.type: "form-engine/command/SET_DISABLED"
payload.engineEvent.payload: true
Activity/FORM_ENGINE_EVENT
payload.engineEvent.type: "form-engine/event/ATTACHMENT_TRANSACTION_STATUS"
payload.engineEvent.payload.status: "done"
payload.engineEvent.payload.path: <Path to Attachment>
Activity/FORM-ENGINE-COMMAND
payload.engineEvent.type: "form-engine/command/SET_DISABLED"
payload.engineEvent.payload: false