525
Views
4
Comments
Changing Entity Data Type from "Text" to "Identifier"
Application Type
Reactive
Service Studio Version
11.53.20 (Build 61431)

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?

Capture4.PNG
2026-02-26 06-29-24
Rahul
 
MVP

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

2023-08-28 09-08-29
Venkatesh Sundarajan

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.

2024-09-09 08-44-46
BHUPENDRA SINGH

Hi Stanislaw,

You can use additional ToLower() function  as below: "TextToIdentifier(ToLower(GetPatientsInfo.List.Current.PatientHealthStatus.Color))"

and check if it solves color rendering issue.


2022-10-10 06-46-53
Stanislaw Hohowsky

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.


Capture5.PNG
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.