Quantcast
Channel: West Wind Message Board Messages
Viewing all 10393 articles
Browse latest View live

Re: viewparmset

$
0
0
Re: viewparmset
FoxInCloud
Re: viewparmset
Dec. 11, 2014
12:13 pm
48B0Q75F3Show this entire thread in new window
Gratar Image based on email address
From:Tuvia Vinitsky
To:Thierry Nivelet (FoxInCloud)
Nothing.

But after more checking, I found the problem. The view was based on 1 underlying table, and I think something was going haywire. I added a joined table to force a physical temp file, and it seems to be OK.


...dodefault()

what do you have in parent method?


Thanks. Found the issue there.

What am I doing wrong to display the dropdown? I think you told me this before, sorry. Here is the code in the Init of the control:

IF NOT thisform.wlHTMLgenthis.RowSource = "" thisform.wViewParmSet('tmpfmember', 'curmainid', oSession.curmainid, .t.)* OK, got the correct recordset now * this first option gets executed:IFRECCOUNT('tmpfmember') > 0this.RowSourceType= 2this.RowSource = "tmpfmember"&& .cwhom* but the control has 0 entries in it and does not seem to be using the view as the recordsource* yet no error is produced and all the control properties seem to be set correctly.* is there something I am not refrshing that I should be?ELSEthis.RowSourceType= 1this.RowSource="Cannot list family"ENDIFENDIFDODEFAULT()



Tuvia,

Could you set a breakpoint in aw.vcx!awFrm.wViewsRequery(), on this line:

ll__Result__ = m.ll__Result__ AND m.ll__View__

m.ll__View__ = .T. means view was requeried successfully.
if !m.ll__View__, m.lc__Result__ tells you why

Thanks

Fmember.person_id = ( ?curmainid );



Hi Tuvia,

What is the WHERE clause in your view definition?

yes and yes.
if I suspend, the value of osession.curmainid is correct. During that suspend, I tried .wViewParmSet again from the command window. It ran fine, but still returned an empty set. then from the command window I did a VFP requery(), and the records were populated.

I keep wondering if it has to do with having a form that inherits its data session.

Hi Tuvia

Is the second parameter of the wViewParmSet ('curmainid'), the parameter of the view 'tmpfmember' ?
Is oSession.curmainid a public object?

Regards
Gilles


I think I am doing something wrong, and I think it was answered before, but I cannot find any notes on it.

I have a form that calls a child form. In the init of a dropdown I have this, problem commented:

this.RowSource = ""* ------------------------------------------------------* this is the problem. the view was opened by the parent form, and we are in the default datasession of this* form, so we can access the view tmpfmember. I have confirmed that oSession.curmainid is set to the correct* value. No error is produced, but the return view always has 0 records.* -------------------------------------------------------- thisform.wViewParmSet('tmpfmember', 'curmainid', oSession.curmainid, .t.)*IFRECCOUNT('tmpfmember') > 0this.RowSourceType= 2this.RowSource = "tmpfmember"&& .cwhomELSEthis.RowSourceType= 1this.RowSource="Cannot list family"ENDIF








West Wind Web Monitor

Return PK of inserted SQL record

$
0
0
Return PK of inserted SQL record
Web Connection
Return PK of inserted SQL record
Dec. 11, 2014
02:02 pm
48B0U3AM6Show this entire thread in new window
Gratar Image based on email address
From:Bob Lucas
To:
Just putting in my two cents.

I have sub-classed the wwbusiness class and modified the save method specifically for this reason.
Whenever saving a new record (insert) the new record is retrieved (into the odata property of the object)
and I have the primary key of the record that was added. Great if I have to add child records.

Getting the new identity value will always return a cursor from the call (in this case called c_ident)
The relevant sql statement is appended to whatever text is generated by SQLBuildInsertStatementFromObject

Here is the relevant code that I use in the save method:

