Issue with Declare Expression using Embedded Page Context
Hi,
I'm creating a declare expression to set an alternative Country Code (2 characters) based on the Country Code (3 characters) selected by the user:
As you can see in the screenshot above the target property CountryCode2 is located in Page .CustomerInformation.CustomerAddresses(1) of class "ACME-Data-Address". I created a map value in the address class, however once I set property CountryCode, I notice the map value executes but does not find a match...
As a workaround for this, I created an activity that calls the Map value above and is triggered when a Country dropdown changes. Activity and map value worked good in this approach. However, I wrote this post to figure out if something wrong with my declare expression configuration, because I already tried a similar approach in another case type, but using a different Page Context (CountryCode2 located in page .Contact of class "ACME-Data-Contact") and it worked good.
Thanks for any ideas on this,
-Jose
Hi,
I'm creating a declare expression to set an alternative Country Code (2 characters) based on the Country Code (3 characters) selected by the user:
As you can see in the screenshot above the target property CountryCode2 is located in Page .CustomerInformation.CustomerAddresses(1) of class "ACME-Data-Address". I created a map value in the address class, however once I set property CountryCode, I notice the map value executes but does not find a match...
As a workaround for this, I created an activity that calls the Map value above and is triggered when a Country dropdown changes. Activity and map value worked good in this approach. However, I wrote this post to figure out if something wrong with my declare expression configuration, because I already tried a similar approach in another case type, but using a different Page Context (CountryCode2 located in page .Contact of class "ACME-Data-Contact") and it worked good.
Thanks for any ideas on this,
-Jose
P.S. I'm using OOTB CountryCode (PegaCA-Interface-) which already specifies a full list of Countries and it uses a 3 characters code.