Page 1 of 1

Can't make variable be string and nullable

Posted: Wed Mar 14, 2018 2:39 pm
by olimpian
Hello, everyone.

I need your help or advice.
During design template, I have created a variable called Fullname. I made it String and Nullable Value. Clicked OK.
But when I opened variable properties again, I would see that it became Value again.

In code I get only StiSystemString in systemType attribute of the StiVariable-class object. And

Code: Select all

stiVariable.getSystemType().isNullable()
returns

Code: Select all

FALSE
But if i creat variable of type Integer, it easily become Nullable Value. And in code i have StiTypeNullable in systemType attribute of the StiVariable-class object. And

Code: Select all

stiVariable.getSystemType().isNullable()
returns

Code: Select all

TRUE
So, is it possible somehow to make string variable be nullable? Or someway to check this property in code?

Thanks!

Re: Can't make variable be string and nullable

Posted: Thu Mar 15, 2018 7:05 am
by Alex K.
Hello,

Unfortunately, nullable for string type is not supported.

Thank you.

Re: Can't make variable be string and nullable

Posted: Thu Mar 15, 2018 10:48 am
by olimpian
It's sad. But okey, thanks for fast reply)

Re: Can't make variable be string and nullable

Posted: Fri Mar 16, 2018 8:18 am
by Alex K.
Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.