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.
16
Web Server - Ask For Help / Popup Progress Window - Is this possible?
« on: October 08, 2013, 07:48:40 AM »
I have a NetWebForm that has quite a lot of length validation steps.
At present I have poached some code from the Timer Example so that when the user presses the Save button on the form I have a tag that allows me to display a status message that gets updated every second. This tag contains the current validation step, and so my user gets to see some progress, and the 1 second timer means my form doesn't timeout whilst waiting for all of the validation to complete.
I would love to be able to open a small popup window showing the progress of the validation, where this might be as simple as changing a display value from Step 1 to Step 2 etc. Once all of the steps are complete, this window would close and the normal processing would continue.
Has anyone managed to do this?
Regards,
Neil.
At present I have poached some code from the Timer Example so that when the user presses the Save button on the form I have a tag that allows me to display a status message that gets updated every second. This tag contains the current validation step, and so my user gets to see some progress, and the 1 second timer means my form doesn't timeout whilst waiting for all of the validation to complete.
I would love to be able to open a small popup window showing the progress of the validation, where this might be as simple as changing a display value from Step 1 to Step 2 etc. Once all of the steps are complete, this window would close and the normal processing would continue.
Has anyone managed to do this?
Regards,
Neil.
17
Web Server - Ask For Help / Calling Multiple Print Routines from one form
« on: June 10, 2013, 11:49:04 AM »
I have a NetWebFrom that depending quite a lot of different conditions needs to call one of many print routines.
The end user needs to see just one print button.
Originally I had lots of print buttons, and hide all but the relevant one using the standard hide condition on the button. The problem is, that these conditions have become so complex, that I've actually run out of room to type in the condition (or at least it's getting truncated when generated)
I decided that it would be easier (Maybe??) to have a single print button, that calls a NetWebSource procedure that has all of my conditional logic in it, which in turn calls the relevant print routine. It just about works, by embedding my code in the "Before Div Header" and then returning.
The only problem I have, is if I get an alert message from one of my reports saying nothing to print, then that message gets displayed as a bit of source code (or similar) in the browser window.
Is there a better way of doing this?
Regards,
Neil Porter
C8.9661 NT 6.51
The end user needs to see just one print button.
Originally I had lots of print buttons, and hide all but the relevant one using the standard hide condition on the button. The problem is, that these conditions have become so complex, that I've actually run out of room to type in the condition (or at least it's getting truncated when generated)
I decided that it would be easier (Maybe??) to have a single print button, that calls a NetWebSource procedure that has all of my conditional logic in it, which in turn calls the relevant print routine. It just about works, by embedding my code in the "Before Div Header" and then returning.
The only problem I have, is if I get an alert message from one of my reports saying nothing to print, then that message gets displayed as a bit of source code (or similar) in the browser window.
Is there a better way of doing this?
Regards,
Neil Porter
C8.9661 NT 6.51
18
Web Server - Ask For Help / Value Queue or Session Queue
« on: June 07, 2013, 01:18:43 PM »
I've been playing around with passing variables from one area of my program to another, and I always use Session variables.
I keep looking in the generated code, to try and get a better understanding of what Bruce is doing under the hood, and I notice that sometimes he uses Get/SetValue and other times he uses Get/SetSessionValue.
What is the real difference, and when is it appropriate to use each one?
Regards,
Neil.
I keep looking in the generated code, to try and get a better understanding of what Bruce is doing under the hood, and I notice that sometimes he uses Get/SetValue and other times he uses Get/SetSessionValue.
What is the real difference, and when is it appropriate to use each one?
Regards,
Neil.
19
Web Server - Ask For Help / Popup Lookup Browse - Best Practice
« on: June 07, 2013, 01:14:14 PM »
I'm trying to do something slightly out of the ordinary with a lookup, and I'm getting some strange results. I've spent so much time trying different things now, that I've got myself all confused, so I thought I'd post here to check that I'm not going about it all wrong.
I have a number of forms where the user has to populate a postal address (Addr1, addr2 , town, postal code, etc.). I would like to allow the user to enter certain known bits of the address, and then press a lookup button. I would then like to display a browse with various address lines that match the keyed criteria, that they could select, which would populate on the original form.
I would like to fill my lookup browse manually, using an SQL query or some address lookup software and a temporary table filtered by session ID. The idea being that I can run an sql query to see if they've ever used the address before, in which case use it, or failing that, use the address lookup software to give them some options. Once the lookup has completed, I can clear down the temporary table.
I've sort of got this working, by attaching a lookup button to one of the fields on the form (postcode/zipcode), but after selecting my record from the lookup browse, I get random text appearing in the original form field. I'm also not convinced that I'm managing to pass the key entered data to my lookup correctly for my SQL query. Using Stop messages, my sqlquery seems to be firing at some funny times, without it having any data to use for the where clause.
I've also noticed that the lookup seems to behave differently if I have it as a popup. In popup mode one field in the form gets populated from the lookup. If not in popup mode, all of the other address fields get populated too (Which is what I want).
So my questions are:
1) Do I use a lookup button attached to one of the fields on my form, or should I create a separate button to call my lookup?
2) How do I make sure that all of my address variables on my form are passed to the lookup browse, and how to I get them back again (the FileToSessionQueue doesn't seem to work in this case)
3) Which Embed should I use to call my SQL in the Lookup browse? I've tried "Start of Procedure" and "Call Browse" so far.
Any suggestions would be very welcome.
Regards,
Neil.
I have a number of forms where the user has to populate a postal address (Addr1, addr2 , town, postal code, etc.). I would like to allow the user to enter certain known bits of the address, and then press a lookup button. I would then like to display a browse with various address lines that match the keyed criteria, that they could select, which would populate on the original form.
I would like to fill my lookup browse manually, using an SQL query or some address lookup software and a temporary table filtered by session ID. The idea being that I can run an sql query to see if they've ever used the address before, in which case use it, or failing that, use the address lookup software to give them some options. Once the lookup has completed, I can clear down the temporary table.
I've sort of got this working, by attaching a lookup button to one of the fields on the form (postcode/zipcode), but after selecting my record from the lookup browse, I get random text appearing in the original form field. I'm also not convinced that I'm managing to pass the key entered data to my lookup correctly for my SQL query. Using Stop messages, my sqlquery seems to be firing at some funny times, without it having any data to use for the where clause.
I've also noticed that the lookup seems to behave differently if I have it as a popup. In popup mode one field in the form gets populated from the lookup. If not in popup mode, all of the other address fields get populated too (Which is what I want).
So my questions are:
1) Do I use a lookup button attached to one of the fields on my form, or should I create a separate button to call my lookup?
2) How do I make sure that all of my address variables on my form are passed to the lookup browse, and how to I get them back again (the FileToSessionQueue doesn't seem to work in this case)
3) Which Embed should I use to call my SQL in the Lookup browse? I've tried "Start of Procedure" and "Call Browse" so far.
Any suggestions would be very welcome.
Regards,
Neil.
20
Web Server - Ask For Help / Viewing Performance Monitor Stats in a NetWebForm
« on: June 03, 2013, 06:49:12 AM »
Has anyone managed to create a netwebform to view the contents of the Performance Monitoring Control so that you can view the stats without having to open the webserver window.
I normally run my servers as services, and I thought it would be useful to still be able to view the stats from a form.
I'm assuming that the data is held in the session queue, but I'm not sure if the fields are documented anywhere.
I'm currently using Nettalk 6.51
Regards,
Neil Porter.
I normally run my servers as services, and I thought it would be useful to still be able to view the stats from a form.
I'm assuming that the data is held in the session queue, but I'm not sure if the fields are documented anywhere.
I'm currently using Nettalk 6.51
Regards,
Neil Porter.
21
Web Server - Ask For Help / Anyone used jZebra?
« on: March 28, 2013, 01:41:25 PM »
I'm looking to print barcode labels from my Nettalk Webserver, without the end user having to preview a pdf first. Speed is everything to the guys doing the key entry, and someone has suggested that I should look at jZebra, which appears to be an open source solution for sending raw data to a printer.
Has anyone any experience with this applet?
I've never tried to add any java code to any of Bruces templates. Any tips or pointers, considering what I'm trying to achieve?
Regards,
Neil.
Has anyone any experience with this applet?
I've never tried to add any java code to any of Bruces templates. Any tips or pointers, considering what I'm trying to achieve?
Regards,
Neil.
22
Web Server - Ask For Help / How to remove invalid chars from Alert Message?
« on: February 13, 2013, 05:46:10 AM »
I'm using a 3rd party soap server to communicate with one of my own NT webservers. I capture information using a Netweb form, send the data to the 3rd party and look for some return data.
Depending on the data passed, I sometime get some sort of error message back from the 3rd party.
I want to pass on this error to my NT webserver user.
What I've found is that there are some characters in the response message that cause the NT alert message not to display. If I capture the message in a stop box, it looks fine. I've been playing with String Theory to see if there are some characters included in the response that is causing my problem. I tried to use the URLencode command, and this showed that I had %0D%0A at the end of my response. If I removed those characters and re-encoded the message, it displayed fine.
Unfortunately there seem to be other examples (see attached screen shot)
Does anyone know of a function that I can use to strip out any potentially invalid characters?
Regards,
Neil.
[attachment deleted by admin]
Depending on the data passed, I sometime get some sort of error message back from the 3rd party.
I want to pass on this error to my NT webserver user.
What I've found is that there are some characters in the response message that cause the NT alert message not to display. If I capture the message in a stop box, it looks fine. I've been playing with String Theory to see if there are some characters included in the response that is causing my problem. I tried to use the URLencode command, and this showed that I had %0D%0A at the end of my response. If I removed those characters and re-encoded the message, it displayed fine.
Unfortunately there seem to be other examples (see attached screen shot)
Does anyone know of a function that I can use to strip out any potentially invalid characters?
Regards,
Neil.
[attachment deleted by admin]
23
Web Server - Ask For Help / How to detect if webserver port is already open?
« on: January 10, 2013, 01:48:43 AM »
I'm running a simple Nettalk Soap Server, as a service.
I've noticed that at random times it just GPF's. Because I've added the GPF Reporter template, I've configured the service to restart, so it doesn't cause me too much trouble.
Occasionally, the service restarts so quickly, that the webserver doesn't seem to be able to bind to the port. Everything seems to runs OK, but I just can't connect to the server. Manually restarting the service fixes everything. I've tried putting a SLEEP(5000) statement into the code to make the program pause before initializing the port, and this seems to improve matters, but its a bit clunky.
What I'd like to do it test to see if the port was correctly initialized, and then loop x number of times retrying before giving up.
Can I test for some kind of error in ThisWebServer.Open() or is this situation something that Nettalk won't actually be able to detect?
Regards,
Neil Porter
Nettalk 6.51
I've noticed that at random times it just GPF's. Because I've added the GPF Reporter template, I've configured the service to restart, so it doesn't cause me too much trouble.
Occasionally, the service restarts so quickly, that the webserver doesn't seem to be able to bind to the port. Everything seems to runs OK, but I just can't connect to the server. Manually restarting the service fixes everything. I've tried putting a SLEEP(5000) statement into the code to make the program pause before initializing the port, and this seems to improve matters, but its a bit clunky.
What I'd like to do it test to see if the port was correctly initialized, and then loop x number of times retrying before giving up.
Can I test for some kind of error in ThisWebServer.Open() or is this situation something that Nettalk won't actually be able to detect?
Regards,
Neil Porter
Nettalk 6.51
24
Web Server - Ask For Help / Lookup Button - Is this a bug, or just very clever?
« on: November 29, 2012, 04:18:59 AM »
I have a number of simple lookup tables in a MSSQL database. For simplicity, lets say that the lookup table contains just 2 fields:
Field1 - Primary Key - SysID - Int
Field 2 - Description - Char(35)
I set up a standard netweb form, for a table, called products, and I have a sysID field in this Products table. I want to use a lookup on this form, to return the SysID value into the table, and display the description on the form.
Everything works fine when I have alpha numeric values in the description field, but one one my customers has taken to entering a numeric description!! They are actually using the lookup table to store colours, therefore:
SYSID Description
1 Blue
2 Green
3 Red
4 Pink
5 2
When they enter 2 into the lookup field on the form, it appears that the Nettalk template is being "clever" and thinks that the user is smart enough to be entering the sysid value, and so when the form is saved, I find that a sysid of 2 has been placed into my table rather than 5 as I would have wanted.
Is there a way that anyone knows that I can work around this behaviour, short of asking my customer to prefix the number in the description field with an alphabetic character?
I'm loath to suggest this is a bug, as if I've understood it correctly, I think this is very clever, and my customer is being a little unhelpful by placing numeric values into somewhere that they weren't really supposed to, but I do have to give them a solution?
Does anyone have any thoughts?
Regards,
Neil Porter.
Field1 - Primary Key - SysID - Int
Field 2 - Description - Char(35)
I set up a standard netweb form, for a table, called products, and I have a sysID field in this Products table. I want to use a lookup on this form, to return the SysID value into the table, and display the description on the form.
Everything works fine when I have alpha numeric values in the description field, but one one my customers has taken to entering a numeric description!! They are actually using the lookup table to store colours, therefore:
SYSID Description
1 Blue
2 Green
3 Red
4 Pink
5 2
When they enter 2 into the lookup field on the form, it appears that the Nettalk template is being "clever" and thinks that the user is smart enough to be entering the sysid value, and so when the form is saved, I find that a sysid of 2 has been placed into my table rather than 5 as I would have wanted.
Is there a way that anyone knows that I can work around this behaviour, short of asking my customer to prefix the number in the description field with an alphabetic character?
I'm loath to suggest this is a bug, as if I've understood it correctly, I think this is very clever, and my customer is being a little unhelpful by placing numeric values into somewhere that they weren't really supposed to, but I do have to give them a solution?
Does anyone have any thoughts?
Regards,
Neil Porter.
25
Web Server - Ask For Help / Nettalk Webservice with Windev Mobile
« on: September 10, 2012, 01:00:16 AM »
I thought I posted this question on here a while back, but as neither myself or Bruce can find it now, maybe I'm just losing the plot....appologies if this is a duplicate.
Bruce has kindly replied directly, but I thought I'd post my original question, and his response (in green) on here in case someone else was trying to do something similar:-
yes, good idea.
yes, good idea.
none of these are a problem (I presume you're using xFiles?). The urn:UpdateInfo is just a group wrapper – literally if you just put a group inside your current clarion group that will take care of that.
Note though that the tags are case sensitive – so you can use External Names, (and xml.tagCase = xf:CaseAny) on the clarion side, or get the case in the WSDL to all uppercase for the field names, or whatever.
So you might be getting ahead of yourself slightly here.
I might do it in this order;
a) make a WDSL doc the way "you want it". I'm not sure how complicated this will be, but I don't _think_ it's terribly complicated. As you note there are a number of approaches with regard to the URLS, but I'd just do whatever makes the WSDL easiest.
b) make the Windev mobile program based on the doc, and run that against a plain Nt server.
You'll be able to see the incoming requests, so if you need to you can adapt your server to what the Mobile is asking.
Or, tweak the WSDL, rinse and repeat. Obviously keep this cycle as simple as possible till you have the basic framework of what you need.
c) Flesh out the server to actually "do stuff" with what the mobile is sending you.
I'm guessing this is one of those cases where small steps make for fast progress.
so this is fairly common. You have a field in this case, gpUserLoginResult, which itself is just a string – but that string happens to contain xml stuff. so as not to confuse the xml packet itself, strings are allows to be "encoded" as CDATA. (xFiles has this as an option – you can encode all strings as CDATA, or just some of them.) the trick is to "see" the UserLoginResult here as "just a string.
On the contrary, you're using it to do something it was explicitly designed to do. Should be no problems.
Bruce has kindly replied directly, but I thought I'd post my original question, and his response (in green) on here in case someone else was trying to do something similar:-
Quote
If you remember, when we last met I was trying to use a Nettalk Webserver to extend one of my existing products so that I could capture barcodes on a mobile device. I couldn’t really get it to do what I wanted, so I’ve been looking at other development tools. There seems to be a lot of hype at the moment on the Clarion forums about WinDev, so I’ve jumped on the band wagon and had a look at Windev Mobile. On the face of it, it looks quite promising, but the real crux of it for me in the transferring of data between my main applications SQL server database, and the mobile applications.
PCSoft also produce a product called Webdev. You design your webservice in Webdev, and publish it using IIS or Apache, and the Webdev application server. This webservice than talks to my sql database, and sends the data that I require to my mobile device. This also creates you a nice .wsdl document that you can then import into WinDev Mobile which allows you to post requests from the mobile device, and retrieve data from the webservice.
I already use Nettalk as a soap server, and I’m looking at the Windev scenario thinking that maybe I could use Nettalk as my webservice, and do away with IIS/Apache and the Webdev Application server.
yes, good idea.
Quote
There doesn’t seem to be a way that I can post requests from Windev Mobile without a wsdl file to import, so I manually created one that I hoped would allow me to test my theory with an existing Nettalk Soap server that I have running.
yes, good idea.
Quote
At the moment, I’m using Fiddler2 to monitor what is being posted to, and received from my server, and I’m using SoapUI to create test posts using my wsdl definition file. I’m comparing this with what my existing Clarion client application posts using nettalk so that I can try to see if this is going to work without even bring windev into the equation yet.
I’ve come across a couple of problems, that I’d like your input on if you’d be so kind.
My current Clarion client application creates the following Soap Post:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<data>
<group>
<PROGRAMNAME>Indigo</PROGRAMNAME>
<COMPANYNAME>Neil Porter Associates Ltd</COMPANYNAME>
<VERSIONNO>4.1.1.72</VERSIONNO>
<WEBBOOKINGS>500</WEBBOOKINGS>
<EXPIRES>31/12/2012</EXPIRES>
<COPIES>10</COPIES>
</group>
</data>
</soap:Body>
</soap:Envelope>
Which gets the following response:
<?xml version="1.0" encoding="ISO-8859-1"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<data>
<group>
<ROLE>Error</ROLE>
<ERRORCODE>0</ERRORCODE>
<ERRORSTRING>Success</ERRORSTRING>
</group>
</data>
</soap:Body>
</soap:Envelope>
This very simple and works great.
I’ve tried to replicate this by creating the attached basic.wsdl file. Using Soap UI this creates the following post:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:DevSoap">
<soapenv:Header/>
<soapenv:Body>
<urn:UpdateInfo>
<ProgramName>?</ProgramName>
<CompanyName>?</CompanyName>
<VersionNo>?</VersionNo>
<WebBookings>?</WebBookings>
<Expires>?</Expires>
<Copies>?</Copies>
</urn:UpdateInfo>
</soapenv:Body>
</soapenv:Envelope>
I’ve highlighted some parts in red. These are the bits that worry me in particular.
none of these are a problem (I presume you're using xFiles?). The urn:UpdateInfo is just a group wrapper – literally if you just put a group inside your current clarion group that will take care of that.
Note though that the tags are case sensitive – so you can use External Names, (and xml.tagCase = xf:CaseAny) on the clarion side, or get the case in the WSDL to all uppercase for the field names, or whatever.
Quote
My procedure that I’m looking to call in my nettalk soap server is called UpdateInfo, and I post to http://www.neilporterassociates.org.uk:99/UpdateInfo from my client application. In Windev it looks like I need to post to http://www.neilporterassociates.org.uk:99 and then I need to specifiy the urn to tell it what procedure should be called by the webserver. Do you think that I would be best to create a generic procedure in my Nettalk server (called ReceiveRequests for example) that will parse the soap request, look at the urn value, and then decide what to do with the rest of the request, or do I have some other simpler option?
So you might be getting ahead of yourself slightly here.
I might do it in this order;
a) make a WDSL doc the way "you want it". I'm not sure how complicated this will be, but I don't _think_ it's terribly complicated. As you note there are a number of approaches with regard to the URLS, but I'd just do whatever makes the WSDL easiest.
b) make the Windev mobile program based on the doc, and run that against a plain Nt server.
You'll be able to see the incoming requests, so if you need to you can adapt your server to what the Mobile is asking.
Or, tweak the WSDL, rinse and repeat. Obviously keep this cycle as simple as possible till you have the basic framework of what you need.
c) Flesh out the server to actually "do stuff" with what the mobile is sending you.
I'm guessing this is one of those cases where small steps make for fast progress.
Quote
I’ve also been comparing these requests with ones generated using Windev Mobile and the Webdev Application server:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:Indigo">
<soapenv:Header/>
<soapenv:Body>
<urn:gpUserLogin>
<psUserName>?</psUserName>
<psPassword>?</psPassword>
</urn:gpUserLogin>
</soapenv:Body>
</soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<ns1:gpUserLoginResponse xmlns:ns1="urn:Indigo">
<gpUserLoginResult><![CDATA[<?xml version="1.0" encoding="ISO-8859-1"?>
<Logon><Result>Username unrecognized</Result><Code>2</Code><UserCode/></Logon>]]></gpUserLoginResult>
</ns1:gpUserLoginResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I noticed that I seem to be receiving xml within xml with a CDATA prefix. Does this have any significance do you think?
so this is fairly common. You have a field in this case, gpUserLoginResult, which itself is just a string – but that string happens to contain xml stuff. so as not to confuse the xml packet itself, strings are allows to be "encoded" as CDATA. (xFiles has this as an option – you can encode all strings as CDATA, or just some of them.) the trick is to "see" the UserLoginResult here as "just a string.
Quote
I’m hoping that this is probably just the way that windev mobile is expecting to receive it’s response, so I can format it similarly in my NT webserver.
If I can I’d realy like to use a Nettalk webserver, and with my limited experience it looks like it should be possible, but I don’t want to spend weeks banging my head against a brick wall, if it’s never going to work. I suppose what I’m after from you, is an answer as to whether I’m trying to make Nettalk do something that it realy wasn’t designed to do.
On the contrary, you're using it to do something it was explicitly designed to do. Should be no problems.
26
Web Server - Ask For Help / How to Trap and Display RI Error to end user
« on: July 16, 2012, 05:03:22 AM »
I've seen a few threads on here about error messages, but I can't see any that refer to capturing ABC error messages.
Assuming that I have setup my RI in my clarion dictionary, to prevent a parent record being removed if a child record exists, is there any way that I can pass the standard clarion RI warning message back to my end user if they try to delete the parent record?
At present the error displays on the Webserver, and the client just fails to see their record being removed. Do I have to build in additional checking in my app to display a message to the user before my standard clarion error gets raised?
I don't want to build in a load of extra code if I'm missing a trick somewhere.
TIA,
Neil.
Assuming that I have setup my RI in my clarion dictionary, to prevent a parent record being removed if a child record exists, is there any way that I can pass the standard clarion RI warning message back to my end user if they try to delete the parent record?
At present the error displays on the Webserver, and the client just fails to see their record being removed. Do I have to build in additional checking in my app to display a message to the user before my standard clarion error gets raised?
I don't want to build in a load of extra code if I'm missing a trick somewhere.
TIA,
Neil.
27
Web Server - Ask For Help / Calling NT Webservice from Android Webdev application
« on: June 18, 2012, 12:29:46 PM »
I have an existing clarion 8 application that runs off a MSSQL database.
I need to write a mobile application to expand this existing program.
I've been experimenting with Windev mobile, which looks quite promising, but to exchange data with my MSSQL backend I need to write a Windev Webservice, and then run a Windev broker application on either iis or apache. I'm a huge fan of NT, and I would much rather use a NT web server to talk to my SQL db.
I need to import a .wsdl file into my Windev mobile app. As far as I can see, I can't automatically create a wsdl file from clarion, but I can create one manually.
Has anyone anyone done anything similar?
I've some experience with using NT as a soap server, but this seems slightly different. I've been using soapui to test my manually created wsdl file, and comparing the requests and responses to ones generated by a clarion NT web client, and they don't seem to match.
Does anyone have any suggestions?
Regards,
Neil Porter.
I need to write a mobile application to expand this existing program.
I've been experimenting with Windev mobile, which looks quite promising, but to exchange data with my MSSQL backend I need to write a Windev Webservice, and then run a Windev broker application on either iis or apache. I'm a huge fan of NT, and I would much rather use a NT web server to talk to my SQL db.
I need to import a .wsdl file into my Windev mobile app. As far as I can see, I can't automatically create a wsdl file from clarion, but I can create one manually.
Has anyone anyone done anything similar?
I've some experience with using NT as a soap server, but this seems slightly different. I've been using soapui to test my manually created wsdl file, and comparing the requests and responses to ones generated by a clarion NT web client, and they don't seem to match.
Does anyone have any suggestions?
Regards,
Neil Porter.
28
Web Server - Ask For Help / In-Memory Example
« on: March 22, 2012, 09:57:20 AM »
Bruce has mentioned several times on this forum that he doesn't support the browsing of queues becasue they aren't thread safe. He always suggests that we should use a Memory table.
I have the In-Memory driver, but I have to be honest and say that I've never used it becaseu I can't quite get my head around how it works.
I would love to be able to populate a queue from SQL and then use a NetWeb browse to allow my user to select a record from this queue.
Does anyone have an example that they could point me towards, or maybe some code snips that would get me going.
I just don't know where to start.
TIA,
Neil Porter.
C8 NT 6.25
I have the In-Memory driver, but I have to be honest and say that I've never used it becaseu I can't quite get my head around how it works.
I would love to be able to populate a queue from SQL and then use a NetWeb browse to allow my user to select a record from this queue.
Does anyone have an example that they could point me towards, or maybe some code snips that would get me going.
I just don't know where to start.
TIA,
Neil Porter.
C8 NT 6.25
29
Web Server - Ask For Help / Recomendations for Mobile Browser WM 6.5
« on: March 19, 2012, 09:40:33 AM »
I have a WM 6.5 device (Motorola ES400) that I want to use with a NT6 web server to capture barcode values using it's built in barcode scanner.
The barcode scanner works by decoding the scanned narcode, and entering the value into a text field.
So far, so good.
The version of IE on windows mobile looks poor. Has anyone used Opera Mobile? It looks promising, but I'm getting strange results with the NetWebForms. I don't seem to be able to tab out of any of my text fields. I can enter text, but I have to use my stylus to move to another field. Locators seem to work in the same way.
Before I spend hours battling with this, I'd like to know if I'm flogging a dead horse. Is anyone else using Opera, or do you have another suggestion?
TIA,
Neil.
C8 NT6.25
The barcode scanner works by decoding the scanned narcode, and entering the value into a text field.
So far, so good.
The version of IE on windows mobile looks poor. Has anyone used Opera Mobile? It looks promising, but I'm getting strange results with the NetWebForms. I don't seem to be able to tab out of any of my text fields. I can enter text, but I have to use my stylus to move to another field. Locators seem to work in the same way.
Before I spend hours battling with this, I'd like to know if I'm flogging a dead horse. Is anyone else using Opera, or do you have another suggestion?
TIA,
Neil.
C8 NT6.25
30
Web Server - Ask For Help / Nettalk Report Fails to display in IE8
« on: November 04, 2011, 08:46:10 AM »
I’ve had reports from some of my customers that after a recent update from Nettalk 5.30 up to 5.38 that their labels have stopped printing.
To explain, I use a nettalk webserver to produce barcoded parcel labels using a standard report template with a small page size.
After some investigation, this problem has been isolated to IE8. I’ve configured the report to target _Blank, and when the user presses the print button, a blank window opens, but no pdf is displayed. The pdf is definitely generated OK. If you use IE9, or any other browser that I can think of, it works fine. I can glibly tell my users to get their clients to upgrade their browser, but as it definitely used to work, I wonder if anyone has any ideas so that I can fix it from the webserver side.
I’ve added a print label button to one of the original examples, UpdateMailbox form, and despite it being the simplest of reports, I see the same behaviour, so I’m pretty happy it isn’t something stupid that I’m doing. Normal A4 reports seem to print fine, if that helps at all.
When I view the source of the generated “Blank” window, I see the following.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>
I wonder if someone out there can humour me, and have a quick look at the attached example, and see if you can spot anything obvious, or evern run the example to see if it is something with my Development environment. I'm using C8.8740 and Nettalk 5.38
Regards,
Neil.
[attachment deleted by admin]
To explain, I use a nettalk webserver to produce barcoded parcel labels using a standard report template with a small page size.
After some investigation, this problem has been isolated to IE8. I’ve configured the report to target _Blank, and when the user presses the print button, a blank window opens, but no pdf is displayed. The pdf is definitely generated OK. If you use IE9, or any other browser that I can think of, it works fine. I can glibly tell my users to get their clients to upgrade their browser, but as it definitely used to work, I wonder if anyone has any ideas so that I can fix it from the webserver side.
I’ve added a print label button to one of the original examples, UpdateMailbox form, and despite it being the simplest of reports, I see the same behaviour, so I’m pretty happy it isn’t something stupid that I’m doing. Normal A4 reports seem to print fine, if that helps at all.
When I view the source of the generated “Blank” window, I see the following.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>
I wonder if someone out there can humour me, and have a quick look at the attached example, and see if you can spot anything obvious, or evern run the example to see if it is something with my Development environment. I'm using C8.8740 and Nettalk 5.38
Regards,
Neil.
[attachment deleted by admin]