Lookup table contents

Hello everyone, I’m new to Pega Robotics Development, I wanted to ask a question, I created a lookup table and I had populated it with the the necessary info.

Where can I check what values are stored at running time in the table?

Thank you

@AndreiN16802781 In 22.1, the easiest way currently is to simply add a Form to your project. On the form, add an SfDataGrid control along with a TableView control. Set the TableProvider property of the TableView to your LookupTable. Set the DataSource property of the SfGridView to the TableView.

The only issue you might have with this approach is if you are doing any editing of the LookupTable in your automations (add, update, or delete) and those edits are not coming off of a Windows Form thread. That might cause your Form to appear not responding. You can avoid that in testing if you trigger your automations from a Windows form, but if they are being triggered by an event in your application, then you might need to try the solution below.

If you do want this to be truly thread safe, then the key is to use events triggered from controls on your form to cause the LookupTable it is connected-to to be updated. The easiest way to do this without changing anything in your other automations is to make a copy of the lookupTable you’re using and have that be bound to the form. When you wish to display the data in the actual table, use a button click event (from a button on your form) to call the GetTable method of your “real” table and the “ReplaceTable” method of the copy.

Let me know if you’d like an example.