cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Filter LanguageCode in CategoryName in SDK

0 Likes
661

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member564242
Active Participant

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";

0 Likes

Hi Shena,

I don't have the LanguageCode option to be able to filter

former_member183363
Active Contributor
0 Likes

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

0 Likes

Hi Lewis,

Thanks for answering.
1. By doing a where I don't have the option to filter by the field.


2. What is the temporary variable for?

Can you give me more detail of your idea