\$sp.getform is there in form widget can we use that same in new widget instead of implementing again?

sasidhar3
Kilo Contributor

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 ,

1 REPLY 1

Jace Benson
Mega Sage

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);