It is currently 15 January 2025, 23:00 Advanced search

Problemi Book dopo aggiornamento versione 13.1.57 r3 final

Domande e risposte su come utilizzare Instant Developer Foundation al meglio

Problemi Book dopo aggiornamento versione 13.1.57 r3 final

Postby alessio.milani » 23 June 2014, 9:05

Salve, stamattina dopo l'aggiornamento alla 13.1 final, tutte le stampe con i book non visualizzano più i testi (se non qualche pezzo a caso), ma solo gli sfondi (esempi negli allegati)...
È stato introdotto qualche cambiamento nella 13.1 che può giustificare tale comportamento? C'è da modificare qualcosa, forse a livello di impostazioni? Avete riscontrato anche voi l'anomalia?
Grazie
Attachments
backlog_errato.png
backlog_errato.png (10.77 KiB) Viewed 3977 times
calendario_errato.png
calendario_errato.png (11.16 KiB) Viewed 3977 times
alessio.milani
 
Posts: 105
Joined: 24 July 2013, 13:10

Re: Problemi Book dopo aggiornamento versione 13.1.57 r3 fin

Postby d.pierangeli » 23 June 2014, 9:23

Nelle mie prove non sono riuscito a replicarlo, ma potrebbe dipendere da come sono fatte le Box/Span (stile visuale..) o dai dati.
Riesci a replicarlo in un progettino semplice ed a segnalarlo come malfunzionamento?

Nell'ultimo rilascio la funzione che renderizza gli Span nei book in anteprima è stata ottimizzata, forse può avere dei problemi con i dati che gli invia il server.

