Widget to display database view in sp portals
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2022 07:02 PM - edited 12-30-2022 04:24 AM
I have created a database view for timeworked,and case.
I need to show that database view in widget in sp portals, so i created a widget in the server side code i have executed the script but the script is not working ,
what changes do i need to do it in widget script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2022 07:08 PM
@instance
Try this.
(function() {
data.problem=[];
var gr =new GlideRecord('u_casecasetask');
gr.addEncodedQuery('cs_account=a783960397e711104ff5bd3ef053afa5');
//gr.query();
while (gr.next())
{
var datax ={};
//data.number =gr.getValue('tw_task');
datax.number=gr.getDisplayValue('tw_task');
//data.number =gr.tw_task.tk_number;
data.problem.push(datax);
}
})();
HTML
ng-rpeat="datax in data.problmen"
{{datax.number}}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2022 08:00 PM - edited 12-29-2022 08:02 PM
According to your suggestions i have changed But the result is coming empty ,
@newhand do i need to change anything in the Query?
what could be the issue how to solve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2023 07:52 PM
Sorry, i wrote a mistake。
HTML
ng-rpeat="datax in data.problem"