cancel
Showing results for 
Search instead for 
Did you mean: 

data type determined at run time, how to provide the input type in advance

Former Member
0 Kudos

Hi all,

Here I have a requirement:

on my UI, there is an inputfield which receives user's input. But the data type can't be known at design time.

But I need to bind a context attribute to the inputfield first at design time, which data type should I use( the inputfield can recevie

data of any type ) ?

and how to convert the this data type into different data type( can be any type )?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Aaron,

There can be a workaround for your requirement.

you can assign a char data type to that field since Char can accept all characters, numbers, special symbols.

But, you need to do validations later on the see if it is a number or all alphabets and accordingly you can assign that field to any data type by doing little bit of manipulations.

Hope this helps.

Regards,

Anand

Answers (0)