Home › Forums › Development › Are v9 pickers with 2 level association paths supported?
- This topic has 3 replies, 2 voices, and was last updated 3 years, 9 months ago by John.
-
AuthorPosts
-
-
February 24, 2021 at 10:18 pm #16057JohnParticipant
I’m trying to use a picker for mda:DocumentMgrItem on a form of class BatchActionCommandAttachment. The association between these two classes is values=”attachment act”. This two-level path passes validation but when saving, the server receives null for ‘attachment’.
Is there a trick to make this work?
Here’s the form
123456789101112131415<Layout class="BatchActionCommandAttachment"><UIActions/><Composite name="composite"><Table caption="idsf.ActTemplateDocumentList.DocumentManagerItems" deletePrompt=" " factory="BatchActionCommandAttachment create" mode="BatchActionCommandAttachment attachment act" name="tblDocumentManagerItems" ref="mda:DocumentMgrItem" rows="(@)" values="attachment act"><Toolbar name="tableToolbar"><Item action="true" caption="ids.add" event="sysPick" icon="plus_grey" name="pickDocument"/></Toolbar><Menu name="rowMenu"><Item event="sysRemove" name="deleteItem"/></Menu><Column caption="ids.templateName" name="colType" sortable="false" values="attachment act title"/><Column caption="ids.documentMgrItem" name="colTitle" sortable="false" values="attachment attachment fileName"/></Table></Composite></Layout>0 -
February 25, 2021 at 11:04 am #16070Community ManagerKeymaster
Hi John,
In the mean time we get someone to respond to the technical question.
Have you investigated how the Activity Plan – attachment picker is implemented? That control allows you to pick items from Document Manager. Is it similar implementation ?
Regards,
Dhruv
0 -
March 1, 2021 at 11:45 pm #16111JohnParticipant
Dhruv, as mentioned on slack too, the difference between that picker and this one is the 2-level path I think. I’ve had some success using a custom non-persisted attribute and a custom create method on BatchActionCommandAttachment but run into another issue, so any details on whether this is the right path would be appreciated.
0 -
March 2, 2021 at 11:00 pm #16138JohnParticipant
Creating a non-persisted attribute for the picker to store the value to worked. Then I customized the before create of BatchAttachmentCommandAttachment to retrieve the attachmentLink from the DocumentMgrItem
0
-
-
AuthorPosts
- You must be logged in to reply to this topic.