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

Re: progress meter

$
0
0
Re: progress meter
FoxInCloud
Re: progress meter
06/06/2012
08:02:07 AM
3IQ0H81N0 Show this entire thread in new window
Gratar Image based on email address
From:
Thierry Nivelet (FoxInCloud)
To:
Attachments:
None

Timer support

Moved up to version 1.30 due end of june


It does not look like anything became of your suggestions in that other thread.

I understand what is involved, I am just frustrated about the difficulty in reproducing this basic functionality on the web. It is, IMO, the one big hurdle conceptually to web apps becoming a standard.

BTW, the TIMER class in VFP would simplify some of this for FiC. I cannot get periodicupdater in prototype to work under FiC. Not necessarily an FiC issue, just me figuring it out. I have the FiC js source, so I an do it. There just needs to be a tool for this IMO.

Would you consider moving up in the roadmap timer support?


1- due to web constraints, the only way to feedback process progress to the user is to run a separate, asynchronous task;
2- wwAsyncWebRequest does exist in WC4, but does not address the user feedback issue;
3- we proposed an implementation here: http://www.west-wind.com/wwThreads/default.asp?Thread=3HE0QYEQ3&MsgId=3HJ025GTC

I know this subject has been done to death, but for me, with FiC, this has gotten a little ridiculous the lengths to which I must go to provide a simple progress bar. Now before everyone piles on about the web, and stateless, etc., I know all that. But the USERS, the ones paying the bill, do not care about that. Period. They want what they always had on the desktop:

instantiate thermo class
loop
process A
Process B
update thermo display
endloop

I admit to being quite annoyed previosly when the idea that processes take a while, and that users might sit there for them, was considered hey, what an idea. Besides the massive rewrites involved, it is usual, customary, and required for users to sit there until a process is done. With reports we can get away with dumping the process off, but not with financial transactions of mega-importance.

I KNOW I can dump them process and check progress with a timer -- although the ajax and prorotype timers have some quirks with FiC, we could work around that. But that is not an answer. I can open all kinds of beautiful modal progress windows, but that is not a answer.


I am not up for rewriting over 2000 forms and 1500 classes.

It is an absolute requirement that within one method or block of code there be a way to send immediately a message to update some screen appearance This is so basic I cannot believe how much time I spent arguing about it.

Webconnect docs seem to have a class to manage this, but it requires wc 5.

This is the biggest thing stopping my enterprise apps. I have lost clients because, with FiC, I cannot easily accomplish this most basic of VFP tasks.

I am at a loss.




Thierry Nivelet (FoxInCloud)


Re: Setting ControlSource

$
0
0
Re: Setting ControlSource
Web Connection 5.0
Re: Setting ControlSource
06/06/2012
10:55:44 AM
3IQ0NFC7V Show this entire thread in new window
Gratar Image based on email address
From:
Rick Strahl
To:
Attachments:
None

A control source is an expression not a value, hence the quotes are required.

Please check the documentation for control source for more info.
wcdocs:_1mt037ec2.htm

+++ Rick ---



I tried without success. This is why I asked here.
I asked it already at 06/04/2012 but maybe you have not seen it:
http://www.west-wind.com/wwThreads/default.asp?Thread=3IO0AYXEW&MsgId=3IO0AYXEX

I set ControlSource between quote and it runs now:

this.txtKeyField.ControlSource="this.Page.oBusiness.oData.Field1"

Thank you

Why don't you try it instead of asking a questino here? It's probably quicker than waiting for a response here...

Yes it works but it has to be done before a call to DataBind() is made.

+++ Rick ---



Dear Rick,
is it possible to set ControlSource programmatically from code, instead of setting it into Visual Web Developer?
When is it possible to set it? before DataBinding?

this.txtKeyField.ControlSource=this.Page.oBusiness.oData.Field1

Thank you very much






Rick Strahl
West Wind Technologies

Making waves on the Web

from Hood River, Oregon

master form

$
0
0
master form
FoxInCloud
master form
06/06/2012
11:40:47 AM
3IQ0P19F5 Show this entire thread in new window
Gratar Image based on email address
From:
Tuvia Vinitsky
To:
All 
Attachments:
None

When a master form is refreshed, why doesn't it recall wFormHTML_cFooter and cHeader?

1.30

