74
Views
11
Comments
Solved
Insert button into table for details
Service Studio Version
11.54.21 (Build 62708)

I want to add button in all rows in a table for more details. Like the table is about booking list and user can click button for more details about the booking. I want the details displayed based on the data.

Solution

Hello Azfar,

I hope this is in Reactive

To achieve this please follow the below step:

1. Add table to the screen

2. Add extra column at the end and add button with name " Check Details"

3. Add new action for button to check the details with input parameter of the entity(in my case EmployeeId) of which the details needs to check.

4. The end of the onclick action of button can be other screen where you will show the details or the logic to make other block or container's visibility property true.

5. Pass the employee from the aggregate and done

6. on the other screen where you will show the details, use the input id in aggregates filter to show only that specific record's details.

Please see the screen shot below,



Hello,

I have made changes in you OML, please find it below,

I have added link to your existing button in banking screen and shifted it to the banking details screen.

FBS.oml


how about for picture? what is datatype should use? because in input parameter it said "Unsupported Input Type Records and Lists are not supported as input variable types. To use them, you can call logic or fetch them from a data source." when i use binary datatype 

That's correct, you need you use the booking id to see the images related to that specific bookings,

Hope above solutions is worked for you 

Thanks,

Komal

Hi,

Let me know if the answers above worked for you or not yet,

Thanks,

Komal

how to deal with this? data type problem

Screenshot_2.png

First please provide more info on your requirement, the binary data can't be your input parameter, 

if your adding the images for bookings then you can have foreign key in your entity in which binary data is stored and while upload function is running update the foreign key at the back end  so that with the help of booking id you can fetch the images for specific record.

Thanks,

Komal

Champion

Hi

You can simply put one button in a column of table. On click of this you need to get the id of current record and redirect user to details screen with this I'd as input param. On details screen fetch the details of specific record again using passed id.

Regards 

Thanks

Solution

Hello Azfar,

I hope this is in Reactive

To achieve this please follow the below step:

1. Add table to the screen

2. Add extra column at the end and add button with name " Check Details"

3. Add new action for button to check the details with input parameter of the entity(in my case EmployeeId) of which the details needs to check.

4. The end of the onclick action of button can be other screen where you will show the details or the logic to make other block or container's visibility property true.

5. Pass the employee from the aggregate and done

6. on the other screen where you will show the details, use the input id in aggregates filter to show only that specific record's details.

Please see the screen shot below,



Hello,

I have made changes in you OML, please find it below,

I have added link to your existing button in banking screen and shifted it to the banking details screen.

FBS.oml


how about for picture? what is datatype should use? because in input parameter it said "Unsupported Input Type Records and Lists are not supported as input variable types. To use them, you can call logic or fetch them from a data source." when i use binary datatype 

That's correct, you need you use the booking id to see the images related to that specific bookings,

Hope above solutions is worked for you 

Thanks,

Komal

Hi,

Let me know if the answers above worked for you or not yet,

Thanks,

Komal

how to deal with this? data type problem

Screenshot_2.png

First please provide more info on your requirement, the binary data can't be your input parameter, 

if your adding the images for bookings then you can have foreign key in your entity in which binary data is stored and while upload function is running update the foreign key at the back end  so that with the help of booking id you can fetch the images for specific record.

Thanks,

Komal

Hi,

Adding to the correct answer of @Komal Kumbhar , just for completeness :

1) when using buttons (or links) in a list or table, you don't really need an input parameter on the action, you can just refer to aggregate.list.current... from within the action's logic.  But when using other events (like onclick of a div) you do need it.

2) when no other logic is executed other than going to a detail screen, you don't really need an action, you can just specify that screen as the OnClick property of the button, matching the aggregate.list.current.entity.id to the input of that screen.

Dorine

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