how to get table name using catalog client script in portal page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 08:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 08:21 AM
Hello @ramprasadk
You can use this in Server Side Script :-
data.title = $sp.getDisplayValue("sc_cat_item");
In HTML :-
<div> <h1>sp_instance.title: {{::data.title}}</h1> </div>
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2023 06:44 PM
I have open RITM by using "id=form&table=sc_req_item&sys_id=9b5505c1975721107d9e3e66f053af1b&view=sp" by this link. In Catalog client script g_form.gettablename() using.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 08:26 AM
Hi @ramprasadk,
Is it possible to create Client scripts on Catalog task table and specific to your catalog item?
where you will use the g_form.getTableName();
If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2023 06:46 PM
I have open RITM by using "id=form&table=sc_req_item&sys_id=9b5505c1975721107d9e3e66f053af1b&view=sp" by this link. In Catalog client script g_form.gettablename() has using in if condition.