Title not working in the "Data Table from Instance Definition" widget

salu
Mega Guru

philengles

isthmus

Hello experts,

I am using Data Table Instance Definition wigdet to show the information of Incident.

I have set the title as 'My BDC Resolved Incidents' but it showing as Incident only.How can I change it?

find_real_file.png

find_real_file.png

Thanks

saranya

8 REPLIES 8

eagelmac
Mega Contributor

I cloned data table with instance definition and in the html template i changed line 3 to



html template line 3


${Table not defined} '{{data.options.title}}'



However the custom title shows while page is loading but once the page gets loaded the title changes to table name due to line 37 in server side script that over rides all our custom bindings.



server script line 37


data.table_label = gr.getLabel();



For now i have cloned data table instance for definition and hardcoded the title.


eagelmac


Hello Partheepan,



Where you are hard coding the title?



Thanks


Saranya


philengles
Giga Expert

Seems like you found a work around. From the problem you are trying to solve I would also suggest that you might have a boolean field that gets passed down from the server to the client. What that boolean field will do is check what page it is on (use $sp.getParameter('id') for this) if it is the page of the widget with the unique query then display the correct title with an ng-hide and ng-show.


eagelmac
Mega Contributor

Hi Saranya,



You are actually passing some parameters in the server side script... from data table widget...



so when you are using "data table from instance definition" you are actually passing the widget params from "data table" widget...



you have to clone both the widgets and hardcode in the html template in the "data table" widget.



and also (say)change data_label value to "My Incidents" if you want to change the title from "Incidents".