Showing announcements in NOW Mobile App
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2020 04:11 AM
Hi,
I currently have a requirement to display Announcements in NOW mobile app.
Anyone having any approach in mind?
I have tried by creating an item section and then added a list applet to that section, eventually creation item stream segments and so on. I got stuck while creating the master item for Announcement table as in the master item, we need an item view which is written in JSON and I am not able to create it.
Any idea how can I create an item view for Announcement table. If not possible, what all other options do I have so that I can display announcements in NOW mobile.
Any help would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2020 04:36 AM
Hi,
Refer below link,
If it helps then please mark my answer Correct and Helpful.
Vishakha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2020 10:54 AM
Hi Subhajit,
Were you able to add announcements on Now Mobile App successfully?
I also have same requirement, could you please share the details if you found solution for this.
Thanks,
Roopa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2020 11:08 PM
Hi Roopa,
Please follow these steps, these will surely help:
- Navigate to System Mobile->Applets.
- Create a applet – Announcements of type List Screen.
- Create an Item Stream Segment - Announcements Item Stream Seg.
- Open the Item Stream Segment record, create an Item Stream - Announcements Item Stream.
- Open the item stream record.
- Navigate to System Mobile -> Data items in a new tab.
- Create a data item - Announcement Data Item.
- Set condition type as declarative, table as Announcement and query condition as active = true. Save.
- Navigate back to item stream record and select the data item created.
- Open Item View (sys_sg_item_view) table in new tab.
- Create an item view - Announcement Item View.
- Set table as Announcement, set item view JSON in order to display the items properly in the app. Save.
- Navigate to System Mobile->Mobile UI Styles in a new tab.
- Create Announcement Style A for announcements with display style normal, adding a background colour of blue.
- Create Announcement Style B for announcements with display style urgent, adding a background colour of red.
- Create Announcement Style C to add white font to the announcement title.
- Create Announcement Style D to add white font to the announcement summary.
- Navigate Back to the Item View page and add the styles created. Save.
- Open Master Item (sys_sg_master_item) table in a new tab.
- Create Announcement Master Item record.
- Add Announcement Item View in the item view field.
- Set condition active = true. Save.
- Navigate back to the Announcement Item Stream page.
- Add the Announcement Master Item created. Save.
- Navigate to System Mobile ->Applets in a new tab.
- Create an applet - Announcement Form of type Form Screen.
- Set the Announcement data Item in the data item field. Save.
- Navigate to System Mobile ->Applets in a new tab.
- Create an applet – Announcement details of type Details screen.
- Set table as Announcement.
- To the Screen Fields related list add title, summary and details URL fields. Save.
- Navigate to the Announcement form applet.
- Add Announcement details applet to the Form screen segments section. Save.
- Navigate to the Announcement Master Item.
- Add Announcement form to the embedded screen field. Save.
- Create an ACL announcement.none for providing read access to end users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2020 10:42 AM
Hi Subhajit,
I have created Applet from Studio and it worked. ACL was missing, as you mentioned i created ACL and i was able to see 'Announcements' as an end user.
Somehow Font color UI Style is not working for Item view.
Thank you so much for the steps.
Thanks,
Roopa Reddy