Posted: 31 Aug 2017 4:21 EDT Last activity: 12 Sep 2017 5:55 EDT
Localize Property Names in Validate Rule
I have a class with 3 properties and section with Grid where instances of this class are showing. All properties are required so I have created a Validate rule to do this which is called when pxCreateRecordInner is working. When I click "Add record" in the grid and left properties blank Validate rule works and following message is shown:
.<PropertyName> <Message from Validate Rule>
My question is how to localize ".<PropertyName>" ?
I had created pyLabel\pyFieldLabel\pyMessageLabel for property but it isnt work.
Thanks for your reply! I tried your solution and got results that you can see in the attached files. Properties message1 and message2 still contain <PropertyName:>.
And main question is how can I apply the approach using activity with Property-Set-Message step and etc.. if I have property with type PageList and RepeatGrid? I thought that in this case I can only use pyDefault datatransform for initialize Page in PageList property.
Posted: 4 years ago
Posted: 1 Sep 2017 5:49 EDT
Srinivas Muthyala (muths1)
Principal Solutions Engineer
Please do the follwoing:
1)add category as "pyMessageLabel" in the Property-Set-Method of the activity
2) Create field value of TestMessage with Field name as "pyMessageLabel"
Now run the activity, you will see the localized values instead of text.
ok, I will try this but how can I apply the approach using activity with Property-Set-Message step and etc.. if I have property with type PageList and RepeatGrid? I thought that in this case I can only use pyDefault datatransform for initialize Page in PageList property.
Thanks for your help. That helped. But I was faced with another problem localization. When I leave an empty field, which is the key in the class, then ValidateKeysContent activity works, which adds the message to the page as follows: