User Tools

Site Tools


es:en:variable_management

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

es:en:variable_management [2019/09/10 08:02]
tast [Lista de Casting permitidos/no permitidos en TAST]
— (current)
Line 1: Line 1:
-======Gestión de Variables en TAST====== 
- 
-Esta es la información sobre cómo utilizar y gestionar las variables en TAST.\\  ​ 
- 
-=====Validaciones en Frontend de los tipos de datos:​===== ​ 
- 
-La aplicación web debería prevenir situaciones como ésta: 
- 
-{{:​en:​uno.png?​400|}} 
- 
-O situaciones como ésta: 
- 
-{{:​en:​dos.jpg?​600|}} 
- 
-{{:​en:​tres.jpg?​600|}} 
- 
-La validación en Frontend se realizará mediante javascript. Sería una buena opción dejar las teclas numéricas sólo activas en el caso de valores enteros.\\ ​ 
- 
-====Uso de más de un tipo de datos para la misma variable==== 
- 
-¿Se puede asignar otro tipo de datos a la misma variable? Sí, no hay necesidad ni impedimento para ser inflexible. 
- 
-====Uso de colores en los mensajes que declaran variables==== 
- 
-De esta manera, el usuario puede comprender de un simple vistazo que la variable que ha utilizado no es el mismo tipo de datos que la variable que está declarando. 
- 
- 
-====Introducción de controles específicos asociados a las variables==== 
- 
-En un setVariable,​ dependiendo del tipo de datos seleccionados,​ mostrar: 
-  
-  *TastDataBoolean:​ casilla de selección. ​   ​ 
-  *TastDataInteger:​ entrada de texto que permite introducir sólo números (sin coma, sin puntos) o variables enteras.  ​ 
-  *TastDataString:​ n. a. 
-  *TastDataDouble:​ entrada de texto que permite introducir sólo números o variables de tipo Entero o Doble. ​   ​ 
-  *TastDataDateDate:​ entrada de texto con calendario. Permite introducir variables de tipo TastDataDateDate. Debe validar la fecha antes de grabar.\\ ​   
- 
-=====Validaciones en Backend===== 
- 
-Texto 
- 
-====Lista de Casting permitidos/​no permitidos en TAST==== 
- 
- 
-^From/To ^String^Boolean^Integer^Double^Date^ Table^ ​ 
-|String|Don'​t Apply|Assigns a Boolean object that represents the true value if the String is not null and is equal, ignoring case, to the "​true"​ string.| Returns Integer if String is a number. If it is a number like 100.00, everything that comes behind the point is deleted. If it is not number it throws exception.|Returns Double if String is a number. If it is not a number, it throws an exception.|Returns Date if String is date. If it is not a date, or does not find the format, it throws an exception.|Returns a table with a column, and a row with the string.If the string is separated by comma, or semicolon, we create as many columns as commas.| 
-|Boolean|Returns what the getStringValue () function returns;​|Don’t Apply|Returns 1 if it is true and 0 if it is false|Returns 1.00 if true, and 0.00 If it is false|Exception. Not allowed.|Returns a table with a column, and a row with the boolean| 
-|Integer|Returns what the getStringValue () function returns;​|Returns true if it is a number greater than 0, and false if it is null or 0|Don’t Apply|Returns the integer with .00|Exception. Not allowed.|Returns a table with a column, and a row with the Integer| 
-|Double|Returns what the getStringValue () function returns;​|Returns true if it is a number greater than 0, and false if it is null or 0|Returns an Integer (e.g. 5.25 -> 5)|Don’t Apply|Exception. Not allowed.|Returns a table with a column, and a row with the Double| 
-|Date|Returns what the getStringValue () function returns;​|Exception. Not allowed.|Exception. Not allowed.|Exception. Not allowed.|Don’t Apply|Returns a table with a column, and a row with the Date| 
-|Table\\ see the 3-rd chapter “Additional information about Variables in TAST”|Returns what the getStringValue () function returns;​|Exception. Not allowed.|Exception. Not allowed.|Exception. Not allowed.|Exception. Not allowed.|Don’t Apply| 
- 
- 
- 
- 
- 
-=====Información adicional sobre Variables en TAST===== 
- 
-Usted debe considerar esta información:​ En la aplicación hay nuevos tipos de datos que no se muestran en el frontend, pero que internamente están siendo utilizados por TAST. Estarán disponibles en breve como parte de los nuevos adaptadores que estamos construyendo actualmente:​\\ ​ 
-   ​*TastRowTableData. 
-   ​*TastIterateTableData. 
-   ​*TastTableCell. 
-   ​*Variant. 
-   ​*Collection. 
-   ​*Lists. 
- 
-En setVariable,​ hay tipos de datos que no se pueden introducir por el momento:​\\ ​ 
-   ​*TastRowValues. 
-   ​*TastHttpResponse. 
-   ​*TastHtmlTable. 
-   ​*TastTableDate. 
-   ​*Variant. 
-   ​*Collection. 
-   ​*Lists. 
- 
- 
-=====Confirmación al borrar mensajes y variables===== 
- 
-Cuando se borra un mensaje, otro elemento UML o una variable, aparece un mensaje de confirmación antes de la eliminación. 
- 
-En el caso de las variables, TAST pide no sólo las variables sino también las referencias a ellas. 
- 
-{{:​en:​variables00-deletion.png?​nolink|}} 
- 
-{{:​en:​variables01-deletion.png?​nolink|}} 
- 
  
es/en/variable_management.1568102575.txt.gz · Last modified: 2019/09/10 08:02 by tast