Skip to Content

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2009 at 04:54 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2009 at 04:50 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.