Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2794

Re: Survey Embedded Component

$
0
0

Hi Marc,

 

you need to add a custom Embedded Component to the Activity. In this embedded component, you set parent dependency to "no". Then you add a SADL query. The selection criteria is the incoming shadow visit UUID and with this UUID you can query the questionnaire bo -> valuation_collection node (which contains the surveys). Then you add an advanced list pane to show the results.


To test this, it is best to create a couple of surveys on the shadow visit first, so you can see if the query works.

 

The next step then would be to create a custom BO and generate a quick create on top of it. This quick create can be called from the custom EC inside the activity and can be used to...

 

1) create a new survey on the shadow visit

2) refresh the advanced list in the custom EC to read the created survey from the shadow visit.

 

Number 1 can be done in the before save on the new custom BO for the quick create. The quick create must import the activity UUID as well as the shadow visit UUID. Then you can call the addValuationColl with the Visit ID. I actually used the addValuationCollectionWithRef with the shadow visit UUID, however, this Action is deprectated now.

 

Number 2 can be done by fireing a refresh event when hitting save and catching it on the EC.

 

With these steps, you sould be able to see the surveys created on the shadow visit in the activity and you should be able to add new surveys.

 

The last step is to make the surveys displayable. The questionnaire valuation collection contains some kind of a link key. This is not an html link.

 

To create a link you need an embedded modal dialog, which can be found in the UI Designer in the BYD_COD/SalesOnDemand/Querstionnaire Folder. It is called COD_Questionnaire_MD.

 

This can be added to the custom EC -> Controller -> Modal Dialogs. You can then configure a navigation from the valuation collection link id to the Modal Dialog.

 

Then you should be able to view, create and display suveys on the activity.

 

Best Regards,
Stefan


Viewing all articles
Browse latest Browse all 2794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>