on 03-10-2009 1:07 PM
Hi,
I have follow the thread "XMLForm Sorting by a form field" and have created a custom properties to store the newss published date.
https://www.sdn.sap.com/irj/scn/thread?messageID=787831
Now, I can sort my NewsDisplayCollectionRenderer and NewsCollectionRenderer on the custom properties.
I wonder how I can add a condition to display only passed or current news. I mean not display news with futur published date. Something like "published_date <= date$" ?
Thanks in advance.
Hi,
I think it is not possible in XML form builder with standard properties.
you have to develop custom predefined properties for that and also need to develop metadata extension for checking the date.
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
more information about metadata extension in this link
[https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/645d4357-0701-0010-07bd-a2ea8c4d0aaf]
For Your information.
When we face similar requirement we implemented by creating a schedulable service in KM.
We created the service to read the xml folder and delete the xml file if the custom end_date is greater than today.
In your case i think, you need to create a dumy node and copy the xml file which meet the requirement to this dumy folder using a custom service.
Also set your news iview to this dumy folder.
This Blog help us to do this pls chk. [https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1515]
Regards
Baby
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.