FoxInCloud
Changing label captions
Gravatar is a globally recognized avatar based on your email address. Changing label captions
  Ryan Rindlisbacher
  All
  Apr 15, 2015 @ 03:45am
I have a form that displays information for a specific date. On that form is a label that shows which date you are looking it (ie "Apr 16, 2015") and a button that says "next" that changes the date to the next day and then requeries data for that day. On the "next" btn.click() it basically does a thisform.currentdate+1 then changes the caption of the label to reflect the change in date (label caption now shows "Apr 17, 2015"). I know the code is firing but the label does not ever change in the browser. Is there some method I need to call that forces the label caption to change?

Gravatar is a globally recognized avatar based on your email address. Re: Changing label captions
  GLS
  Ryan Rindlisbacher
  Apr 15, 2015 @ 05:52am
Hi

are you running your VFP application in web mode or in desktop mode ?

For the web mode you must indicate MyLabel.wcPropSave='caption'..

Regards
Gilles



I have a form that displays information for a specific date. On that form is a label that shows which date you are looking it (ie "Apr 16, 2015") and a button that says "next" that changes the date to the next day and then requeries data for that day. On the "next" btn.click() it basically does a thisform.currentdate+1 then changes the caption of the label to reflect the change in date (label caption now shows "Apr 17, 2015"). I know the code is firing but the label does not ever change in the browser. Is there some method I need to call that forces the label caption to change?

Gravatar is a globally recognized avatar based on your email address. Re: Changing label captions
  Ryan Rindlisbacher
  LLS
  Apr 15, 2015 @ 06:11am
That did the trick. Thanks!


Hi

are you running your VFP application in web mode or in desktop mode ?

For the web mode you must indicate MyLabel.wcPropSave='caption'..

Regards
Gilles



I have a form that displays information for a specific date. On that form is a label that shows which date you are looking it (ie "Apr 16, 2015") and a button that says "next" that changes the date to the next day and then requeries data for that day. On the "next" btn.click() it basically does a thisform.currentdate+1 then changes the caption of the label to reflect the change in date (label caption now shows "Apr 17, 2015"). I know the code is firing but the label does not ever change in the browser. Is there some method I need to call that forces the label caption to change?


Gravatar is a globally recognized avatar based on your email address. Re: Changing label captions
  FoxInCloud Support - Thierry N.
  Ryan Rindlisbacher
  Apr 15, 2015 @ 07:26am
Ryan,

Just a reminder, FoxInCloud Adaptation Assistant (FAA) automates this for you!


That did the trick. Thanks!


Hi

are you running your VFP application in web mode or in desktop mode ?

For the web mode you must indicate MyLabel.wcPropSave='caption'..

Regards
Gilles



I have a form that displays information for a specific date. On that form is a label that shows which date you are looking it (ie "Apr 16, 2015") and a button that says "next" that changes the date to the next day and then requeries data for that day. On the "next" btn.click() it basically does a thisform.currentdate+1 then changes the caption of the label to reflect the change in date (label caption now shows "Apr 17, 2015"). I know the code is firing but the label does not ever change in the browser. Is there some method I need to call that forces the label caption to change?




-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: Changing label captions
  Ryan Rindlisbacher
  Thierry Nivelet (FoxInCloud)
  Apr 15, 2015 @ 07:39am
