Skip to main content
1-Visitor
July 30, 2020
Solved

How to Pass Grid Selection variable from one Mashup to another New Mashup

  • July 30, 2020
  • 1 reply
  • 2513 views

Hi TWX Gurus,

I have a typical problem-I would like to pass variables from grid(which is on one mashup screen) to another mashup, my grid is populating from database. 

1. I have tried creating variable in both the mashup & assign the variable  from DB service to navigation panel/as well to local Mashup variables property. But when double click- new mashup is coming but not able to passing values.

2. I tried with creating one thing service and assign the values to property- but that is also not working.

Can anyone please tell me - which event to fire to pass the variable to other mashup as well how to navigate.

 

Thanks in advance!

~PC

Best answer by CharlesJi

Hi @pchowdhury, you can use session variables to pass the values back from the popups.

 

I guess you may want to check these:

Understanding Session Variables in ThingWorx

Best Practices for Using Session Variables in ThingWorx

How to Retain Tree Table Row Selection between Mashup Navigation in ThingWorx

 

1 reply

22-Sapphire I
July 31, 2020

Sounds like you are using the Navigation widget to pass the information correct?

You should be able to take 'Selected Row(s)' information from the data source and pass that to the Mashup parameter of the new mashup through the Navigation widget properties (Mashup parameters will become properties after you assign the mashup to the navigation widget)

If this is not working for you, you may need to check your bindings, or show a bit more detail as to what you are doing.

1-Visitor
August 3, 2020

Hi Pai,

Thanks for your response! and you are right i was using navigation wizard.

However, BTT, my requirement got changed a little bit, as I found Navigation wizard is depreciated in 8.5 version. Now I am using a expression and a navigator function to  pass the decision to open a right navigation. Till this point its ok. However, now i am facing problem and not sure how to pass the value from contained mashup to the parent mashup.

I have created same variable in both the mashup, but not getting any event where I can assign child mashup variable value to parent mashup.

Really appreciate any help on this!

 

Thanks!

~PC

1-Visitor
August 4, 2020

Hi Pi,

Sorry for the typo in my last post on this....correcting...

Actual question is: "However, now i am facing problem and not sure how to pass the value from contained navigation mashup to the parent mashup."

 

Thanks!

~PC