Jump to content

Javi

uniGUI Subscriber
  • Posts

    147
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Javi

  1. Thanks for answering Delphi Developer Then, it only does: FBookmarks.Clear; I thought it was to update the Dataset.
  2. Hello What does this button do? O How can it be used? Thank you. Javi
  3. Thank you very much for the help.
  4. It works ... But "deselectAll" only works when thrown at another event. /////////////////////////////// // It work procedure TMainForm.UniFormActivate(Sender: TObject); begin UniDBGrid1.DataSource.DataSet.Close; UniDBGrid1.DataSource.DataSet.Open; end; procedure TMainForm.btn1Click(Sender: TObject); begin UniSession.AddJS(UniDBGrid1.JSName + '.getSelectionModel().deselectAll()'); end; /////////////////////////////// /////////////////////////////// // It doesn't work procedure TMainForm.UniFormActivate(Sender: TObject); begin UniDBGrid1.DataSource.DataSet.Close; UniDBGrid1.DataSource.DataSet.Open; // It doesn't work UniSession.AddJS(UniDBGrid1.JSName + '.getSelectionModel().deselectAll()'); end; ///////////////////////////////
  5. En mi empresa también empezamos con el desde el principo. Y hemos comprado tres licencia pro. Ya hemos hecho varíso proyectos y estamos muy contentos con UniGui.
  6. I would like the "De Session.URL" property can be modified for each session. Each session can modifcar your URL. I use input parameters. And when a session is closed by timeout, interests me customize the URL (which is inside "ServerMessages-> InvalidSessionTemplate"). To be able to pass parameters between the closed session the new open session. THK
  7. Javi

    Collapsible grid

    How I can reactivate this property? Under my responsibility. Thx
  8. +1 I like to test my apps too.
  9. Hola. Hay un ejemplo que se llama UrlParameters, a lo mejor es lo que buscas. Un saludo
  10. Me autocontesto... UniApplication.UniSession.AddJS('RUN = false'); Más fácil imposible
  11. Hello. I want to enable / disable the event "form.Onkeypress". I have put this: Form.Script ==> 'var RUN = false;' Form.ExtEvents.1-Ext.form.FormPanel ==> function form.Onkeypress(sender, key) { if (RUN == false) { sender.preventDefault(); }; } And it works. But not like putting 'RUN = True;'. ¿Someone can help me? As you see, my knowledge of JavaScript are very low. Thank you. =========================================================== Hola. Yo quiero habilitar/deshabilitar el evento "form.Onkeypress". Yo he puesto esto: Form.Script ==> 'var RUN = false;' Form.ExtEvents.1-Ext.form.FormPanel ==> function form.Onkeypress(sender, key) { if (RUN == false) { sender.preventDefault(); }; } Y funciona. Pero no se como poner 'RUN = True;'. ¿¿Alguien me puede ayudar?? Como vosotros veis, mis conocimientos de JavaScript son muy bajos. Gracias.
  12. Hello I can not help much, but a co-worker, had the same problem as you. He told me that the problem was the Path of UniGui within XE3 and XE.
  13. First of all, I was wrong in the original post. It should have been: I've done some research and have come to the following conclusions. If we have a "TUniImage", there are three combinations to load an image: 1 °. "TUniImage.Picture" with "Escudo.png" 2 °. "TUniImage.Picture" not image. And "TUniImage.Url" = "files/Escudo.png" 3 °. "TUniImage.Picture" with "Escudo.png" and "TUniImage.Url" = "files/Escudo.png" >>> 1 °. "TUniImage.Picture" with "Escudo.png" >>>>> 1. Server calculates a hash of "Escudo.png". 2. Server creates a copy of "Escudo.png" in "/cache/MyProyect/ __XXXXXX.png" Thus, all pictures "Escudo.png" to be used in the project, point to the same image, as it has the same hash (/cache/MyProyect/ __XXXXXX.png). Advantage: If you have 100 images "Escudo.png", the client will only download the image once. Disadvantage: If we have 100 images "Escudo.png", the server must calculate the hash of all, for each session. Example: >>> 2 °. "TUniImage.Picture" not image. And "TUniImage.Url" = "files / Escudo.png" >>>>> Advantage: If you have 100 images "Escudo.png", the client will only download the image once. The server does not calculate the hash "Escudo.png". Disadvantage: At design time, "Escudo.png" can not be viewed. Example: Bug detected. The size of "TUniImage", indicated at design time, not saved (missing: width="201" height="62"). >>> 3 °. "TUniImage.Picture" with "Escudo.png" and "TUniImage.Url" = "files/Escudo.png" >>>>> 1. Server calculates a hash of "Escudo.png". 2. Server creates a copy of "Escudo.png" in "/cache/MyProyect/ __XXXXXX.png" 3. The client is downloaded "files/Escudo.png" I think there would not have to calculate the hash of "Escudo.png" is not used. This way we would have all the above advantages. And I think, no inconvenient. I hope you understand. Farshad, can confirm my observations. Thank you very much. Javi --------------------------------------- Antes de nada, me equivoque en el post original. Tendría que haber sido: Yo he investigado un poco y he llegado a las siguientes conclusiones. Si nosotros tenemos un "TUniImage", hay tres combinaciones para cargar una imagen: 1º. "TUniImage.Picture" con "Escudo.png" 2º. "TUniImage.Picture" sin imagen y "TUniImage.Url" = "files/Escudo.png" 3º. "TUniImage.Picture" con "Escudo.png" y "TUniImage.Url" = "files/Escudo.png" >>> 1º. "TUniImage.Picture" con "Escudo.png" >>>>> 1. Server calcula un hash de "Escudo.png". 2. Server crea una copia de "Escudo.png" en "/cache/MyProyect/__XXXXXX.png" De esta forma, todas las imagenes "Escudo.png" que se usen en el proyecto, apuntaran a la misma imagen, ya que tiene el mismo hash /cache/MyProyect/ __XXXXXX.png) Ventaja: Si tenemos 100 imagenes "Escudo.png", el cliente solo descargara una vez la imagen. Desventaja: Si tenemos 100 imagenes "Escudo.png", el servidor, debe de calcular el hash de todas ellas, por cada sesión. Ejemplo: >>> 2º. "TUniImage.Picture" sin imagen y "TUniImage.Url" = "files/Escudo.png" >>>>> Ventaja: Si tenemos 100 imagenes "Escudo.png", el cliente solo descargara una vez la imagen. El Servidor no calcula el Hash de "Escudo.png". Desventaja: En tiempo de diseño, "Escudo.png" no se puede ver. Ejemplo: <img src="files/Escudo.png" hspace="0" vspace="0"> Bug detectado. El tamaño de "TUniImage", indicado en tiempo de diseño, no se guarda (falta: width="201" height="62"). >>> 3º. "TUniImage.Picture" con "Escudo.png" y "TUniImage.Url" = "files/Escudo.png" >>>>> 1. Server calcula un hash de "Escudo.png". 2. Server crea una copia de "Escudo.png" en "/cache/MyProyect/__XXXXXX.png" 3. El cliente se descarga "files/Escudo.png" Yo creo que no habría que calcular el hash de "Escudo.png", no se usa. De esta forma tendriamos todas las ventajas anteriores. Y creo que, ningún inconveniente. Espero que se entienda. Farshad puedes confirmar mis observaciones. Muchas gracias. Javi
  14. Hi Farshad I have several questions about TUniImagen component. For the properties: "Picture" and "URL" What is the difference between property "Picture" and "URL"? What property consumes less resources? What property loading in the web browser before? What happens when both properties are used: Picture with a picture and apuntanto URL to an image? All this is because I have a frame with more than 50 images the same and want to optimize the load. Thank you very much. Javi --------------------------------------- Hola Farshad Yo tengo varias preguntas sobre el componente TUniImagen. Sobre las propiedades: "Picture" y "URL" ¿Qué diferencia hay entre la propiedad "Picture" y "URL"? ¿Qué propiedad consume menos recursos? ¿Qué propiedad carga antes en el navegador web? ¿Qué pasa cuando ambas propiedades estan usadas: Picture con una imagen y URL apuntanto a una imagen? Todo esto viene, porqué tengo un marco con más de 50 imágenes iguales y quiero optimizar la carga. Muchas gracias. Javi
  15. Javi

    Fast report problem

    That's because you're using the same name for the PDF file. I recommend that each generated PDF has a unique name.
  16. fabricio1970, See this post... http://forums.unigui.com/index.php?/topic/2427-tabulation-data-information-system/page__view__findpost__p__11006
  17. Hello ... Good job, but ... Not a good idea, to charge the full application before authenticate your page. With Firebug, you can remove the mark of the web. ------------------------------------ Hola... Buen trabajo, pero... No es buena idea, el cargar la aplicación completa, antes de autenticarse en tu página web. Con el Firebug, es posible quitar la marcara de la web.
  18. Buenas Guillermo Te sale correctamente el rectángulo de los carteles, y el icono ?? Porque a mi me sale mal
×
×
  • Create New...