Comparing one data local var to Local data database

Comparing one data local var to Local data database

  

I do have a problem in comparing an input value to a database, for example i input one item with number then when i clicked save it will check if the item number is already saved to a local database.

Hi Salam,

1. get database from local storage

2. for-loop and check if the value is the same with the column's value of the current row 


regards,

indra 


Indra Budiantho wrote:

Hi Salam,

1. get database from local storage

2. for-loop and check if the value is the same with the column's value of the current row 


regards,

indra 


Thanks!! It works!! Cheers!! :) 


Solution

Nasab, 

DON'T do for loop to check the value, as suggested by Indra.
This is a bad practice and you have better solutions. 

Do like is suggested in the other post instead.

https://www.outsystems.com/forums/discussion/34032/comparing-local-variable-to-local-database-mobile-app/

By the way, why did you both asked the exactly same question?

Cheers.
Eduardo Jauch

Solution