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

Pages: 1 2 3 [4] 5 6 ... 123
46
Hi Bruce, any ideas?

47
Web Server - Ask For Help / Load balancing
« on: December 16, 2022, 09:41:24 AM »
Hi Bruce, Do you plain to add load balancing to NT14 ?

48
I'm thinking you should maybe break down the process into 2 parts - show the map with no data, then add the data in the background. Construct it as a button push - ie page appears, push button, data appears on the map. Then once that's done you can automate the button-push when the page opens.

Hi Bruce, I did it, Ive added a button which sets a session variable and refreshs the map, then when entering the page, this session variable is false and the map filters does not add any points on the map, than I push the button using js, the buetton sets the variable to true and refresh tha map which adds the points to the Map.
Its working but I need to show the busy.gif in the meantime and I cant
Im using
   p_web.Script('$("#_busy").css(''left'',''50%'').css(''top'',''40%'').css(''display'',''flex'');')
   to show the busy when I press the button
   and p_web.Script('$("#_busy").css(''display'',''none'');') when the map is done.
but I think maybe p_web.NtMap are hiding it in any way.   
Then two questions:

1- how to solve the busy.gif thing
2- how to do it using a progress bar

Thanks

49
Web Server - Ask For Help / How about adding some helper funcions
« on: December 02, 2022, 03:01:47 PM »
How about some p_web helper functions like:

p_web.PushButton(string p_btnname)
    ex:    p_web.Script('document.getElementsByName(''bRefrescarMapa'')[0].click();')
p_web.ShowBusy(string p_left,string p_top)
    ex:    p_web.Script('$("#_busy").css(''left'',''50%'').css(''top'',''40%'').css(''display'',''flex'');')
p_web.HideBusy()
    ex:    p_web.Script('$("#_busy").css(''display'',''none'');')

50
Web Server - Ask For Help / Re: How to get rid of this errorning
« on: December 01, 2022, 06:20:12 AM »
Example sent to yout email.
May be you get errorrs because of templeates you dont have installed but you can get this error too even iwhout those templates.
I cant realize from where proc it comes , theres no info about it in the error.
Thanks

51
Web Server - Ask For Help / Re: How to get rid of this errorning
« on: December 01, 2022, 05:32:26 AM »
Please check what happend when you disable the procedure extension.

52
Web Server - Ask For Help / Re: How to get rid of this errorning
« on: November 28, 2022, 06:12:11 AM »
Bruce, please, I need to solve this.

53
Thanks, this may be a new NT14 template feature !

54
And to delete the ?orphan?threads, that  wich the user fired but leave the page...
How about a Memory file, adding a record when starting the proc, saving the sessionID and threadNr which fires it, and inside the proc, in the loop reading the map pionts, fetch if there are a record with this sessionID and different theradNr, and then kill the tread?
Or notify all thrads that IM beggining the process using a sessionID and inside the proccess if I have the same SessionID then kill the process.
This could be a feature in NT14 !
BTW, hows the best way to kill the tread?

55
Page mode

56
Web Server - Ask For Help / Re: Responsive login forms
« on: November 18, 2022, 08:48:27 AM »
Choose Div in the LoginForm Html method.
See pic

57
I have a Mem form that sest some filters and shows a browser with address to visit (lat/lon)
The form has a button wich calls another mem form with a map in it to shows the icons of the address on the map.
When there are many icons the form takes some time to appear, the mem form obly appears when the map i complete,
meanwhile the user still sees the actual mem form.
If the user gets impatient and leaves the filter form while the map form is beeing generated this thread is still working, the map is still beeing generated.
The same if the user enters again to the filter form and press again the map button.
Is there any way to show the map mem form before the map generation is beeing made? and show a message like "wait for the map"
Is there any way to delete the map thread if the user leaves the page and the map generation isnt finished?

58
Web Server - Ask For Help / GPF on Web Maps
« on: November 18, 2022, 07:18:36 AM »
C11.1
NT12.47

Reported error : EXCEPTION_ACCESS_VIOLATION - Error reading data at : 0DB90008h
Windows : Win 10 - 10.0.19043
Clarion : 0.9
Thread : 3    Field : 0    Event : 1024    Keycode : 0
Error at address : 78D453EFh  Line=11258  Proc=R$PARENTCALL  Src=NetWeb.Clw  Module=C:\!sourceC111-NT12\GaosC11dll\DATA.dll 2022.11.17.320
Stack Trace
??? 009C6970h    Line ?=4432    no proc       Src=PaqWeb.clw
??? 790D3854h    Line ?=65    no proc       Src=Xplore.CLW    Module=C:\!sourceC111-NT12\GaosC11dll\DATA.dll 2022.11.17.320
[01] 78D7509Fh    Line=11236    Proc=_JSOK@F22NETWEBSERVERWORKERBASEOsbll  Src=NetWeb.Clw    Module=C:\!sourceC111-NT12\GaosC11dll\DATA.dll 2022.11.17.320
??? 009C6970h    Line ?=4432    no proc       Src=PaqWeb.clw
[02] 00788723h    Line=1656    Proc=R$VALUE::ACCIDENTSMAP  Src=PaqWeb028.clw

PaqWeb028.clw     NetWebForm with a Map control
AvonMap              PROCEDURE  (NetWebServerWorker p_web,long p_stage=0)
line 1656:
p_web.SetOption(loc:options,'title',p_web._jsok('Entregado: '&clip(ppqc:OrdenId)&' '&(ppqc:AvonDayRoute*1)&(ppqc:AvonTravelRoute*1)&' '&ppqc:AvonSecuenceRoute))

it calls _jsok with a string, it could be called hundred of times depending on the number of waypoints to draw.

NetWeb.Clw
line 11236:
  do ParentCall


NetWeb.Clw inside the ParentCall routine
line 11258:
    y = self.WebServer._jsok(self.AsciiToUtf(p_notok),html,ReturnValue)


The strings passed are like:
"Entregado: 68826397 31 40  4/11/22 07:29"
Ive added some AddLogs to see it in the log screen, see pic

The process of generating all the icons on the maps work ok, you get the map and can use it.
But the server goes slower and slower, I dont see nothing weird in the perfomance tab.
And when you CLOSE the server, yo need to restart it to solve the slowness... you get the GPS allways in the same lines.

Any idea?




59
You need to change a property that sets the pefix length.
Sorry Im not at the office now to help more.

60
Web Server - Ask For Help / How to force a re-login to go to the IndexPage
« on: November 17, 2022, 03:46:52 PM »
When a page needs to be logged in and you try to get it, it goes to the LoginPage, ok, but when you log in it tries to open the last page, which in some cases is a real problem.
How to go always to the IndexPage when logging in?

Pages: 1 2 3 [4] 5 6 ... 123