Hi: The main reason is that it not show up a field , I have a userData.js in /usr/share/ipa/ui/js/plugins/userData it show the label but no field to edit and save button not bring to save(freeipa ver4.5).
define([ 'freeipa/phases', 'freeipa/user'], function(phases, user_mod) { // helper function function get_item(array, attr, value) { for (var i=0,l=array.length; i<l; i++) { if (array[i][attr] === value) return array[i]; } return null; } var emp_plugin = {}; // adds 'employeenumber' field into user details facet emp_plugin.add_emp_number_pre_op = function() { var facet = get_item(user_mod.entity_spec.facets, '$type', 'details'); var section = get_item(facet.sections, 'name', 'identity'); section.fields.push({ $type: 'Multivalued' name: 'comDate', label: 'Commencement Dare' }); return true; }; 2017-10-31 18:37 GMT+08:00 Felipe Barreto <fbarr...@redhat.com>: > Hello, > > could you share how you developed the plugin? The error logs? > We also have this [1] guide, I think it's more updated then the > one you used. > > [1] https://abbra.fedorapeople.org/guide.html#sec-6 > > > On 10/31/2017 05:29 AM, barrykfl--- via FreeIPA-users wrote: > >> hi all: >> >> https://www.freeipa.org/images/5/5b/FreeIPA33-extending-freeipa.pdf >> >> I added the attribute successfully but the plugin of JS fail to display a >> field >> and cannot save >> >> Any idea ....now I m using freeipa 4.5 ...seem not same as the pdf using. >> >> Barry >> >> >> _______________________________________________ >> FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org >> To unsubscribe send an email to freeipa-users-le...@lists.fedo >> rahosted.org >> >>
_______________________________________________ FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org To unsubscribe send an email to freeipa-users-le...@lists.fedorahosted.org