$
0
0
1.30
FoxInCloud
1.30
06/06/2012
01:48:23 PM
3IQ0TLDO7 Show this entire thread in new window
Gratar Image based on email address
From:
Tuvia Vinitsky
To:
All 
Attachments:
None
The roadmap does not mention the saving of _screen properties. IS it still planned for 1.3?

Also, you stated that we should wait for that feature to store user specific (not form specific) data -- how do you suggest it be done in the meantime?

Re: master form

$
0
0
Re: master form
FoxInCloud
Re: master form
06/06/2012
02:21:11 PM
3IQ0URKB8 Show this entire thread in new window
Gratar Image based on email address
From:
Tuvia Vinitsky
To:
Attachments:
None
Never mind, think I got the answer.

When a master form is refreshed, why doesn't it recall wFormHTML_cFooter and cHeader?

FTP weirdness

$
0
0
FTP weirdness
Web Connection
FTP weirdness
06/06/2012
03:09:06 PM
3IQ0WH6T6 Show this entire thread in new window
Gratar Image based on email address
From:
Vince
To:
All 
Attachments:
None
I have an old VFP6 program that uses the wwIPStuff FTP control. The VFP exe file resides on a network share.

lnRespOK = oFTP.FTPConnect(ALLTRIM(DatParam.IPAddr),ALLTRIM(DatParam.SUserID),; ALLTRIM(DatParam.SPassword))

I recently changed the IP address, username & password parameters and now it won't connect to the FTP server.

I know the parameters are valid because I can connect using other FTP clients.

And here's the weirdness...when another user runs the VFP program from the network share, she is able to connect to the FTP server just fine.

I'm wondering if there is some lingering setup string that needs to be flushed out somehow?

Any help would be most appreciated.

xxprocess

$
0
0
xxprocess
FoxInCloud
xxprocess
06/06/2012
03:37:29 PM
3IQ0XHOSQ Show this entire thread in new window
Gratar Image based on email address
From:
Tuvia Vinitsky
To:
All 
Attachments:
None
I want to call wuserset in xxprocess after a user logs in. I do not see an instance of it already, am I missing it? Becaise if I do
x=createobject('xxprocess')
x.wuserset(user)

I get errors that loData does not exist.

datasession

$
0
0
datasession
FoxInCloud
datasession
06/06/2012
03:55:50 PM
3IQ0Y5A8H Show this entire thread in new window
Gratar Image based on email address
From:
Tuvia Vinitsky
To:
All 
Attachments:
None
From a form that has a public data session, I call OPENDBFS(), a function of mine that opens 200 tables. At first it opened them in the apphost datasession, which was bad, so I added SET DATASESSION TO before opening them. Now they open in datasesion 1.

But that also does not work. Now if I call a child form, still in the same public data environment, the grids cannot load because they cannot find any of the open tables - they are looking in some other datasession, not sure why.

What I did temporarily is put into the Load of the child form SET DATASESSION TO, but that helps only for loading initially.


Re: FTP weirdness

$
0
0
Re: FTP weirdness
Web Connection
Re: FTP weirdness
06/06/2012
04:37:21 PM
3IQ0ZMO0L Show this entire thread in new window
Gratar Image based on email address
From:
Rick Strahl
To:
Attachments:
None
What is the error message?

+++ Rick ---



I have an old VFP6 program that uses the wwIPStuff FTP control. The VFP exe file resides on a network share.

lnRespOK = oFTP.FTPConnect(ALLTRIM(DatParam.IPAddr),ALLTRIM(DatParam.SUserID),; ALLTRIM(DatParam.SPassword))

I recently changed the IP address, username & password parameters and now it won't connect to the FTP server.

I know the parameters are valid because I can connect using other FTP clients.

And here's the weirdness...when another user runs the VFP program from the network share, she is able to connect to the FTP server just fine.

I'm wondering if there is some lingering setup string that needs to be flushed out somehow?

Any help would be most appreciated.



Rick Strahl
West Wind Technologies

Making waves on the Web

from Hood River, Oregon

Re: Sending Email

$
0
0
Re: Sending Email
Web Connection 5.0
Re: Sending Email
06/06/2012
09:56:06 PM
3IQ1B0M0P Show this entire thread in new window
Gratar Image based on email address
From:
Luca
To:
Attachments:
None
Hi Rick,
I solved. The solution is to consider the Postback status:

