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()
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?
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.
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 + ["], [])
Hi Thierry,
I think you unfortunately zapped this fix in beta 6 😉
Hi Vincent,
This fix was provided one week after beta.6
was released, will be part of next release…
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).
did you add it to .wCSSclassAdd
?
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
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)