Good Day.
I have a Tag with the Function "TextToIdentifier(GetPatientsInfo.List.Current.PatientHealthStatus.Color)" to set the Tag to a specific color.
When I publish it the color just stay default. To steps I follow gives me the follow "This will make the tag color change according to the patient's health status. Since this element expects an identifier or not the text, you need to convert the color saved in the PatientHealthStatus Entity, which is a Text, to an identifier. "
So when I go to the "PatientHealthStatus" Entity I can see that the data type is "Text" and I am not sure what to do to convert it to an Identifier. When I select any of the given Identiefiers in the drop down it doesn't want to publish.
Can any one help me please?
Hi,
I think you missing something you need to take PatientHealthStatus Entity identifier as FK in other entity. you need to save PatientHealthStatus Entity identifier in other entity and based on identifier you can find color of this particular record.
Hope this will help you.
Regards
Rahul
Hi Stanislaw,
You are passing the Text where Identifier is expected, You can pass the
"Entities.Entity1.blue" - this is the actual record you need to pass.
as shown in example below,
You have to keep the "PatientHealthStatus" Id attribute as FK in the Other table and based on the ID you can fetch the respective colors.
You can use additional ToLower() function as below: "TextToIdentifier(ToLower(GetPatientsInfo.List.Current.PatientHealthStatus.Color))"
and check if it solves color rendering issue.
Hallo,
Thank you @BHUPENDRA SINGH RAGHUWANSHI, @Venkatesh Sundarajan, @Rahul Sahu for helping me. I tried everything you guys said and I could not find the solution. So my conclusion was that I am looking in the wrong place for the problem. So I found the problem.
So in my Tag I passed "TextToIdentifier(GetPatientsInfo.List.Current.PatientHealthStatus.Color)" and on another UI Flow there were a button to save the info to this location, and it did not save it there, so when I passed in the correct location everything worked as it was supposed to.
Thank you.