Populate html combo with database

Hi all, I´m trying to use that example of Multi-select-Combobox , but i must populate the options of the combo with the database select result, not static values,..
that is the code for the options i´m using at the moment:
<div class="examples">
<label class="examples">Second Example of MultiSelect (with width options)</label>
<select id="methods" name="methods" multiple="multiple" size="4" title="Four" class="arc90_multiselect fieldwidth-20em valuewidth-600px">
     <option value="flex">OPTION1</option>
     <option value="ajax">OPTION2</option>
     <option value="iframes">OPTION3</option>
</select>
</div>     
how can I populate this with my table values?
that is the site where i get the multiselect - if anyone need it. http://lab.arc90.com/tools/multiselect/
tnks for help.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy for Java (vers. 26 Sep 2004), see www.w3.org" />
<title></title>
<title>arc90 lab | tools: MultiSelect</title>
<style type="text/css">
/*<![CDATA[*/
                        @import "http://lab.arc90.com/tools/c/css/tool_global.css";     /* Style for this page */
                        .a9multiselect {
                                width: 9.9em;
                                font-family: Arial, Helvetica, sans-serif;
                                position: relative;
                                height: 22px;
                                padding: 0;
                                margin: -.05em 0 1em 0;
                                border: 0;
                        .a9multiselect .expcol-click, .a9multiselect .expcol-click-open {
                                background-color: #fff;
                                border: 1px solid #999;
                                padding: 0;
                                margin: 0;
                                cursor: default;
                                min-width: 9.8em;
                        .a9multiselect div.expcol-click {
                                position: absolute;
                                z-index: 104;
                                height: 20px;
                        .a9multiselect div.expcol-click-open {
                                border-bottom: 1px solid #fff;
                        .a9multiselect .title {
                                font-size: .8em;
                                height: 1.3em;
                                line-height: 1.2em;
                                overflow: hidden;
                                padding: .3em 1.1em .1em .5em;
                                background: white url(images/multiselect.gif) no-repeat top right;
                        .a9multiselect .title:hover {
                                background: white url(images/multiselect-hover.gif) no-repeat top right;
                        .expcol-body {
                                position: absolute;
                                z-index: 106;
                                min-height: 1em;
                                background: #e9f3f8;
                                padding: .1em;
                                display: block;
                                font-size: 75%;
                                display: none;
                                margin-top: -1px;
                                border: 1px solid #999;
                        .expcol-body ul {
                                overflow: auto;
                                min-height: 1em;
                                min-width: 20em;
                                margin: 0;
                                padding: 0;
                        .expcol-body li { margin: 0 0 .2em 0; list-style:none; }
                        .expcol-body li:hover {
                                background: #ddd;
                        .arc90_multiselect {
                                width: 12.5em;
                                height: 1.35em;
                                visibility: hidden;
                        .a9selectall {
                                border-bottom: 1px solid #ccc;
                        /* Styles for page layout */
                        DIV.examples {
                                margin: 0 0 2em 0;
                                width: 17em;
                                border: 1px solid #e9e9e9;
                                padding: .3em;
                        DIV.examples LABEL.examples {
                                display: block;
                                margin: 0 0 .2em 0;
                /*]]>*/
</style>
</head>
<body>That is the .js file: ---------------------------------------------------------
var a$ = {}; // arc90 namespace functions
a$.c = 0;
a$.openSelect = null;
a$.NO_SELECTION     = 'No selection';
a$.SELECTED          = 'Options selected';
a$.SELECT_ALL     = 'Select All';
a$.SelectAllMin     = 6;
a$.WhenToUse     = 'class'; // class: based on class arc90_multiselect existing | multiple: based on multiple attributte exists | all: both single and multiple
a$.msSeparator     = '|';
a$.appName = navigator.appVersion.toLowerCase();
a$.isIE = document.all && a$.appName.indexOf('msie') >= 0;
a$.isSafari = a$.appName.indexOf('safari') >= 0;
a$.msBodyTimer = null;
a$.multiSelectCreate = function(o) {
// can be called directly with the id or object passed in as the first argument
//  or if a$.WhenToUse is set to class or multiple
     var S = null;
     if (o != null)
          S = [a$.isString(o)? a$.e(o): o];
     else
          S = document.getElementsByTagName('select');
     for (var i = 0, l = 1; i < l; i++) { //S.length
          var s = S;
          if (s != null && ((a$.WhenToUse == 'class' && s.className.indexOf('arc90_multiselect') >= 0) || (a$.WhenToUse == 'multiple' && s.multiple) || (a$.WhenToUse == 'all'))) {
               var title = s.title, id = s.id, name = s.name;
               var div = a$.newNode('div', 'a9multiselect-'+ id, 'a9multiselect');
               var span = a$.newNode('div', 'a9multiselect-'+ id +'-title', 'title');
               span.setAttribute('title', title);
               var expcol = a$.newNode('div', 'a9multiselect-click-'+ id, 'expcol-click', '', span, div);
               var ul = a$.newNode('ul');
               if (a$.isIE)
                    ul.style.width = '20em';
               var expbody = a$.newNode('div', 'a9multiselect-body-'+ id, 'expcol-body', '', ul);
               expbody.style.display = 'none';
               // Timer Events to auto-close the drop-down when not being used
               a$.newEvent(div, 'mouseout', function(event) { a$.msBodyTimer = setTimeout('a$.closeSelect("'+ id +'")', 1500); });
               a$.newEvent(div, 'mouseover', function(event) { clearTimeout(a$.msBodyTimer); a$.msBodyTimer = null; });
               a$.newEvent(expbody, 'mouseout', function(event) { a$.msBodyTimer = setTimeout('a$.closeSelect("'+ id +'")', 1500); });
               a$.newEvent(expbody, 'mouseover', function(event) { clearTimeout(a$.msBodyTimer); a$.msBodyTimer = null; });
               a$.newEvent(ul, 'mouseout', function(event) { clearTimeout(a$.msBodyTimer); a$.msBodyTimer = null; });
               a$.newEvent(ul, 'mouseover', function(event) { clearTimeout(a$.msBodyTimer); a$.msBodyTimer = null; });
               if (a$.isIE)
                    var hidden = a$.newNode('<input type="hidden" name="'+ name +'" title="'+ title +'" />', name, '', '', null, div);
               else {
                    var hidden = a$.newNode('input', name, '', '', null, div);
                    hidden.setAttribute('type', 'hidden');
                    hidden.setAttribute('name', name);
                    hidden.setAttribute('title', title);
               // insert select all option
               var m = s.options.length;
               if (s.multiple && m >= a$.SelectAllMin) {
                    var alli = a$.newNode('li', 'a9selectall-'+ id, 'a9selectall', '', null, ul);
                    if (a$.isIE) {
                         var allbx = a$.newNode('<input type="checkbox" name="a$-'+ a$.c +'" id="a$-'+ a$.c +'" alt="'+ id +'" />', 'a$-'+ (a$.c++), '', '', null, alli);
                         var allbl = a$.newNode('<label for="'+ allbx.id +'" />', '', '', a$.SELECT_ALL, null, alli);
                    } else {
                         var allbx = a$.newNode('input', 'a$-'+ a$.c++, '', '', null, alli);
                         allbx.setAttribute('type', 'checkbox');
                         allbx.setAttribute('alt', id);     
                         var allbl = a$.newNode('label', '', '', a$.SELECT_ALL, null, alli);
                         allbl.setAttribute('for', allbx.id);
                    // call to function to get every checkbox under 'a9multiselect-'+ id a$.T('input', a$.e('a9multiselect-'+ id))
                    eval("a$.newEvent(allbx, 'click', function () { a$.selectAll(a$.e('"+ allbx.id +"')); a$.chk(a$.e('"+ allbx.id +"')); });");
               var sel = 0;
               for (var j = 0; j < m; j++) {
                    var value = s.options[j].value, text = s.options[j].text;
                    var li = a$.newNode('li', 'a9-li-'+ a$.c, '', '', null, ul);
                    var d = a$.newNode('div', '', '', '', null, li);
                    var chkType = s.multiple? 'checkbox': 'radio';
                    if (a$.isIE) {
                         var checked = '', onclick = '';
                         if (s.options[j].selected == true) {
                              checked = ' checked="checked"';
                              // needed to allow checked entries to be imeadiately activated, but won't work when actually clicked
                              onclick = " onclick=\"a$.multiSelect(this, '"+ value +"', 'a9multiselect-"+ id +"');\"";
                              sel++;
                         var chkbx = a$.newNode('<input title="'+ s.options[j].text +'" name="a9multiselect-options-'+ id +'" alt="'+ id +'" type="'+ chkType +'"'+ checked + onclick +' value="'+ value +'" />', 'a$-'+ a$.c++, '_a9checkbox', '', null, li);
                    } else {
                         var chkbx = a$.newNode('input', 'a$-'+ a$.c++, '_a9checkbox', '', null, li);
                         chkbx.setAttribute('type', chkType);
                         chkbx.setAttribute('value', value);
                         chkbx.setAttribute('alt', id);
                         chkbx.setAttribute('title', s.options[j].text);
                         chkbx.setAttribute('name', 'a9multiselect-options-'+ id);
                         if (s.options[j].selected == true) {
                              chkbx.checked = true;
                              // needed to allow checked entries to be imeadiately activated, but won't work when actually clicked
                              chkbx.onclick = "a$.multiSelect(this, '"+ value +"', 'a9multiselect-"+ id +"');";
                              sel++;
                    a$.newEvent(chkbx, 'click', function(event) {
                         a$.cancelbubble(event); // cancel so li event doesn't get activated
                         if (a$.isIE) // IE has trouble with 'this' being used here
                              var t = a$.e(document.activeElement.id);
                         else
                              var t = this;
                         a$.multiSelect(t, t.value, 'a9multiselect-'+ t.alt);
                         a$.chk(t);
                         // uncheck the select all
                         allbx = a$.t('input', a$.e('a9selectall-'+ t.alt));
                         if (allbx) a$.chk(allbx, (allbx.checked = false));
                    a$.newEvent(li, 'click', function() {
                         var t = a$.e('a$-'+ this.id.slice('a9-li-'.length));
                         t.checked = !t.checked;
                         a$.multiSelect(t, t.title, 'a9multiselect-'+ t.alt);
                         a$.chk(t);
                    if (a$.isIE)
                         var label = a$.newNode('<label onclick="a$.cancelbubble(event);" for="'+ chkbx.id +'" />', '', '', text, null, li);
                    else {
                         var label = a$.newNode('label', '', '', text, null, li);
                         label.setAttribute('for', chkbx.id);
                         a$.newEvent(label, 'click', function(event) { a$.cancelbubble(event); }); // cancel so li event doesn't get activated
                    // Hide Radio Buttons for Firefox
                    if (chkType == 'radio' && !a$.isIE) {
                         chkbx.style.visibility = 'hidden';
                         label.style.marginLeft = '-18px';
               if (sel == m && allbx != null)
                    allbx.setAttribute('checked', true);
               else if (sel == 0)
                    span.innerHTML = a$.NO_SELECTION;
               var bs = a$.node_before(s);
               bs.appendChild(div);
               bs.appendChild(expbody);
               // check the className of s to look for fieldwidth- and valuewidth-
               // if a value is specified without format it's default is pixels
               // options are value: dynamic, 30, 30px, 30em, etc...
               // dynamic will only have a min-width value set
               // if valuewidth is missing, then it's min-width is set to fieldswidths (either default or specified using a$.getStyle)
               var fieldwidth = s.className.toLowerCase().indexOf('fieldwidth-');
               var valuewidth = s.className.toLowerCase().indexOf('valuewidth-');
               if (fieldwidth >= 0) {
                    var q = s.className.slice(fieldwidth);
                    fieldwidth = (q.slice(0, q.indexOf(' ') < 0? q.length: q.indexOf(' '))).slice('fieldwidth-'.length);
                    fieldwidth = parseFloat(fieldwidth) == fieldwidth? fieldwidth+'px': fieldwidth;
               } else fieldwidth = '';
               if (valuewidth >= 0) {
                    var q = s.className.slice(valuewidth);
                    valuewidth = (q.slice(0, q.indexOf(' ') < 0? q.length: q.indexOf(' '))).slice('valuewidth-'.length);
                    valuewidth = parseFloat(valuewidth) == valuewidth? valuewidth+'px': valuewidth;
               } else valuewidth = '';
               if (fieldwidth != 'dynamic') {
                    expcol.style.width = fieldwidth;
                    div.style.width = fieldwidth;
               if (valuewidth != 'dynamic')
                    expbody.style.width = valuewidth;
               expbody.style.minWidth = a$.getStyle(expcol, 'width');
               if (a$.isIE || a$.isSafari)
                    expbody.style.marginTop = '-1.4em';
               // remove original select
               s.parentNode.removeChild(s);
               // when done perform prep functions
               a$.expcol(div);
               a$.multiSelectPrep(div);
a$.selectAll = function(o) {
     var I = a$.T('input', a$.e('a9multiselect-body-'+ o.getAttribute('alt')));
     for (var i = 0, m = I.length; i < m; i++) {
          var c = I[i];
          if (c.type == 'checkbox' && c.className == '_a9checkbox') {
               c.checked = o.checked;
               a$.multiSelect(c.id, c.value, 'a9multiselect-'+ c.getAttribute('alt'));
               a$.chk(c);
a$.multiSelect = function(chk, value, parent) {
     var pid = parent.slice('a9multiselect-'.length);
     var to = a$.e(pid);
     chk = a$.isString(chk)? a$.e(chk): chk;
     if (chk.checked) {
          chk.type == 'checkbox'? to.value += a$.msSeparator + value: to.value = value;
     } else
          eval("to.value = to.value.replace(/"+ value +"/g, '');");
     var title = a$.e(parent+'-title');
     // cleans up clogged pipes
     to.value = to.value.replace(/\|{3}/g, a$.msSeparator);
     to.value = to.value.replace(/\|{2}/g, a$.msSeparator);
     to.value = to.value.replace(/^\|(.*)/g, '$1');
     to.value = to.value.replace(/(.*)\|$/g, '$1');
     var cbs = a$.T('input', a$.e('a9multiselect-body-'+ pid)), x = '', v = a$.NO_SELECTION;
     var vals = '', c = 0;
     for (var i = 0, l = cbs.length; i < l; i++)
          if (cbs[i].className == '_a9checkbox' && cbs[i].checked) {
               vals += cbs[i].title +' | ';
               c++;
               if (x == 0) {
                    v = cbs[i].title;
               } else {
                    v = (x+1) +' '+ a$.SELECTED;
               x++;
     vals = c > 1? vals.slice(0, vals.length-3): v;
     title.innerHTML = v;
     t = a$.e(pid).title;
     title.title = t == ''? vals: t +' : '+ vals;
a$.multiSelectPrep = function(parent) {
     if (parent == null) parent = document;
     var pid = parent.id.slice('a9multiselect-'.length);
     var P = a$.T('input', a$.e('a9multiselect-body-'+ pid)), toObj = a$.e(parent.id.slice('a9multiselect-'.length)), to = toObj.value, newto = '';
     for (var i = 0, l = P.length; i < l; i++) {
          if (P[i].type != null && P[i].className == '_a9checkbox') {
               a$.chk(P[i], false);
               if (P[i].checked == true) {
                    a$.chk(P[i]);
                    // autoselect and populate the value for default checked items
                    var val = P[i].value;
                    a$.multiSelect(P[i], val, parent.id);
     if (to != '') { // remove any duplicates when reloading with firefox
          to = to.split(a$.msSeparator).sort();
          for (var i = 1, l = to.length; i < l; i++)
               if (to[i] == to[i-1])
                    to[i-1] = null;
          to = to.toString().replace(/,,/g, ',').replace(/,/g, a$.msSeparator);
          toObj.value = to.indexOf(a$.msSeparator) == 0? to.slice(1): to.length > 1 && to.lastIndexOf(a$.msSeparator) == to.length-1? to.slice(0, to.length-1): to;
a$.chk = function(c, force) {
     var n = a$.node_after(c);
     if (n != null && n.style) {
          if ((force != null && force) || c.checked) {
               n.style.fontWeight = 'bold';
               if (c.type == 'radio') {
                    var R = c.form[c.name];
                    for (var i = 0, l = R.length; i < l; i++) {
                         var r = R[i];
                         if (r.id != c.id)
                              a$.node_after(r).style.fontWeight = 'normal';
                    a$.expcolclick('a9multiselect-click-'+ c.alt);
          } else {
               n.style.fontWeight = 'normal';
a$.closeSelect = function(id) {
     clearTimeout(a$.msBodyTimer);
     a$.msBodyTimer = null;
     var obj = a$.e('a9multiselect-body-'+ id);
     var vis = a$.getStyle(obj, 'display');
     if (vis == 'block') {
          //obj.style.display = 'none';
          a$.expcolclick(a$.e('a9multiselect-click-'+ id));
a$.is_ignorable = function(nod) {
return (nod.nodeType == 8) || // A comment node
((nod.nodeType == 3) && !(/[^\t\n\r ]/.test(nod.data))); // a text node, all ws
a$.node_before = function(sib) {
     if (a$.isString(sib))
          sib = a$.e(sib);
     while ((sib = sib.previousSibling)) {
          if (!a$.is_ignorable(sib)) return sib;
     return null;
a$.node_after = function(sib) {
     while (sib != null && (sib = sib.nextSibling)) {
          if (!a$.is_ignorable(sib)) return sib;
     return null;
a$.expcol = function(parent) {
     var x = a$.T("div", parent);
     for (var i = 0, l = x.length; i < l; i++)
          if (x[i].className.indexOf("-click") >= 0) x[i].onclick = a$.expcolclick;
a$.expcolclick = function(o, force) {
     var c = null;
     if (a$.isIE)
          var t = this.id? this: a$.isString(o)? a$.e(o): o;
     else
          var t = this.toString().toLowerCase().indexOf('element') >= 0? this: a$.isString(o)? a$.e(o): o;
     c = a$.e('a9multiselect-body-'+ t.id.slice('a9multiselect-click-'.length));
     c.style.position = 'absolute';
     if (c != null && c.style && c.style.display != "block") {
          if (t.className.indexOf("-open") > 0) return;
          t.className = t.className +"-open";
          c.style.display = "block";
          if (force == null || force == false) {
               if (a$.openSelect && a$.openSelect.id != t.id)
                    a$.expcolclick(a$.openSelect, true);
               a$.openSelect = t;
     } else if (c != null && c.style) {
          t.className = t.className.substr(0, t.className.length-5);
          c.style.display = "none";
          if (force == null || force == false) {
               a$.openSelect = null;
a$.isString = function(o) { return (typeof(o) == "string"); }
     tp: type (eg 'div')
     id: id
     cs: class OR style (if a : exists it is a style (color: pink; display: block;), not a class)
     tx: text to display inside the node
     cd: any child node with which to place inside
     p: parent node to attach to
a$.newNode = function(tp, id, cs, tx, cd, p) {
     var node = document.createElement(tp);
     if (tx != null && tx != '')
          node.appendChild(document.createTextNode(tx));
     if (id != null && id != '')
          node.id = id;
     if (cs != null && cs != '' && cs.indexOf(':') < 0)
          node.className = cs;
// inline styles removed to limit code to this specific task
//     else if (cs != null && cs != '' && cs.indexOf(':') > 0)
//          a$.setStyles(node, cs);
     if (cd != null)
          node.appendChild(cd);
     if (p != null && p != '')
          (a$.isString(p)? a$.e(p): p).appendChild(node);
     return node;
// specific element via id
a$.e = function(id, source) {
     if (source != null)
          return source.getElementById(id);
     return document.getElementById(id);
// all elements with tag
a$.T = function(tag, source) {
     if (source != null)
          return source.getElementsByTagName(tag);
     return document.getElementsByTagName(tag);
// the first element with tag
a$.t = function(tag, source) {
     if (source != null)
          var T = source.getElementsByTagName(tag);     
     else T = document.getElementsByTagName(tag);
     if (T.length > 0)
          return T[0];
// all elements with class
a$.C = function(classname, source) {
     if (source != null)
          return source.getElementsByClassName(classname);
     return document.getElementsByClassName(classname);
a$.getStyle = function(obj, styleIE, styleMoz) {
     if (styleMoz == null) styleMoz = styleIE;
     if (a$.isString(obj)) obj = a$.e(obj);
     var s = '';
     if (window.getComputedStyle)
          s = document.defaultView.getComputedStyle(obj, null).getPropertyValue(styleMoz);
     else if (obj.currentStyle)
          s = obj.currentStyle[styleIE];
     if (s == 'auto')
          switch (styleIE) {
          case 'top':          return obj.offsetTop;          break;
          case 'left':     return obj.offsetLeft;          break;
          case 'width':     return obj.offsetWidth;          break;
          case 'height':     return obj.offsetHeight;     break;
     else
          return s;
a$.newEvent = function(e, meth, func, cap) {
     if (a$.isString(e))     e = a$.e(e);
     if (e.addEventListener){
          e.addEventListener(meth, func, cap);
     return true;
     }     else if (e.attachEvent)
          return e.attachEvent("on"+ meth, func);
     return false;
// Start things off
a$.newEvent(window, 'load', function () {
     var x = a$.T('select');
     for (var i = 0, l = x.length; i < l; i++) {
          a$.multiSelectCreate(x[i]);
a$.cancelbubble = function(e) {
     if (a$.isIE) e = event;
     if (e) e.cancelBubble = true;
function noop() {
     return null;     
Edited by: brugo on 07/12/2009 10:47
Edited by: brugo on 07/12/2009 10:49
Edited by: brugo on 07/12/2009 10:50
Edited by: brugo on 07/12/2009 10:51
Edited by: brugo on 07/12/2009 11:03

Similar Messages

  • How can I populate a pdf with database data?

    How can I populate a pdf that we have on our server with database data on our server?

    Actually, if you export it in the right format then you won't need a script
    at all.
    You can import data directly into fields from a plain-text file via Tools -
    Forms - More Form Options - Import Data...
    I believe the format is tab-delimited with the field names in the first row
    and their values in the second.

  • Populate html:select with List of Strings

    Hello everyone,
    I need to populate an html:select with a List of Strings. The list I receive is not composed of objects, only Strings. I want each of these Strings to be an option of the select.
    I've tried this way:
                    <html:select property="tamanho" >
                       <html:options collection="gradeTamanho"/>
                    </html:select>Didn't work. Does anyone know how?
    thanks

    Does anyone know how to do this? There has to be someway that I can populate an Option List with a list of contentIDs in a folder. Maybe using CMIS?

  • Populate OIM Lookup With Database Values

    I am trying to figure out a way to populate a lookup in OIM with values from an Oracle database. For example, I have a table containing a list of departments with their department ID. I would like to pull these values into a lookup.
    The AD connector's GroupReconTask is very similar to what I want to accomplish. I'm hoping to be able to create an adapter or task that will do something similar.
    Has anyone been successful in attempting something like this or knows of a possible way?

    You need to write a Java class extending com.thortech.xl.scheduler.tasks.SchedulerBaseTask. Use Thor.API.Operations.tcLookupOperationsIntf's methods addLookupValue/updateLookupValue to add/update the lookup values. Check out the Javadoc for more on the same.
    Here is the doc link on how to create a schduled task -> http://download.oracle.com/docs/cd/B32479_01/doc.903/b32453/oimadm.htm#sthref302

  • Build html page with database images

    Hello,
    I have to build html pages in jsp that display images (JPEG, GIF) who are stored in database BLOB fields.
    Is anybody have sample to do this ?
    Thanks

    > Please help me... I need it!
    The answer that you do not want to hear is - spend some time
    learning HTML
    and CSS if you want to do things like this. It's true. DW
    will expect this
    knowledge on your part. Without it you will encounter
    continuous mysteries
    in your pages.
    > I have designed my page in Photoshop and have saved it
    as a HTML with
    > images.
    This is the wrong way to start. Here's a better plan....
    http://apptools.com/examples/pagelayout101.php
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Noreago1979" <[email protected]> wrote in
    message
    news:g1vhsa$lg6$[email protected]..
    > Is there a way to anchor a layer to a specific point on
    a HTML page?
    >
    > I have designed my page in Photoshop and have saved it
    as a HTML with
    > images.
    > I then opened it in Dreamweaver and alligned my designed
    page centre so
    > that it
    > is always center to the opened explorer window. The
    problem I am having is
    > that
    > I want to place my text layers in the document and have
    them anchor or
    > stay to
    > the exact spot i placed them on the page i designed and
    now have opened in
    > Dreamweaver. When i test it or open it up in the
    explorer page the text
    > layer
    > shifts differently than the the designed page i created
    in photoshop. I
    > would
    > like them to move together at the same rate.
    >
    > How can I make this work.... I have tried everything
    that i could think
    > of.
    >
    > Please help me... I need it!
    >
    > Thanks
    >

  • Pre populate an item with source type="Database Column"

    Hello gurus,
    How can I pre populate an item with source used "Always, replacing any..." and source type="Database Column"?
    I have a form that creates/updates rows in a table and when creating a new row I want to populate some of the fields based on some parameters from the previous page. How can I achieve this?
    I tried adding a conditional process when PK is null and populate the expected fields, but in the browser they are not shown with those values, even if I look into the session I can see that they have the values assigned in the process ?!?!?!
    Thanks in advance,
    Florin

    Florin,
    Use the Default Value item attribute. In you case, set the Default Value Type to Static Text with Session State Substitutions and enter your item using the &P1_ITEM_NAME. syntax in the Default value text box.
    Thanks,
    - Scott -

  • Populating selectItems with database values

    I'm looking for an example of how to populate a combo box using the selectItems tag with database records. I'd like to be able to populate the item value and item label. I am able to build an array to populate this way, but can not find a good database example. Could someone point me in the right direction?
    Thanks

    public class SQLView {
    private SQLView() { } //Prevents instantiation
    public class Field {
    public static final String id = "id";
    public static final String name = "name";
    public class ProductCategory {
    public static final String select =
    "select id, name from ProductCategory order by name";
    DataAccess.java
    public DataAccess(String confEnvName, String dataSourceName) throws Exception {
    try {
    InitialContext ic = new InitialContext();
    Context envCtx = (Context) ic.lookup(confEnvName);
    DataSource ds = (DataSource)envCtx.lookup(dataSourceName);
    name = confEnvName + '/' + dataSourceName;
    con = ds.getConnection();
    } catch (Exception ex) {
    throw new Exception("Couldn't open connection to database: " +
    dataSourceName + ' ' + ex.getMessage());
    public ResultSet getResultSet(String statement) throws SQLException {
    PreparedStatement st = con.prepareStatement(statement);
    ResultSet rs = st.executeQuery();
    return rs;
    public List resultSetToSelectItems(String statement) throws SQLException {
    List list = new ArrayList();
    ResultSet rs = getResultSet(statement);
    try {
    while (rs.next()) {
    list.add(new SelectItem(new Integer(rs.getInt(SQLView.Field.id)),
    rs.getString(SQLView.Field.name)));
    finally {
    rs.close();
    return list;
    Catalog.java
    public synchronized List getCategoryList() throws SQLException {
    if (categoryList == null) {
    categoryList = dataAccess.resultSetToSelectItems(SQLView.ProductCategory.select);
    if (!categoryList.isEmpty()) {
    categoryId = (Integer)((SelectItem)(categoryList.get(0))).getValue();
    else {
    categoryId = new Integer(0);
    return categoryList;

  • Published pdf form is unable to connect with database

    Hi Guys!
    I have created a PDF form using Adobe Live Cycle Designer which have some text fields namely RECORD and NAME. I have connected this form with a Database. When I enter a record in the RECORD number field the NAME field of this form has been populated with the help of XFA Script which is written on the exit event of the RECORD text field. When we publish this form, a new interactive PDF is created which works fine and populates the NAME field from the an SQL database but when I access this PDF form (which is located on a shared location) from some another location (not on the same machine where i designed this form) it is unable to connect to the database and does not work as expected.
    I think there is some thing i am missing for the database connectivity.
    If any body on this forum can help me out.
    thanks
    Here is the Script for the above form which i used to populate the NAME FIELD on the basis of enetered RECORD number.
    ----- Document.Page1.txt_MRN::exit: - (JavaScript, client) -----------------------------------------
    /* This dropdown list object will populate two columns with data from a data connection.
    sDataConnectionName - name of the data connection to get the data from.  Note the data connection will appear in the Data View.
    sColHiddenValue  - this is the hidden value column of the dropdown.  Specify the table column name used for populating.
    sColDisplayText  - this is the display text column of the dropdown.  Specify the table column name used for populating.
    These variables must be assigned for this script to run correctly.  Replace <value> with the correct value.
    var sDataConnectionName = "DataSource";  // example - var sDataConnectionName = "MyDataConnection";
    var sColHiddenValue  = "RecordNum";   // example - var sColHiddenValue = "MyIndexValue";
    var sColDisplayText  = "Name";   // example - var sColDisplayText = "MyDescription"
    // Search for sourceSet node which matchs the DataConnection name
    var nIndex = 0;
    while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)
    nIndex++;
    //var oDB = xfa.sourceSet.nodes.item(nIndex);
    var oDB = xfa.sourceSet.nodes.item(nIndex).clone(1);
    oDB.open();
    oDB.first();
    // Search node with the class name "command"
    var nDBIndex = 0;
    while(oDB.nodes.item(nDBIndex).className != "command")
    nDBIndex++;
    // Backup the original settings before assigning BOF and EOF to stay
    var sBOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");
    var sEOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF", "bofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF", "eofAction");
    // Clear the list
    this.clearItems();
    // Search for the record node with the matching Data Connection name
    nIndex = 0;
    while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)
    nIndex++;
    var oRecord = xfa.record.nodes.item(nIndex);
    // Find the value node
    var oValueNode   = null;
    var oTextNode   =  null;
    var sRecordNum  =  $.rawValue;
    for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)
    if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)
      oValueNode = oRecord.nodes.item(nColIndex);
    else if(oRecord.nodes.item(nColIndex).name == sColDisplayText)
      oTextNode = oRecord.nodes.item(nColIndex);
    var found= 0;
    while(!oDB.isEOF())
    if (oValueNode.value== sRecordNum)
      txt_FirstName.rawValue = oTextNode.value;
      txt_LastName.rawValue = oTextNode.value;
      found = 1;
      break;
      //this.addItem(oTextNode.value, oValueNode.value);
       oDB.next();
       if (found == 0)
        txt_FirstName.rawValue = "";
        txt_LastName.rawValue = "";
    // Restore the original settings
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup, "bofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup, "eofAction");
    // Close connection
    oDB.close();

    Finally achived the database connectivity for the published pdf form developed in the Adobe LiveCycle Designer 8.0.
    There must be the same driver version of the DSN on both machines. The machine which published the form and the one accessing it.
    Use the Admin account to add the DSN on both machines.
    Get rid of the error: Connection for Source "DataConnectionName" failed because the environment is not trusted.
    Thanks
    AbdulHafeez

  • Populating HTML Page with fields from a Report

    Greetings all,
    I think I have finally figured out how to format my question about customizing reports
    I am using the Sample Applicaiton and I created a simple report (PAGE 20) using the DEMO_CUSTOMER table. The simple report shows the CUSTOMER_ID, CUST_FIRST_NAME, CUST_LAST_NAME
    I created a blank page (PAGE 21) with an HTML Region. In the HTML region I have created an HTML Table with Two Columns and 3 rows:
    <table border="1">
    <tr>
    <td>CUSTOMER ID</td>
    <td>rVALUE OF CUSTOMER ID</td>
    </tr>
    <tr>
    <td>FIRST NAME</td>
    <td>rVALUE OF CUST_FIRST_NAME</td>
    </tr>
    <tr>
    <td>LAST NAME</td>
    <td>rVALUE OF CUST_LAST_NAME</td>
    </tr>
    </table>
    On my report page 20, I created a link from the Customer ID and I wanted to know if I could populate the Table I created on Page 21 with say a P21_CUSTOMER_ID field and when I click the link on page 20 it redirects to page 21 and P21_CUSTOMER_ID = #CUSTOMER_ID# just like I would do for a formatted report. I added items to page 21 called P21_CUSTOMER_ID, P21_CUST_FIRST_NAME, P21_CUST_LAST_NAME
    but I don't know how to get their values into the table that I created. Do I have to make an html form element and reference it? Make fields hidden? Not sure How to populate the table I created with the values that are passed into page 21 and any help would be appreciated. I am sure however I identify the variable I could then just use that same formatting and use Styles and Divs to make the page look like I want and just reference the same way, but unsure of how to do that.
    Any assistance you can provide would be very much appreciated. I am trying to create a report view that looks like a web page with images, and the passed data would be populated throughout the HTML and not in a structured Tabular Format if that makes sense.
    Thanks in Advance
    Wally

    Hi,
    There are more than one ways of doing this.
    Extending what you have done , heres how
    Assumption : You are getting values in P21_CUSTOMER_ID, P21_CUST_FIRST_NAME, P21_CUST_LAST_NAME
    Edit your HTML table , and refer to the P21 items with &P21_CUSTOMER_ID. notation as follows
    <table border="1">
    <tr>
    <td>CUSTOMER ID</td>
    <td>&P21_CUSTOMER_ID.</td>
    </tr>
    <tr>
    <td>FIRST NAME</td>
    <td>&P21_CUST_FIRST_NAME.</td>
    </tr>
    <tr>
    <td>LAST NAME</td>
    <td>&P21_CUST_LAST_NAME.</td>
    </tr>
    </table>The other way is to create a Report with Single Row vertical layout template on Page 21 instead of the HTML region.
    Regards

  • Installing EM Grid Control 10.2.0.3 with Database 10.2.0.3 On RHEL4 U3 & U4

    Note: This is not an official document, it discusses Oracle Enterprise Manager Grid Control (EMGC) installation on Redhat Linux Update 3 & Update 4 with new database NOT with an existing database. Both OS Updates were installed with FULL PACKAGE INSTALLATION option. Oracle Universal Installer creates the database automatically before creating the EMGC repository.
    •     For Linux the base version of the EMGC is 10.2.0.1 and for Windows platform it is 10.2.0.2.
    •     The database release is 10.1.0.4 with EMGC 10.2.0.1.
    •     When installed it creates three Oracle Homes: 1) db10g (database), 2) oms10g (Oracle Management Service), and 3) agent10g.
    Course of Action:
    To get to Oracle EMGC 10.2.0.3:
    •     Install EMGC 10.2.0.1      
     Upgrade Oracle Home oms10g to 10.2.0.3.
     Upgrade Oracle Home agent10g to 10.2.0.3.
    To get to Oracle Database 10g 10.2.0.3:
    •     Oracle Database 10g 10.1.0.4 will get installed by the OUI automatically
     Upgrade Oracle Database 10g to 10.2.0.1 in new Oracle DB Home.
     Upgrade new Oracle DB Home to 10.2.0.3.
    ====================================
    Installing EM Grid Control 10.2.0.1:
    ====================================
    To install EMGC 10.2.0.1 download all the three files: Linux_Grid_Control_full_102010_disk1.zip, Linux_Grid_Control_full_102010_disk2.zip, Linux_Grid_Control_full_102010_disk3.zip from http://www.oracle.com/technology/software/products/oem/htdocs/linuxsoft.html.
    If you have unzipped all the downloaded zip files in separate directories then the very first error message slammed at your face after starting the installation will be something like “OUI-10133: Invalid Staging Area. There Area No Top Level Components”. All you have to do is to unzip all the three files in the single directory (Metalink 395030.1).
    After unzipping all the files in the same directory follow the steps that are given on the follow URL.
    http://www.oracle.com/technology/obe/obe10gemgc_10202/install/install.htm
    BUT the problem is that you will be punched with few other error messages during the installation that will terminate the installation. The WORKAROUND is given below.
    There are three stages of the installation by OUI:
    1.     Installation of EM Repository Database 10.2.0.1.
    2.     Installation of EM Grid Console 10.2.0.1.
    3.     Installation of Agent 10.2.0.1.
    The first stage completes without any problem and on the OUI you will see: Oracle Enterprise Manager Repository Database 10.2.0.1.0 installed. While installing the Grid Console, during copying files for "Oracle Application Server 10g 10.1.2.0.2" at 90% OUI will pop up an error message "An error occurred during runtime." You will see lines similar to the following lines in the installation log files.
    INFO: Calling Action SpawnActions10.1.0.3.0 Spawn
    installcommand = /u01/app/oracle/product/10.2.0/oms10g/bin/OracleAS_Relink_Patch.sh
    deinstallcommand =
    WaitForCompletion = null
    INFO: Exception occured during spawning :java.io.IOException: /u01/app/oracle/product/10.2.0/oms10g/bin/OracleAS_Relink_Patch.sh: cannot execute
    INFO: Spawning the modified command :/u01/app/oracle/product/10.2.0/oms10g/bin/OracleAS_Relink_Patch.sh
    INFO: Exception thrown from action: Spawn
    Exception Name: RuntimeException
    Exception String: An error occurred during runtime.
    Exception Severity: 0
    Problem:
    There is a bug which is still being worked on by the DEV : Bug 5203165 : Abstract: CANNOT EXECUTE ../oms10g/bin/OracleAs_Relink_Patch.sh AT INSTALL
    Note that this is an unpublished bug, not viewable via Metalink. The bug apparently occurs only on RHEL4 (32bit) Update 2 and Update 3 (I faced the same thing in Update 4 as well).
    Workaround:
    •     Leave the error message as it is and change the execution permission of the script OracleAS_Relink_Patch.sh.
    $ chmod +x /u01/app/oracle/product/10.2.0/oms10g/bin/OracleAS_Relink_Patch.sh
    •     Now press Retry on the error message pop up window. The installation will resume.
    On the same stage while linking at 90% one another error message will pop up “Error in invoking target 'install' of makefile '/u01/app/oracle/product/10.2.0/oms10g/sqlplus/lib/ins_sqlplus.mk'”.
    Problem:
    Hitting bug : 5203194 :Abstract: RELINK FAILS ON 10.2 GC INSTALL -LIBCLNTSH.SO: UNDEFINED REFERENCE TO NNFGTABLE
    Bug is not published in Metalink. As per the description: Installing 10.2.0.2 Grid Control on RHEL4 Update 2 or Update 3 (I faced the same thing in Update 4 as well). This generates an error in the linking phase. The error is generated while attempting to relink sqlplus.
    Workaround:
    •     Stop installation of all components.
    •     Restart the installation and pick the option to resume the installation.
    •     This allows the installation to complete.
    If by any chance you press continue instead of stopping the installation you should get ready for the garbage OUI is going to throw at you:
    Error in invoking target 'install' of makefile '/u01/app/oracle/product/10.2.0/oms10g/network/lib/ins_net_client.mk'
    Error in invoking target 'install' of makefile '/u01/app/oracle/product/10.2.0/oms10g/network/lib/ins_nau.mk'
    Error in invoking target 'install' of makefile '/u01/app/oracle/product/10.2.0/oms10g/webcache/lib/ins_calypso.mk'
    During Setting up 'Perl Interpreter 5.6.1.0.2d'
    An error occurred during runtime
    During Setting up 'Oracle Application Server 10g 10.1.2.0.2'
    The OPMN Process Manager failed to start. Please check the logs in the /u01/app/oracle/product/10.2.0/oms10g/opmn/logs directory for the cause of failure. Once the cause of failure has been remedied, start OPMN manually and click Retry.
    HTTP Server Configuration Assistant Failed.
    OUI-25031:Some of the configuration assistants failed. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured.
    1. Check the Details panel on the Configuration Assistant Screen to see the errors resulting in the failures.
    2. Fix the errors causing these failures.
    3. Select the failed assistants and click the 'Retry' button to retry them.
    ====================================
    Upgrading EM Grid Control 10.2.0.1 to 10.2.0.3:
    ====================================
    I hope after installing EMGC 10.2.0.1 you are still intending to upgrade it..... :-D Now for that download GridControl_10.2.0.3_Linux.zip from http://www.oracle.com/technology/software/products/oem/htdocs/linuxsoft.html and follow the README.txt file included with the upgrade patch. Before starting the upgrade you will probably have to apply a patch (4329444) on the existing database (10.1.0.4). Anyway, its one of the prereq that you have to complete.
    For upgrade follow the steps given on the following URL.
    http://www.oracle.com/technology/obe/obe10gemgc_10203/patching/patching.htm
    •     Keep one thing in mind that you will have to apply the above mentioned patch twice. Once for oms10g home and once for agent10g home.
    •     Stop all the EMGC related services.
    •     When applying the patch to a particular home change the ORACLE_HOME to that home. E.g. when applying the patch on the oms10g home:
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0/oms10g
    and for agent10g home:
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0/agent10g
    ====================================
    Upgrading Database from 10.1.0.4 to 10.2.0.1:
    ====================================
    Download the file 10201_database_linux32.zip from http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201linuxsoft.html.
    •     Shutdown all the EMGC related services, the listener, and the database.
    •     Start the installation of 10.2.0.1.
    •     Since 10.2.0.1 is a base release that is why you cannot install it in the existing Oracle Home i.e. in db10g. You have to define a separate Oracle Home for the new installation say db10gR2.
    •     During the installation it will ask you to upgrade the existing database 10.1.0.4 to 10.2.0.1, click YES.
    •     Hopefully the installation will go just fine.
    ====================================
    Upgrading Database from 10.2.0.1 to 10.2.0.3:
    ====================================
    Download the file p5337014_10203_LINUX.zip from http://metalink.oracle.com.
    •     Shutdown all the EMGC related services, the listener, and the database.
    •     Start the installation of 10.2.0.3.
    •     During installation it will ask for the Oracle Home, give the new Oracle Database Home i.e. db10gR2 and proceed.
    •     Hopefully the installation will go just fine.
    •     Start the database, listener, and all the EM GC related services:
    o     $ORACLE_HOME/../oms10g/bin/emctl start em
    o     $ORACLE_HOME/../agent10g/bin/emctl start agent
    o     $ORACLE_HOME/../oms10g/opmn/bin/opmnctl startall
    •     Try accessing the EMGC through the browser http://xyz.abc.com:4889/em
    •     You will see two Oracle databases in the EMGC, the old one, 10.1.0.4 and the new one 10.2.0.3. Don’t worry it will not bother you at all. It will only occupy a GB or so. Though, you can remove it through OUI.
    Congratulations!!!! you have now Enterprise Manager Grid Control 10.2.0.3 with Database 10.2.0.3 on RHEL 4 Update 3.
    You can repeat the same exercise for RHEL4 Update 4 as well, but during pre-installation checks you will get 1 warning that:
    Checking for compat-libstdc++-296-2.96-132.7.2; found Not found. Failed <<<<
    Checking for libstdc++devel-3.4.3-22.1; found Not found. Failed <<<<
    Checking for openmotif-21-2.1.30-11; found openmotif-2.2.3-10.RHEL4.5. Failed <<<<
    Actually, these packages are already there in the OS but the higher versions. It is evident from the above messages that first it “founds” the package but due to the version conflict it says that “Not found”. All you have to do is click on the check box next to warning, it will change to User Verified or something. Now press Next and follow the same steps that we followed for Update 3.

    The quicker way is to use sofware only method to install 10204 oms and dirctly use 10203 datbase directly as a oms repository.
    Check the section Installing 'Software-Only' and Configuring Later
    http://download.oracle.com/docs/cd/B16240_01/doc/install.102/e10953/installing_em.htm#CCHGBDCB

  • Warning on "synchronize with database" in SSMA

    Hi,
    I am migration database from oracle to SQL using ssma.
    I get below warning on doing "synchronize with database".
    "The database owner SID recorded in master database differs from the database owner SID
    recorded in database XXXX (migrated SQL DB). This may lead to error during synchronization. You should correct this situation by 
    resetting the owner of the database XXXX (migrated SQL DB)."
    Please suggest.
    Thanks.

    Hello,
    You can use the sp_changedbowner system stored procedure to make the owner of the database the same as the master database.
    https://msdn.microsoft.com/en-us/library/ms178630.aspx
    Another resource related to this issue.
    http://kevine323.blogspot.com/2011/03/database-owner-sid-recorded-in-master.html
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • HTML Combo Box Question

    I generate an HTML page with a Servlet and I have a combo box that lists numbers 1-20. Depending on a parameter that is passed to the servlet I want to set the Combo box to be initalized to (display) a certain number.
    Does anybody know how I can do that? (I would prefer to have the Combo Box entries remain in order)
    Thanks,
    Andrew

    You can always put something in there like
    int foo = Integer.parseInt(request.getParameter("foo"));
    for(int i=1; i <= 20; i++)
      out.println("<option value=\""+i+"\" "+(foo==i)?"SELECTED":"" +" >"+i+"</OPTION>");
    }

  • Populating a PDF file with Database Field values - URGENT PLEASE REPLY

    I have a requirement where in I hae PDF files as templates. The data for these templates is the database.
    Example : a.pdf
    Name :
    Database table : name varchar(20)
    What I want to do is read this PDF template and populate the Name with the value in the table.
    Any Ideas on how to do this. Pointers/Source code would be appreciated. Hve been scrambling my head for quite a while without any luck

    not a portal question..
    u will need some pdf library / api - such as itext, etc

  • Send email in html format with pdf attachment

    I am trying to send an email out of SAP using an abap program in the html format with a pdf attachment. I am using the function module -SO_DOCUMENT_SEND_API1. I noticed that when i specify the body type of the message as 'RAW' I get to see the pdf attachments however when i switch it to 'HTM' I loose the attachment in the email generated. Can anyone please help me in solving this problem. Thanks!

      ld_email                 = p_email. "All email IDs
      ld_mtitle                 = 'Bank Statement'.
      ld_format                = 'PDF'. "Attachment Format
      ld_attdescription      = 'Statement'.
      ld_attfilename          = p_filename. "Name of file
      ld_sender_address      = p_sender_address. "Sender mail address
      ld_sender_address_type = p_sender_addres_type. "INT - Internet
    * Fill the document data.
      w_doc_data-doc_size = 1.
    * Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle . "Description
      w_doc_data-sensitivty = 'F'.
    * Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle. "Description
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    * Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'HTM'. " THis is for BODY of mail RAW'.
      APPEND t_packing_list.
    * Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    * Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_receivers
           EXCEPTIONS
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                OTHERS                     = 8.
    * Populate zerror return code
      ld_error = sy-subrc.

  • How to change color in html report with MARKUP HTML ON?

    While generating html reports using MARKUP HTML ON with in sqlplus, I would like to highligh the records with different colors. how can do this?

    Here is an example - it produces nice output and sets the background. It displays in red if database is in NOARCHIVELOG mode. You can go further and use CASE statements for certain conditions to display different colors, font sizes.
    set markup html on spool on entmap off -
         head '-
         <style type="text/css"> -
            table { background: #eee; font-size: 90%; } -
            th { background: #ccc; } -
            td { padding: 0px; } -
         </style>' -
         body 'text=black bgcolor=fffffff align=left' -
         table 'align=center width=99% border=3 bordercolor=black bgcolor=white'
    spool logmode.html
    select  'Archive Log Mode :'|| decode(log_mode,'NOARCHIVELOG','<font color=red>Database in '||log_mode||' mode </font>',log_mode) "Archive Log Mode"
    from v$database
    spool off
    set markup html off

Maybe you are looking for

  • I might have a virus or trojan on my MacBook Pro. Unwanted pages open when I'm using my yahoo account. What do I do?

    Whenever I use my yahoo account, a page with some fishy offers opens and I need to click a few of "Yes, I really want to leave this page" before I can exit it! If I don't click on all those "Yes"'s I'm not able to quit Safari (only when I do Force Qu

  • Adobe Photoshop Elements 10 DVD Menu

    I read somewhere that I could make a DVD menu, in Adobe Elements for Adobe Premire Elements 10, but I am having troubling figuring out how to do so. Dose anyone know if there is a written or video tutorial for making a dvd template in Adobe Photoshop

  • Duplicate records returned when details come from 2 different tables

    I believe this should be a trivial case, but after days and days of experimenting, I can't get it. I'm creating a report of customers' transactions. The customer table links to a transaction header table (default join type). There are 2 tables which

  • View Report Builder 3.0 in SSDT

    Hello, I new to SQL Server environment,  created a file in Report Builder 3.0, saved as aTest.rdl, and successfully ran it.   When tried opening it in SSDT, Visual Studio 2010 to edit it, I an XML format aTest.XML.  Is there a way to open a file that

  • Machine Authentication not happening with MAR

    ACS(SE)4.2 WLC (4402)5.1.163 AD 2003 Server Currently we are using ACS to authenticate VPN user for two domain.In the same ACS we want to configure machine authentication + PEAP + Self Signed Certificate.Now clients are authenticated with a valid use