FUNCTION OnLoad() ... if .IsPostBack=.F. .txtRecipient.Text=Request.Querystring("Recipient") endif



Dear Rick,
I have a webpage sending email, I load recipient address from Request.Querystring

FUNCTION OnLoad() ... .txtRecipient.Text=Request.Querystring("Recipient")

then I can change manually recipient address before to send email.
The webTextBox for recipient has ControlSourceMode=TwoWay.
However even if I change manually the recipient address on webpage, the form sends email to original recipient (what loaded from Request.Querystring)

.oSmtp=CREATEOBJECT("wwSmtp") WITH .oSmtp ... .cRecipient=this.txtRecipient.Text

Please, what is wrong?
Thank you very much


Re: datasession

$
0
0
Re: datasession
FoxInCloud
Re: datasession
06/06/2012
11:13:15 PM
3IQ1DRTYR Show this entire thread in new window
Gratar Image based on email address
From:
Tuvia Vinitsky
To:
Attachments:
None

Whatever this problem is, it affects generation of grids if the data source is opened before the form.

if I put a grid on a form and give a view as a controlsource, say View1, then assign data to some columns, then generate, I will get error that "record xxx cannot instantiate becaiuse it cannot find recordouirce='View1'

1. Happens about 60%of the time, no pattern seen.
2. If suspend when prompted to debug, if the view was opened by the calling form, it is clearly there.
3. public or prvate datasession no different
4. not matter if view opened in xxsets, in calling form, or in child form. (this is a child form)


However it seems that if I make a private data session and put everything in there, it will generate.

Shouldn't it generate OK and run OK from a table or view opened by the calling form in a public data session?


From a form that has a public data session, I call OPENDBFS(), a function of mine that opens 200 tables. At first it opened them in the apphost datasession, which was bad, so I added SET DATASESSION TO before opening them. Now they open in datasesion 1.

But that also does not work. Now if I call a child form, still in the same public data environment, the grids cannot load because they cannot find any of the open tables - they are looking in some other datasession, not sure why.

What I did temporarily is put into the Load of the child form SET DATASESSION TO, but that helps only for loading initially.


codepage 936 is not supported

$
0
0
codepage 936 is not supported
FoxInCloud
codepage 936 is not supported
06/08/2012
12:37:19 AM
3IS1FFQ3C Show this entire thread in new window
Gratar Image based on email address
From:
peterleex
To:
All 
Attachments:
None
When i launch FAA , an error message showed:

_GA_CODEBITS_CLASS_.ISVALIDCODEPAGE - Current codepage 936 is not supported

how can i change the codepage to use FAA£¿

thanks

Re: datasession

$
0
0
Re: datasession
FoxInCloud
Re: datasession
06/08/2012
12:56:49 AM
3IS0209ZE Show this entire thread in new window
Gratar Image based on email address
From:
Thierry Nivelet (FoxInCloud)
To:
Attachments:
None
You can USE tables the same as you've always done.
The only difference is that 'global' dataSession is awAppHost's instead of 1

Thanks for the info. I had looked in the code, but I guess I did not get it.

I always used Stonefield's DT in my apps to manage data. For FiC I stopped using the SDT functions like opentable, etc. because the functions are scoped to a data session and I was not sure if that would work. Sounds like if I scope to apphost (or a form's private session) I could use STD or similar.


'public' datasession is actually 'default'
'default' is the datasession a form is called from
awAppHost Session is where your application works in

Whatever this problem is, it affects generation of grids if the data source is opened before the form.

if I put a grid on a form and give a view as a controlsource, say View1, then assign data to some columns, then generate, I will get error that "record xxx cannot instantiate becaiuse it cannot find recordouirce='View1'

1. Happens about 60%of the time, no pattern seen.
2. If suspend when prompted to debug, if the view was opened by the calling form, it is clearly there.
3. public or prvate datasession no different
4. not matter if view opened in xxsets, in calling form, or in child form. (this is a child form)

However it seems that if I make a private data session and put everything in there, it will generate.

Shouldn't it generate OK and run OK from a table or view opened by the calling form in a public data session?


From a form that has a public data session, I call OPENDBFS(), a function of mine that opens 200 tables. At first it opened them in the apphost datasession, which was bad, so I added SET DATASESSION TO before opening them. Now they open in datasesion 1.

