How can I do a List with many Elements into a List in XAML and C#? - list

Listbox
So I want many Elements in a row of a list, that I can mark a single Item:
How can I do it in XAML?
Content= "Nachname Mustermann, Max 01.01.1965 57 Rechtshänder"
That is what it should looks like.
List

Related

MS Sharepoint - How can I create a list that shows the count of itens of multiple lists, that were created in a specified date

For an example, I have list A and B and I want to create a list like the one below
Date
List A
List B
12/02/2022
12
26
18/01/2022
89
7
The numbers under each list column represent the count of items that were created in the specified date in each list.
I am actually quite lost in how to do that. Maybe I'll need to do it in PowerAutomate?

Using LINQ, from a List<Object>, How to retrieve a list that contains entries repeated more than once and their values

Using LINQ, from a List, retrieve a list that contains entries repeated more than once and their values.
I have list of objects as below : var lstNames = new List { };
where Input is class with 10 properties.
I would like to filter and remove the duplicates ones.

How can I display the index[0] value from an item list?

I have an item list with a department field. While retrieving the department field from the item list, I only want to display the first department value (index[0]).
I tried using the ?first but it doesn't work right.
What syntax should be used for this?
The easiest is to get index 0 by Retrieving data from a sequence
department[0]
(remember that the number of the first item is 0, not 1): animals[0].name

storing apex_item.select_list_from_lov selection

I have an LOV in my HTML page that I created with APEX_ITEM.SELECT_LIST_FROM_LOV
Should I also create a Page Item for it?
I mean I am a bit confused because this item has no name as they got if I 'd create an LOV as PAGE ITEM.
How should I get the selected value to insert it for example, into apex_collections?
Thanks in advance
You can get the value of an item created using the APEX_ITEM package by looking at the PL/SQL array apex_application.g_fNN where "NN" is the number you used as the first parameter to the APEX_ITEM function.
For example, if you used APEX_ITEM like this:
apex_item.select_list_from_lov(42, 'MY_LOV')
then you can get the values like this:
for i in 1..apex_application.g_f42.count loop
l_value := apex_application.g_f42(i);
end loop;
(If you had used APEX_ITEM in a multi-row report then there will be more than 1 element in the array.)

Search query in sqlite3 database for certain items

I have a list of items as an string array in C++. I also have a sqlite3 database which contains blacklisted strings. Now I must Use the list of items that i have to mark them with 0 or 1, telling me if they are blacklisted or not. I could do search for them one by one by using "Select * from ITEMS_TABLE WHERE item = string[i]" but it will take time. I could also pull blacklist from database and then look for them in my list. But is there an efficient way to find out which of the items in my list are blacklisted.
Lets say I have following structure
struct item
{
char name[MAX_NAME_LEN];
bool isBlacklisted;
};
Then i use array of these structures to knows if any of them is blacklisted. So i have to make isBlacklisted flag to true, if the entry is found in database. If i use Select approach, it returns me list of items that were blacklisted. But i still need to find them in my array using string comparisons. Is there some efficient way to do is. Does database provide any such functionality.
Thanks and regards,
Mike.
Design your database structure according to your requirements. You want to know blacklist items simply use a column which contains 0 or 1 for blacklist or not i.e your table ITEMS_TABLE has these columns
itemcode itemname isblacklist
1 item1 0
2 item2 0
3 item3 1
now
Select * from ITEMS_TABLE WHERE isblacklist=0
this will return non blacklist items and
Select * from ITEMS_TABLE WHERE isblacklist=1
will return blacklist items, Hope this will help you