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.


Topics - tglomb

Pages: [1] 2
1
E-Mail - Ask For Help / How to set my own Message-ID ?
« on: November 13, 2019, 04:04:06 AM »
Hello,
I must set my own Message-ID in the header of an email (to send with NetEmailSend). I can use self.messagID=myownvalue (basicly a GUID), but it's useless because the class always overwrites it.
Background: I send an Email and the receiver sends one or more Emails back (automatically) which belongs to the sent Email. The received Mails can come in arbitrary order. I must match these Mails like a "1 to many" relation.
I tried self.ExtraHeader, this works but the Message-ID entry generated by the class is the first line in the sent Email. My entry via ExtraHeader comes later and so I guess it's ignored by the Receiver.
What is the secret or background of setting an own Message-ID ?
TIA, Thomas

2
The Rest - Ask For Help / problem to Post XML to an URL
« on: September 24, 2018, 01:08:24 PM »
Hello,
I must Post (NetWebClient) XML data to an URL:Port. Somehow it doesnt works. Here my Code:

mycstring= '@XMLDATA=<?xml version="1.0" encoding="UTF-8"?>' & crlf & |
       '<methodCall>' & crlf & |
         '<methodName>DisplayStudy</methodName>' & crlf & |
         '<params>' & crlf  & |
          ....
         '</params>' & crlf & |
         '</methodCall>'


   sender.SetAllHeadersDefault()
   sender.HeaderOnly = 0
   sender.Cookie = 'Cookie'
   sender.Referer = 'Referer'
   sender.ContentType = 'application/xml'  ! -www-form-urlencoded'
   sender.AcceptEncoding = ''
   sender.Pragma_ = 'no-cache'
   sender.Post( 'http://'& clip( theURLandPort) &'/', mycstring)

What's wrong ?
Any ideas and hints are welcome.

TIA, Thomas

