16
Views
7
Comments
Solved
training 6.6 data queries and widgets 2

i have a question about the training of making an website. It is from 6.6 data queries and wedgets 2 at page 8 it says i need to wright “Add Cast/Crew to “ + GetMovieById.List.Current.Movie.Title, but it does not work for me and i am getting an syntax error caused by unexpected cast element in expression. Can you help me with this? thank you in advance

Champion
Rank: #271
Solution

Hi Erdinc,

You missed out '+' to concatenate Static text and Aggregate value.

Copy and paste following expression in your editor.

Add Cast/Crew to “ + GetMovieById.List.Current.Movie.Title  


Hope this helps!!

Rank: #1247

hi Erdinc,

Please check if you have the required data fetched in your aggregate in the preparation of your page and you are using the correct attribute to set the Title.

Regards,

Shilpa Uppund

mvp_badge
MVP
Rank: #17

Hi,

Make sure to use " and not   “

Regards,

Daniel

Champion
Rank: #271

Hi Erdinc,

Could you please show us your expression in expression editor so that we can tell you what is exactly is going wrong?

In this “Add Cast/Crew to “ + GetMovieById.List.Current.Movie.Title ,

Add Cast/Crew to “ - Static text, hence it should be always in quotes ("")

GetMovieById.List.Current.Movie.Title : Dynamic value which you are fetching from your aggregate.


Please make sure you have quotes mentioned properly in your expression.

Thanks!!

Rank: #9656

Hi Thank you all for answering.. Below is a screenshot of the errors that i receive i don,t no what is going wrong


Champion
Rank: #271
Solution

Hi Erdinc,

You missed out '+' to concatenate Static text and Aggregate value.

Copy and paste following expression in your editor.

Add Cast/Crew to “ + GetMovieById.List.Current.Movie.Title  


Hope this helps!!

Rank: #9656

Hi Shweta, yes that helped thank you very much. Have a nice day

Champion
Rank: #271

We are always here to help you :). 

Have a great learning!!