script example: list custom fields

# > Public Section (English) > Knowledge Base > script example: list custom fields

Description

The following script returns all custom fields for domain FORM under file with id = 27000L

import com.projectkaiser.custom_fields.*;

CollectionViewRequest  cvr = new CollectionViewRequest(ProgressiveList.class, 27000L);
cvr.addColumn("name");
cvr.getArgs().add(FTCustomField.class.getName());
cvr.addColumn("id");
cvr.addColumn("parent_id");
cvr.addColumn("fkey");
cvr.addFunctionToIdColumn(UsageDomain.class, "domain");
cvr.addWhere("domain", "FORM");

LongListResponse llr = gen.view(cvr);

println(llr);
Copyright(c) Triniforce 2006-2019
Created: maxim.ge 7/8/19 12:03 PM; Modified: maxim.ge 7/8/19 12:05 PM
This is print-friendly version of "script example: list custom fields".
Powered by Project Kaiser - Project management and issue tracking software
User:Guest