so here is the javascript from the builder
If I wanted to exclude records without a "location" what is the best way to do that?
I do not want to show records where the location is NULL or empty...
I imagine its writing an if statement on the location field as in location is > " " but I am not sure if it should be in the escaped js or when dimming the variable or what...
Code:
function BULKMARKERS_4cac1e52ea494ad0b499fbb8bcfd950c as p ()dim p as p with p DIM bulk as P DIM bulk.dataseriesName as C = "Series2" DIM bulk.latitude as C = "map_view_lat" DIM bulk.longitude as C = "map_view_lon" DIM bulk.groupNameTemplate as C = "GROUP3" DIM bulk.titleTemplate as C = "{js_escape(ds.data(\"StartDate\"))} {js_escape(ds.data(\"Subject\"))}" DIM bulk.hasDetail as C = "<true>" DIM bulk.detailTemplate as C = <<%str% <b><font size="4">{js_escape(ds.data("StartDate"))}</b> {js_escape(ds.data("StartTime"))}<br> <b>Subject:</b> {js_escape(ds.data("Subject"))}<br> <b>Phone:{js_escape(ds.data("task_call_back"))}</b><br> <b>Description:</b> {js_escape(ds.data("Description"))}<br> <b>Technician:</b> {js_escape(ds.data("tasks_technician"))}<br> <b>Location:</b> {js_escape(ds.data("Location"))} </font><br> <b><font size="5"><a href="http://maps.google.com/maps?q= {js_escape(ds.data("Location"))}">MAP LINK</a> </font></b><br>%str% DIM bulk.markerNamePrefix as C = "BYDATE" DIM bulk.draggable as C = "<false>" DIM bulk.animation as C = "<drop>" DIM bulk.emphasize as C = "3000" DIM bulk.markerIcon as C = "ImageSequence:green:1-20" DIM bulk.overlay as P DIM bulk.overlay.has as C = "<false>" DIM bulk.overlay.value as C = "1mi" DIM bulk.overlay.fill as P DIM bulk.overlay.fill.color as C DIM bulk.overlay.fill.opacity as C = "1" DIM bulk.stroke as P DIM bulk.stroke.color as C DIM bulk.stroke.width as C = "1" DIM bulk.stroke.opacity as C = "1" DIM bulk.javascript as P DIM bulk.javascript.onClick as C = <<%str% %str% DIM bulk.javascript.onDblClick as C DIM bulk.javascript.onDrag as C DIM bulk.javascript.onDragEnd as C DIM bulk.javascript.onDragStart as C DIM bulk.javascript.onMouseDown as C DIM bulk.javascript.onMouseOut as C DIM bulk.javascript.onMouseOver as C DIM bulk.javascript.onMouseUp as C DIM bulk.javascript.onRightClick as C DIM bulk.javascript.onAddComplete as C = <<%str% {dialog.object}.panelSetActive('TASKSMAP');%str% DIM bulk.groupNamesToClear as C DIM bulk.type as C = "ServerSideData" DIM bulk.javascriptfunctionName as C DIM bulk.javascriptproperties as C DIM bulk.clientsideDatatype as C = "JavascriptFunction" DIM bulk.listname as C DIM mapId as C = "taskmap1" end with BULKMARKERS_4cac1e52ea494ad0b499fbb8bcfd950c = p end function
I do not want to show records where the location is NULL or empty...
I imagine its writing an if statement on the location field as in location is > " " but I am not sure if it should be in the escaped js or when dimming the variable or what...
Comment