Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8832

Write macros in Select query in Query Data source

$
0
0
Hi, Can I write macro {% Settings.EnteredLocationLatitude #%} inside Select query like below.In the first column I am calling a function, which will give me the distance. But it is throwing error. If not possible this way, could you please tell me how to pass some value in that function, which is not static value? SELECT DISTINCT [dbo].[Func_Cms_GetDistance](ISNULL(CL.LocationLatitude, 0), ISNULL(CL.LocationLongitude, 0), {% Settings.EnteredLocationLatitude #%},'-104.990251') as distance ,CL.LocationName,CL.LocationAddress,CL.LocationCity,CL.LocationState,CL.LocationZip FROM custom_Location CL Thanks, Joyanta

Viewing all articles
Browse latest Browse all 8832

Trending Articles