# Hardcode defined smartrules datapoint in angular

**URL:** <https://community.cumulocity.com/t/hardcode-defined-smartrules-datapoint-in-angular/3645>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [March 7, 2024, 4:07pm UTC](https://community.cumulocity.com/t/hardcode-defined-smartrules-datapoint-in-angular/3645 "2024-03-07T16:07:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brkngcn](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@brkngcn](https://community.cumulocity.com/u/brkngcn)\
**Post date:** [March 7, 2024, 4:07pm UTC](https://community.cumulocity.com/t/hardcode-defined-smartrules-datapoint-in-angular/3645/1 "2024-03-07T16:07:10Z")

</div>

I want to define the datapoints coming to the dropdown menu here as hardcode in my Angular application, how can I do this?

If we cannot define these datapoints as hardcode in Angular, how can i set the datapoint names in the dropdown can be translated according to the selected language.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/2/6/26a37ea94da0811d41c6f361febb65d5ec5fb24b.png)

---

<div class="post-metadata">

**Author:** ![Pawel\_Rynarzewski1](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/pawel_rynarzewski1/32/10150_2.png) [@Pawel\_Rynarzewski1](https://community.cumulocity.com/u/Pawel_Rynarzewski1)\
**Post date:** [March 8, 2024, 2:05pm UTC](https://community.cumulocity.com/t/hardcode-defined-smartrules-datapoint-in-angular/3645/2 "2024-03-08T14:05:44Z")

</div>

Hi, these labels are not translated because they are set by users when they create data points (Cockpit \> Configuration \> Data point library), so it’s treated as user input. If you want to make sure that certain data points appear in this select list, your app could pre-create such objects via REST (managed objects with `c8y_Kpi` fragment).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [September 4, 2024, 2:06pm UTC](https://community.cumulocity.com/t/hardcode-defined-smartrules-datapoint-in-angular/3645/3 "2024-09-04T14:06:29Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
