cancel
Showing results for 
Search instead for 
Did you mean: 

How to Publish Sucess Response to AlfList in AIKAU?

jayachender
Confirmed Champ
Confirmed Champ

Hi ,

I have requirement that i got some JSON response result from Repo Webscript based on Some Search Query.

I want post this results into AlfList in AIkau.This entire process i want on after submitting FORM.

Like faceted-search.

Thanks,

Jay

1 ACCEPTED ANSWER

jayachender
Confirmed Champ
Confirmed Champ

Hi Dave,

thanks for your reply,

actully I tried with "loadDataSucessTopic'

in my custom service after making repo call in success call back I am publish these response into beloway

then I am able to see the result into my list.

this.alfPublish("SUCESS_RESP_TOPIC" + "_SUCCESS", response);

this approach is correct??

Thanks,

jay

View answer in original post

3 REPLIES 3

ddraper
World-Class Innovator
World-Class Innovator

Have you worked through the Aikau tutorial yet? This covers both the concepts of rendered lists and of using the forms - I would strongly recommend that you go through it if you haven't already.

There are also lots of blogs posts that I've written that cover all these topics. This blog post and related video in particular might be useful.

The general approach would be that you have a custom service that handles your Form requests and then publishes the response. You would have an AlfList that subscribes to the topic published containing the results, and then you build a custom view of the data using the renderers from the alfresco/renderers package (such as Property).

jayachender
Confirmed Champ
Confirmed Champ

Hi Dave,

thanks for your reply,

actully I tried with "loadDataSucessTopic'

in my custom service after making repo call in success call back I am publish these response into beloway

then I am able to see the result into my list.

this.alfPublish("SUCESS_RESP_TOPIC" + "_SUCCESS", response);

this approach is correct??

Thanks,

jay

ddraper
World-Class Innovator
World-Class Innovator

In the payload that your custom service receives the AlfList should be providing the alfResponseTopic to publish the results on (in more recent versions the payload will also contain alfSuccessTopic and alfFailureTopic attributes). You can use these values as the topic to publish the reponse on.