1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

webservice list plugin

Discussion in 'Community' started by jo-ka, Jul 30, 2020.

  1. jo-ka

    jo-ka Member

    Level: Community
    Hello,
    I have an external provider which gave me access over webservice to a REST(json) API, which I would like to use on a Fabrik list.

    I saw the video available here: https://www.screencast.com/t/D9Tuxn4Bb, I've mapped all the necessary fields and set the foreign key, etc.

    upload_2020-7-30_9-30-46.png

    I've mapped also the fields:

    upload_2020-7-30_9-46-56.png

    The API doesn't have any kind of authentication, and when I use the URL provided on a web browser, I get the values correctly (this is a simple example of the provided data, just one ID and a name).

    upload_2020-7-30_9-56-44.png

    But when I press the button, I get all the 34 records, which are the number of records returned from the URL, but the values on the fields are not correct, because are being filled with the webservice field names and not the real value.

    upload_2020-7-30_9-56-44.png

    What am I missing here?
    Thanks in advance.
     

    Attached Files:

  2. jo-ka

    jo-ka Member

    Level: Community
    I think I've found it.
    I had to put the origin fields in between { }.
    I think it's working now.

    Thanks.

    upload_2020-7-30_10-15-39.png
     
    troester likes this.
  3. troester

    troester Well-Known Member Staff Member

    Level: Community
    Thanks for reporting.
    In this old tutorial (saved by @startpoint ) it's showing the {}
    I've put it in the WIKI.
     
    jo-ka likes this.
  4. jo-ka

    jo-ka Member

    Level: Community
    Perfect, although this is old, it helps a lot.
    Thanks troester.
     

Share This Page