We have built-in functions for data conversions but in my case I don't know what type of data will be coming so is there any way for checking the dat type?
Don't you own the server action? You can set the parameter to Text data type and work on the value sent which will be received as text no matter if it's "378643" or "20/07/1991".
Hi Neha,
are you receiving the input in a screen, action, web service?
Regards
Hi Jose,
In a server action.
Your input parameter should be text data type and there are functions to validate if a text parameter can be converted to another type:
https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Built-in_Functions/Data_Conversion
Thanks for reply Jose.But what if i dont know the input type is of text ? How to check that.?
Hi Neha ,
If the text is on an input field you can associate a client action and check the type with JS.
typeof(MyVariable).