Marco
5 months agoContributor II
Remove text from entities in Data Management
Hi Everyone.
I have some entities that have text at the end, for example “_Test”, and what I want to do is that in the data management I can remove the text at the end to use the original entities.
Example: 12001_12000_Test to 12001_12000
I want to remove that in the section that is in the image, so I wanted to know if it is possible or if there is a solution so that the api.Data.calculate and api.Data.SetDataCell use that entity without the “_Test”.
I think I am missing something but I think you just need to manipulate the source entity and leave the entity off the destination side.
You are copying from Entity to Entity_Test, correct?
If you define the _Test entities in the DM Step then your rule would look like this:
Dim povEntity As String = api.Pov.Entity.Name Dim povEntityRemove_Test As String = povEntity.Replace("_Test","") api.Data.calculate("A#S_HEADCOUNT = E#" & povEntityRemove_Test & ":A#Headcount")