- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2022 01:35 AM
Hi Community members,
I have a simple requirement to have background image on a Service Portal page. But this background image should be configurable, means having a system property with attachment as the image to be used as background of Service Portal page.
Can we have a Service Portal page with background image which can be configured using system property? If yes, then please let me know how can we do this!
Thanks,
Utpal
Solved! Go to Solution.
- Labels:
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2022 03:33 AM
Hello
you can do one thing
1) Make the system property as an image type and you know that you can attach the image to the system property
2) Now create a after insert BR on sys_attachment table and it should run only for table as sys_property.
You can use table field for this ion the attachment table
3) Now in the script you glide record to sys attachment table with add queries as table is sys_property and table_sys_id field is containing "your property sys_id" which will limit to only one record and then store the sys_id of the attachment in a variable
4) Then in the same BR query to sp_page table which is you page table and then add query in such a way that it picks up your page where you can query with page sys_id
5)If the page record is found then glide to sp_container table which is the page container which stores the back ground image of the home page in "background image" field as shown below
6) You must have stored the attachment sys_id in the variable as i told in step 3 .Just update the background image field with sys_id of the attachment .This will automatically update the portal home page back ground image.
hope this helps
please mark my answer correct if it helps you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2022 03:10 AM
Hi,
Are you using OOB service portal page or created a custom portal page?
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2022 03:33 AM
Hello
you can do one thing
1) Make the system property as an image type and you know that you can attach the image to the system property
2) Now create a after insert BR on sys_attachment table and it should run only for table as sys_property.
You can use table field for this ion the attachment table
3) Now in the script you glide record to sys attachment table with add queries as table is sys_property and table_sys_id field is containing "your property sys_id" which will limit to only one record and then store the sys_id of the attachment in a variable
4) Then in the same BR query to sp_page table which is you page table and then add query in such a way that it picks up your page where you can query with page sys_id
5)If the page record is found then glide to sp_container table which is the page container which stores the back ground image of the home page in "background image" field as shown below
6) You must have stored the attachment sys_id in the variable as i told in step 3 .Just update the background image field with sys_id of the attachment .This will automatically update the portal home page back ground image.
hope this helps
please mark my answer correct if it helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2022 05:11 AM
Thanks Mohith your solution worked!