Announcement

Collapse
No announcement yet.

onChangeAdd attribute of struts tld stopped working after upgrading OTM to CU5 RU5

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • onChangeAdd attribute of struts tld stopped working after upgrading OTM to CU5 RU5

    Requirement:
    To show the time in early delivery date field and late delivery date of Order release screen (gc3: fieldDateTime UI component) to a fixed time value.
    For instance:
    User selected date for early delivery date: 2009-08-04 12:00:00
    As per requirement Early delivery date should display: 2009-08-04 08:00:00 – (fixed time)

    Given solution:
    • We added a custom JavaScript function in Header.jspx of Order release screen.
    • Added onChangeAdd=”custom JavaScript function name” in gc3: fieldDateTime tag of Header.jspx mentioned above.
    Problem:
    The above solution was working in CU4 RU5 of OTM.
    After upgrading OTM to CU5 RU5 the above onChangeAdd attribute is not getting lifted from gc3: fieldDateTime.

    Could any one please let us know, do we need to do any change in order to make onChangeAdd JavaScript event attribute work in CU5 RU5.

    Thanks in advance

  • #2
    Re: onChangeAdd attribute of struts tld stopped working after upgrading OTM to CU5 RU

    My OTM version is CU5 RU5, I still can see the onChangeAdd attribute of fieldDateTime in gc3-taglib.tld
    <attribute>
    <name>onChangeAdd</name>
    <description>Script to be run when the value is changed. </description>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>

    What did you mean not getting lifted?
    Vincent Van
    OTM Customization Service
    [email protected]

    Comment


    • #3
      Re: onChangeAdd attribute of struts tld stopped working after upgrading OTM to CU5 RU

      Yes, you are right we could see the onChangeAdd attribute in fieldDateTime of CU5RU5.
      Even after adding this attribute in fieldDateTime tag the onChange html event is not reflected in browser(UI) display in case of CU5RU5.

      Comment


      • #4
        Re: onChangeAdd attribute of struts tld stopped working after upgrading OTM to CU5 RU

        There's a work around for you reference:
        1. Create your own servlet (eg:glog.webserver.gtl.fields.FieldDateTimeJsTag) to override the glog.webserver.gtl.fields.FieldDateTimeTag which was used by OTM to generate html code.
        2. Change the tag-class in "gc3-taglib.tld" to point to your class at line:2031
        (eg:<tag-class>glog.webserver.gtl.fields.FieldDateTimeJsTag </tag-class>)

        Source code attached for your ref.
        Attached Files
        Last edited by vincent_van; October 26, 2009, 10:48.
        Vincent Van
        OTM Customization Service
        [email protected]

        Comment

        Working...
        X