cancel
Showing results for 
Search instead for 
Did you mean: 

XML Forms - filter documents to display in iview

Former Member
0 Kudos

Hi,

As a xml forms novise I have these questions:

1. Is it possible to display only xml forms documents containing certain values (radio button or checkbox choices) in a list view? How?

2. Can xml forms editing iviews be personalized?

3. Is it possible to set default values when user opens a new document for editing (editing iview), retreived from the users profile/personalization?

Thankful for any reply

Hilde

Accepted Solutions (0)

Answers (1)

Answers (1)

daniel_davinci
Active Contributor
0 Kudos

<i>1. Is it possible to display only xml forms documents containing certain values (radio button or checkbox choices) in a list view? How?</i>

I believe that you would need to develop a custom property filter to achieve such a task. see:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/code sample - how to develop a property filter.article

<i>2. Can xml forms editing iviews be personalized?</i>

No, not to my knowledge....

<i>3. Is it possible to set default values when user opens a new document for editing (editing iview), retreived from the users profile/personalization?</i>

Yes and no, the following is form saphelp and are the only way of defaulting data that I am aware of.

$date

Current date at the time of creation in the format YYYY-MM-DD.

$locDate

Current date at the time of creation in the country-specific date format of the current user.

$time

Current time at the point of creation in the format HH:MM:SS.

$locTime

Current date at the point of creation in the country-specific format of the current user.

$sap_user

User who is currently logged on

$guid

Globally unique identifier (GUID) that is generated by the system.

Please assign points if it helps.

Kind regards

Daniel

detlev_beutner
Active Contributor
0 Kudos

Hi Hilde, hi Daniel,

> the following is form saphelp and are the only way

> of defaulting data that I am aware of.

Just to get it complete, the parameters supported you can see in class CreateXSLDocument (within com.sap.km.cm.xmlforms/private/lib/km.appl.xmlforms-xfbuilder_core.jar), method initDefaultParameters.

The most interesting for daily use will be sap_user, sap_language, date, fulldate, time, locDate and locTime, I think (more or less the props mentioned by the official docs).

Hope it helps

Detlev

daniel_davinci
Active Contributor
0 Kudos

Thanks Detlev. Its good to know.

Cheers

Daniel