Announcement

Collapse
No announcement yet.

otm screen

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

  • otm screen

    hi all,
    Can any one of you help me out in modifying the buy shipment search screen. In that screen we have a field called indicator, Where the color of indicator changes according to the selected option(red, yello, green). I need to add some more colors in that list and also the corresponding image.
    I found that in fields.xsl, label.RedIndicator refers to red and similarly how can i create my own option of that label and image.
    Please help me out in this.

    Thanks,
    Brintha.R

  • #2
    Re: otm screen

    Hi,

    I currently have a similar requirement i.e. adding more colors to shipment indicator. Did you get any solution to the above problem?
    Nipun Lakhotia
    Manager, EY

    Comment


    • #3
      Re: otm screen

      Hi,

      Since these fields are already difined and scripts are written to pick these colours, I have not found a way to do the same.

      Regards,
      Brintha

      Comment


      • #4
        Re: otm screen

        Anyone figure out how to do this yet?

        Comment


        • #5
          Re: otm screen

          Indicator is used to provide quick and simple indication. Personally, I think 4 colors (or 5, if you set glog.webserver.indicatorWhiteEqualsNull=false) are enough for me (and users) to remember the meanings.

          However, if you really need that, I would first suggest to use User Defined Images.

          If you still want to change Indicator, this would be a big job because they are hard-coded everywhere in OTM!

          1. Change all JavaScript
          Code:
          function showIndicatorImage(el, value)
          {
            if (!document.images)
              return;
            if (value == 'G')
              el.src=glogUrlPrefix+"/images/themes/themestechnoblue/gr_circle.gif";
            else if (value == 'Y')
              el.src=glogUrlPrefix+"/images/themes/themestechnoblue/yellow_triangle.gif";
            else if (value == 'R')
              el.src=glogUrlPrefix+"/images/themes/themestechnoblue/red_square.gif";
            else if (value == 'W' || value == 'null')
             el.src=glogUrlPrefix+"/images/themes/themestechnoblue/white_circle.gif";
            else
             el.src=glogUrlPrefix+"/images/spacer.gif";
          }
          2. Modify all Dropdown list (of ALL screens) to include new values you added
          --
          Joseph Liang
          MavenWire APAC
          http://www.mavenwire.com/

          Comment


          • #6
            Re: otm screen

            Joseph,

            Yeah, that's pretty much the thought process we had internally. I just wanted to make sure that no one had found a simple way to do it.

            We probably will get back into using User Defined Images.

            Thanks.

            Comment

            Working...
            X
            😀
            🥰
            🤢
            😎
            😡
            👍
            👎