Data Table Widget

sgmartin
Kilo Guru

Using the Data Table widget in the Service Portal that comes with Helsinki.   Cloned it so that I could make it work for me.   I added the table name (change_request) and added the fields I wanted to see.   That however doesn't seem to be what that field means when I edit the widget.   The widget defaults to 4 fields (Number,Category,Short Description and Approval).   I did not select all of these and actually added a couple others I wanted to see but they don't show.   I love the look of the table that it presents, but it's just not acting the way I expected.   What am I missing about customizing/configuring a widget?

48 REPLIES 48

Hi Stanley,



Did you have any idea about the valid values that can be passed to 'data.view' variable in getListColumn ?



Regards,


Darshak


Hi Darshak,
      I would make sure that you that you are passing the correct values to the $sp.getListColumns('String TableName', 'String View'); I just attempted this and it did work for me. However keep in mind that we are using the "Data Table from Instance Definition" widget to feed the parameters to the "Data Table" widget. Also here is an example of the syntax I used to get a response:   $sp.getListColumns('incident', 'portal');



Make sure this data.fields variable isnt getting overridden!



Best,
      Philip


Thanks Philip.



Yes. I do that understand that parameters are passed to Data Table widget. And the I'm trying to modify the value of view in widgetParams to see how best I can modify it to my requirement. But the thing that kept me from proceeding was the permissible values for the view attribute. It was by default 'sp' in OOB widget. And I wasn't quite sure, to what other values I can change this.



Also, I face problem with Glyph. It just doesn't show up. Have you faced a similar situation?



Regards,


Darshak


I had to actually modify the HTML in order to get the Glyph to work.   It wouldn't show up even though I configured it.


Can you suggest me how to modify the Data Table widget? I have been trying to change myself too but had no luck. I'm pretty sure that the ng-if pointing to the glyph is failing. Is options.glyph the right parameter for the ng-of condition?



Regards,


Darshak