CASETHIS.nupdatemode = 2 && New*-- we need to add the ident check onto the main insert statement*-- because Scope_identity does not return a value if called a second time*-- this has to be processed in one batch because SCOPE_IDENTITY*-- Unlike @@IDENTITY will return no value if called with a second commandTEXTTO lcSQL NOSHOW ;SELECT ident = SCOPE_IDENTITY() ENDTEXT loSQL.cSQL = loSQL.SQLBuildInsertStatementFromObject(loRecord,THIS.cTableName,,llUseNamedParameters) + lcSQL loSQL.Execute("", [c_ident])IF loSQL.lErrorTHIS.SetError(loSQL.cErrorMsg)RETURN .F.ENDIFTHIS.nupdatemode = 1 pkfield = [this.odata.] + this.cpkfield&pkfield = c_ident.ident*-- load the new record into the data objectthis.load(c_ident.ident) USE IN c_ident


Bob



I came across a way of getting back the PK of inserted SQL records without additional calls or horseplay.
lcSQLString = [INSERTINTO Prospects(ProspectName, ProspectEmail, ClientPK, ClientEvalPK) OUTPUT INSERTED.PK ] + ; [VALUES (?lcFullName, ?lcEmail, ?lnClientPK, ?lnTestPK)] THIS.oServer.oEntakeSQL.Execute(lcSqlString,"TProspect") lnProspectID = TProspect.PK

Note the OUTPUT INSERTED.PK which returns the PK of the inserted record into the defined cursor - in this case, TProspect.

I thought this might be handy for some of you. It will not work on very old versions of SQL (2003 and older, I believe)

HTML Help Builder

Re: Erro in wwhttp.prg

$
0
0
Re: Erro in wwhttp.prg
Web Connection
Re: Erro in wwhttp.prg
Dec. 11, 2014
02:20 pm
48B0UQY4YShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:fredk
What version of VFP are you running? EMPTY is for 8.0 and later.

+++ Rick ---



I am getting an error of not found in wwhttp.prg in the following line,
loUrl = CREATE("EMPTY")

Is there a file missing on my system ..



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

HTML Help Builder

Re: Erro in wwhttp.prg

$
0
0
Re: Erro in wwhttp.prg
Web Connection
Re: Erro in wwhttp.prg
Dec. 11, 2014
06:11 pm
48B12ZG6UShow this entire thread in new window
Gratar Image based on email address
From:fredk
To:Rick Strahl
VFP 6.0 - perhaps I should use an older version of wwhttp? I am using the latest, but also have a 2005 version.


What version of VFP are you running? EMPTY is for 8.0 and later.

+++ Rick ---



I am getting an error of not found in wwhttp.prg in the following line,
loUrl = CREATE("EMPTY")

Is there a file missing on my system ..



HTML Help Builder

Re: Erro in wwhttp.prg

$
0
0
Re: Erro in wwhttp.prg
Web Connection
Re: Erro in wwhttp.prg
Dec. 12, 2014
12:38 am
48C01DCGIShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:fredk

New versions of wwClient only work with VFP 8 and later. There are download links for older versions. There are download links for older versions that work with older versions of VFP.

+++ Rick ---



VFP 6.0 - perhaps I should use an older version of wwhttp? I am using the latest, but also have a 2005 version.


What version of VFP are you running? EMPTY is for 8.0 and later.

+++ Rick ---



I am getting an error of not found in wwhttp.prg in the following line,
loUrl = CREATE("EMPTY")

Is there a file missing on my system ..






Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Love the MusicStore

$
0
0
Love the MusicStore
Announcements and Chatter
Love the MusicStore
Dec. 12, 2014
10:30 am
48C0MIP3VShow this entire thread in new window
Gratar Image based on email address
From:Marty
To:All
Rick,

This was just what I need to get Angular under control. Trying to learn Node and Express all at the same time was confusing.

Rick, do you feel like extending VFP to MongoDB and NEO4J?

If $500 makes it worthwhile, I'm in again.

Thanks,

