Add Custom Drop Down list

Sort:
You are not authorized to post a reply.
Author
Messages
maalimsimo
Veteran Member
Posts: 49
Veteran Member
    I need to add a custom drop down list with just about 4 items, to the Lawson AC10.1 'Output Description' field, using Design Studio. Has anyone ever done this before (even on a different form)? If so, could you kindly share your notes, experience, etc.?

    Thanks in advance.
    Maalim. 
    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      var rcList = document.getElementById("VALUES_l67") // _l67 is the Field Nbr of my ListBox
      var span = document.createElement("span");
      while(rcList.hasChildNodes())
      {
      rcList.removeChild(rcList.childNodes.item(0)) // Remove it
      }
      var apprs=new Array()
      apprs=aprList.split(",")
      for (a=0;a {
      var disp=apprs[a].substr(0,apprs[a].indexOf("-"))
      var desc=apprs[a].substring(apprs[a].indexOf("-"))
      var span = document.createElement("span")
      span.setAttribute("text",desc) // long desc
      span.setAttribute("tran",disp) // transaction value
      span.setAttribute("disp",disp) // display value
      rcList.appendChild(span)
      }
      David Williams
      maalimsimo
      Veteran Member
      Posts: 49
      Veteran Member
        Thanks, David.
        One follow-up question though: how and where do I specify the values to display on the drop-down list?
        David Williams
        Veteran Member
        Posts: 1127
        Veteran Member
          In my example I used an array and cycled through it. You can just use the span.setAttribute and rcList.appendChild for the 4 values you want to build.
          span.setAttribute("text","Description1") // long desc
          span.setAttribute("tran","Transaction1") // transaction value
          span.setAttribute("disp","Display1") // display value
          rcList.appendChild(span)
          David Williams
          You are not authorized to post a reply.