Skip to main content
Nikunj Patel
Associate III
Aug 12, 2020 12:26 PM UTC
Solved

I would like to Add and remove the custom container item on request

Hello Community, @Community member​ @Martin KJELDSEN​ 

I have used STM32F746G-DISCO kit.

My Purpose is to implement the Alert Screen.(See Image 1)

Also i have create the custom container.(See Image 2)

I have received the data from modbus.

As, i received the Alert bit i need to display on the Alert Page.

Case:

Suppose i have received the 10 error.

I display it on device but when Alert number is reduced to 10 to 5.

Then i need to remove the 5 items from the display.

Can you please guide me how to remove previous error?

Regards,

Nikunj Patel

This topic has been closed for replies.
Nikunj Patel
Nikunj PatelBest answer
Associate III
Aug 13, 2020 12:46 PM UTC

Hi @Alexandre RENOUX​ 

Thanks for reply.

Actually, I used ListLayout with Scrollable Menu Widget.

In my Alert screen, Maximum 7 list element are stored.

When list element is increase more then 7, then scrollable menu is automatically enable.

In my Application, i need to add or remove the element dynamically on received request. (Like Alert Number).

So, My problem was that i am not able to remove the list element when when Number of list element is 7 (Maximum 7 list element display on screen).

Now, thanks to god, I am able to resolve the issue.

Actually, I am forgot to implement (Scrollablemenu.invalidate();).

Regards,

Nikunj Patel

2 replies

Alexandre RENOUX
Visitor II
Aug 13, 2020 9:03 AM UTC

Hello,

I don't really understand your problem. Don't you use already the remove() API of the ListLayout ?

Could specify more what you are struggling with ?

/Alexandre

Nikunj Patel
Nikunj PatelAuthorBest answer
Associate III
Aug 13, 2020 12:46 PM UTC

Hi @Alexandre RENOUX​ 

Thanks for reply.

Actually, I used ListLayout with Scrollable Menu Widget.

In my Alert screen, Maximum 7 list element are stored.

When list element is increase more then 7, then scrollable menu is automatically enable.

In my Application, i need to add or remove the element dynamically on received request. (Like Alert Number).

So, My problem was that i am not able to remove the list element when when Number of list element is 7 (Maximum 7 list element display on screen).

Now, thanks to god, I am able to resolve the issue.

Actually, I am forgot to implement (Scrollablemenu.invalidate();).

Regards,

Nikunj Patel