Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a UI16 field with values in manifest file
#1
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?
Reply
#2
I think it is exactly the same as a UITYPE 15
Joe
TSolucio
Reply
#3
I don't know how to do UI 15 either...
Reply
#4
https://github.com/tsolucio/corebos/blob/master/modules/Assets/manifest.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/master/build/changeSets/addStatus2ProjectTask.php#L30
Joe
TSolucio
Reply
#5
Thanks!
Reply
#6
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.
Reply
#7
This works correctly, it is really tested. Show me the field section you have. Do you get some error on screen?
Joe
TSolucio
Reply
#8
Hmm, it seems I had some conflicting name. I chose a different name for the field and all is well..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)