Solved

Using data lable vs paramter

  • 11 October 2023
  • 3 replies
  • 70 views

Badge +1

Dear all,

 

I have seen some tutorials where sometimes data lable is  used to store IDs and sometimes parameter is used to store IDs

 

Is there any rule i am supposed to follow when using data lables and paramteres?

 

Thank you

 

 

icon

Best answer by SteveBarnard 13 October 2023, 16:55

View original

3 replies

Userlevel 3
Badge +8

Using parameters is best practices if you want to transfer data to other forms, but there are no rules you have to follow. In cases where want to retrieve and show data from a SMO, you can use data labels.

Badge +1

Thank you Prineel,

 

You mean that i can transfer data to other forms using either parameters or data labels

but as a best practice i should use parameters, right?

 

 

 

Userlevel 1
Badge +5

Hi

To pass values between forms it is best practise to pass them using a query string parameter. It is also recommended to pass this parameter as a GUID. Then on the rule “when a server loads the form” you can retrieve that parameter and load data from your data store so that when the form is presented to the user that the data is already present. There are some caveats to what should and shouldn't be loaded on the server side vs client side. 

https://help.nintex.com/en-US/nintexautomation/UserGuide/current/Content/Create/K2Designer/Rules/ServerRules.htm

 

If the value that you are passing between forms needs to be displayed on the form, then when the form loads you can populate the label on the form with the value from the query string. Fruther more you can then have a rule “on changed” of that label that would execute additional logic should you need to.

 

 

Reply