NetTalk Central

Show Posts

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.


Messages - Bruce

Pages: [1] 2 3 ... 743
1
Web Server - Ask For Help / Re: Refresh NWB Header
« on: April 25, 2025, 10:46:32 PM »
ahhh - so when you said "the browse header" you meant in a routine that you happened to name "header".
A small detail, that probably matters with regard to the answers.

The item you are updating in this header, is it specific to this user, or common across all users using the server? It seems like it's a value unique to this user?

Your best option is to make a small example app showing what it is you want to do, and I can look at that and suggest something from there...

Cheers
Bruce

2
Web Server - Ask For Help / Re: Refresh NWB Header
« on: April 23, 2025, 07:18:51 PM »
define what you mean by "browse header" ?

3
Web Server - Ask For Help / Re: Pass parameter in servercall?
« on: April 16, 2025, 06:45:26 PM »
p_web.StoreValue('a')
Is the best way to set a session value to a value, because then if the value doesn't exist (as a parameter) it does not overwrite the session value.
I expect you are just overwriting your session value to blank when the value does not exist.

4
just out of curiosity - does a double tap on the phone open them?
Does the first tap open the tooltip?

5
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

6
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.

7
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.

8
>> 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


9
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.

10
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

11
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


12
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.

13
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

14
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

15
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

Pages: [1] 2 3 ... 743