FoxInCloud
wFormStandardPage - Missing display
Gravatar is a globally recognized avatar based on your email address. wFormStandardPage - Missing display
  Vincent H.
  All
  Aug 16, 2019 @ 07:55am

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

Gravatar is a globally recognized avatar based on your email address. re: wFormStandardPage - Missing display
  FoxInCloud Support - Thierry N.
  Vincent H.
  Aug 16, 2019 @ 10:51am

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?

Gravatar is a globally recognized avatar based on your email address. re: wFormStandardPage - Missing display
  Vincent H.
  FoxInCloud Support - Thierry N.
  Aug 16, 2019 @ 11:10am

by Programming.

Label.Caption.Refresh() = MonCode()

Nothing change

Gravatar is a globally recognized avatar based on your email address. re: wFormStandardPage - Missing display
  FoxInCloud Support - Thierry N.
  Vincent H.
  Aug 17, 2019 @ 01:39am

OK, then you need to debug monCode() to see why the response changes with wFormStandardPage().

Gravatar is a globally recognized avatar based on your email address. re: wFormStandardPage - Missing display
  Vincent H.
  FoxInCloud Support - Thierry N.
  Aug 17, 2019 @ 02:13am

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 ...

Gravatar is a globally recognized avatar based on your email address. re: wFormStandardPage - Missing display
  FoxInCloud Support - Thierry N.
  Vincent H.
  Aug 17, 2019 @ 03:12am

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

Gravatar is a globally recognized avatar based on your email address. re: wFormStandardPage - Missing display
  Vincent H.
  FoxInCloud Support - Thierry N.
  Aug 17, 2019 @ 05:37am

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())>>);]))

Gravatar is a globally recognized avatar based on your email address. re: wFormStandardPage - Missing display
  FoxInCloud Support - Thierry N.
  Vincent H.
  Aug 17, 2019 @ 08:50am

.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

Gravatar is a globally recognized avatar based on your email address. re: wFormStandardPage - Missing display
  Vincent H.
  FoxInCloud Support - Thierry N.
  Aug 18, 2019 @ 01:14am

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 !

Gravatar is a globally recognized avatar based on your email address. re: wFormStandardPage - Missing display
  FoxInCloud Support - Thierry N.
  Vincent H.
  Aug 20, 2019 @ 03:25am

in label.wcPropSave, we will automatically replace caption by captionInet to fix this issue in any case.

Gravatar is a globally recognized avatar based on your email address. re: wFormStandardPage - Missing display
  Vincent H.
  FoxInCloud Support - Thierry N.
  Aug 20, 2019 @ 03:53am

Good idea, thanks !

© 1996-2024