cancel
Showing results for 
Search instead for 
Did you mean: 

XML Form date Manipulation

Former Member
0 Kudos

Dear Experts,

In XML form builder application we need to display the current date + 14 days in the Expiry date filed. The above requirement is cannot be met directly form the XML Form builder application. We need to edit the xsl file to get it done,

<xsl:attribute name="value">

<xsl:value-of select="$locDate"/>

</xsl:attribute>

the above is the xsl code for getting current date which is working fine. Now we need to add 14 day from the current date. I tried with

<xsl:attribute name="value">

<xsl:value-of select="$locDate"+14/>

</xsl:attribute>

which is giving is NaN. Can you please help in getting this done.

Regards

Noel

Accepted Solutions (1)

Accepted Solutions (1)

former_member206159
Active Contributor
0 Kudos

Hi,

I don't see any standard way of achieving this. You may need to write a java script code and assgin the required value to ValidFrom field in xmlformEdit.xsl.

Raghu

Former Member
0 Kudos

Hi Ragav

I tried with the Java script, where I am not able to set the value. Can we manipulate the value is XSL it self

Regards

Noel

Former Member
0 Kudos

Resolved using Javascript, used in initHtmleditor() function

Former Member
0 Kudos

Possible solution based on javascript described at http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/19351

Answers (1)

Answers (1)

Former Member
0 Kudos

Please give your Valuable suggestions

Reagrds

Noel