Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Adding new value to the column through script.

Hi,

I have a field called Gender type with values Male and Female.I want to add one more value called 'NA' to the filed Gender Type.How can I do this through sctipting,

Ex.List box.

   

Gender type

Male

Female.

I want this list box look like,

Gender Type

Male

Female

NA

Thanks in advance.

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Hi,

Load Name,
If(Match(Gender,'Male','Female'),Gender,'NA') As Gender
Inline [
Name,Gender
Maria,Female
Mario,Male
Andrea,
John,Male
Bibi,
]
;

Immagine.png

Regards

View solution in original post

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Load [Gender type ] resident tab1;

concatenate

Load 'NA' as [Gender type ];

krishna_2644
Specialist III
Specialist III

Another version:

tab:

load * inline [

gender

male

female

];

concatenate

load * inline [

gender

NA

] ;

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

This will work

GENDER:

LOAD * INLINE [

    Gender

    Male

    Female

];

Concatenate(GENDER)

LOAD * Inline [

Gender

'NA'

];

antoniotiman
Master III
Master III

Hi,

Load Name,
If(Match(Gender,'Male','Female'),Gender,'NA') As Gender
Inline [
Name,Gender
Maria,Female
Mario,Male
Andrea,
John,Male
Bibi,
]
;

Immagine.png

Regards