Take picture

0
  I'm experiencing an issue with displaying images taken using the 'Take Picture' action in Nanoflow on a new Edit page. When the image is captured, it doesn't appear in the Data View as expected. Could you please assist me in resolving this issue?
asked
3 answers
0

Hi,

 

Not sure of the logic you have setup but start by trying to refresh the page. Then if that does not work, review your user role access to the image entity.

 

Kind regards.

answered
0

Hi Shiva , 

Have you committed the object post the Take picture action?

answered
0

I have used another custom JavaScript action to force a refresh before.

 

Try adding this code in a new JavaScript action after the Take Picture action in  your Nanoflow.

 

https://docs.mendix.com/refguide/javascript-actions/

 

// This file was generated by Mendix Studio Pro.
//
// WARNING: Only the following code will be retained when actions are regenerated:
// - the import list
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the next time you deploy the project.
import "mx-global";
import { Big } from "big.js";

// BEGIN EXTRA CODE
// END EXTRA CODE

/**
 * Force a reload on the page.
 * @returns {Promise.<void>}
 */
export async function ReloadWithState() {
	// BEGIN USER CODE
	mx.reloadWithState();
	// END USER CODE
}

 

answered