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?
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?
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)
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?
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)
"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?
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?
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?
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?
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?
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.InitwcPropSaveEdit(m.this, 'visible,caption')
return dodefault()
endproc
you could also set .wcPropSave at design time, in the property sheet.
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)
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?
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?