context.makeOptionSetRadioGroup
Available on views, Code tab> After Generate JS field, renders the edit control for an Optionset Attribute as a Radio Group in a view.
Syntax
Copy
context.makeOptionSetRadioGroup(IFtosOptionSetAsRadioGroupOptions)
Where IFtosOptionSetAsRadioGroupOptions has the following syntax:
Copy
interface IFtosOptionSetAsRadioGroupOptions {
entityName: string;
attributeName: string;
layout?: "horizontal"(default) | "vertical";
}
Response
void
Examples
In this example:
- On entity "myEntity" there is an optionset attribute named "myOptionsetAttribute".
- On entity "myEntity", there is a view which shows records of attribute "myOptionsetAttribute".
Request
Copy
context.makeOptionSetRadioGroup({
entityName: "myEntity",
attributeName: "myOptionsetAttribute"
});
Response
The value of the "myOptionsetAttribute" is now editable in the view.