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

Pages: [1] 2
1
E-Mail - Ask For Help / SOLVED: Procedure entry point error
« on: November 20, 2015, 01:32:44 AM »
After upgrading Nettalk & Sringtheory and recompiling my mutli-dll app. I get an procedure entry point error when trying to run the app:

SIGNMESSAGE@F12NETEMAILSEND12STRINGTHEORYsbsb

I have checked and it looks like the correct clanet.dll is in my app folder.


2
E-Mail - Ask For Help / Strange inconsistent Nettalk Email behaviour
« on: November 19, 2015, 04:07:02 AM »
I'm experiencing an issue where I generate a pdf from a report (using pdfexchange), then I have an email window (basic nettalk sendmail) where the user enters several to: addresses and the pdf file is attached (automatically by my proc). Some of the recipients are receiving mangled pdf's (all nul if opened in notepad++) that the pdf viewers cannot open - others (from the same email), the same attachment arrives fine.

If the user saves the pdf to a drive and then manually attach using his email client, then it never seems to get mangled. If I inspect the produced pdf it is also fine.

Where can the mangling happen?  Does Nettalk send a seperate encoded attachment to each recipient?

3
After the user has successfully logged in, I send them to a specific page. This is the default page on my WebServer object.

If the user refreshes this page (using F5 or the reload button) he gets a modal browser message box that says that the browser will have to send information that will repeat any action.

There is also menu link to the page. If I hit that first then the refresh does not trigger this message.

Is there a way to avoid this message?

Cheers

Chris

4
Web Server - Ask For Help / Bug in multiple select?
« on: March 20, 2012, 02:40:40 AM »
I have traced the code that is making multiple select drop list not work. The problem is that you cannot prime the value of the the field for the browser.

In the NetWebServerWorker.CreateSelect method there is the following code:

  If p_multiple > 0
    ReturnValue  = '<input type="hidden" name="'&clip(p_Name)&'" value=";|;multiple;|;"></input>'
  End

This always makes the content of value property in this input to be ";|;multiple;|;". There is no way to replace this value before the value is sent to the browser.

This means I can receive multiple values but I cannot prime the select with multiple values, making it worthless as an input option.

To solve this I suggest that the template changes. Instead of just concatenating the return from the CreateSelect  to the packet, store it in a local variable, give me an embed point so I can replace the ;|;multiple;|; part of the result with something meaningful and then after this embed, concatenate the local variable.

Workable? Of course the best solution would be for the Nettalk template and classes to handle this transparently and store the appropriate values and never use ;|;multiple;|; - even if this means I have to work with strings delimited with ;|; - that's what I have StringTheory for.

5
Web Server - Ask For Help / Droplist multiple selection
« on: March 15, 2012, 05:14:12 AM »
Has anyone implemented a multiple selection droplist. My reults are this: In the form in the ValidateValue::Loc:Var i get the values in my string variable to be: ;|;1;|;3;|;5 - which is cool it is a (somewhat laboriously) delimited string.

I can split this (using StringTheory off course  :) ) and reformat and save this and that's cool.

The problem is this: When I hit the save button, the value changes to: ;|;multiple;|; and the user's individual choices are now lost. I assume there is some flavour of ValidateAll happening.


6
Web Server - Ask For Help / SendTo with NTWS?
« on: November 30, 2010, 02:05:40 AM »
I need to implement something like SendTo. Ideally a button on a browse for each of the formats: csv or pdf. The user then gets a download of the contents of the view (after filters). I do not specifically need the email/print/ftp options.

SendTo relies on a queue and list format to do its magic. We do have a view in the NetWebBrowse but not the browse queue and list format.

I can handcode it but must do it for every Browse - I am hoping for a generic approach, maybe a template?

7
Web Server - Ask For Help / Pop-up form does not display properly
« on: November 28, 2010, 11:58:32 PM »
My forms are all pop-up and they all display except for 1. It display the pop-up but the tabs and fields are not displayed.

I can see them being generated and sent to the server (logging SendPacket routine) but the form just displays the action header and close icon but nothing else.

Is there a setting or something that I am missing?