La versione precedente era questa:
Code: Select all
BookSpan.prototype.SetText= function(value)
{
  if (value!=undefined)
    this.Text = value;
  //
  if (this.Realized)
  {
    if (!this.HasImage && this.MimeType=="")
    {
      if (this.ControlType==RD3_Glb.VISCTRL_COMBO)
      {
        // Se non ho il fuoco, attivo il watermark
        if (!this.HasFocus)
          this.SetWatermark();
        // Se non ho il watermark allora uso il TEXT
        if (!this.HasWatermark)
          this.SpanObj.SetText(this.Text, false);
      }
      else if (this.ControlType==RD3_Glb.VISCTRL_EDIT)
      {
        if (this.Enabled)
        {
          // Se non ho il fuoco, attivo il watermark
          if (!this.HasFocus)
            this.SetWatermark();
          // Se non ho il watermark allora uso il TEXT
          if (!this.HasWatermark)
            this.SpanObj.value = this.Text;
        }
        else
        {
          // Il server ha gia' modificato il testo per comporlo come innerHTML tenendo conto
          // del flag ShowHTML del visual style
//        if (this.Text.indexOf("<") != -1 || this.Text.indexOf("&") != -1)
           this.SpanObj.innerHTML = this.Text;
//         else
//           this.SpanObj.innerText = this.Text;
          //
          // Se ho un'immagine, la infilo all'inizio
          if (this.SpanImg)
            this.SpanObj.insertBefore(this.SpanImg, this.SpanObj.firstChild);
        }
      }
      else if (this.ControlType==RD3_Glb.VISCTRL_BUTTON)
        this.SpanObj.value = this.Text;
    }
    else if (this.HasImage && this.MimeType != "")
    {
      // E' cambiato il TEXT ed avevo gia' il MimeType.. Spingo un aggiornamento dell'immagine
      this.SetMime();
    }
  }


Puoi provare a metterla nel file custom3.js e vedere se il problema scompare.
Ci serve comunque vedere il tuo book con i dati che il sever manda al browser per capire perchè l'ottimizzazione nel tuo caso non funziona correttamente.
User avatar
d.pierangeli
Pro Gamma
Pro Gamma
 
Posts: 7998
Joined: 30 September 2010, 15:35

Re: Problemi Book dopo aggiornamento versione 13.1.57 r3 fin

Postby alessio.milani » 23 June 2014, 9:57

Ho provato a inserire il codice indicato in custom3.js ma la situazione non cambia.
Ho aperto la richiesta 001039-2014 dove ho allegato come progetto di esempio quello della prima lezione del corso sui Book, visto che anche lì si verifica il problema (provate calendario e calendario2, che dovrebbero stampare i giorni del mese e invece non visualizzano nulla; c'è qualche eccezione nel recupero di qualche info ma è irrilevante ai fini dl book).
alessio.milani
 
Posts: 105
Joined: 24 July 2013, 13:10

Re: Problemi Book dopo aggiornamento versione 13.1.57 r3 final

Postby d.pierangeli » 23 June 2014, 10:56

Grazie, sono curioso di vedere il caso.
User avatar
d.pierangeli
Pro Gamma
Pro Gamma
 
Posts: 7998
Joined: 30 September 2010, 15:35

Re: Problemi Book dopo aggiornamento versione 13.1.57 r3 fin

Postby sarcaz » 23 June 2014, 13:36

Ciao anche io ho il solito problema ... sono curioso avete risolto?
sembra solo su firefox
ho provato con chrome safari e explorer e funziona tutto...
sarcaz
 
Posts: 240
Joined: 27 October 2010, 19:59

Re: Problemi Book dopo aggiornamento versione 13.1.57 r3 fin

Postby alessio.milani » 23 June 2014, 13:44

È vero, prima non mi ero accorto, ma confermo anch'io che il problema si verifica con Firefox, non con Chrome.
alessio.milani
 
Posts: 105
Joined: 24 July 2013, 13:10

Re: Problemi Book dopo aggiornamento versione 13.1.57 r3 fin

Postby sarcaz » 23 June 2014, 13:49

d.pierangeli wrote:Grazie, sono curioso di vedere il caso.

evito di inserire la richiesta anche io?
sarcaz
 
Posts: 240
Joined: 27 October 2010, 19:59

Re: Problemi Book dopo aggiornamento versione 13.1.57 r3 final

Postby d.pierangeli » 23 June 2014, 14:17

Si, appena scopriamo il motivo aggiorno anche il post.
User avatar
d.pierangeli
Pro Gamma
Pro Gamma
 
Posts: 7998
Joined: 30 September 2010, 15:35

Re: Problemi Book dopo aggiornamento versione 13.1.57 r3 fin

Postby d.pierangeli » 24 June 2014, 9:04

Come è stato notato il problema è specifico di Firefox e verrà corretto nel prossimo rilascio della versione 13.1.

Per completezza vi allego il codice che risolve il problema (se lo mettete nella custom ricordatevi di toglierlo quando esce la r4).

Code: Select all
BookSpan.prototype.SetText= function(value)
{
  if (value!=undefined)
    this.Text = value;
  //
  if (this.Realized)
  {
    if (!this.HasImage && this.MimeType=="")
    {
      if (this.ControlType==RD3_Glb.VISCTRL_COMBO)
      {
        // Se non ho il fuoco, attivo il watermark
        if (!this.HasFocus)
          this.SetWatermark();
        //
        // Se non ho il watermark allora uso il TEXT
        if (!this.HasWatermark)
          this.SpanObj.SetText(this.Text, false);
      }
      else if (this.ControlType==RD3_Glb.VISCTRL_EDIT)
      {
        if (this.Enabled)
        {
          // Se non ho il fuoco, attivo il watermark
          if (!this.HasFocus)
            this.SetWatermark();
          //
          // Se non ho il watermark allora uso il TEXT
          if (!this.HasWatermark)
            this.SpanObj.value = this.Text;
        }
        else
        {
          // Il server ha gia' modificato il testo per comporlo come innerHTML tenendo conto
          // del flag ShowHTML del visual style
           if (this.Text.indexOf("<") != -1 || this.Text.indexOf("&") != -1)
             this.SpanObj.innerHTML = this.Text;
           else
           {
             //************************************************
             if (this.SpanObj.innerText !== undefined)
               this.SpanObj.innerText = this.Text;
             else
               this.SpanObj.textContent = this.Text;
             //************************************************
           }
          //
          // Se ho un'immagine, la infilo all'inizio
          if (this.SpanImg)
            this.SpanObj.insertBefore(this.SpanImg, this.SpanObj.firstChild);
        }
      }
      else if (this.ControlType==RD3_Glb.VISCTRL_BUTTON)
        this.SpanObj.value = this.Text;
    }
    else if (this.HasImage && this.MimeType != "")
    {
      // E' cambiato il TEXT ed avevo gia' il MimeType.. Spingo un aggiornamento dell'immagine
      this.SetMime();
    }
  }
}
User avatar
d.pierangeli
Pro Gamma
Pro Gamma
 
Posts: 7998
Joined: 30 September 2010, 15:35

Re: Problemi Book dopo aggiornamento versione 13.1.57 r3 fin

Postby sarcaz » 24 June 2014, 9:40

perfetto funziona grazie mille
sarcaz
 
Posts: 240
Joined: 27 October 2010, 19:59

Next

Return to Tips & Tricks - Foundation

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot] and 17 guests

cron