• +351 91 33 888 29
    • clico@clico.pt

    Arquivo anual 27 de Outubro, 2024

    DateTimeValue Function

    Converter datas é um desafio e ter uma função que faz isso, facilita-nos bastante o trabalho.
    A função DateTimeValue faz isso por nós. A função converte uma string num objeto de data e hora.

    DateTimeValue("2024-10-01")
    
    retornará:
    
    01-10-2024 00:00
    Captura-de-ecra-2024-10-27-162748 DateTimeValue Function
    Experimentemos utilizar com hora:
    DateTimeValue("2024-10-01 16:00")

    retornará:
    01/10/2024 16:00
    Captura-de-ecra-2024-10-27-163145 DateTimeValue Function
    Designer-1 DateTimeValue Function

    How to rotate images in Powerapps

    • Create a New Screen :
      • In your Power App, go to the “Screens” tab.
      • Click on “New Screen” and choose a blank screen template or any other layout that suits your design.
    • In New Screen insert image (Ex.:”image1″)
    • In New screen Insert Icon “Reload” (Ex. “iconrotate”)
    • On New screen property “On Visible”, set it:
      • Set(
            iRotate,
            0
        );
        Set(
            stRotate,
            “ImageRotation.None”
        );
    • On image “image1” property “ImageRotation”, set:
      • stRotate
    • On icon  “iconrotate” property “OnSelect”, set:
      • If(
            iRotate < 3,
            Set(
                iRotate,
                iRotate + 1
            ),
            Set(
                iRotate,
                0
            )
        );
        Switch(
           iRotate,
           1,
           Set(
              stRotate,
              “rotate90”
           ),
           2,
           Set(
              stRotate,
              “rotate180”
           ),
           3,
           Set(
              stRotate,
              “rotate270”
           ),
           Set(
              stRotate,
              “ImageRotation.None”
           )
        )
    Show Buttons
    Hide Buttons