8
Web Server - Ask For Help / Small button not displaying right
« on: November 24, 2010, 04:35:13 AM »
I have added the 'nt-small-button' CSS class to my webserver procedure. The buttons are smaller but appear vertical and over each other. See the attached pic.


What am I doing wrong?

[attachment deleted by admin]

9
Web Server - Ask For Help / FormBrowse performance of hidden tabs
« on: November 23, 2010, 10:42:53 PM »
Hi All

I have a filter form that drives several browses, each on its own tab. This FormBrowse is called with a parameter that tells it which browse to display. Each tab then has a conditional display criteria.

This all works fine and I get a dynamic filter that is consistent across all browses.

My question is this: I can see from my debug trace that all the other browses are called, even if they are hidden. Also all the select browses that the form part uses are also called. Does this mean that the full back-end call to fill these hidden browses are also done? Is there a way to not call the browses or  selects until they are actually require? This would surely have a huge performance impact on me if I load lots and lots of browses from this one form.

Also it seems that the "Load Tabs on-demand" option does not work, it displays the word "spacer" and no data.

10
I have a browse/form on a table that has a three component unique key. When I hit the change button the form loads but with the record not found error message. The key component fields for the record show different values than the one that was highlighted.

It is as if the values of the key values are not stored properly for rereading when .

In fact the following shows that all three key components have different values of only the third component:
p_web.GetSessionValue('PT_PACK:orgzn')
p_web.GetSessionValue('PT_PACK:commodity')
p_web.GetSessionValue('PT_PACK:pack'

Is there some magic to get multi-component keys to work?


11
Web Server - Ask For Help / Manually control child browse
« on: June 29, 2007, 09:12:09 PM »
Hi All

I have a from with a parent browse on the first tab that needs to drive a child browse on the second tab. I cannot use a file relationship and want to do this with a filter.

Sort of: change row in parent and then when you change tabs reload the child with the appropriate records.

Any suggestions?

Cheers

Chrus

12
Web Server - Share Knowledge / Licensing and javascripts
« on: June 22, 2007, 10:17:49 PM »
Hi All

Now that we can build our own web servers/applications I started snooping around the internet for components to use, as becomes a member of the ultra lazy programmers club.

In an earlier reply to a question of mine regarding using javascript libraries, Bruce warned me against licensing - especially open source.

So my question is this: which licenses are acceptable and which are not.

A case in point: http://www.dhtmlgoodies.com/ They have a lot of stuff I would like to use. Their license is LGPL (http://www.gnu.org/licenses/lgpl.html)

This seems fine to me and OK, but what ro I know.

Your thoughts?

Cheers

Chris

13
Web Server - Share Knowledge / Uppercase input
« on: June 21, 2007, 12:37:44 PM »
To force an entry to uppercase:

1. Create global variable:
js:uppercase STRING('javascript:this.value=this.value.toUpperCase();')

2. In the entry field properties, client tab put that variable (no quotes) in the javascript hand-code entry filed (the onchange group).

The field will be made upper case when the user tabs off it.

Chris Laurie

14
Web Server - Ask For Help / Multiple selects from 1 button
« on: June 21, 2007, 01:36:36 AM »
Hi All

I have a droplist with three items (account type) and depending on which option is selected in the drop list I need to use a different select screen for another field (account number) as their are 3 possible source tables for the same number, depending on type.

How do I call and handle one of the 3 different select pages?

Also I need to make validation on entry and display the correct description. I assume I can just say send new value to server on the drop list and the correct value for account type is stored in the session queue for me to use.

Cheers

Chris

15
Web Server - Ask For Help / How does validation work?
« on: June 20, 2007, 12:44:17 PM »
Hi All

I'm trying to figure out how to do validation in a form. I have a date field that the user enters. In the validate routine I take the date and find the appropriate defined period based on the entered dates and the start end dates of the period. If I find the appropriate period I update another field and all is ok. If I do NOT find a valid period, I change the comment to 'Date not in valid period. I also set loc:Invalid. The error comment display works but even though I set loc:Invalid the form still accepts the invalid date.

If I copy the validate code to validate record then the form will not take the date BUT the comment is not updated. I also expected the field to be colored?

So, what is best practise for doing field validations where the validations are more complex than simple range, alpha etc.

Cheers

Chris

Pages: [1] 2