cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

dateInputComponent - initial value of blank

tstacy
12-Amethyst

dateInputComponent - initial value of blank

I'm using the wrapper component, "dateInputComponent" to create date boxes on my forms. I need to make the initial value of the date box an empty string or a null value. I've been unable to do this because the component attribute "dateValue" requires a correct date. It won't take "" or null or anything that is not a correct date value. Does anyone know how to make this form field blank?

This is not the same thing as a date attribute on an object that can be set to blank using allClients.xml or the JCA describeProperty tags for JCA tables. This is using the wrappers tags.

<%@ taglib uri=http://www.ptc.com/windchill/taglib/wrappers prefix="w"%>

<w:dateInputComponent name="startDate" id="startDate" required="false" dateValueType="DATE_ONLYE"/>

ACCEPTED SOLUTION

Accepted Solutions
pchateil
7-Bedrock
(To:tstacy)

Just found a solution for this one:

<%pageContext.setAttribute("date", null);%>

<w:dateInputComponent name="startDate" id="startDate" required="false" dateValueType="DATE_ONLY"  dateValue="${date}"/>

View solution in original post

1 REPLY 1
pchateil
7-Bedrock
(To:tstacy)

Just found a solution for this one:

<%pageContext.setAttribute("date", null);%>

<w:dateInputComponent name="startDate" id="startDate" required="false" dateValueType="DATE_ONLY"  dateValue="${date}"/>

Announcements


Top Tags