3
Hello,
my project is a Server (Self)service for different tasks. I use a MDI Application frame and several MDI Client Windows procedures as worker threads for the different tasks (so far only file- and DB based). Now I added a new task and so a new MDI client proc which shall be a NetServer according to Scenario 1. This proc instanciates (as the only one in the App) the NetServer object.
The problem now is, that the NetClient Apps (at 5 PC's in the LAN) "sometimes" cannot see the NetServer. This means GetServers() returns always -16. "Sometimes" means that i.e. 2 PC communicating immediately with the Server, 1 needs 10 minutes, the rest 1 hour. The comm. breaks regularely, for no reason they loose connection (-16 again). the normal network functions are working properly at these PC's and when GetServers() returns 0 then the Apps do correctly what they shall do. (BTW It works the same way as Service or as started by hand)

My first question: is it a problem to use NetAuto NetServer in a MDI Client procedure within a MDI Application frame ?

TIA, Thomas

ps the code and settings according to the Scenario 1 example and docs is double checked !

4
The Rest - Ask For Help / GetServers() error after restart server
« on: July 06, 2015, 10:04:13 AM »
Hello,
I have an App according to Scenario One. A NetClient App (on a Client PC in a LAN) is asking (polling) the NetServer App (on a virtual Server in the LAN) if it has data for the Cleint. The NetServer is answering with data or with no. In the Process method of the NetClient is a "if GetServers()..". This works for one week without any Problems - except..
Every sunday the Server is restartet, the NetServer App starts automatically (in a script). But then in the NetClient Apps in Process method the GetServers() method returns with error. After closing and starting the NetServer App  again everything works perfect again for one week (next Server restart).
Does anyone have an idea what happens ?
Any ideas appreciated,
regards, Thomas
(C10gold, NT8.44)

5
Hello,
I need some help or insights for the following situation: with my NetSimple App I connect to a Socket
of a another Software which I have no control of and send some data to them. It works well in general.
From time to time this Connection is closed by their Software, they dont know why. My question is
which kind of housekeeping I must do in between the connection breakdown and my reconnect.
Please have a look at my code (shortened), especially at the ???:
in a timer event I have (the connection is opened in init)..

0{ prop:timer}= 0 
now collectig the objects to send
loop over the objects
  if ThisSender.OpenFlag
    ...
    ThisSender.send()
  else ! when the conn is closed by receiver
    ??? do I need here some housekeeping code or so ???
    ThisSender.AsyncOpenUse= 0                                      ! I use sync mode
    ThisSender.InActiveTimeout= 100000000
    ThisSender.Open( ip, port)
    if ThisSender.OpenFlag
      ...
      ThisSender.send()
    else
      saving remaining objects to send for resending later
      break
    end
  end
end!loop
0{ prop:timer}= 6000

Any hints appreciated.
TIA, Thomas 

6
The Rest - Ask For Help / NetAutoClose
« on: April 02, 2014, 04:26:34 AM »
I implemented NetAutoClose funktionality in my App and it works great. Purpose is to close gracefully the App from the server where I have the access too  on all workstations they forgot. But.. (there's always a catch..)
I told my customers that with the first start of the App after my update the Windows firewall will popup and ask for permission and that they must say yes. Ofcourse there are some clients which have said no. Now the NetAuto traffic is blocked at these machines and I cannot close all forgotten instances of the App.
This is a support nightmare !
Any hints or ideas how to overcome this situation beore I run the update for my other customers ? Anything possible ?
TIA, Thomas

7
Web Server - Ask For Help / class methods description
« on: March 24, 2014, 03:53:53 PM »
maybe I'm blind.. where can I find a description of the methods and properties of the Webhandler class a.s.o. ?
TIA Thomas

8
Web Server - Ask For Help / .nt-menu-item a and !important
« on: March 24, 2014, 03:28:58 AM »
.nt-menu-item a {} has an !important for the color setting. Why ?
I like to overwrite this Color..

9
Web Server - Ask For Help / How to store "global" Config data
« on: March 22, 2014, 07:04:49 AM »
I need to store some global values a user configured in a session so that the next time he uses the program it must not be done again. These values must be persistent for ever and some of these values I must read out at the very first possible point, before any website is openend, especially before the Login. This is like having an Ini file/registry setings for Win32 progs which I read out at mainframe procedure setup embed.

These values are workingplace/device related, because some of it I must use before the program knows which user has logged in.
So, how to Cookie it ? Which embeds I must use ? Any hints and ideas are appreciated.
TIA. Ciao Thomas

10
Web Server - Ask For Help / file opening and WebHandler
« on: March 21, 2014, 02:53:59 AM »
If I have a file access (TPS at the moment) in the WebHandler can this be a performance penalty ? If I understand correctly, with each request from a user the WebServer opens a new thread - the WebHandler. So every time a request is getting processed the file is opened and closed. Correct ?
Can this be a problem with lots of simultaneous/parallel requests ?
TIA and Ciao, Thomas

11
Web Server - Ask For Help / UI runtime translation
« on: March 20, 2014, 07:56:27 AM »
Does anybody knows a way of a translation of all text at runtime ? In my project I must let the enduser select at runtime a certain language, at least German, English, Italian, .. with a single click on a button. Is it possible todo via mapping tables for any elements in the UI ?
Any ideas apreciated !
TIA, Thomas

12
Web Server - Ask For Help / NT8 CLAnet.dll version resource
« on: March 18, 2014, 02:11:34 AM »
..shows version 7.32. Ok so ?
Ciao, Thomas

13
Web Server - Ask For Help / anything wrong to use "! importand;"
« on: March 04, 2014, 03:44:08 AM »
I need to set an overall background color. I don't want do it for every single page (CSS color setting or inherit)...
Or is there a better method ?
TIA, Thomas

14
Web Server - Ask For Help / how 2 overwrite nettalk-ui.css ?
« on: March 03, 2014, 03:45:03 PM »
I could change a lot of settings I needed to change with my own theme like CSS. But nettalk-ui.css is the last man who wins... Does it means that all settings inside nettalk-ui.css I cannot overwrite ?

15
Web Server - Ask For Help / CSS hierarchy tool
« on: March 03, 2014, 02:10:35 AM »
Does anyone know a tool which can show for a page the applying order of the CSS files and which classes ect. are affected ? I know about CSS and how to read it by myself, but it would be a lot faster to see it directly than to trial and error or to dig into a hierarchy depth of 8..
I mean i.e. let me point to a class .abc and then see the order of the CSS files in which this class gets overwritten.

Or do I need to wait vor NT8 and it's Visual Designer ? ;-)

TIA, Thomas

Pages: [1] 2