Hi Thierry,
The same screen is launched 1) from wform() or 2) wFormStandardPage().
wFormStandardPage() removes the end of the signature info.
Identical under Firefox and Chrome.
Any idea ? Thanks
wForm()
responds through AJAX while wFormStandardPage()
responds through a regular HTML page. None changes the user's code.
How do you generate the HTML of this line?
by Programming.
Label.Caption.Refresh() = MonCode()
Nothing change
OK, then you need to debug monCode()
to see why the response changes with wFormStandardPage()
.
This screen is refreshed every 20 seconds.
The procedure called (in refresh) is the same in all cases.
The difference can only come from running the refresh () method.
I'm totally wading ...
Vincent,
To update a label contents, FoxInCloud makes absolutely no difference on how the form is displayed, either as a master or a sub-form.
We won't move forward with general considerations on what is the same or not; only debugging can help.
Please try to set a breakpoint in the method generating the HTML contents (Label.Caption.Refresh()
) and make sure the result is what you expect; then check in the browser dev tools (network panel) the response from the server to the timer
event, whether it's the same as what the refresh()
method has built (you can use unescape()
to convert HTML entities into readable text).
Please post anything weird you find that code alone can't explain.
Thanks
With a SUSPEND, the code called is the same:
Pierre GON <span class="fa fa-check-circle text-lg" style="color: #2ECC71" aria-hidden="true"></span> - Claudine JAC <span class="fa fa-check-circle text-lg" style="color: #2ECC71" aria-hidden="true"></span> - Jacques RAM <span class="fa fa-times-circle text-lg" style="color: #D9534F" aria-hidden="true"></span>
So, I try this and it works:
Label.Refresh()
*THIS.Caption = SignYS_e()
THISFORM.wcScriptJSadd(TEXTMERGE([jQuery('#<<THIS.wcID>>').html(<<cLitteralJS(SignYS_e())>>);]))
.Caption
is limited to 254 characters while your string is 313 chars long.
FiC provides .CaptionInet
to support more than 254 chars; just replace caption
by CaptionInet
in .wcPropSave
.
For more details modify class awLbl of aw method caption_assign
Side note about style="color: #2ECC71"
: style=
should be used as little as possible, better use a class instead, such as those provided by Bootstrap for coloring:
eg. Pierre GON <span class="fa fa-check-circle text-lg text-success" aria-hidden="true">
:
Pierre GON
Thank you Thierry,
I still do not understand the difference in behavior between the two launches of the screen but it works perfectly with CaptionInet
!