But that also does not work. Now if I call a child form, still in the same public data environment, the grids cannot load because they cannot find any of the open tables - they are looking in some other datasession, not sure why.

What I did temporarily is put into the Load of the child form SET DATASESSION TO, but that helps only for loading initially.






Thierry Nivelet (FoxInCloud)

Re: datasession

$
0
0
Re: datasession
FoxInCloud
Re: datasession
06/08/2012
12:58:25 AM
3IS1FFQ62 Show this entire thread in new window
Gratar Image based on email address
From:
Thierry Nivelet (FoxInCloud)
To:
Attachments:
None
missing TextMerge() ... fixed in coming version 1.25

What does this mean, not the alias is empty!
Current alias '<>' should be Used() in data session of form '<>'



'public' datasession is actually 'default'
'default' is the datasession a form is called from
awAppHost Session is where your application works in

Whatever this problem is, it affects generation of grids if the data source is opened before the form.

if I put a grid on a form and give a view as a controlsource, say View1, then assign data to some columns, then generate, I will get error that "record xxx cannot instantiate becaiuse it cannot find recordouirce='View1'

1. Happens about 60%of the time, no pattern seen.
2. If suspend when prompted to debug, if the view was opened by the calling form, it is clearly there.
3. public or prvate datasession no different
4. not matter if view opened in xxsets, in calling form, or in child form. (this is a child form)

However it seems that if I make a private data session and put everything in there, it will generate.

Shouldn't it generate OK and run OK from a table or view opened by the calling form in a public data session?


From a form that has a public data session, I call OPENDBFS(), a function of mine that opens 200 tables. At first it opened them in the apphost datasession, which was bad, so I added SET DATASESSION TO before opening them. Now they open in datasesion 1.

But that also does not work. Now if I call a child form, still in the same public data environment, the grids cannot load because they cannot find any of the open tables - they are looking in some other datasession, not sure why.

What I did temporarily is put into the Load of the child form SET DATASESSION TO, but that helps only for loading initially.






Thierry Nivelet (FoxInCloud)

Re: xxprocess

$
0
0
Re: xxprocess
FoxInCloud
Re: xxprocess
06/08/2012
12:59:47 AM
3IS1FFQ6K Show this entire thread in new window
Gratar Image based on email address
From:
Thierry Nivelet (FoxInCloud)
To:
Attachments:
None
.cUserID is the session ID, and cookie value
.wUser value and type is stored in session table by setSessionVar()

Maybe I am looking in the wrong place, or maybe I need to call wuserget somehow, In wuserSet, I tested with
dodefault("FRED",.f.)

But if I check giowcserver.oapphost.cuserid, it never changes.


awAJAX calls xxxProcess.wUserSet() after each request is completed
You should not have to call it yourself


I want to call wuserset in xxprocess after a user logs in. I do not see an instance of it already, am I missing it? Becaise if I do
x=createobject('xxprocess')
x.wuserset(user)

I get errors that loData does not exist.




Thierry Nivelet (FoxInCloud)


Re: xxprocess

$
0
0
Re: xxprocess
FoxInCloud
Re: xxprocess
06/08/2012
01:00:51 AM
3IS1FFQ6V Show this entire thread in new window
Gratar Image based on email address
From:
Thierry Nivelet (FoxInCloud)
To:
Attachments:
None
just make sure either xxxProcess.wUserGet() or xxxFrm.wUserGet() returns the proper user ID of your application


In case I was not clear, I wish to change users, not temporarily. When the app started we did not have a real user, now we do, or else the users have changed.


awAJAX calls xxxProcess.wUserSet() after each request is completed
You should not have to call it yourself


I want to call wuserset in xxprocess after a user logs in. I do not see an instance of it already, am I missing it? Becaise if I do
x=createobject('xxprocess')
x.wuserset(user)

I get errors that loData does not exist.




Thierry Nivelet (FoxInCloud)

Re: 1.30

$
0
0
Re: 1.30
FoxInCloud
Re: 1.30
06/08/2012
01:08:03 AM
3IS1FFQ7H Show this entire thread in new window
Gratar Image based on email address
From:
Thierry Nivelet (FoxInCloud)
To:
Attachments:
None
1- Process.oSession.set/getSessionVar() or Session.set/getSessionVar()
2- .wUserGet() returns whatever you implemented
if you implement xxxFrm.wUserGet(), xxxProcess.wUserGet() returns the same as xxxFrm.wUserGet()


