Default attribut | Community
Skip to main content
Level 2
Apr 20, 2018 8:29 AM UTC

Default attribut

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.

5 replies

richac96395021
Level 4
Apr 20, 2018 12:20 PM UTC

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

Translate
Level 2
Apr 20, 2018 1:45 PM UTC

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

Translate
richac96395021
Level 4
Apr 20, 2018 3:47 PM UTC

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

Translate