This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
1
Web Server - Ask For Help / Re: NT map: clickable markers does not work work on mobile
« on: March 31, 2025, 07:21:11 PM »
just out of curiosity - does a double tap on the phone open them?
Does the first tap open the tooltip?
Does the first tap open the tooltip?
2
Web Server - Ask For Help / Re: Wrong encoding of text on maps
« on: March 24, 2025, 11:43:24 PM »
thanks - fixed for 14.30
3
Web Server - Ask For Help / Re: Button on header
« on: March 24, 2025, 10:09:05 PM »
not really. I had no success making this work.
4
Web Server - Ask For Help / Re: NT Maps - update calling different table/record
« 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.
5
Web Server - Ask For Help / Re: NT Maps - update calling different table/record
« 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
6
Web Server - Ask For Help / Re: web26 example File Upload
« 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.
7
Web Server - Ask For Help / Re: Modify the lookup procedure?
« on: March 23, 2025, 09:03:03 PM »
>> I have a client that no longer wants to store dates in his app. Instead, he wants to store the number of days from a reference date.
I strongly recommend you use Dec 28th, 1800 as the reference date. If you do this then there's effectivly nothing to do, just store the date as a LONG.
Cheers
Bruce
I strongly recommend you use Dec 28th, 1800 as the reference date. If you do this then there's effectivly nothing to do, just store the date as a LONG.
Cheers
Bruce
8
Web Server - Ask For Help / Re: Modify the lookup procedure?
« on: March 23, 2025, 09:00:21 PM »
>> You will need to run a debugger program to see the TRACE statements.
I recommend DebugView++. It's not a debugger, it's a message viewer.
>> I am lazy,
hard to see how it's less work than a single double-click.
Bruce
I recommend DebugView++. It's not a debugger, it's a message viewer.
>> I am lazy,
hard to see how it's less work than a single double-click.
Bruce
9
Web Server - Ask For Help / Re: Button on header
« on: March 18, 2025, 02:30:25 AM »
I had no success try to make this work. I recommend an alternative approach - like setting a data- attribute on the button then attaching JavaScript to that attribute in your custom javascript file.
10
Web Server - Ask For Help / Re: NT Maps - update calling different table/record
« on: March 18, 2025, 02:29:16 AM »
I think you need to make an example showing what you are trying to do.
Debugging-from-descriptions is not enough for me.
Cheers
Bruce
Debugging-from-descriptions is not enough for me.
Cheers
Bruce
11
Web Server - Ask For Help / Re: web26 example File Upload
« on: March 18, 2025, 02:27:51 AM »
Richard,
set up the example app to show the effect you are getting, and then post that example here.
Cheers
Bruce
set up the example app to show the effect you are getting, and then post that example here.
Cheers
Bruce
12
Web Server - Ask For Help / Re: Wrong encoding of text on maps
« on: March 18, 2025, 02:26:05 AM »
Is the database TPS?
I think I will need an example showing the effect.
Specifically I want to see where the encoding is happening - and what is in the database to start with.
Cheers
Bruce
I think I will need an example showing the effect.
Specifically I want to see where the encoding is happening - and what is in the database to start with.
Cheers
Bruce
13
Web Server - Ask For Help / Re: Wrong encoding of text on maps
« on: March 17, 2025, 06:03:40 AM »
>> The table containing the points are dynamically filled
filled from the database? or from something else?
filled from the database? or from something else?
14
Web Server - Ask For Help / Re: web26 example File Upload
« on: March 14, 2025, 07:30:45 AM »
not enough information or meaningful answer.
what kind of file are you uploading? How big is it?
is it set to save to disk?
I presume you are saying the _example_ app is not working for you?
Cheers
bruce
what kind of file are you uploading? How big is it?
is it set to save to disk?
I presume you are saying the _example_ app is not working for you?
Cheers
bruce
15
Web Server - Ask For Help / Re: xHTML routines on a NetWebPage
« on: March 14, 2025, 07:14:39 AM »
have you looked at the generated code to see what is happening?