Lot of trouble trying to instantiate wwsession, which is what I originally thought to do. Could you give a quick example of these 2 things in VFP code:

1. I want to set a property ADMIN=.F. for this user (session wide). then later retrieve it.

2. From some method somewhere I want to see the current master user from wUsetGet. (not form specific)

Thanks



data depending on user but not on request/event can be stored in wwSession
data depending on user and changing along request/event should be stored in form properties and moved around forms by parameters


The roadmap does not mention the saving of _screen properties. IS it still planned for 1.3?

Also, you stated that we should wait for that feature to store user specific (not form specific) data -- how do you suggest it be done in the meantime?




Thierry Nivelet (FoxInCloud)

Re: How to put my Mainmenu to Default.htm - Using FoxIncloud Framework

$
0
0
Re: How to put my Mainmenu to Default.htm - Using FoxIncloud Framework
FoxInCloud
Re: How to put my Mainmenu to Default.htm - Using FoxIncloud Framework
06/08/2012
01:15:28 AM
3IS02O9V7 Show this entire thread in new window
Gratar Image based on email address
From:
Thierry Nivelet (FoxInCloud)
To:
Attachments:
None
1- when clicking on test page links, can you see your form(s) in the browser?
2- you need to follow FAA instructions, e.g. perform the manual adaptations, watch for warnings, etc. - you can run FAA over and over to eliminate items you've solved and/or ignore the adaptations you've done or out of your scope and filter on 'not ignored'
3- For each 'master' (AKA 'top-level') form, you need to implement a method in xxxProcess as of sample code supplied
4- When you're done, in IIS, you can redirect 'index.htm' to '/xxxTest/mainForm.xxx'


Hello Thierry,

Thanks for this clarification. I already done the step 3 process and it's looks OK.

What would be the next steps in order to run my App on the Localhost?

Is there any Manual configuration required?

Thanks,
Reggie


Thierry Nivelet (FoxInCloud)

Re: codepage 936 is not supported

$
0
0
Re: codepage 936 is not supported
FoxInCloud
Re: codepage 936 is not supported
06/08/2012
01:16:58 AM
3IS02Q7GF Show this entire thread in new window
Gratar Image based on email address
From:
Thierry Nivelet (FoxInCloud)
To:
Attachments:
None
We'll implement this support soon
Please stay tuned for another couple of weeks

Due to the way VFP operates, I'm afraid you have no workaround until FAA supports all the code pages VFP supports


When i launch FAA , an error message showed:

_GA_CODEBITS_CLASS_.ISVALIDCODEPAGE - Current codepage 936 is not supported

how can i change the codepage to use FAA£¿

thanks


Thierry Nivelet (FoxInCloud)

Re: Unable to generate a temporary class

$
0
0
Re: Unable to generate a temporary class
Web Service Proxy Generator
Re: Unable to generate a temporary class
06/08/2012
01:21:28 AM
3IS02VZSX Show this entire thread in new window
Gratar Image based on email address
From:
Rick Strahl
To:
Attachments:
None

Hmmm... that's odd. Not sure why a C# source file would be referenced at runtime. Does the name of that file look familiar to you (ie. any relationship to the assembly that's generated?)

But it looks like a permissions issue - .NET compiler trying to generate some code on the fly and probably not having rights to write to the temp folder. Try bumping the permissions in that path (if possible). I'm not sure why this should be happening for any of the generated assemblies though.

+++ Rick ---



I have a few clients running my app that uses the FedEx web service for shipments but I'm problems with 1 client

The code is:

LOCAL loProxy as lssTrackServiceProxy loProxy = createobject("lssTrackServiceProxy")

They are receiving this error:
Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\WINDOWS\TEMP\d-ehtsrt.0.cs' could not be found
error CS2008: No inputs specified
(Error 1098) Method: init, Code: (Line 0)

Any help would be appreciated. Thanks.

Aaron



Rick Strahl
West Wind Technologies

Making waves on the Web

from Hood River, Oregon

Viewing all 10393 articles
Browse latest View live