1 Reply Latest reply on Jun 18, 2012 11:56 PM by $Nith$

    get-list-item-percentage not working

    Darklight3it

      The command get-list-item-percentage seems not to work. Checking an attachment list with this command answers the following exception even if notes are present:

       

      org.jaxen.FunctionCallException: The get-list-item function found the following input parameter validation errors: -- The property name specified in the third parameter does not exist in List objects.

       

      I am working with LiveCycle ES 2.5.

        • 1. Re: get-list-item-percentage not working
          $Nith$ Level 4

          The third parameter is useful when you search for a text against a property of the list items.

           

          For example, if each item in the list (say User object) containing a property named 'role', then you can search the percentage of users who belongs to manager role.

           

          get-list-item-percentage(/process_data/lstUsers,'manager','role')

           

          Conversly, if the list items are simple types such a List<String>, you cannot search a value against any property name. This will cause an error. However you can directly search for it's value and find the percentage.

           

          get-list-item-percentage(/process_data/myStringListofRoles,'manager')

           

          Adobe Documentation explaining this function usage:

          http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/help.html?topic=000097&topic=00202 5

           

          Nith