Skip navigation
Currently Being Moderated

get-list-item-percentage not working

May 28, 2012 9:09 AM

Tags: #list #collection #percentage #function #get-list-item-percentage

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.

 
Replies
  • Currently Being Moderated
    Jun 18, 2012 11:56 PM   in reply to Darklight3it

    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?topi c=000097&topic=002025

     

    Nith

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points