cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Menu binding to collection

Participant

Menu binding to collection

I am trying to bind a Menu object to a collection widget and am having some issues passing fields from the Menu's GetMenuItems service down to the mashup parameter of the sub-mashup.

 

Please see the images below:

service.PNGService is binding with All Data

collection widget.PNGCollection widget binding, showing connection to sub-mashup

json.PNG"title" to "title" mapping

params.PNGSub-mashup parameter config

 

label.PNGMashup parameter bound to label

mashup rendered.PNGRendered mashup. Shows two records returned from service, and one selected mashup below in the collection widget.

Errors.PNGErrors shown.

14:58:24 ERROR - exception executing binding {"Id":"22df3b4e-f5b6-4477-bec3-7ad102aa949d","SourceArea":"Mashup","SourceSection":"","SourceId":"mashup-root","TargetArea":"UI","TargetSection":"","TargetId":"label-3","PropertyMaps":[{"SourceProperty":"title","SourcePropertyBaseType":"STRING","TargetProperty":"Text","TargetPropertyBaseType":"STRING"}],"isBoundToSelectedRows":false,"SourceDetails":"AllData"}
Exception: Cannot read property 'getProperty' of undefined

 

3 REPLIES 3

Re: Menu binding to collection

Try using GetEffectiveMenu because potentially you are running into a permissions issue?

GetEffectiveMenu should show you what the user in actuality has available as menu items.

 

the getProperty from undefined seems to say that the entity is not visible.

I do not see you using this service though.

 

Also double check the datashape, I do believe 'title' lower case is correct, but perhaps in the datashape it is returning 'Title' instead. Not sure if title would be a 'reserved' word, you can always try changing the mashup parameter name to something like mashupTitle.

Re: Menu binding to collection

Tried with GetEffectiveMenu, same error. I am also running as an administrator, and can see the data being bound in the grid above. I can also see that there are multiple cells in the collection widget, showing that the data IS actually bound to the collection.

 

I did confirm in the datashape that title is lower case. I did try with "Title" and didn't have any success. 

 

Changed the param to mashupTitle and had the same error as well. 

Highlighted

Re: Menu binding to collection

I also tried binding to a template.GetImplementingThings data source and have the same issue.