Skip to main content
Nikunj Patel
Associate III
August 12, 2020
Solved

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

  • August 12, 2020
  • 2 replies
  • 1276 views

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.
Best answer by Nikunj Patel

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
August 13, 2020

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
August 13, 2020

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