cancel
Showing results for 
Search instead for 
Did you mean: 

SUP 2.0.1 - getCurrentMessageValueCollection data from another screen?

Marçal_Oliveras
Active Contributor
0 Kudos

Hello, I'm customizing my workflow application and I need to add data that is showed in another screen...

The problem is that the method getCurrentMessageValueCollection() doesn't return me the values that I need when I'm on the start screen... Because they are used in another screen

Any solution to this problem?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Marshal,

we can retrieve the data of the previous screen like this

here wt i was doing is im caling online query in StockPerMaterial screen and carrying the results to SPMResultTable Screen to prepare custom table

if(screenKey === "StockPerMaterial" && destScreenKey === "SPMResultTable")

{

var form = document.forms[destScreenKey + "Form"];

if (form)

{

var values = getCurrentMessageValueCollection();

var stockMVC = values.getData("MBOStockPerMaterial24LS");

}

here MBOStockPerMaterial24LS is the name of the screen from where i need to get the data

Marçal_Oliveras
Active Contributor
0 Kudos

Thanks usharohan,

But I already knew this. The problem is when the screens are unrelated. But I've found a "workaround", I linked the screens with a menu item button, and then I've hidden the menu item button (becaus this relation has no sense) modifying the workflow_jQueryMobileLookAndFeel.html file.