AppMachine Help Center

How can we help you?

Follow

Link Block - Reuse Data from other blocks

When working with data driven blocks (e.g. the Excel or Web Service block) you often create a really awesome layout for the list, and you also create a great looking set of detail blocks. However, if you want to use that same layout again, with the same data but with a slightly different filter, you would normally have to recreate everything all over again.

The "Link" block lets you reuse an existing Excel or Web service building block with a different filter without having to rebuild everything. 

Please also read our Frequently asked questions about web services, and check out this guide on how to get started with integrating your web services.

Prerequisites

  • Your existing app that contains the Excel or Web Service block you want to reuse.

How to use the Link block

You've already setup an app, so it contains an List block that for example is referencing a spreadsheet containing flowers and the shops where users could buy these flowers (check out the attached file to see what demo file we used). In our Excel building block we set up a filter, so that we only see the flowers of the category "Bouquet".

Schermafbeelding_2014-03-19_om_21.11.48.png

We will create an exact copy of this "Bouquets" block, but this time it has to show only birthday flowers. How do we do this? 

  1. Open the app containing the Excel or Web Service block you want to reuse
  2. Click "Add block"
  3. Select the Pro tab
  4. Select the Link block, and click "Add block"
  5. Specify a name and an icon for the new block, and click finish.
  6. You needs to specify two settings:
    - The block (excel or web service) you want to reuse / link to
    - The filter that should be applied

    Specify the existing block (excel or web service) that you want to reuse. In my case that will be the "Bouquets" block
    Schermafbeelding_2014-03-26_om_19.11.07.png
  7. Specify the filter that should be applied, so this case that would be a filter that will only show the flowers of category birthday;
    Schermafbeelding_2014-03-26_om_19.11.21.png
  8. Save your changes.
Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

Comments

  • Avatar
    harrywildeboer

    Kort gezegd: Het filter in het link blok vervangt het filter in het aangeroepen web service blok!