28 views
in GUI Development by

Hi,

I am trying to make use of the non-visual component feature in my demo project to display some event lists. So, had adopted the non-visual component example to my demo project.

I see that, list is not being displayed when dialog transition invoked from main dialog.

As shown above, i had created list and view dialogs as per the non-visual component example and i had invoked the dialog when the respective button was touched from main dialog.

 

Using trace messages, I was able to understand the database records are created and getting invoked as expected and also, I had created a separate project to verify the functionality of non-visual component and its working as expected.

Can anyone point out the mistake in the above procedure to make use of database list.

Demo project for reference: Non-visual component usage

1 Answer

0 votes
by
 
Best answer

Hello,

two possible error sources:

1. the list property NoOfItems is initialized with 0:

2. Your application contains two instances of the EventScreen component.The first exists as embedded object inside the MY2::MY2. The second is created dynamically just in the moment when the user select the Events icon. The NoOfItems initialization is performed for the first instance only. The second instance remains initialized with 0 and is thus empty.

I hope it helps you further.

Best regards

Paul Banach

by
Thank you, Paul.

I had removed EventScreen instance from MY2 : : MY2. Now other instance of EventScreen is not triggering the vertical list when dialog switch triggered from menu interaction.

Likewise, i had made changes to the non-visual component example also, by using dialog switch in init() instead of direct invocation. Here also vertical list is not getting triggered.

Is there a way to trigger the Database of vertical list after dialog switch?
by
So far I understood your implementation, to trigger the update you have to assign a value to the property Database.

Best regards

Paul Banach
by
Hi Paul,

I am able to trigger the database by creating new one in init() of the dialog

Thank you for the support.

Embedded Wizard Website | Privacy Policy | Imprint

...