1
Web Server - Ask For Help / NT map: clickable markers does not work work on mobile
« Last post by Poul Jensen on March 29, 2025, 02:22:57 AM »Hi,
NT Maps (Esri - but that does not matter) have points/markers that when clicked opens an update form.
This works great on the PC, but nothing happens on the smartphone.
Any ideas?
tia
/Poul
NT Maps (Esri - but that does not matter) have points/markers that when clicked opens an update form.
This works great on the PC, but nothing happens on the smartphone.
Any ideas?
tia
/Poul
2
Web Server - Ask For Help / Re: Wrong encoding of text on maps
« Last post by Poul Jensen on March 29, 2025, 02:06:31 AM »Just a minor issue:
Encoding is correct when you hover over a point/marker.
If you click the marker and go to the update form, when you the return to the map the encoding is wrong again on that marker. Tips on other markers are still good.
Encoding is correct when you hover over a point/marker.
If you click the marker and go to the update form, when you the return to the map the encoding is wrong again on that marker. Tips on other markers are still good.
3
Web Server - Ask For Help / Re: Wrong encoding of text on maps
« Last post by Poul Jensen on March 27, 2025, 12:05:18 PM »Have now testet NT 14.30 - and this issue is resolved.
Thanks.
/Poul
Thanks.
/Poul
4
Web Server - Ask For Help / Re: Wrong encoding of text on maps
« Last post by Bruce on March 24, 2025, 11:43:24 PM »thanks - fixed for 14.30
5
Web Server - Ask For Help / Re: Button on header
« Last post by Bruce on March 24, 2025, 10:09:05 PM »not really. I had no success making this work.
6
Web Server - Ask For Help / Re: NT Maps - update calling different table/record
« Last post by Bruce on March 24, 2025, 10:07:48 PM »depends if the page is in popup mode or page mode.
You can't set a parameter easily from the Map side, since it's called directly from javascript, but you might be able to set a parameter on the browse side. And then check for that parameter (GetValue) in the form.
You can't set a parameter easily from the Map side, since it's called directly from javascript, but you might be able to set a parameter on the browse side. And then check for that parameter (GetValue) in the form.
7
Web Server - Ask For Help / Re: NT Maps - update calling different table/record
« Last post by Poul Jensen on March 24, 2025, 12:00:46 AM »Thanks Bruce,
Much simpler.....
And it works as suggested :-)
Any way I can detect in the final update form InitForm Routine how this is called.
It could be called from the browse or it could be called from the map, and the code in the InitForm would be different dependent on the calling procedure.
Just so I do not need to maintain two update forms.
Cheers
/Poul
Much simpler.....
And it works as suggested :-)
Any way I can detect in the final update form InitForm Routine how this is called.
It could be called from the browse or it could be called from the map, and the code in the InitForm would be different dependent on the calling procedure.
Just so I do not need to maintain two update forms.
Cheers
/Poul
8
Web Server - Ask For Help / Re: NT Maps - update calling different table/record
« Last post by Bruce on March 23, 2025, 11:28:36 PM »>> the approach of having a second update form on the update form for the point record, is that a good approach?
no.
A better approach, one that will work, is to call the form you want to call. In the example you sent me that would be UpdateUser, in your real app I expect it's UpdateJob, or whatever.
So now the issue is getting the correct record loaded in that table. I'll refer to the example you sent - the map is plotting the accidents, but you want to UpdateUser. So in UpdateUser, in the InitForm routine you need to prime the GUID value of the user to edit.
At this point all you have is the sesison value for the Accident. So the code goes something like this;
Access:Accident.Open()
Access:Accident.UseFile()
Acc:Guid = p_web.GSV('Acc:Guid')
Access:Accident.TryFetch(Acc:GuidKey)
User:Guid = Acc:UserGUID
Access:Accident.Close()
p_web.SetValue('Use:Guid',Use:Guid)
p_web.SetSessionValue('Use:Guid',Use:Guid)
This loads the Use:Guid into the Value, and SessionValue queues, and from there the form can take over.
Cheers
Bruce
no.
A better approach, one that will work, is to call the form you want to call. In the example you sent me that would be UpdateUser, in your real app I expect it's UpdateJob, or whatever.
So now the issue is getting the correct record loaded in that table. I'll refer to the example you sent - the map is plotting the accidents, but you want to UpdateUser. So in UpdateUser, in the InitForm routine you need to prime the GUID value of the user to edit.
At this point all you have is the sesison value for the Accident. So the code goes something like this;
Access:Accident.Open()
Access:Accident.UseFile()
Acc:Guid = p_web.GSV('Acc:Guid')
Access:Accident.TryFetch(Acc:GuidKey)
User:Guid = Acc:UserGUID
Access:Accident.Close()
p_web.SetValue('Use:Guid',Use:Guid)
p_web.SetSessionValue('Use:Guid',Use:Guid)
This loads the Use:Guid into the Value, and SessionValue queues, and from there the form can take over.
Cheers
Bruce
9
Web Server - Ask For Help / Re: web26 example File Upload
« Last post by Richard I on March 23, 2025, 10:23:19 PM »Many thanks Bruce.
regards,
Richard
regards,
Richard
10
Web Server - Ask For Help / Re: web26 example File Upload
« Last post by Bruce on March 23, 2025, 09:56:01 PM »The example is confused by the existence of the Doc:Name field twice on the form, once as a string and once as a file upload. I'll play around with that a bit, but in the meantime if you remove the second field then I think the form will work as you are expecting.