Make a field to true by default

kpj
Giga Contributor

I created an Active field with True/False type. I have given the default Value as true in Dictionary as well. But on the form, I do not see the Active as true i.e., Active check-box is not true.

I really appreciate for your valuable answers

Thanks,

KP

9 REPLIES 9

Mihir Mohanta
Kilo Sage

Hi Jack,



The records already present before adding default value of active to true will not reflect their active value as true.



Create new record to this table . All new records will be defaulted to active true.



Thanks,


Mihir


Hi Mihir,



I have 1000's of pre-existing records. Is it possible to make them true as well.



Thanks,


KP


Yes Jack,



You need to run a back ground script and set all record active true.



Thanks,


Mihir


You could right click on any column header of a list view of the table and "Update All". If you only check that box, that will be the only change to all of the records.



find_real_file.png


shristy2
Giga Expert

Hi Jack,



You can write a   client script : SNOW - Active True



function onLoad() {


    //Type appropriate comment here, and begin script below


        g_form.setValue('Active','true');


}



Mark if it is helpful or correct, feedback is appreciated




Thanks