61
Views
5
Comments
Return more values from a block to the screen

I have a block (which is on a popup). In the block I want to select one or more users from a list and display their name on the main screen. How can I do this? 

2023-04-06 11-24-23
Paulo Zacarias

Hi Shooose, 

You will need to use events and through these events pass these values in a list. 

Is this helpful or do you need more details related to the code?

Regards, 

PZ


2023-10-21 19-42-11
Tousif Khan
Champion

Hello 

Are you selecting User from checkbox or can you explain how you are doing selection on a pop up.

Thanks

UserImage.jpg
shooouse

Hi @Paulo Zacarias , Hi @Tousif Khan  

I have a table on the popup with user data. Next to each row I have a button that saves the selected user and returns their name to the screen. So I am able to select and display one user at a time, but I don't know how to create a list that returns more users from the block to the screen. 

UserImage.jpg
Kay Lun

Hi shooouse,

In your input parameters of your event, use List User instead of User, and append the User record into the list each time a user selected should do the trick.

Hope this help.

2023-05-08 05-34-05
Piyali Saha

Hi Shooose, 

As per your scenario, you need to send a list in the input parameter of the event to parent so that you can display the whole list on the parent screen instead of single name.

I am attaching the oml for your reference for the same. Hope this will help you.

UserList.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.