Skip to main content
New Participant
April 20, 2018

Default attribut

  • April 20, 2018
  • 1 reply
  • 8931 views

Hello,

I'm trying to create a String field into my schema with default value set as "true".

I tried this :

<attribute default="true" label="Test Default Value" name="test" type="string" sqlDefault="Test"/>

But, it does not work

can you help me please ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

richac96395021
New Participant
April 20, 2018

Hi abdelkarimg33790365 ,

I have tested your case, the solution is as follows

    <attribute label="Test Default Value" type="string" name="sample_test1" sqlDefault="'test'" />

add the value test within ' ', so sqlDefault can be written as sqlDefault="' test'"

with regards,

Richa Chaubey

New Participant
April 20, 2018

Hi richac

Thank you for your answer,

In the result I get the value 'true' I do not get the value in the sqlDefault attribute

cordially

Abdel

richac96395021
New Participant
April 20, 2018

Have you tested my syntax, if no then remove default property and only keep sqlDefault with your expected value in ''