cancel
Showing results for 
Search instead for 
Did you mean: 

place holder in single date field in smart filter

former_member275924
Active Participant
0 Kudos
1,107

Hi expert,

I create single date field in smart filter by using the entity type. Although I set the date format "YYYY/MM/DD" . The place holder of the field show "y/MM/dd" . I set the display-format as date in MPC_EXT . How can I change the place holder as 'YYYY/MM/DD' or not to show .

<SmartFilterBar id='smartFilter' entitySet='XXX'>
<ControlConfiguration key='budat' mandatory='mandatory' filterType='Single' controlType='auto'/>
 </SmartFilterBar>

If I set 'YYYY/MM/DD' in the place holder of custom control in my filter field , it show correctly . But the field change to custom field and doesn't work as the field of entity type.

<SmartFilterBar id='smartFilter' entitySet='XXX'>
<ControlConfiguration key='budat' mandatory='mandatory' filterType='Single' controlType='auto'>
<customControl>

<DatePicker id='Budat' placeholder='YYYY/MM/DD'>

</customControl>
</ControlConfiguration>
 </SmartFilterBar>

Thanks and Best Regards,

Phyo

Accepted Solutions (0)

Answers (1)

Answers (1)

Troy_Li
Explorer
0 Kudos

Hi PhyoPa,

Did you fix this issue? And whether has another method to change placeholder?

former_member275924
Active Participant
0 Kudos

Hi Yugang Li,

I used this properties.

<smartFilterBar:ControlConfiguration key="Date" mandatory="mandatory" filterType="single" controlType="date" label="Issued Date"
visibleInAdvancedArea="true" groupId="_BASIC" index='3'>
<smartFilterBar:customControl >
<DatePicker id="Date" placeholder="yyyy/MM/dd" change="onChange"/>
</smartFilterBar:customControl>