Marty

Re: Foxpro version issues

$
0
0
Re: Foxpro version issues
Web Connection
Re: Foxpro version issues
Dec. 12, 2014
12:19 pm
48C0QEIOUShow this entire thread in new window
Gratar Image based on email address
From:Potter Orr
To:Rick Strahl
Thanks - got past that but when I run the Wconnect setup file and click finish I get an error LOIIS is not an object. If I ignore I get OLE error code 0x800401ea; Monkier cannot open file

Potter


You should be using VFP 9 anyway. More stable and a few additional features that are useful. Migration from 8 to 9 should be without problems. 7 -8 had most of the breaking changes (to SQL engine).

Web Connection install on new server? Just move the files, no need to reinstall everything, but you'll have to re-configure the Web Server and permissions etc. You can use the Console application to do it or manually. The help file shows you how to do both.

+++ Rick ---



I cannot find the #%*$&^ cd for Visual Foxpro 8.0 (which I still use on my dev box and for my WebConnection application). Since I am trying to move to a new dev box AND my customer plans on getting a new box for their web server in eaarly January, this is a problem.

I do have the 9.0 cd. I guess the only possibility is to move to 9.0 Other than a recompile of the exe, will 9.0 require any other changes?

Related - is there a need to move the Web Connection install from old server to new or should I just install new on the new box and not move anything from the old server?

Potter



Re: Foxpro version issues

$
0
0
Re: Foxpro version issues
Web Connection
Re: Foxpro version issues
Dec. 12, 2014
02:10 pm
48C0UDNSJShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Potter Orr

IIS is not installed properly or not at all. Please see the Getting Started guide and look for the Web Server configuration section for your Windows version in the help file.

Most likely this:
wcdocs:_22f0xkbmq.htm

+++ Rick ---



Thanks - got past that but when I run the Wconnect setup file and click finish I get an error LOIIS is not an object. If I ignore I get OLE error code 0x800401ea; Monkier cannot open file

Potter


You should be using VFP 9 anyway. More stable and a few additional features that are useful. Migration from 8 to 9 should be without problems. 7 -8 had most of the breaking changes (to SQL engine).

Web Connection install on new server? Just move the files, no need to reinstall everything, but you'll have to re-configure the Web Server and permissions etc. You can use the Console application to do it or manually. The help file shows you how to do both.

+++ Rick ---



I cannot find the #%*$&^ cd for Visual Foxpro 8.0 (which I still use on my dev box and for my WebConnection application). Since I am trying to move to a new dev box AND my customer plans on getting a new box for their web server in eaarly January, this is a problem.

I do have the 9.0 cd. I guess the only possibility is to move to 9.0 Other than a recompile of the exe, will 9.0 require any other changes?

Related - is there a need to move the Web Connection install from old server to new or should I just install new on the new box and not move anything from the old server?

Potter






Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui


Re: Love the MusicStore

$
0
0
Re: Love the MusicStore
Announcements and Chatter
Re: Love the MusicStore
Dec. 12, 2014
02:10 pm
48C0UDNSAShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Marty
Using MongoDb from FoxPro would probably be inhibitively slow because there's no good way to map the data to anything useful. We'd have to use FoxPro based JSON parsing to parse the data to returned from results to FoxPro objects which is fairly slow. Mongo also doesn't have a direct REST API - it uses a proprieatary binary format for the interface, so you'd have to interop with something that does support it (like .NET). The latter might work, but I'm not suer if you can actually send JSON queries directly as strings.

IAC, I'm not sure why you'd want to do this... wouldn't it be easier to just use Node or .NET directly to access the data where the drivers are natively supported?

It can be done, but it's not exactly a trivial process and you'd have to at the very least build your queries using JSON strings.

+++ Rick ---



Rick,

This was just what I need to get Angular under control. Trying to learn Node and Express all at the same time was confusing.

Rick, do you feel like extending VFP to MongoDB and NEO4J?

If $500 makes it worthwhile, I'm in again.

Thanks,

Marty



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Re: Love the MusicStore

$
0
0
Re: Love the MusicStore
Announcements and Chatter
Re: Love the MusicStore
Dec. 12, 2014
03:02 pm
48C0W8IIUShow this entire thread in new window
Gratar Image based on email address
From:Marty
To:Rick Strahl
Rick,

I'm trying to optimize a VFP app for conversion to .NET. One of the features is a Survey tool which invariably has a different schema for every instance. In VFP, I generate a unique new table for every Survey, but that won't fly in SQL server. I've got to store the data as XML in a varchar or as JSON in MongoDB.

I have been able to make the data store work in Mongo using NODE as a proof of concept, but I can't convert the whole app to NODE or .NET. The conversion to .NET is being done by another team - but it's probably over a year or more away.

Speed is not really an issue.

Thanks for the responese,
Marty



Using MongoDb from FoxPro would probably be inhibitively slow because there's no good way to map the data to anything useful. We'd have to use FoxPro based JSON parsing to parse the data to returned from results to FoxPro objects which is fairly slow. Mongo also doesn't have a direct REST API - it uses a proprieatary binary format for the interface, so you'd have to interop with something that does support it (like .NET). The latter might work, but I'm not suer if you can actually send JSON queries directly as strings.

IAC, I'm not sure why you'd want to do this... wouldn't it be easier to just use Node or .NET directly to access the data where the drivers are natively supported?

It can be done, but it's not exactly a trivial process and you'd have to at the very least build your queries using JSON strings.

+++ Rick ---



Rick,

This was just what I need to get Angular under control. Trying to learn Node and Express all at the same time was confusing.

Rick, do you feel like extending VFP to MongoDB and NEO4J?

If $500 makes it worthwhile, I'm in again.

Thanks,

Marty



Re: Love the MusicStore

$
0
0
Re: Love the MusicStore
Announcements and Chatter
Re: Love the MusicStore
Dec. 12, 2014
03:39 pm
48C0XK7EQShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Marty
I've used the .NET MongoDb library quite a bit and I actually have a good abstraction layer for it as part of my Westwind.Data library here:

https://github.com/RickStrahl/WestwindToolkit/tree/master/Westwind.Data.MongoDb

The problem with the .NET driver is that it works with generics and strongly typed objects so that have to be typed to pass in. It might be possible to add some additional code that just works of strings, (ie. the standard MongoDb json query format), but I'm not quite sure just what limitations you would run into with that because a number of things a require special sytnax. Might be worth playing around with though.


Rick,

I'm trying to optimize a VFP app for conversion to .NET. One of the features is a Survey tool which invariably has a different schema for every instance. In VFP, I generate a unique new table for every Survey, but that won't fly in SQL server. I've got to store the data as XML in a varchar or as JSON in MongoDB.

I have been able to make the data store work in Mongo using NODE as a proof of concept, but I can't convert the whole app to NODE or .NET. The conversion to .NET is being done by another team - but it's probably over a year or more away.

Speed is not really an issue.

Thanks for the responese,
Marty



Using MongoDb from FoxPro would probably be inhibitively slow because there's no good way to map the data to anything useful. We'd have to use FoxPro based JSON parsing to parse the data to returned from results to FoxPro objects which is fairly slow. Mongo also doesn't have a direct REST API - it uses a proprieatary binary format for the interface, so you'd have to interop with something that does support it (like .NET). The latter might work, but I'm not suer if you can actually send JSON queries directly as strings.

IAC, I'm not sure why you'd want to do this... wouldn't it be easier to just use Node or .NET directly to access the data where the drivers are natively supported?

It can be done, but it's not exactly a trivial process and you'd have to at the very least build your queries using JSON strings.

+++ Rick ---



Rick,

This was just what I need to get Angular under control. Trying to learn Node and Express all at the same time was confusing.

Rick, do you feel like extending VFP to MongoDB and NEO4J?

If $500 makes it worthwhile, I'm in again.

Thanks,

Marty






Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Re: Love the MusicStore (MongoDb Access)

$
0
0
Re: Love the MusicStore (MongoDb Access)
Announcements and Chatter
Re: Love the MusicStore (MongoDb Access)
Dec. 12, 2014
07:39 pm
48C16517XShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Marty

So I poked around with this a little bit and it looks like this might just work with the .NET library. I managed to create some generic helpers that can run queries, retrieve single entities and save data using raw JSON strings. IOW, I have a .NET component that takes JSON string input for various operations, and then performs the operation and returns back JSON results (for queries).

So as a proof of concept I think it works. The four operations that I worked on are: Find(), FindOne(),FindAll() and Save(). I think that's all that's really needed except for aggregation framework features.

Interesting idea - I had thought about this before but kind of decided that this is kind of a silly idea that involves too much overhead. The .NET piece of it is actually really fast. I think the biggest overhead is the FoxPro JSON deserialization piece (which already uses .NET anyway) and creating large objects. The recent changes in wwJsonSerializer should help with this however.

An interesting side idea might be to create a simple REST API using Web API to provide Web access for this so you could in fact use HTTP to do these same data operations directly over the Web, but under your application control (rather than a Mongo specific REST server).

To actually make all of this work properly though would take more than a few hours though :-) All the testing I did so far is just the .NET piece with methods with simple singnatures that are callable from FoxPro and using my existing Westwind.Data.MongoDb library. To make this work specifically for FoxPro that code would have to be broken out into a specific component that just supports the FoxPro features more generically outside of a business object.

+++ Rick ---



Rick,

I'm trying to optimize a VFP app for conversion to .NET. One of the features is a Survey tool which invariably has a different schema for every instance. In VFP, I generate a unique new table for every Survey, but that won't fly in SQL server. I've got to store the data as XML in a varchar or as JSON in MongoDB.

I have been able to make the data store work in Mongo using NODE as a proof of concept, but I can't convert the whole app to NODE or .NET. The conversion to .NET is being done by another team - but it's probably over a year or more away.

Speed is not really an issue.

Thanks for the responese,
Marty



Using MongoDb from FoxPro would probably be inhibitively slow because there's no good way to map the data to anything useful. We'd have to use FoxPro based JSON parsing to parse the data to returned from results to FoxPro objects which is fairly slow. Mongo also doesn't have a direct REST API - it uses a proprieatary binary format for the interface, so you'd have to interop with something that does support it (like .NET). The latter might work, but I'm not suer if you can actually send JSON queries directly as strings.

IAC, I'm not sure why you'd want to do this... wouldn't it be easier to just use Node or .NET directly to access the data where the drivers are natively supported?

It can be done, but it's not exactly a trivial process and you'd have to at the very least build your queries using JSON strings.

+++ Rick ---



Rick,

This was just what I need to get Angular under control. Trying to learn Node and Express all at the same time was confusing.

Rick, do you feel like extending VFP to MongoDB and NEO4J?

If $500 makes it worthwhile, I'm in again.

Thanks,

Marty






Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

5.5.1 Authentication Required

$
0
0
5.5.1 Authentication Required
Web Connection
5.5.1 Authentication Required
Dec. 13, 2014
06:13 am
48D0DC2RNShow this entire thread in new window
Gratar Image based on email address
From:Luca
To:All
Dear Rick,
I send email with the following code:


DO wwSmtp && load libraries .oSmtp=CREATEOBJECT("wwSmtp")WITH .oSmtp .nMailMode=0 .cMailServer=Process.oConfig.cMailServerSmtp .cUserName=Process.oConfig.cMailUserName .cPassword=Process.oConfig.cMailPassword .nTimeout=Process.oConfig.nMailTimeout .cSenderEmail=this.txtEmailMittente.Text .cSenderName=this.txtNomeMittente.Text .cRecipient=this.txtDestinatario.Text .cSubject=this.txtOggetto.Text .cMessage=this.txtMessaggio.Text .cContentType = "text/html"IF NOT EMPTY(Process.oConfig.cMailSSL) .lUseSsl=.T.ELSE .lUseSsl=.F.ENDIFIF NOT EMPTY(this.txtCc.Text) .cCCList=this.txtCc.TextENDIFIF NOT EMPTY(this.txtAllegato.Text) .AddAttachment(this.txtAllegato.Text)ENDIF m.Esito=.Sendmail()IF m.Esito=.F. Process.ErrorMsg(.cErrorMsg)RETURNENDIFENDWITH

In INI file I have the following entries compiled:

MailServerSmtp=xxxxx
MailUserName=xxxx
MailPassword=xxxx
MailSSL=ok
MailTimeout=60


I have every necessary parameter compiled, however I get the following error:

"Il server SMTP richiede una connessione protetta oppure il client non è stato autenticato. Risposta del server: 5.5.1 Authentication Required. Learn more at"

Please what is wrong?
Many thanks

Re: 5.5.1 Authentication Required

$
0
0
Re: 5.5.1 Authentication Required
Web Connection
Re: 5.5.1 Authentication Required
Dec. 15, 2014
12:42 am
48F01J9Q9Show this entire thread in new window
Gratar Image based on email address
From:Luca
To:Rick Strahl
Dear Rick,
I followed procedure with debug and values are passed rightly.
It is very strange, because if I use connection parameters of gmail I get the error, while all is right with parameters of a different SMTP. However gmail parameters are right (username, password, SSL...).
Customer has recently changed server with a new one.
Maybe some new restriction in gmail?
Many thanks again



Set a breakpoint and make sure your config object is actually holding the values you think it should hold by checking the wwSmtp object before the .Send() call.
My guess is that the config object is not hooked up right and you're getting blank values.

+++ Rick ---


Dear Rick,
I send email with the following code:


DO wwSmtp && load libraries .oSmtp=CREATEOBJECT("wwSmtp")WITH .oSmtp .nMailMode=0 .cMailServer=Process.oConfig.cMailServerSmtp .cUserName=Process.oConfig.cMailUserName .cPassword=Process.oConfig.cMailPassword .nTimeout=Process.oConfig.nMailTimeout .cSenderEmail=this.txtEmailMittente.Text .cSenderName=this.txtNomeMittente.Text .cRecipient=this.txtDestinatario.Text .cSubject=this.txtOggetto.Text .cMessage=this.txtMessaggio.Text .cContentType = "text/html"IF NOT EMPTY(Process.oConfig.cMailSSL) .lUseSsl=.T.ELSE .lUseSsl=.F.ENDIFIF NOT EMPTY(this.txtCc.Text) .cCCList=this.txtCc.TextENDIFIF NOT EMPTY(this.txtAllegato.Text) .AddAttachment(this.txtAllegato.Text)ENDIF m.Esito=.Sendmail()IF m.Esito=.F. Process.ErrorMsg(.cErrorMsg)RETURNENDIFENDWITH

In INI file I have the following entries compiled:

MailServerSmtp=smtp.gmail.com
MailUserName=xxxx
MailPassword=xxxx
MailSSL=ok
MailTimeout=60


I have every necessary parameter compiled, however I get the following error:

"The SMTP server requires a secure connection or the client was not authenticated. Server Response: 5.5.1 Authentication Required. Learn more at"

Please what is wrong?
Many thanks



Re: 5.5.1 Authentication Required

$
0
0
Re: 5.5.1 Authentication Required
Web Connection
Re: 5.5.1 Authentication Required
Dec. 15, 2014
02:04 am
48F04G295Show this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Luca
Make a simple test to test operation outside of the application and pass all values manually. Make sure the values are trimmed.
There's a sample - wwsmtp_sample in the wwipstuff_samples folder. Modify that code and test with that to make sure your settings are working...

