On 11/09/2017 09:18 AM, barry...@gmail.com wrote:
Now work at certain area limitation:

It can update successfully  BUT no view on UI  , then I tried replace "textarea" as before it come a big field but also no view my result. ( but it really updated)
Could you please reformulate it? I'm not sure whether I understand what's the problem now.

      flags: ['w_if_no_aci'],
   $type: 'multivalued',
   name: 'comDate',
      label: 'Commencement Date'


內置圖片 1

2017-11-09 16:06 GMT+08:00 Pavel Vomacka <pvoma...@redhat.com <mailto:pvoma...@redhat.com>>:

    On 11/09/2017 09:00 AM, barry...@gmail.com
    <mailto:barry...@gmail.com> wrote:
    Add like this ...now the label gone nothing shown.

          flags: ['w_if_no_aci']
       $type: 'multivalued',
       name: 'comDate',
          label: 'Commencement Date'

    Yes, that's because of missing colon at the end of 'flags: ...'
    line. You can open Developer Console in browser (F12) and you will
    see an error.

    2017-11-09 15:50 GMT+08:00 Pavel Vomacka <pvoma...@redhat.com

        On 11/09/2017 08:36 AM, barry...@gmail.com
        <mailto:barry...@gmail.com> wrote:
        Same Like this Lable no field no edit no save but fine in
        command base ...any different freeipa4.0 vs 3.0 procedure?
        Do you have IPA 4.x ? Or which version?

        Try to add following line into the specification of your new

        flags: ['w_if_no_aci']

        內置圖片 2

        2017-11-09 14:44 GMT+08:00 Pavel Vomacka
        <pvoma...@redhat.com <mailto:pvoma...@redhat.com>>:

            On 11/08/2017 07:29 AM, barrykfl--- via FreeIPA-users wrote:

            Dear all:

            I follow the guide of freeipa 3.0 abt web plugin web
            ui. At command base I successfully made
            a custom attribute called Employee " Commencement Date"
            . I can add using script / command.

            BUT in web UI , it Display "Commencent date" Label only
            ....and cannot display edit field and allow me edit.

            After That I changed to Multivalue the field come out
            but still the save button is grey I cannot save again.

            Which part I made wrong ? please advise . thx

            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 cdate_plugin = {};

            cdate_plugin.add_c_date = function() {
                var facet = get_item(user_mod.entity_spec.facets,
            '$type', 'details');
                var section = get_item(facet.sections, 'name',
                  $name: 'comDate',
            The dollar character should be at the beginning of type
            attribute not the name. So try to change it to:
            name: 'comDate',
            $type: 'multivalued'
                  type: 'multivalued',

                  label: 'Commencement Date'
                return true;

            phases.on('customization', cdate_plugin.add_c_date);

              return cdate_plugin;

            Does it help?

            FreeIPA-users mailing list --freeipa-users@lists.fedorahosted.org
            To unsubscribe send an email 

-- Pavel^3 Vomacka

-- Pavel^3 Vomacka

-- Pavel^3 Vomacka

Pavel^3 Vomacka

FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org
To unsubscribe send an email to freeipa-users-le...@lists.fedorahosted.org

Reply via email to