Can't make variable be string and nullable

Stimulsoft Reports.JAVA discussion
Post Reply
olimpian
Posts: 2
Joined: Wed Mar 14, 2018 2:22 pm

Can't make variable be string and nullable

Post 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!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Can't make variable be string and nullable

Post by Alex K. »

Hello,

Unfortunately, nullable for string type is not supported.

Thank you.
olimpian
Posts: 2
Joined: Wed Mar 14, 2018 2:22 pm

Re: Can't make variable be string and nullable

Post by olimpian »

It's sad. But okey, thanks for fast reply)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Can't make variable be string and nullable

Post by Alex K. »

Hello

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

Thank you.
Post Reply