FoxInCloud
vfp back and forth to js
Gravatar is a globally recognized avatar based on your email address. vfp back and forth to js
  Tuvia Vinitsky
  All
  Mar 12, 2012 @ 11:00pm

I have been updating fields sometimes, like date popups, via javascript. To get VFP to recognize changes, I use:
item.simulate'blur')

Works great. But now I want to go the other way, sort of. I called a requery from javascript like this. It worked fine to update the VFP data values:

FoxInCloud.MethExec('requery','reports_scx-vmclst1','requery',someVal);

But after that VFP shows the updated data from the requery. So my question is how to I tell FiC to update the listbox items from what is in VFP?

Gravatar is a globally recognized avatar based on your email address. Re: vfp back and forth to js
  FoxInCloud Support - Thierry N.
  Tuvia Vinitsky
  Mar 13, 2012 @ 01:51am
Sorry I don't understand your question
FoxInCloud.MethExec('requery','reports_scx-vmclst1','requery',someVal);

executes reports.scx.vmclst1.requery() on server side
If this method updates reports.scx.vmclst1.waRowSource, FoxInCloud will detect it and send back to browser.

What are expected and obtained result?
Please post any screen shot that can illustrate that

Note : in

FoxInCloud.MethExec('requery','reports_scx-vmclst1','requery',someVal);

the first parameter ('requery') should be a DOM event object.


I have been updating fields sometimes, like date popups, via javascript. To get VFP to recognize changes, I use:

item.simulate'blur')

Works great. But now I want to go the other way, sort of. I called a requery from javascript like this. It worked fine to update the VFP data values:

FoxInCloud.MethExec('requery','reports_scx-vmclst1','requery',someVal);

But after that VFP shows the updated data from the requery. So my question is how to I tell FiC to update the listbox items from what is in VFP?


-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: vfp back and forth to js
  Tuvia Vinitsky
  Thierry Nivelet (FoxInCloud)
  Mar 13, 2012 @ 08:34am

I have never successfully gotten a listbox to populate from waRowSource. NO matter what it shows blank. I can populate it other ways, but not from waRowSource. In my exaple I ended up using rowsourcetype of fields from a table.

If you send me a listbox example that works I will try and see why it does not work for me.


Sorry I don't understand your question
FoxInCloud.MethExec('requery','reports_scx-vmclst1','requery',someVal);

executes reports.scx.vmclst1.requery() on server side
If this method updates reports.scx.vmclst1.waRowSource, FoxInCloud will detect it and send back to browser.

What are expected and obtained result?
Please post any screen shot that can illustrate that

Note : in

FoxInCloud.MethExec('requery','reports_scx-vmclst1','requery',someVal);

the first parameter ('requery') should be a DOM event object.


I have been updating fields sometimes, like date popups, via javascript. To get VFP to recognize changes, I use:

item.simulate'blur')

Works great. But now I want to go the other way, sort of. I called a requery from javascript like this. It worked fine to update the VFP data values:

FoxInCloud.MethExec('requery','reports_scx-vmclst1','requery',someVal);

But after that VFP shows the updated data from the requery. So my question is how to I tell FiC to update the listbox items from what is in VFP?


Gravatar is a globally recognized avatar based on your email address. Re: vfp back and forth to js
  Tuvia Vinitsky
  Tuvia Vinitsky
  Mar 13, 2012 @ 08:37am
I should add that I have used waRowSource successfully with dropdowns, only listboxes are a problem for me.

I have never successfully gotten a listbox to populate from waRowSource. NO matter what it shows blank. I can populate it other ways, but not from waRowSource. In my exaple I ended up using rowsourcetype of fields from a table.

If you send me a listbox example that works I will try and see why it does not work for me.


Sorry I don't understand your question
FoxInCloud.MethExec('requery','reports_scx-vmclst1','requery',someVal);

executes reports.scx.vmclst1.requery() on server side
If this method updates reports.scx.vmclst1.waRowSource, FoxInCloud will detect it and send back to browser.

What are expected and obtained result?
Please post any screen shot that can illustrate that

Note : in

FoxInCloud.MethExec('requery','reports_scx-vmclst1','requery',someVal);

the first parameter ('requery') should be a DOM event object.


I have been updating fields sometimes, like date popups, via javascript. To get VFP to recognize changes, I use:

item.simulate'blur')

Works great. But now I want to go the other way, sort of. I called a requery from javascript like this. It worked fine to update the VFP data values:

FoxInCloud.MethExec('requery','reports_scx-vmclst1','requery',someVal);

But after that VFP shows the updated data from the requery. So my question is how to I tell FiC to update the listbox items from what is in VFP?



Gravatar is a globally recognized avatar based on your email address. Re: vfp back and forth to js
  FoxInCloud Support - Thierry N.
  Tuvia Vinitsky
  Mar 13, 2012 @ 09:04am
We made a recent update to version 1.10 which could solve the problem
could you try to download and install FoxInCloud again
just use the link on the notification email
you should not need to uninstall FoxInCloud before
HTH,

I have never successfully gotten a listbox to populate from waRowSource. NO matter what it shows blank. I can populate it other ways, but not from waRowSource. In my exaple I ended up using rowsourcetype of fields from a table.

If you send me a listbox example that works I will try and see why it does not work for me.


Sorry I don't understand your question
FoxInCloud.MethExec('requery','reports_scx-vmclst1','requery',someVal);

executes reports.scx.vmclst1.requery() on server side
If this method updates reports.scx.vmclst1.waRowSource, FoxInCloud will detect it and send back to browser.

What are expected and obtained result?
Please post any screen shot that can illustrate that

Note : in

FoxInCloud.MethExec('requery','reports_scx-vmclst1','requery',someVal);

the first parameter ('requery') should be a DOM event object.


I have been updating fields sometimes, like date popups, via javascript. To get VFP to recognize changes, I use:

item.simulate'blur')

Works great. But now I want to go the other way, sort of. I called a requery from javascript like this. It worked fine to update the VFP data values:

FoxInCloud.MethExec('requery','reports_scx-vmclst1','requery',someVal);

But after that VFP shows the updated data from the requery. So my question is how to I tell FiC to update the listbox items from what is in VFP?




-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: vfp back and forth to js
  Tuvia Vinitsky
  Thierry Nivelet (FoxInCloud)
  Mar 13, 2012 @ 03:54pm

That worked, I now have data in the listbox from an array. thanks.


We made a recent update to version 1.10 which could solve the problem
could you try to download and install FoxInCloud again
just use the link on the notification email
you should not need to uninstall FoxInCloud before
HTH,

I have never successfully gotten a listbox to populate from waRowSource. NO matter what it shows blank. I can populate it other ways, but not from waRowSource. In my exaple I ended up using rowsourcetype of fields from a table.

If you send me a listbox example that works I will try and see why it does not work for me.


Sorry I don't understand your question
FoxInCloud.MethExec('requery','reports_scx-vmclst1','requery',someVal);

executes reports.scx.vmclst1.requery() on server side
If this method updates reports.scx.vmclst1.waRowSource, FoxInCloud will detect it and send back to browser.

What are expected and obtained result?
Please post any screen shot that can illustrate that

Note : in

FoxInCloud.MethExec('requery','reports_scx-vmclst1','requery',someVal);

the first parameter ('requery') should be a DOM event object.


I have been updating fields sometimes, like date popups, via javascript. To get VFP to recognize changes, I use:

item.simulate'blur')

Works great. But now I want to go the other way, sort of. I called a requery from javascript like this. It worked fine to update the VFP data values:

FoxInCloud.MethExec('requery','reports_scx-vmclst1','requery',someVal);

But after that VFP shows the updated data from the requery. So my question is how to I tell FiC to update the listbox items from what is in VFP?




© 1996-2025