Skip to main content
15-Moonstone
July 18, 2017
Solved

How to Know the name of Master in Running ?

  • July 18, 2017
  • 3 replies
  • 2660 views

Hi,

It's possible to know the name of the master in running ?

Which service can I use, if you give up?


Bye

Giuseppe

Best answer by CarlesColl

Hi Giuseppe

You can add up a Expression widget that returns a String on your Mashup and add this Expression to it:

(location.href.split("&")[0].split("=")[1])

This will give you your master mashup name.

Best Regards,

Carle.s

3 replies

5-Regular Member
July 18, 2017

Hello, Giuseppe.

Can you provide a bit more information here? I want to make sure I understand what you mean by 'master' here.

Thank you,

-- Craig A.

15-Moonstone
July 18, 2017

hi, Craig

I need a service that returns the name of  master in use, but I did not find a function in the snippets that could return that result.


20-Turquoise
July 18, 2017

You cannot get the binding programmatically; the only way I can think of, out of the box, is to look at the URL query as described in my past reply.

20-Turquoise
July 18, 2017

You could generally look at your URL query to see the name of the master mashup:

1-Visitor
July 19, 2017

Hi Giuseppe

You can add up a Expression widget that returns a String on your Mashup and add this Expression to it:

(location.href.split("&")[0].split("=")[1])

This will give you your master mashup name.

Best Regards,

Carle.s

15-Moonstone
July 19, 2017

Hi Carles,

Thanks, it works perfectly, great solution ......

Best Regards,

Giuseppe F