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

Pages: [1] 2 3 ... 6
1
Web Server - Ask For Help / Sequence of includes in the header
« on: August 03, 2020, 10:39:00 PM »
Hi,

I want to use a Bootstrap function on a specific page so I'm adding  a link to the BS file(s) in SetCustomHTMLHeaders. However, the files are included before the JQuery files that NT uses - no matter if I set the header before or after the parent call. And since the bs-function in question is dependent on some jQuery js I get an error ("x is not a function").

So my question is: how can I add stuff to the header after what is generated by NT?

Peter

2
Web Server - Ask For Help / Timer stopped working
« on: July 06, 2020, 07:03:29 AM »
A customer notified me today that the timer (on a browse) doesn’t work any longer and I can confirm. Not sure when/in which version it stopped working, though. I’m currently using 11.37

Peter

3
Web Server - Ask For Help / Serve file - download or open?
« on: June 08, 2020, 12:22:26 AM »
I have a form with a start button and a progress control. The start button calls a source procedure that creates an xml file using the xCell class in xFiles. The file is being generated and the progress is being updated - and when the source proc is finished the progress changes to a download link. So far so good.

Now, if I (left) click the download link the raw xml file opens in the browser, but if I right click the download link and save the file, I can then (left) click the file and it opens in Excel (which is the desired behavior).

I've studied (and copied) the generated code in the ExportToExcel routine but I must be missing something. I would like the file to open in Excel when the download link is clicked. But how?

Peter

4
In two newly created web apps I've included a couple of Net:s tags ( <!-- Net:s:mySessionVar --> ) in the PageHeaderTag and IndexPage procedures - just like I've done in many other apps.

The problem is that nothing displays and I know for sure that they hold some value. There's no sign of the tag nor the content in the generated source. Strangely, Net:d:year and Net:f:myFile does work.

Has anyone else seen this and what could be the cause of this?

Peter
NT11.35

5
Web Server - Ask For Help / Redactor icons missing 11.31
« on: March 30, 2020, 02:03:00 AM »
After recompiling an app in first 11.30 and then 11.31 some icons are now missing from a text control that uses redactor. I haven't changed anything in the program. The program was previously compiled with 11.some-low-number.

Do I need to do something or is it an oversight of some sort?

Before and after pics attached.

Peter

6
Web Server - Ask For Help / Milti-site host documentation?
« on: October 28, 2019, 08:47:56 AM »
Where do I find documentation for the multi-site host?

There's nothing at all on the Capesoft site and a post made by Bruce in 2010 here on NT Central had it's attachment (apparently the documentation) removed by Admin.

Peter

7
Web Server - Ask For Help / (Slightly OT) Image to PDF
« on: October 17, 2019, 11:23:25 PM »
Hi,

I'm looking for a way to (programatically) convert uploaded image files to PDF.

I could load the image file into a report and create a PDF from there but there must be a smarter and more direct way.
Any ideas?

TIA
Peter

8
These are my thoughts about a special case of a disconnected app. I'm very open to comments and/or alternate ways to do the job :-)

Picture an app that only creates new transactions with no need to see already existing transactions (think stock picking or posting to a disbursement account while standing at the gas station) - is NT the right choice for this type of app?

I'm considering creating a file for new transactions only and let NT do the sync'ing to this file. Then - in an appropriate embed point after a successful insert - write some code to update the "real" data base table and remove the uploaded transaction. This way I'd get the sync'ing 'for free' with only a tiny delay in the updating of the db which is not really important in this situation.

I think it would work but since it's new ground I'm keen to hear other opinions on this. Or being told "Yes, that's the way to do it" :-)

Thanks
Peter

9
Web Server - Ask For Help / 11.20 - Save/Cancel broken - plus more findings
« on: September 02, 2019, 05:29:57 AM »
Memory Form - Browse - Form (table)
Save and Cancel buttons are not responding on the Form (table).

On all forms: all fields start on a new line - regardless of the settings in "Last on line" and "Last in cell"

Browses: First, Next, Previous, Last buttons  are now stacked on top of each other

Locator: Search and Clear buttons are stacked, not side-by-side

Text fields, Lookup fields and Date fields are almost as wide as the form


Except for the first ones it appears there's a general problem with css.


Peter

11.20 - theme: base

10
Topic says it. I want to filter out certain records if in lookup mode.
I've tried looking at loc:selecting and loc:SelectAction but they don't do anything is this respect - as far as I can tell.

Peter

PS. Any news on this (posted by Bruce on August 21.)?
b) you need NetTalk 11.20 or later (that will be up later this week.)

11
Web Server - Ask For Help / Date field again (11.18)
« on: August 03, 2019, 12:53:38 AM »
Now the date field is less wide which is good. But the lookup button seems to get the same width as the field which is not so good.

Update: The problem is in EDGE, IE and Crome - NOT in FF.

Peter

12
Web Server - Ask For Help / serviceworker.js in a web app?
« on: July 21, 2019, 01:34:51 PM »
In the log for a NT10.35 server app I'm seeing lots of "GET /serviceworker.js" - is that to be expected? I can't even find that script anywhere. And what is it supposed to do for a server app?

Peter

13
Web Server - Ask For Help / Dct fields for disconnected app
« on: May 26, 2019, 11:18:48 PM »
In prepping for writing my first disconnected app in NT I'm studying the BasicMobile app/dct.
This leads to a question regarding the 3 timestamp fields:

It seems a bit overkill to have to designate these fields in three different ways:
  • fixed field name (e.g. 'TimeStamp')
  • external name (e.g.'ts')
  • user option (property 'timestamp' value '1')
Are they really all needed?

Peter

PS. And apparently neither ext name nor user option is needed for the guid field to work (?)

14
Web Server - Ask For Help / User option GUID
« on: April 08, 2019, 04:29:32 AM »
I'm trying to assess the amount of work involved in making an existing app qualify for becoming 'disconnected'.
It's a fairly large app with many tables and they've all got a guid field already - problem is that these fields are named customer_id, item_id etc. (and fk_customer_id, fk_item_id when used as foreign keys). Changing the dictionary/database is not the big problem, it's all the hand code refering to these fields!

In a thread started by Jane ("Disconnected app fields?") on Dec 10 2018 I read about a user option called 'GUID' that can be set to 1 in order to identify the guid column in a table. However, Bruce wasn't sure if it's fully implemented.

So my question is this: has anybody used this option and does it work?

Peter

15
Web Server - Ask For Help / PWA experience?
« on: April 01, 2019, 07:50:41 AM »
Hi all,

Does anyone have any examples of or experience with the look & feel of NT generated PWA's?

As it is it's possible to "install" a web app on a phone or tablet by adding it to the home screen (provided you've got the right header settings and icons etc). This way you get rid of the browser frame but the app still very much behaves and looks like a web app. So I'm curious about what a PWA looks like - particularly when it comes to navigation, browses etc. Does it feel more like a web app or more like a native app? Or is it simply all about using the right CSS?

In the past I've been writing some native apps using a non-Clarion tool but I'm considering switching to PWA in order to avoid maintaining versions for different OS's and in particular not having to deal with the stores.

Any input is greatly appreciated as this is completely new to me.

TIA
Peter

Pages: [1] 2 3 ... 6