on ‎2021 Mar 24 7:55 AM
Hello,
I am doing a development in which I want to obtain the id of the defect and the name of the defect, when trying to obtain the name I find the casuistry that I cannot filter the language of the name because the LanguageCode field does not come within the CategoryName node. However, reviewing the Repository Explorer we can see that it appears as a filter parameter so I understand that there must be some way to filter the language.

can anybody help me?
Request clarification before answering.
Dear Ruben,
The data type "LanguageCode" is not located in the namespace AP.Common.GDT.
If you import the namespace BASIS.Global in your BODL-File you should be able to use it.You can look up the namespaces of data types in the Repository Explorer (menu "View") by switching to the top menu tab "Data Types" there.
Unfortunately, the BODL-Editor doesn't provide code-completion to find the according namespace to the entry in the RepositoryExplorer, but the ABSL-Editor does. So if you do not find a namespace path just open any ABSL-Script, type "import " and hit CTRL+SPACE and you can browse all avalable entries.
If a data type exists in multiple namespaces (and you imported these), it can sometimes be neccessary to explicitly define the path, e.g. "element userSelectedLanguage :BASIS.Global:LanguageCode";
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rubén,
Just get the collection of all CategoryName nodes and use the .Where() function to filter by language code. You may need to declare a temporary variable with the same field type to populate it.
Lewis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.