Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
What is map function what it does and how we use it.
I see in some interfaces it has been used in ruleinputs as a datatype.
Discussion posts and replies are publicly visible
Hi maps are used to store data values as a key-value concept for more please check this out https://docs.appian.com/suite/help/22.3/fnc_system_map.html
Please elaborate I have seen the doc but still not sure can you please give an example
What are you not sure about? If you want to know how it is used check the below code.
=a!localVariables( local!items: { a!map(item: "Item 1", qty: 1, unitPrice: 10), a!map(item: "Item 2", qty: 2, unitPrice: 20) }, a!gridLayout( label: "Products", instructions: "Update the item name, quantity, or unit price.", headerCells: { a!gridLayoutHeaderCell(label: "Item"), a!gridLayoutHeaderCell(label: "Qty"), a!gridLayoutHeaderCell(label: "Unit Price"), a!gridLayoutHeaderCell(label: "Total", align: "RIGHT") }, rows: { a!gridRowLayout( contents: { a!textField( value: local!items[1].item, saveInto: local!items[1].item ), a!integerField( value: local!items[1].qty, saveInto: local!items[1].qty ), a!floatingPointField( value: local!items[1].unitPrice, saveInto: local!items[1].unitPrice ), a!textField( value: dollar(tointeger(local!items[1].qty) * todecimal(local!items[1].unitPrice)), readOnly: true, align: "RIGHT" ) } ), a!gridRowLayout( contents: { a!textField( value: local!items[2].item, saveInto: local!items[2].item ), a!integerField( value: local!items[2].qty, saveInto: local!items[2].qty ), a!floatingPointField( value: local!items[2].unitPrice, saveInto: local!items[2].unitPrice ), a!textField( value: dollar(tointeger(local!items[2].qty) * todecimal(local!items[2].unitPrice)), readOnly: true, align: "RIGHT" ) } ) }, rowHeader: 1 ) )