[mapguide-users] MGOS 3.1.1 Data Presentation in the Properties Pane (Fusion)
Mike Herel
mike.herel at gmail.com
Tue Aug 21 11:07:51 PDT 2018
Thanks Jackie,
I gave this a try without any luck. It seems Fusion.SelectionPanel is
undefined and I don't see any way to access the SelectionPanel. I think I
should be OK with writing the code inside the function, I just need help
getting hooked into the right place.
Thanks
On Wed, 15 Aug 2018 at 08:19 Jackie Ng <jumpinjackie at gmail.com> wrote:
> Ok, this is the "problem"
>
> In MGOS 2.5 and older, Fusion hits several sets of PHP scripts to get
> selection properties (one of which being Selection.php)
>
> From 2.6 onwards, as part of optmizing the roundtrip of viewer selections,
> we made a enhanced version of QUERYMAPFEATURES in the mapagent and modified
> Fusion to hit that instead.
>
> However, the mapagent serves datetime values over the wire in a
> locale-neutral format (yyyy-mm-dd hh:mm:ss). Fusion has no date/time
> formatting specifics in the selection panel so it displayed such date/time
> values as-is.
>
> Selection.php in Fusion must've taken server locale into consideration when
> it wrote out its datetime values.
>
> The easiest solution I can think of is to introduce a new startup hook in
> Fusion that lets you customize the date/time display formatting.
>
> So in your template, you'd call something like this before the main
> Fusion.initialize():
>
> Fusion.SelectionPanel.setDateTimeFormatter(function(dateStr) {
> //dateStr will be in yyyy-mm-dd hh:mm:ss
> //return a formatted version to your liking
> });
>
> - Jackie
>
>
>
> --
> Sent from:
> http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapguide-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20180821/e5f5b3b5/attachment.html>
More information about the mapguide-users
mailing list