Multiple Pop-in (Message, Confirmation, Waiting and Progress) Multi-Language

user
Multiple Pop-in (Message, Confirmation, Waiting and Progress) Multi-Language

This snippet is composed of 4 pop-ins for your applications. Reduce the number of components in your PowerApps apps by always using this snippet.

You can put this snippet in each of your screens.

You can also customize the language.

How to use?

1 - Paste the Yaml code on your screen

2 - Put the language in the OnVisible attribute of your screen : UpdateContext({var_popin_lang : "USA"}) (disponibilities : GBR, USA, FRA, ESP, PRT, ITA, CHN, DNK, DEU, NLD)

Use Pop-in message :

You just have to put the desired message in the variable "var_popinMessage" : UpdateContext({var_popinMessage:"Welcome to MOCA by ASI"})

Use Pop-in Waiting :

Setting the var_popinLoading variable to true will display the loading window : UpdateContext({var_popinLoading: true});;

Once the treatment is complete, reset the varirable to false.

Use Pop-In Progress :

To display the progress Pop-In you need to initialize 3 variables:

- var_PopinProgressBar : Boolean => true

- var_popinProgressBar_Total : Integer => Total number of actions

- var_popinProgressBar_Current : Interger => Order of the current action

Exemple :

UpdateContext(

{

    var_popinProgressBar: true;

    var_popinProgressBar_Total: 9;

    var_popinProgressBar_Current: 0

}

);;

As the actions progress, increment the variable var_popinProgressBar_Current

Exemple :

UpdateContext({var_popinProgressBar_Current: var_popinProgressBar_Current + 1});;

When the var_popinProgressBar_Current variable reaches the total number of actions, the Pop-In will be removed.

Use Pop-In Confirmation :

To use the confirmation pop-in, you must enter at least two variables:

- var_popinConfirmation_Message => Text => The question to display
  • var_popinConfirmation_Show => boolean => if true, show the popin

Exemple :

UpdateContext(

{

    var_popinConfirmation_Message: "Confirmez vous la suppression de " & ThisItem.DisplayName & "?";
    var_popinConfirmation_Show:true

}

)

You must then put the actions to be executed in the Yes and No (OnSelect) buttons:

- btn_popinConfirmation_NO

- btn_popinConfirmation_YES

If you want to use this Pop-In for the same screen for several cases, you can create a variable and then test it in the actions above. Exemple :

UpdateContext(

{

    var_popinConfirmation_case : "REMOVE_USER"

)

More Snippets from this Author

Page 1 of 0
Loading...

Loading...