Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
mambi
Creator III
Creator III

empty cells

hi everyone,

i have a table with many columns containing empty cells (with null value)  as in the example below :

categoriesfield1
category 1sport
category 2music
category 3travel
category 4
category 5games
category 6
category 7books

for the column field1  i want to keep the blank cells after the loading script 

i can get the result by using : if(isnull(fields),'',fields) as col in the load script but i have many columns  so i don't want to the this test for over 10 fields , is there any way do this automatically (like verbatim for spaces)

thanks

1 Solution

Accepted Solutions
kiranmanoharrode
Creator III
Creator III


Dear Mambi,

try below script;

NullAsValue *;

Test:

Load *Inline [

categoriesfield1
category 1sport
category 2music
category 3travel
category 4'  '
category 5games
category 6'  '
category 7books

];

Regards

Kiran Rode

+918976977897

View solution in original post

7 Replies
whiteline
Master II
Master II

Hi.

In script you can use NullAsValue field1, field2, ...;

sujeetsingh
Master III
Master III

See this sample please

kiranmanoharrode
Creator III
Creator III


Dear Mambi,

try below script;

NullAsValue *;

Test:

Load *Inline [

categoriesfield1
category 1sport
category 2music
category 3travel
category 4'  '
category 5games
category 6'  '
category 7books

];

Regards

Kiran Rode

+918976977897

Not applicable

if(field1=' ',' ',field1)

Anonymous
Not applicable

Hi Mambi,

     please use the LEN Function in place of ISNULL.

like:

        if(LEN(Fields),Fields,' ')  AS COL

it will be work.

Thanks

SHAIK

Not applicable

hi

try this

if(len(field1)=0,' ',field1)


Regards

mambi
Creator III
Creator III
Author

thanks sir,

it's worked for me.