\$sp.getform is there in form widget can we use that same in new widget instead of implementing again?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2017 01:23 AM
Hi,
var f = $sp.getForm(data.table, data.sys_id, data.query);
This is there in Form widget i am doing customization , i cloned the form widget and am using that , Now How to use this var f = $sp.getForm in a new widget (same functionality) , am new to portal , how we can get that from that widget ,
Could anyone please help me on this
Thanks in Advance ,
- Labels:
-
Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2017 04:02 AM
You should be able to just use it in the same way;
getForm(string table, string sys_id) - record
getForm(string table, string sys_id, string query, string view) - record
// Returns the form.
// source: User Profile[user-profile] line 22
$sp.getForm("live_profile", data.liveProfileID);
// source: Form[widget-form] line 63
data.f = $sp.getForm(data.table, data.sys_id, data.query, data.view);