Thierry, this is a brand new form. Do you recommend coding the form like normal VFP then running the FAA on the form or just coding it to work with the web as I go (this is what I'm currently trying to do)?


Ryan,

Just a reminder, FoxInCloud Adaptation Assistant (FAA) automates this for you!


That did the trick. Thanks!


Hi

are you running your VFP application in web mode or in desktop mode ?

For the web mode you must indicate MyLabel.wcPropSave='caption'..

Regards
Gilles



I have a form that displays information for a specific date. On that form is a label that shows which date you are looking it (ie "Apr 16, 2015") and a button that says "next" that changes the date to the next day and then requeries data for that day. On the "next" btn.click() it basically does a thisform.currentdate+1 then changes the caption of the label to reflect the change in date (label caption now shows "Apr 17, 2015"). I know the code is firing but the label does not ever change in the browser. Is there some method I need to call that forces the label caption to change?




Gravatar is a globally recognized avatar based on your email address. Re: Changing label captions
  FoxInCloud Support - Thierry N.
  Ryan Rindlisbacher
  Apr 15, 2015 @ 07:42am
I'd rather let Gilles or other FiC devs. relate their experience ...

If I had no existing desktop form, I'd prefer to code the FiC way


Thierry, this is a brand new form. Do you recommend coding the form like normal VFP then running the FAA on the form or just coding it to work with the web as I go (this is what I'm currently trying to do)?


Ryan,

Just a reminder, FoxInCloud Adaptation Assistant (FAA) automates this for you!


That did the trick. Thanks!


Hi

are you running your VFP application in web mode or in desktop mode ?

For the web mode you must indicate MyLabel.wcPropSave='caption'..

Regards
Gilles



I have a form that displays information for a specific date. On that form is a label that shows which date you are looking it (ie "Apr 16, 2015") and a button that says "next" that changes the date to the next day and then requeries data for that day. On the "next" btn.click() it basically does a thisform.currentdate+1 then changes the caption of the label to reflect the change in date (label caption now shows "Apr 17, 2015"). I know the code is firing but the label does not ever change in the browser. Is there some method I need to call that forces the label caption to change?






-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: Changing label captions
  GLS
  Thierry Nivelet (FoxInCloud)
  Apr 16, 2015 @ 12:46am
+1
"If I had no existing desktop form, I'd prefer to code the FiC way"

Gilles


I'd rather let Gilles or other FiC devs. relate their experience ...

If I had no existing desktop form, I'd prefer to code the FiC way


Thierry, this is a brand new form. Do you recommend coding the form like normal VFP then running the FAA on the form or just coding it to work with the web as I go (this is what I'm currently trying to do)?


Ryan,

Just a reminder, FoxInCloud Adaptation Assistant (FAA) automates this for you!


That did the trick. Thanks!


Hi

are you running your VFP application in web mode or in desktop mode ?

For the web mode you must indicate MyLabel.wcPropSave='caption'..

Regards
Gilles



I have a form that displays information for a specific date. On that form is a label that shows which date you are looking it (ie "Apr 16, 2015") and a button that says "next" that changes the date to the next day and then requeries data for that day. On the "next" btn.click() it basically does a thisform.currentdate+1 then changes the caption of the label to reflect the change in date (label caption now shows "Apr 17, 2015"). I know the code is firing but the label does not ever change in the browser. Is there some method I need to call that forces the label caption to change?






Gravatar is a globally recognized avatar based on your email address. Re: Changing label captions
  Tuvia Vinitsky
  Ryan Rindlisbacher
  Apr 19, 2015 @ 06:12am

Make sure caption is in wcpropsave


I have a form that displays information for a specific date. On that form is a label that shows which date you are looking it (ie "Apr 16, 2015") and a button that says "next" that changes the date to the next day and then requeries data for that day. On the "next" btn.click() it basically does a thisform.currentdate+1 then changes the caption of the label to reflect the change in date (label caption now shows "Apr 17, 2015"). I know the code is firing but the label does not ever change in the browser. Is there some method I need to call that forces the label caption to change?

Gravatar is a globally recognized avatar based on your email address. Re: Changing label captions
  Tuvia Vinitsky
  Ryan Rindlisbacher
  Apr 19, 2015 @ 06:15am

Code with FiC. Use the form class from xxx.vcx when you start a new form.

BTW, the wcpropsave has bitten us so many times when we forget it that we added to our xxx.vcx classes a lot of entries in wcpropsave, so for example a label always defaults to wcpropsave having caption.


Thierry, this is a brand new form. Do you recommend coding the form like normal VFP then running the FAA on the form or just coding it to work with the web as I go (this is what I'm currently trying to do)?


Ryan,

Just a reminder, FoxInCloud Adaptation Assistant (FAA) automates this for you!


That did the trick. Thanks!


Hi

are you running your VFP application in web mode or in desktop mode ?

For the web mode you must indicate MyLabel.wcPropSave='caption'..

Regards
Gilles



I have a form that displays information for a specific date. On that form is a label that shows which date you are looking it (ie "Apr 16, 2015") and a button that says "next" that changes the date to the next day and then requeries data for that day. On the "next" btn.click() it basically does a thisform.currentdate+1 then changes the caption of the label to reflect the change in date (label caption now shows "Apr 17, 2015"). I know the code is firing but the label does not ever change in the browser. Is there some method I need to call that forces the label caption to change?





Gravatar is a globally recognized avatar based on your email address. Re: Changing label captions
  Ryan Rindlisbacher
  Tuvia Vinitsky
  Apr 20, 2015 @ 05:34am
Tuvia, I like the idea of adding that to the subclass. I'm just starting out and it's already bit me a couple of times. Thanks.

Code with FiC. Use the form class from xxx.vcx when you start a new form.

BTW, the wcpropsave has bitten us so many times when we forget it that we added to our xxx.vcx classes a lot of entries in wcpropsave, so for example a label always defaults to wcpropsave having caption.


Thierry, this is a brand new form. Do you recommend coding the form like normal VFP then running the FAA on the form or just coding it to work with the web as I go (this is what I'm currently trying to do)?


Ryan,

Just a reminder, FoxInCloud Adaptation Assistant (FAA) automates this for you!


That did the trick. Thanks!


Hi

are you running your VFP application in web mode or in desktop mode ?

For the web mode you must indicate MyLabel.wcPropSave='caption'..

Regards
Gilles



I have a form that displays information for a specific date. On that form is a label that shows which date you are looking it (ie "Apr 16, 2015") and a button that says "next" that changes the date to the next day and then requeries data for that day. On the "next" btn.click() it basically does a thisform.currentdate+1 then changes the caption of the label to reflect the change in date (label caption now shows "Apr 17, 2015"). I know the code is firing but the label does not ever change in the browser. Is there some method I need to call that forces the label caption to change?






Gravatar is a globally recognized avatar based on your email address. Re: Changing label captions
  Ryan Rindlisbacher
  Ryan Rindlisbacher
  May 26, 2015 @ 11:07am
I have ran into this problem again. In my form.init() I have the following:
IF thisform.wlInitFirst
thisform.lblErrorMsg.wcPropSave="caption"
thisform.lblErrorMsg.wcPropSave="visible"
ENDIF

but the caption is always staying the caption when the form loads ("Error Msg")
I've attached two screen shots. One shows what it looks like in my Chrome Browser the other shows what it's supposed to look like via the FIC server screen shot.

Any ideas? Thanks.



Tuvia, I like the idea of adding that to the subclass. I'm just starting out and it's already bit me a couple of times. Thanks.

Code with FiC. Use the form class from xxx.vcx when you start a new form.

BTW, the wcpropsave has bitten us so many times when we forget it that we added to our xxx.vcx classes a lot of entries in wcpropsave, so for example a label always defaults to wcpropsave having caption.


Thierry, this is a brand new form. Do you recommend coding the form like normal VFP then running the FAA on the form or just coding it to work with the web as I go (this is what I'm currently trying to do)?


Ryan,

Just a reminder, FoxInCloud Adaptation Assistant (FAA) automates this for you!


That did the trick. Thanks!


Hi

are you running your VFP application in web mode or in desktop mode ?

For the web mode you must indicate MyLabel.wcPropSave='caption'..

Regards
Gilles



I have a form that displays information for a specific date. On that form is a label that shows which date you are looking it (ie "Apr 16, 2015") and a button that says "next" that changes the date to the next day and then requeries data for that day. On the "next" btn.click() it basically does a thisform.currentdate+1 then changes the caption of the label to reflect the change in date (label caption now shows "Apr 17, 2015"). I know the code is firing but the label does not ever change in the browser. Is there some method I need to call that forces the label caption to change?







Gravatar is a globally recognized avatar based on your email address. Re: Changing label captions
  FoxInCloud Support - Thierry N.
  Ryan Rindlisbacher
  May 26, 2015 @ 08:39pm
Ryan,

your code overwrites .wcPropSave ... what you need at the end is: .wcPropSave = 'visible,caption'

I recommend to:
1/ move this code to thisform.lblErrorMsg.Init() which fires once at form instantiation just like in desktop
2/ use the wcPropSaveEdit() utility - wcPropSaveEdit() adds or removes property(ies) to/from .wcPropSave while taking care of duplicates and comas

procedure thisform.lblErrorMsg.Init

wcPropSaveEdit(m.this, 'visible,caption')
return dodefault()
endproc

you could also set .wcPropSave at design time, in the property sheet.

I have ran into this problem again. In my form.init() I have the following:
IF thisform.wlInitFirst
thisform.lblErrorMsg.wcPropSave="caption"
thisform.lblErrorMsg.wcPropSave="visible"
ENDIF

but the caption is always staying the caption when the form loads ("Error Msg")
I've attached two screen shots. One shows what it looks like in my Chrome Browser the other shows what it's supposed to look like via the FIC server screen shot.

Any ideas? Thanks.


-- thn (FoxInCloud)

Gravatar is a globally recognized avatar based on your email address. Re: Changing label captions
  GLS
  Ryan Rindlisbacher
  May 26, 2015 @ 08:51pm
Hi Ryan,

you may change your code with:
- nothing specific in the form.init()
- in design with VFP you have to just append in wcPropSave of your label :caption,visible,enabled or in the label.init() this.wcPropsave='caption,enabled,visible'

With FIC in each object where you change by code dynamicaly a property, you must in each init() of objects, add the changed properties in object.wcPropSave or better at design or in the mother class of your object.
This because, FIC must know the changing properties, to save and restore them at each html requests.

Regards
GLS


I have ran into this problem again. In my form.init() I have the following:
IF thisform.wlInitFirst
thisform.lblErrorMsg.wcPropSave="caption"
thisform.lblErrorMsg.wcPropSave="visible"
ENDIF

but the caption is always staying the caption when the form loads ("Error Msg")
I've attached two screen shots. One shows what it looks like in my Chrome Browser the other shows what it's supposed to look like via the FIC server screen shot.

Any ideas? Thanks.



Tuvia, I like the idea of adding that to the subclass. I'm just starting out and it's already bit me a couple of times. Thanks.

Code with FiC. Use the form class from xxx.vcx when you start a new form.

BTW, the wcpropsave has bitten us so many times when we forget it that we added to our xxx.vcx classes a lot of entries in wcpropsave, so for example a label always defaults to wcpropsave having caption.


Thierry, this is a brand new form. Do you recommend coding the form like normal VFP then running the FAA on the form or just coding it to work with the web as I go (this is what I'm currently trying to do)?


Ryan,

Just a reminder, FoxInCloud Adaptation Assistant (FAA) automates this for you!


That did the trick. Thanks!


Hi

are you running your VFP application in web mode or in desktop mode ?

For the web mode you must indicate MyLabel.wcPropSave='caption'..

Regards
Gilles



I have a form that displays information for a specific date. On that form is a label that shows which date you are looking it (ie "Apr 16, 2015") and a button that says "next" that changes the date to the next day and then requeries data for that day. On the "next" btn.click() it basically does a thisform.currentdate+1 then changes the caption of the label to reflect the change in date (label caption now shows "Apr 17, 2015"). I know the code is firing but the label does not ever change in the browser. Is there some method I need to call that forces the label caption to change?








Gravatar is a globally recognized avatar based on your email address. Re: Changing label captions
  Ryan Rindlisbacher
  LLS
  May 27, 2015 @ 03:19am
That seemed to do the trick. Thanks.



Hi Ryan,

you may change your code with:
- nothing specific in the form.init()
- in design with VFP you have to just append in wcPropSave of your label :caption,visible,enabled or in the label.init() this.wcPropsave='caption,enabled,visible'

With FIC in each object where you change by code dynamicaly a property, you must in each init() of objects, add the changed properties in object.wcPropSave or better at design or in the mother class of your object.
This because, FIC must know the changing properties, to save and restore them at each html requests.

Regards
GLS


I have ran into this problem again. In my form.init() I have the following:
IF thisform.wlInitFirst
thisform.lblErrorMsg.wcPropSave="caption"
thisform.lblErrorMsg.wcPropSave="visible"
ENDIF

but the caption is always staying the caption when the form loads ("Error Msg")
I've attached two screen shots. One shows what it looks like in my Chrome Browser the other shows what it's supposed to look like via the FIC server screen shot.

Any ideas? Thanks.



Tuvia, I like the idea of adding that to the subclass. I'm just starting out and it's already bit me a couple of times. Thanks.

Code with FiC. Use the form class from xxx.vcx when you start a new form.

BTW, the wcpropsave has bitten us so many times when we forget it that we added to our xxx.vcx classes a lot of entries in wcpropsave, so for example a label always defaults to wcpropsave having caption.


Thierry, this is a brand new form. Do you recommend coding the form like normal VFP then running the FAA on the form or just coding it to work with the web as I go (this is what I'm currently trying to do)?


Ryan,

Just a reminder, FoxInCloud Adaptation Assistant (FAA) automates this for you!


That did the trick. Thanks!


Hi

are you running your VFP application in web mode or in desktop mode ?

For the web mode you must indicate MyLabel.wcPropSave='caption'..

Regards
Gilles



I have a form that displays information for a specific date. On that form is a label that shows which date you are looking it (ie "Apr 16, 2015") and a button that says "next" that changes the date to the next day and then requeries data for that day. On the "next" btn.click() it basically does a thisform.currentdate+1 then changes the caption of the label to reflect the change in date (label caption now shows "Apr 17, 2015"). I know the code is firing but the label does not ever change in the browser. Is there some method I need to call that forces the label caption to change?









© 1996-2024