cancel
Showing results for 
Search instead for 
Did you mean: 

Date functionality is not working from htmlb:inputfield in bsp page

naimkhans_babi
Active Participant
0 Kudos

Dear Friends

I am using this code to get the date help in my bsp page, i cant see any button near to date field and that field is not working as well. please check with my code and advice me i havent dont anything except this.

<%@ page language = "abap %>

<%@ extension name= "htmlb" prefix "htmlb" %>

<htmlb:content id="form1" lableDesignBar="Standard">

<htmlb:form action="Post">

<htmlb:inputField id="date_field" value="<%= ecdate %>"showHelp='X' type="DATE" />

</htmlb:form>

</htmlb:content>

please help me ot make this thing work

any help of yours will be appreciated.. thank you very much

Regards

Naeem

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Friend,

Nothing wrong in your codings.The one and only thing you have to do is ,insert a tag of

<htmlb:page>

in between the

<htmlb:content > and <htmlb:form> 

tags .This will do. You will be getting the desired output.


<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content id="form1" design="design2003" >
  <htmlb:page >

<htmlb:form action="Post">

<htmlb:inputField id="date_field" value="<%= ecdate %>"showHelp='X' type="DATE" />

</htmlb:form>
</htmlb:page>
</htmlb:content> 

Declare the variable ecdate as of type date under attributes .

With Regards,

SHARMILA BRINDHA.M

Edited by: SHARMILA BRINDHA on Jan 19, 2009 5:56 AM

Edited by: SHARMILA BRINDHA on Jan 19, 2009 6:03 AM

naimkhans_babi
Active Participant
0 Kudos

Thank you!!!

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Naim Khan S Babi ,

Follow the below code.



<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2003">
<htmlb:form>
<htmlb:label text="Date : " />
         <htmlb:inputField       id             = "fmtDate"
                                         value         = "<%=wf_date%>"
                                        maxlength  = "10"
                                        type           = "date"
                                        showHelp   = "X"  />

</htmlb:form>
</htmlb:content> 

Hope this will be helpful.

Regards,

Gokul.N