AnsweredAssumed Answered

How to load data using AlfListView after using some filter conditions?

Question asked by satheeshkumar on Apr 26, 2015
Latest reply on May 4, 2015 by vincent-kali
Hi All,

I have created some filter conditions as shown in screen shot, which has some date constraints for (QA,UAT and PROD) and it also has some filter condition to filter some product types from the list.

I have created a post web script, to generate the response based on these filter conditions, after filtering I have generated the JSON response something like this,


{
  "deployProductInfoList": [
    {
      "deployToPROD": "Deploy",
      "deployToQA": "Already Deployed",
      "productCode": "BL1429872800",
      "deployToUAT": "Already Deployed"
    },
    {
      "deployToPROD": "Deploy",
      "deployToQA": "Already Deployed",
      "productCode": "BANS1429872793",
      "deployToUAT": "Already Deployed"
    },
    {
      "deployToPROD": "Already Deployed",
      "deployToQA": "Already Deployed",
      "productCode": "BV1429872804",
      "deployToUAT": "Already Deployed"
    },
    {
      "deployToPROD": "Already Deployed",
      "deployToQA": "Already Deployed",
      "productCode": "BA1429618431",
      "deployToUAT": "Already Deployed"
    },
    {
      "deployToPROD": "Not Eligible To Deploy",
      "deployToQA": "Already Deployed",
      "productCode": "BA1429872786",
      "deployToUAT": "Deploy"
    }
  ]
}


How to consume this response using ALfListView or whatever widget and show a table kind of structure, I couldn't find a way to consume this JSON response and show it in UI.

What I meant here is , if it is just a GET request, I can call the web script and populate it using AlfListView and show, but in this case it is not just a GET request, it's a POST request and I'll have to post some filter condition(dynamic filter conditions) before retrieving the JSON response as shown above.

Any help would be greatly appreciated.

Thanks in Advance,

Attachments

Outcomes