Hello Appian community,
so I have a drop down where I am trying to see the the value of the of the entity and entityType and entitySubtype I can see the entities and the entityTypes but I can not see the .entitySubtypes?
I do not understand why my code is failing and cannot "see" into for each loops to "view" what the values are or why its failing
here is the code:
a!forEach( items: local!symbolIcon, expression: fv!item.entity & if( rule!APN_isEmpty(fv!item.entityType), "", " - " & fv!item.entityType ) & if( rule!APN_isEmpty(fv!item.entitySubType), "", " - " & fv!item.entitySubtype ) ),
here is what I can see when I run the rule:
here is what you see from the drop down
please lmk if you want more.
I do not know why the dropdown is not showing the entitySubtype,
the apn isEmpty rule take any object
here is the code for it
or( isnull(ri!array), length(ri!array) = 0 )
any ideas would be helpful
thanks,
Kevin
Discussion posts and replies are publicly visible
I can't tell what's causing the data in your dropdown(?) to populate that way based just on what you've provided so far.
sorry about that:
here is the full drop down
a!dropdownField( label: "Icon", labelPosition: "JUSTIFIED", placeholder: "--- Select a Value ---", choiceLabels: a!forEach( items: local!symbolIcon, expression: fv!item.entity & if( rule!APN_isEmpty(fv!item.entityType), "", " - " & fv!item.entityType ) & if( rule!APN_isEmpty(fv!item.entitySubType), "", " - " & fv!item.entitySubtype ) ), choiceValues:local!symbolIcon.id, value: if( rule!APN_isEmpty(ri!Symbol.functionID), 1, ri!Symbol.functionID ), saveInto: {ri!Symbol.functionID, a!save(local!functionID,rule!GFIM_GetCodefromID(ri!Symbol.functionID))}, searchDisplay: "AUTO", showWhen: { or(local!milsymbol = 3, local!milsymbol = 4) }, validations: {} )
It'd probably be a good idea to edit your reply and paste all that data into a code box ("Insert" --> "Insert Code"), as it's fairly unreadable otherwise and makes the thread pretty hard to scroll through.
Also: with a quick glance through, the values posted in your output so far seem to account for the duplicate entries in your dropdown/picker screenshot, so I'm unclear what the actual issue is. For example, I see several entries that would render as "Weapons/Weapons System - Rifle" in your posted code.