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 - Johan de Klerk

Pages: [1] 2 3 ... 15
1
Hi Richard,

If you have StringTheory then it is easy and fast.

IF ~EXISTS('yourfilename.CSV')
    ST.SetValue('Name,Login,Datein,TimeIn'&'<13,10>')
    ST.SaveFile('yourfilename.CSV',FALSE)
    ST.SetValue(ExpCSV:Label1&','&ExpCSV:Label2&','&ExpCSV:Label3&','&ExpCSV:Label4&'<13,10>')
    ST.SaveFile('yourfilename.CSV',TRUE)
ELSE
    ST.SetValue(ExpCSV:Label1&','&ExpCSV:Label2&','&ExpCSV:Label3&','&ExpCSV:Label4&'<13,10>')
    ST.SaveFile('yourfilename.CSV',TRUE)
END

Not tested and there might be a better and faster way.

Regards

Johan de Klerk





2
Web Server - Ask For Help / Re: Another problem with NT 14.14
« on: January 22, 2024, 03:00:18 AM »
Hi Bruce,

Thanks.
Can confirm Generating Modules and Opening Embeds is back to normal speeds.

Regards

Johan de Klerk

3
Hi Bruce,

I need to get the file name that the user selected to be uploaded as soon as it was Selected via the "Add File" button.
If the File Name is wrong or it has already been uploaded I want to run some clarion code and Clear the File Name/Selection and popup an Alert Message and the Start button should not show.
Or check the file name, run my clarion code, popup alert message and press the "Clear" button.

I need to verify the file name before the user uploads a 50MB file and then only in the Save File Embed I reject it if the file name is wrong or it has already been uploaded.
Each user on the system have a specific format and file name to check.

Can you please explain how I can achieve the above.

In the FireFox Developer Tools I see the File Name and Size in this section after it was selected:
<table id="Tngv24" class="nt-upload-table ui-corner-all" style="">
<tr id="Xmh993e">
<td>XTest_FileForUpload.json</td>
<td id="ZXmh993e">41 KB</td>
<td id="WXmh993e">
<span class="">Waiting</span>
</td>

Clarion 10, NetTalk 11.57.

Regards

Johan de Klerk

4
Web Server - Ask For Help / Re: Another problem with NT 14.14
« on: January 18, 2024, 08:31:59 PM »
Hi,

On my system the slow compiles (Generating Modules) and slow opening of embeds started about 2 weeks ago.
Windows 11, Clarion 10, NT 11.57.
All other CapeSoft templates up to date.
The only templates that was updated on this system is all the other CapeSoft templates.

I don't think this slow thing could be related to NT 14, well not in my case.

There is a thread on ClarionHub about this: https://clarionhub.com/t/extremly-slow-compile-clarion-11/3637/39

Regards
Johan de Klerk

5
Web Server - Ask For Help / Re: Tree control
« on: December 22, 2023, 04:39:21 AM »
Hi Thys,

As far as I know there is a Tree Control in NT.
See this thread:
https://www.nettalkcentral.com/forum/index.php?topic=8944.msg36640#msg36640

Regards

Johan de Klerk

6
Hi Stu,

Thanks for your reply.

I think I tried it and if I remember correctly it did not work as expected.

Will try again.

Regards

Johan de Klerk

7
Hi Bruce,

Thank you very much.

I totally forgot about these settings for NetTalk.
I am also using LibCurl in one instance and I wanted to see what LibCurl sends and receives.

Regards

Johan de Klerk

8
Hi ROn,

Thanks for the explanation.
I have been battling to see what I want.
Seeing everything I don't want, I think.

Will try your description again and see if I can get it to display what I want.

Regards

Johan de Klerk

9
Hi Bruce,

You previously said you use WireShark to inspect NetTalk traffic.
Can you please explain how to use WireShark to inspect the NetTalk traffic.

I am testing on 127.0.0.1:88.
I would like to see all the header & packet my browser send to the NetTalk server.
My NettTalk server connects to a web/API service on the internet.
I would like to see the headers & packets it sends to the web/API service and the return.
It would be great if you might be able to demonstrate this live also on n NetTalk webinar.

I have WireShark installed but either I am stupid or it is not capturing the correct data but I am not seeing anything that looks like header data.

Regards

Johan de Klerk

10
Hi,

Thank but it still only goes back to 1923.
It might be because I am using NT 11.57.

Have NT14 but not yet upgraded.

Regards

Johan de Klerk

11
Hi Bruce,

It seems the -117 does not work.

Instead of going back to 1906 it only goes back to 1923.

Regards

Johan de Klerk

12
Hi Bruce,

Thank you very much.

Regards

Johan de Klerk

13
Hi,

I have tried:
p_web.SetOption(loc:options,'yearRange', '-117')

I think it might be the '117' that is causing my Date Picker not to show.

Any help will be appreciated.

Regards

Johan de Klerk

14
Hi,

I have the same Memory Form that is called as a POPUP from a inline button on a browse and it can also be called from a menu item.
Depending from where it is called from certain fields will be readonly or hidden.

How would I determine from where/who it was called from?

Regards

Johan de Klerk

15
Hi Vinnie,

Thank you very much.

It works perfect.

Regards

Johan de Klerk

Pages: [1] 2 3 ... 15