FoxInCloud
oleie
Gravatar is a globally recognized avatar based on your email address. oleie
  Vincent H.
  All
  Jan 2, 2020 @ 12:43am

Hi,

First, happy new year to all.

I want to use the "oleie" control in one of my screens but only get an empty frame. Nothing in the html either (iframe tag with empty head and body).
However, in an independent window, this control works.
What could I have forgotten ?

oleie.Init ():
THIS.Navigate2 ("https://www.dooxi.fr/")
DODEFAULT()

Gravatar is a globally recognized avatar based on your email address. re: oleie
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jan 2, 2020 @ 09:21am

Hi Vincent,

Happy new year to all members of the Foxincloud community!

Did you take a look at the sample form in FoxInCloud Live Tutorial?

Gravatar is a globally recognized avatar based on your email address. re: oleie
  Vincent H.
  FoxInCloud Support - Thierry N.
  Jan 2, 2020 @ 09:41am

Yes of course. This is my bible ūüėČ

I even copied the control ie from your example in case the adaptation of mine would contain an error.

Gravatar is a globally recognized avatar based on your email address. re: oleie
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jan 3, 2020 @ 03:36am

Hi Vincent,

Please try this fix:

modify command awHTML.prg

protected function getHTML_oleIE && {fr} HTML par défaut d'un conteneur OLE IE {en} default HTML for an IE OLE container
…

&& please replace

lcAttribs = this.cAttribs(; && {fr} à l'extérieur de Textmerge() pour éviter un Textmerge récursif
	  .F.; && [.F.] {fr} événements = .T.: tous || .F.: aucun || "event1,event2, ..": indiqués
	, ; && [''] {fr} classes additionnelles éventuelles
	, ; && [''] {en} HTML id suffix {fr} suffixe d'identifiant HTML
	, 'dimension,position'; && [''] {en} styles to be rendered (see this.cStyle()) {fr} styles à rendre (voir this.cStyle())
	, ; && [''] {fr} Directive(s) de style forcée(s) {en} Forced Style Directive(s)
	, ; && [.F.] {en} do not render tabindex="" {fr} ne pas rendre tabindex=""
	)

&& by

lcAttribs = this.cAttribs(; && {fr} à l'extérieur de Textmerge() pour éviter un Textmerge récursif
	  .F.; && [.F.] {fr} événements = .T.: tous || .F.: aucun || "event1,event2, ..": indiqués
	, ; && [''] {fr} classes additionnelles éventuelles
	, ; && [''] {en} HTML id suffix {fr} suffixe d'identifiant HTML
	, 'dimension,position'; && [''] {en} styles to be rendered (see this.cStyle()) {fr} styles à rendre (voir this.cStyle())
	, ; && [''] {fr} Directive(s) de style forcée(s) {en} Forced Style Directive(s)
	, ; && [.F.] {en} do not render tabindex="" {fr} ne pas rendre tabindex=""
	) + Iif(ga_Type_IsChar(this.oControl.wcURL, .T.), [ src="] + this.oControl.wcURL + ["], [])

Gravatar is a globally recognized avatar based on your email address. re: oleie
  Vincent H.
  FoxInCloud Support - Thierry N.
  Jan 3, 2020 @ 07:25am

Great Thierry !
Thanks

Gravatar is a globally recognized avatar based on your email address. re: oleie
  Vincent H.
  Vincent H.
  Jan 19, 2020 @ 10:47am

Hi Thierry,

I think you unfortunately zapped this fix in beta 6 ūüėČ

Gravatar is a globally recognized avatar based on your email address. re: oleie
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jan 20, 2020 @ 12:09am

Hi Vincent,

This fix was provided one week after beta.6 was released, will be part of next release…

Gravatar is a globally recognized avatar based on your email address. re: oleie
  Vincent H.
  FoxInCloud Support - Thierry N.
  Jan 20, 2020 @ 12:43am

Thanks Thierry for the precision.
In the meantime, I'm using class = "embed-responsive-item" like to display a pdf and it works fine (FireFox and Chrome).

Gravatar is a globally recognized avatar based on your email address. re: oleie
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jan 20, 2020 @ 12:46am

did you add it to .wCSSclassAdd?

Gravatar is a globally recognized avatar based on your email address. re: oleie
  Vincent H.
  FoxInCloud Support - Thierry N.
  Jan 20, 2020 @ 12:33pm

No, all is in wcHTMLgen() like this:

WITH THIS
   TEXT TO .wcHTML TEXTMERGE NOSHOW FLAGS 1 PRETEXT 3
     <div class="embed-responsive embed-responsive-4by3" id="<<.wcID>>">
        <iframe class="embed-responsive-item" src="<<.wcSCR>>?<<SYS(2015)>>"></iframe>
     </div>
   ENDTEXT
ENDWITH
Gravatar is a globally recognized avatar based on your email address. re: oleie
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jan 20, 2020 @ 11:54pm

src="<<.wcSCR>>?<<SYS(2015)>>"

Hi Vincent,

This syntax is OK to update .wcSCR across user requests and make sure the browser reloads the new file and ignores its cache…

However, for user privacy, you need to name the file differently across users; something like

local lcFile, lcFile_
lcFile = 'myReport_' + thisForm.wcUserID + '.pdf'`
lcFile_ = addbs(thisForm.woConfig.cTempPathPhysical) + m.lcFile
&& build m.lcFile_
this.wcScr = thisForm.woConfig.cTempPathVirtual + m.lcFile + '?' + sys(2015)
Gravatar is a globally recognized avatar based on your email address. re: oleie
  Vincent H.
  FoxInCloud Support - Thierry N.
  Jan 21, 2020 @ 07:08am

OK, thanks Thierry.

© 1996-2020