How to make a filed of a complex type been optional in a contract?

1
0
-1

Hi all

I have some questions about contracts.

I have a complex type and have some field that is optional (a description field), but I put in the contract the complex type.
As it is expected when I make a Submit and I don't fill the optional field I get an error saying this field is expected because it is in the contract.
Is there a way to say to the validator that this field of the complex type is optional?

Thank you very much.
Any assistance would be greatly appreciated.

Kind regards,
Héctor

1 answer

1
+1
-1

Nope, just return a NULL value,

regards
Seán

PS: While I understand this may not be the answer you are looking for it does answer your question, please mark as resolved by ticking the tick mark on the left of this reply so others now it is closed.

Comments

Submitted by hectorta on Thu, 09/22/2016 - 11:21

I think I didn’t explain my doubt very well, I mean that I want always to send this value to bonita, but I don't want to obligate the user to introduce a value, because it is optional.
The problem is that I don't know how to do, to get always the value sent through the contract, to the operator and to the BDM, without showing an error message when you don't fill it.

You mean with your answer, that I'm going to get a null value in the BDM. I don't mind it, the unique think that I want is to avoid the disturbing error message saying this field is obligatory.

Thank you very much.

Bye

Notifications