12-13-2016, 11:19 AM
I'm creating a manifest file, and I want to create a UI 16 field and populate it with some values in the manifest file, does anyone have an example of the syntax?
Creating a UI16 field with values in manifest file
|
12-13-2016, 11:19 AM
I'm creating a manifest file, and I want to create a UI 16 field and populate it with some values in the manifest file, does anyone have an example of the syntax?
12-13-2016, 12:26 PM
I don't know how to do UI 15 either...
12-13-2016, 12:39 PM
https://github.com/tsolucio/corebos/blob...t.xml#L159
the important part is the <piklistvalues> section associated to this type of field in code it would be: $fieldinstance->setPicklistValues(array(...)); https://github.com/tsolucio/corebos/blob...sk.php#L30
Joe
TSolucio
12-13-2016, 12:44 PM
Thanks!
12-13-2016, 02:33 PM
I'm having trouble with creating a UI 15 / 16 field though the manifest though. Either I don't supply the picklist values in the manifest, then the table for the values are not created, or I do, but then the installation halts on the creation of the picklist table. Only real option I see is to create the field after the module is done installing.
12-13-2016, 02:36 PM
This works correctly, it is really tested. Show me the field section you have. Do you get some error on screen?
Joe
TSolucio
12-13-2016, 03:14 PM
Hmm, it seems I had some conflicting name. I chose a different name for the field and all is well..
|
« Next Oldest | Next Newest »
|