Buenos días, necesito poner un criterio o condición de salida en un campo dentro de una tabla de propiedades para que en caso de que otro campo esté vacío o no contenga descripción alguna, se lance un texto predeterminado.
Añado un objeto texto y lo condiciono según el campo referencia poniendo la sintaxis
<<Tabla.Campo>>""
y no funciona
pruebo también con
<<Tabla.Campo>>null
<<Tabla.Campo>>false
y tampoco funciona
Esta es la condición de salida, si el campo Proyecto de la tabla Project está vacío, entonces
Escribe XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Pero no lo consigo.
Gracias
NOTE- this post was edited, original post made some recomendations to have text printed if there was data. You want it printed if there is not data. The recomendations below reflect this change
Try your output condition as
<<HasData(<<PROJECT.Proyecto>>, False,True)>>
Or
<<Calc(<<PROJECT.Proyecto>> = "")>>
You could also do it directly in the text property as
<<HasData(<<PROJECT.Proyecto>>,,"XXXXXXXXXXX")>>
Many other ways to do this.
Hope my google translate allowed me to properly understand your question. If not let me know.
If you are trying to have an entity print data from your database if it is there, but print default text if it is not, simply modify the original entity text expression as follows
If the original text entity expression was
<<PROJECT.Proyecto>>
Then changing it to
<<HasData(<<PROJECT.Proyecto>>,<<PROJECT.Proyecto>>,"XXXXXXXXXXX")>>
Will print the data in the field <<PROJECT.Proyecto>> if it is there but will print the text XXXXXXXXX if the field is empty. There is no need for a second entity with an output condition.
Conseguido, gracias Szang