- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2017 06:46 PM
Hi Experts,
I've cloned the HR Profile widget in Service Portal and made some simple changes. However when I pulled in my cloned HR profile widget onto a page the panel heading and title do not show up. The only thing I changed in the HTML was take out the editable option so am unsure what is causing the panel titles to disappear.
The original HTML looks like this:
<sp-panel rect="rect" ng-controller="spHRProfile" ng-if="data.profileExists && data.isLoggedInUsersProfile">
<div class="list-group">
<div ng-repeat="fieldModel in getProfileModelFields()">
<div class="list-group-item no-border">
<div>
<sp-editable-field block="true" table="hr_profile" editable-by-user="data.isLoggedInUsersProfile" table-id="data.hrProfileID" field-model="fieldModel" on-submit="validateField" async-submit-validation="asyncValidation"></sp-editable-field>
</div>
</div>
</div>
</div>
</sp-panel>
However, when I take away editable-by-user = "data.isLoggedInUsersProfile", my HTML looks like this:
<sp-panel rect="rect" ng-controller="spHRProfile" ng-if="data.profileExists && data.isLoggedInUsersProfile">
<div class="list-group">
<div ng-repeat="fieldModel in getProfileModelFields()">
<div class="list-group-item no-border">
<div>
<sp-editable-field block="true" table="hr_profile" table-id="data.hrProfileID" field-model="fieldModel" on-submit="validateField" async-submit-validation="asyncValidation"></sp-editable-field>
</div>
</div>
</div>
</div>
</sp-panel>
but my panel title is completely gone...
Any thoughts on why this is happening? what exactly does sp-panel rect = "rect" do?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2017 11:39 PM
Hello David,
It is nothing to do with the sp-panel. You can just simply click contrl+right and you will see below screenshot.
In the above screen shot, click on an instance in the page editor, and will redirect to a page where you can give title and color to your panel.
Mark this as helpful/Correct depending upon the impact.
Thanks,
Surya Amara
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2017 11:39 PM
Hello David,
It is nothing to do with the sp-panel. You can just simply click contrl+right and you will see below screenshot.
In the above screen shot, click on an instance in the page editor, and will redirect to a page where you can give title and color to your panel.
Mark this as helpful/Correct depending upon the impact.
Thanks,
Surya Amara