cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass dynamic value through a mdk Extension code

DivanWellalage
Explorer
0 Kudos
158

Hi Experts,

We have a requirement in SSAM 2405 where we need to pass a dynamic image as a Base64 string between MDK and an Extension (both ways).

Scenario:
I trigger an MDK extension from MDK, which opens the extension page. At some point inside the extension, I need to use an MDK action to trigger a customized Document Editor to edit an image using this Base64 String. The image needs to be passed from the extension to MDK for editing. After editing, the modified image must be passed back from MDK to the extension.

Can you please suggest and help me to achieve this?

Regards,

Divan Wellalage

View Entire Topic
bill_froelich
Product and Topic Expert
Product and Topic Expert

If you are already in extension code, couldn't the extension just directly invoke the document editor extension?

In terms of "passing data", normally you pass data into the extension via the Extension Properties.  Controls don't normally pass data back to anything.  They may expose a getValue() method so that an action like create entity can grab a value from the extension to save into a backend transaction (offline or online). 

From your description you will have to determine how you want to handle the scenario.  Since document sizes can vary widely you may want to look at writing a temp file to the app sandbox Documents or temp directory.  You could also consider using AppClientData to pass something as well.

Hope this helps