cancel
Showing results for 
Search instead for 
Did you mean: 

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

Nikunj Patel
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Nikunj Patel
Associate III

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

View solution in original post

2 REPLIES 2
Alexandre RENOUX
Principal

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
Associate III

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