Call a mashup from another mashup ... with parameters

Sort:
You are not authorized to post a reply.
Author
Messages
Jordane
Basic Member
Posts: 16
Basic Member

    Hi,
    I try to Call a mashup from another mashup with parameters.

    For example,
    mashup1 contains a list of customers (CRS610)
    mashup2 contains a list of Adresses (OIS002)
    I want to call the mashup2 from mashup1 with CUNO parameter to show only adresses of selected customer into the mashup2.

    I know to call a mashup from another mashup but i don't know how to send parameters (i'm using a button into the mashup1 with specified LinkURI : mashup:///?BaseUri=OIS002_DepuisCRS610.mashup&RelativeUri=OIS002_DepuisCRS610.xaml).
    I know to send a parameter with a value from mashup1 (IsDebug is active).
    But........I don't know how to send parameters between two mashups.

    I try to add "&Keys=OKCUNO,{TEST}" in the end of LinkURI but the mashup2 don't receive the "TEST" parameter and the associated value.

    Do you know how to do this ?

    Thanks in advance,
    Jordane

    Karin
    Veteran Member
    Posts: 57
    Veteran Member
      Hi,
      There is an example how to send parameters from within the Mashup designer. Its found under help and it is called Window.

      In a button you would do it like the (the uri is the uri to your mashup).

                     
                        <!-- We use the "RelativeUri" property here so the button will still work if we rename this file -->
                        
                           arameter TargetKey="InputText" Value="{Binding ElementName=MyTextBox, Path=Text}" />
                           arameter TargetKey="InputCheckBox" Value="{Binding ElementName=MyCheckBox, Path=IsChecked, FallbackValue=False}" />
                        
                     

                  


      The Uri in the example will look like this once it is executed:
      mashup:///?BaseUri=pack%3a%2f%2fapplication%3a%2c%2c%2c%2fMango.UI%3bcomponent%2fServices%2fMashup%2fControls%2fExamples%2f&RelativeUri=Window.xaml&DefaultValues=InputText:Banana;InputCheckBox:False;

      So the syntax is &DefaultValues=CUNO:yournumber

      Regards
      Karin
      Regards Karin http://smartofficeblog.com
      Jordane
      Basic Member
      Posts: 16
      Basic Member
        Hi Karin,

        Thank for your help.
        It's a great day for me ! And i will have a good week end.

        Effectively, i see your example on Help (I had see on Help but not found this example... ).

        Jordane
        You are not authorized to post a reply.