Create buttons on Widget(Data Table from Instance Definition)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2022 03:52 PM
Hi,
Is it possible to create buttons on 'Data Table from Instance Definition' widget such as below.
The idea is if we click on 'Start' on one record, where state is not in 'On' should change the VM's state to 'On'
Any help is appreciated.
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2022 10:27 PM
Hi,
Yes its possible, you can create new onclick() function on client side and update state when onclick() function is called.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2022 10:57 PM
Hi Prem,
<button> tag is used to create buttons in widgets.
Below link will be useful
https://stackoverflow.com/questions/19174110/how-to-show-long-text-with-more-button-using-angular
and https://serviceportal.io/real-time-app-using-service-portal-record-watchers/
You will get plenty of ideas over a search.
Also, refer to this thread, this has a similar discussion :
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 07:35 PM
Hi Prem,
Any update to this ?Any follow-up required? if not
Kindly mark the answer as Correct & Helpful both such that others can get help.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 03:15 PM
You might find some code or artifacts in here that might be helpful: