cancel
Showing results for 
Search instead for 
Did you mean: 

XML Forms Builder News - Add a condition to diplay only passed and current

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member206159
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

thanks for this reply ..

Can you tell me more about "develop metadata extension" ?

Have you a link to help me ?

Shukriya

Former Member
0 Kudos

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