Hello All,
I am trying to create a custom attachment screen with the functions:
- Add attachment
- Open attachment on the Maximo server
- Open an URL.
These are ofcourse also the default functions of Mobile.
But Mobile cannot open Sharepoint documents at this moment, so I have to find a solution.
Opening URL's (point 3) I now have working. Also with Sharepoint, so that is really cool.
But in the process Point 1 and 2 are "lost".
My Idea is to call the exsisting functions through app.xml or appCustomizations.js.
For Example the header in App.XML:
<header-template show-current-page-in-bread-crumb="false" title="Attachments28" title-column-width="{app.state.screen.size === 'md' ? 50 : app.state.screen.size === 'lg' ? 30 : app.state.screen.size === 'xlg' ? 21 : 65}" id="dam_vw_bzk2e">
<button slot="buttons" label="" icon="carbon:add" on-click="addAttachment" on-click-arg="{{'page':page}}" kind="ghost" id="dam_vw_e297p" loading="{page.state.saveInProgress}"/>
</header-template>
How can I put/call the default Add Attachment functionality in there?
Goal is to open on RoleBased the explorer, select a file and add it to Maximo. On Mobile i am expecting the options for adding an attachment (like use the camera).
The same is for opening an attachment (file) on the MX server like:

As I said Opening URLS are no problem (anymore).
I want to replace the buttons by a custom like CUSTopenDocumentFile function or the default function which is allready in Mobile.
If there are examples for both that would be great.
Because there are many ready to use functions in all kinds of Datacontrollers and I see how I can use many stuff that is allready made. But I cannot call them through App.XML or AppCustomizations.js
Regards,
Vincent Wanders
------------------------------
Vincent Wanders
------------------------------