3 Replies Latest reply on Nov 1, 2017 9:26 AM by rbranders RSS
    aelgov Apprentice

    How to refresh repeater from contained mashup

    Hi All,

     

    I have mashup that has a repeater, this repeater is opening few mashups.

    I want to have a button "-" (Minus) inside the mashup so when you click it - it will remove the mashup from the repeater.

    For example if the repeater has 5 mashups and you click the button it will have 4 mashups.


    Untill now what I managed to do is to use temp infotable that holds all the temp data and updates it.

    What I don't manage to do is to refresh the repeater from the contained mashup.


    Any suggestions?

     

      • Re: How to refresh repeater from contained mashup
        jdass Apprentice

        Hi Assaf,

         

        Please try the resolution given in this article and let us know if it helped. Article Viewer | PTC

        • Re: How to refresh repeater from contained mashup
          rbranders Newbie

          Hi Assaf,

           

          Sorry for the late response but here is my workaround for this problem:

           

          1. Make a Thing with a boolean propertie, lets name this propertie "update".
          2. Create two services: one that writes a true to "update" and one that writes a false to "update".
          3. In the row mashup, use the click event to trigger the service that writes true to "update".
          4. In the mashup that contains the repeater open the service "GetProperties". This service has a propertie "automaticly update values when able". By clicking this the value of "update" will automaticly update when it changes
          5. Use a validator in auto evaluate mode to fire an event when "update" becomes true
          6. Use that event to trigger the service that updates your infotable
          7. Use the "ServiceInvokeCompleted" event to trigger the service that sets "update" to false again

          It's not the most elegant solution but it does the trick

           

           

          Robin