+++ Rick ---



Dear Rick,
I followed procedure with debug and values are passed rightly.
It is very strange, because if I use connection parameters of gmail I get the error, while all is right with parameters of a different SMTP. However gmail parameters are right (username, password, SSL...).
Customer has recently changed server with a new one.
Maybe some new restriction in gmail?
Many thanks again



Set a breakpoint and make sure your config object is actually holding the values you think it should hold by checking the wwSmtp object before the .Send() call.
My guess is that the config object is not hooked up right and you're getting blank values.

+++ Rick ---


Dear Rick,
I send email with the following code:


DO wwSmtp && load libraries .oSmtp=CREATEOBJECT("wwSmtp")WITH .oSmtp .nMailMode=0 .cMailServer=Process.oConfig.cMailServerSmtp .cUserName=Process.oConfig.cMailUserName .cPassword=Process.oConfig.cMailPassword .nTimeout=Process.oConfig.nMailTimeout .cSenderEmail=this.txtEmailMittente.Text .cSenderName=this.txtNomeMittente.Text .cRecipient=this.txtDestinatario.Text .cSubject=this.txtOggetto.Text .cMessage=this.txtMessaggio.Text .cContentType = "text/html"IF NOT EMPTY(Process.oConfig.cMailSSL) .lUseSsl=.T.ELSE .lUseSsl=.F.ENDIFIF NOT EMPTY(this.txtCc.Text) .cCCList=this.txtCc.TextENDIFIF NOT EMPTY(this.txtAllegato.Text) .AddAttachment(this.txtAllegato.Text)ENDIF m.Esito=.Sendmail()IF m.Esito=.F. Process.ErrorMsg(.cErrorMsg)RETURNENDIFENDWITH

In INI file I have the following entries compiled:

MailServerSmtp=smtp.gmail.com
MailUserName=xxxx
MailPassword=xxxx
MailSSL=ok
MailTimeout=60


I have every necessary parameter compiled, however I get the following error:

"The SMTP server requires a secure connection or the client was not authenticated. Server Response: 5.5.1 Authentication Required. Learn more at"

Please what is wrong?
Many thanks






Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui


error in dropdown data type 6

$
0
0
error in dropdown data type 6
FoxInCloud
error in dropdown data type 6
Dec. 15, 2014
02:49 am
48F0621JGShow this entire thread in new window
Gratar Image based on email address
From:Tuvia Vinitsky
To:All
If I have a drop down that has a data source of 6, a table let's say called table1. When I access the drop down and select a different record, the table record pointer does not move.

Say I have two records in the table, A and B. I change the selection to B. Then I press a button, and to verify I suspend and the record pointer is still on A.

I can reproduce this with any dropdown type 6.

Error with 2.20bx

$
0
0
Error with 2.20bx
FoxInCloud
Error with 2.20bx
Dec. 15, 2014
03:52 am
48F08BA7YShow this entire thread in new window
Gratar Image based on email address
From:Michele
To:thn@foxincloud.com
I have this error after i insert username/password in my app
I have no error if i run the same app with 2.10

Re: Error with 2.20bx

$
0
0
Re: Error with 2.20bx
FoxInCloud
Re: Error with 2.20bx
Dec. 15, 2014
04:22 am
48F09E2ODShow this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Michele
This is an XML encoding issue, probably a character not supported such as '<', '>', '&', etc.

Could you provide the XML server response when this error occurs?

You can get it either from firebug or from the wConnect server status form > get last HTML response.

Thanks,


I have this error after i insert username/password in my app
I have no error if i run the same app with 2.10



-- thn (FoxInCloud)

Re: Error with 2.20bx

$
0
0
Re: Error with 2.20bx
FoxInCloud
Re: Error with 2.20bx
Dec. 15, 2014
04:33 am
48F09S4CEShow this entire thread in new window
There is an "&" i a text

