cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Navigation to mashup based on input

svisveswaraiya
17-Peridot

Navigation to mashup based on input

Hi,

Is it possible to navigate to multiple mashup using single navigation button?

 

In a service I am returning a output integer 1 to 19 and based on that I want to navigate to different mashups dynamically using 1 navigation widget.

eg: if (ip == 1)

{

result = 'Home_Mashup' //Navigate to Home_Mashup 

}

else

{

result = 'Screen1' // Navigate to Screen1

}

 

Please provide some idea.

 

Thanks,

Shalini V.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @svisveswaraiya ,

 

change the output type of your service from integer to MASHUPNAME and return your string.

 

Regards

Benny

View solution in original post

7 REPLIES 7

Hi @svisveswaraiya ,

 

change the output type of your service from integer to MASHUPNAME and return your string.

 

Regards

Benny

HI @bbeuckSIG ,

Thanks for you response.

I changed the base type to mashupname but it shows mozilla error when I execute the service.

Is there any other possible way?

 

Thanks,

Shalini V.

Hi @svisveswaraiya ,

 

what Mozilla error does it show? Can you provide a screenshot or log extract?

 

Regards

Benny

Hi @bbeuckSIG ,

I have attached the screenshot of error I am getting.

Test1.pngTest2.png

I also tried to directly give name of the mashup in result but its not working in runtime.

 

Thanks,

Shalini V.

Try replacing var HomeMashup with result

 

Edit: Was not quick enough =)

Yes this worked @bbeuckSIG

Thanks much. 

Hi @bbeuckSIG ,

I just re binded the output of service which has mashup name directly in result. It worked fine as you said.

 

Thanks a lot. 

 

Regards,

Shalini V.

Top Tags