HTTP/1.1 200 OK
Content-type: text/xml
Set-Cookie: mob=47B0NHUMP; path=/; expires=Sun, 14 Jun 2015 23:00:00 GMT

<?xml version='1.0' encoding='UTF-8' standalone='yes'?><IntuiCat>
<Result><v>true</v><t>boolean</t></Result>
<PCHTML>
<r>
<c>main_scx-_pageframe1-page1-_commandbutton2</c>
<c>textContent</c>
<c>S</c>
<c>Disconnessione</c>
</r>
<r>
<c>main_scx-_pageframe1-page1-contain-lbldata</c>
<c>innerHTML</c>
<c>S</c>
<c>15-12-2014</c>
</r>
<r>
<c>main_scx-nomeimpianto</c>
<c>innerHTML</c>
<c>S</c>
<c>BMC ELETTRICA SAS DI BONARDI GIUSEPPE &C - APPRODO XP + PRODUZIONE (D01026)</c>
</r>
<r>
<c>main_scx-nomeuser</c>
<c>innerHTML</c>
<c>S</c>
<c>BOSETTI MICHELE - ACUT SERVIZI SRL</c>
</r>
</PCHTML>
<UserID>47B0NHUMP</UserID>
<AppTime>0.037</AppTime>
<ServerVersion>2.20 beta02</ServerVersion>
<ServerTimeStamp>{^2014-11-20 10:05:12 AM}</ServerTimeStamp>
<ServerTime>0.536667</ServerTime></IntuiCat>


This is an XML encoding issue, probably a character not supported such as '<', '>', '&', etc.

Could you provide the XML server response when this error occurs?

You can get it either from firebug or from the wConnect server status form > get last HTML response.

Thanks,


I have this error after i insert username/password in my app
I have no error if i run the same app with 2.10




Re: Error with 2.20bx

$
0
0
Re: Error with 2.20bx
FoxInCloud
Re: Error with 2.20bx
Dec. 15, 2014
06:38 am
48F0E8LKMShow this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Michele
Is 'main_scx-nomeimpianto' a label?


There is an "&" i a text

HTTP/1.1 200 OK
Content-type: text/xml
Set-Cookie: mob=47B0NHUMP; path=/; expires=Sun, 14 Jun 2015 23:00:00 GMT

<?xml version='1.0' encoding='UTF-8' standalone='yes'?><IntuiCat>
<Result><v>true</v><t>boolean</t></Result>
<PCHTML>
<r>
<c>main_scx-_pageframe1-page1-_commandbutton2</c>
<c>textContent</c>
<c>S</c>
<c>Disconnessione</c>
</r>
<r>
<c>main_scx-_pageframe1-page1-contain-lbldata</c>
<c>innerHTML</c>
<c>S</c>
<c>15-12-2014</c>
</r>
<r>
<c>main_scx-nomeimpianto</c>
<c>innerHTML</c>
<c>S</c>
<c>BMC ELETTRICA SAS DI BONARDI GIUSEPPE &C - APPRODO XP + PRODUZIONE (D01026)</c>
</r>
<r>
<c>main_scx-nomeuser</c>
<c>innerHTML</c>
<c>S</c>
<c>BOSETTI MICHELE - ACUT SERVIZI SRL</c>
</r>
</PCHTML>
<UserID>47B0NHUMP</UserID>
<AppTime>0.037</AppTime>
<ServerVersion>2.20 beta02</ServerVersion>
<ServerTimeStamp>{^2014-11-20 10:05:12 AM}</ServerTimeStamp>
<ServerTime>0.536667</ServerTime></IntuiCat>


This is an XML encoding issue, probably a character not supported such as '<', '>', '&', etc.

Could you provide the XML server response when this error occurs?

You can get it either from firebug or from the wConnect server status form > get last HTML response.

Thanks,


I have this error after i insert username/password in my app
I have no error if i run the same app with 2.10




-- thn (FoxInCloud)

Viewing all 10393 articles
Browse latest View live


Latest Images