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

Similar Messages

  • How to dynamically populate a listbox with the values in the database

    Hi,
    How do dynamically populate the list box with the values in the oracle database. I want to load the list box at run time.Plz anybody help me out to find a solution for this problem.
    Thanks in advance...
    Regards,
    Shiva.

    u can wite code like this..on jsp page
    <%
    ResultSet rs = stmt.executeQuery("select vender_name from vendors");
    %>
    <select name = "vendorlist">
    <%
    while(rs.next()){
    String vname = rs.getString(1);
    %>
    <option value="<%=vname%>"><%=vname%></option%>
    <%
    rs.close();
    %>

  • 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;

  • 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 target table with default value

    I have a query like this:
    SELECT 0 AS ID,
    9999999999 AS CODE
    FROM DUAL
    UNION ALL
    SELECT VEH.TP_ID AS ID,
    VEH.VEH_ID AS CODE
    FROM TB_VEHICLE;
    So I have an interface with two data sets, one for each query.
    The first data set represents the "select from dual" "constant values" and the second represents the "select * from tb_vehicle".
    In the first data set I don´t have a source, then ODI generates a select without a table "select 0 AS ID, 99999 AS CODE FROM".
    Any ideas on how can I achieve my objective? I need to populate one row on target table with constant values.
    Thanks

    Alternatively , try this :
    Duplicate the LKM and IKM you are using, create copies , something like LKM xyz (No Source) , IKM xyz (No Source).
    Then adust the KM steps accordingly, remove the 'FROM' part and replace with VALUES ( ) , keeping the odiref substitution call in the parenthesis.
    So you basically have a knowlede module that accepts no source data, generating :
    insert into C$
    (col 1, col 2, col 3 etc)
    VALUES
    (Target mapping 1, target mapping 2, target mapping 3 etc)
    I've seen it done, nice and tidy, keeps all the lineage in ODI etc.

  • How to populate smart form with new values

    Hi!
    I am new to smart form . Can anybody help me in how to populate smart form with some new fileds. Actually i have to populate credit memo form with some customized values..

    Hello,
    Please elaborate your query more in order to be comprehendable.
    Regards,
    Shehryar

  • 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

  • Report Preview Mismatching with Database Value .

    Dear Friends ,
    I am designing very simple report with 7 columns . To check with report i just hard coded parameter value in command .  when i am executing same query in back end every thing is fine and i am getting correct result , but when i run from report ,value is mismatching . attached screen shot for your reference ,
    please suggest . i am using oracle 11g and crystal report version 13.

    Hi Sriram,
    Have you tried using the same query (with hard coded values) in a Command Object in CR?
    Do you see same values as the database?
    Also, which value has been hard-coded in place of the prompt?
    -Abhilash

  • Populate input array with spreadsheet values

    Is it possible to populate an input array with values from a text or spreadsheet file? If so, how is it done?
    Solved!
    Go to Solution.

    Hi Joseph,
    "to be more exact":
    load the [text] file and use "spreadsheet string to array" (older LV versions) or use "read spreadsheet file" (LV8+)
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • OIM: Reconciliation with Database Application Tables Connector

    Hi!
    I'm trying to use Database Application Tables connector 9.1.0.5.0 in OIM 11g to reconcile accounts from my target system: MySQL 5.1.37. I followed the steps in connector's guide to create and configure it and to configure my target system as a trusted source.
    The problem is that user accounts are not being created in OIM, despite of this, I know the connector is retrieving the information of each user because I can see it in the log's messages generated when I execute the reconciliation job, so I supossed the problem may be in the "Modify Connector configuration page" or in some step after this.
    Aditionally, I don't know if it's important but I can't see "User Type" field in "OIM user account data set" from "Modify Connector Configuration Page".
    Did I forget to do something in configuration or there is something I got to do besides the steps in guide?
    Thanks in advance!
    Edited by: user10857411 on Jan 11, 2011 4:10 PM
    Edited by: user10857411 on Jan 11, 2011 4:12 PM

    SUN IDM is better than OIM,
    Reconciliation process in Sun IDM (oracle waveset) is easier to implement than OIM (worst identity solution)
    Saludos Cordiales Zam

  • RFC lookup with context values importing and exporting

    Hi,
    Input parameters for my RFC Lookup:
             one simple field: Occurrence 1
             one table type: Occurrence N
    I am getting table values from RFC Lookup
    and I need to repeat all values in the target structure.
    I am not able to capture the all values in the mapping: Help needed.
    Ramesh

    Hi Ramesh,
    If you want to use the first output to be repeated in all your mapping, try using the UseOneAsMany tool in the Message Mapping.
    HTH
    Regards,
    Juan

  • 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

  • Populating Database values into a combo box in STRUTS Framework

    Hi Guys,
    I am currently working on a STRUTS Framework project and I can't get much resources related to the problems that I'm facing.
    Currently I need to populate a JSP file's Combo box with database values. What I don't know here is the syntax used to in STRUTS framework to populate the Combo box with database values. Anyone with experience related to this topic, please kindly help me out.

    Struts doesn't define anything about the datab layer. You're free to implement how you will.
    Struts instead guides you into following an MVC pattern.
    You populate a combo box with values from a bean.
    So you need to set up a bean for this page to talk to.
    That bean can be populated from the database - but at that point you're in java/jdbc code - and away from the struts layer.
    My suggestions
    1 - Define a bean to represent the information from the database.
    2 - write a method that queries the database, and copies the data into a List of those beans. This will be your Data access layer.
    3 - in your action, call that method, and then set the list of beans as a request attribute. Or maybe as a property on a form.
    4 - use that list of beans to populate your dropdown box.

  • How to do a reverse lookup on a value set?

    I have a concurrent program which has multiple paramaters with various value sets. When I run reports, I want to dynamically list on the output the parameters the user gave. The problem is that these values are often the IDs and not the value the user sees.
    Are there any packages in applications that will let me to do a "reverse lookup" with the value sets to get the values the user saw?
    Thanks,
    Kurzweil4

    Hi Stomie,
    Based on your description, the network ID of your reverse lookup zone is 172.16.160.
    To create a reverse lookup zone, please follow steps below,
    Right click Reverse Lookup Zones, click New Zone, choose proper settings of
    Zone Type, Active Directory one Replication Scope,
    Reverse Lookup Zone Name type based on your actual situation.
    In the Reverse Lookup Zone Name page, check Network ID
    radio button, enter the network ID. For example, if the network ID is 172.16.160, then enter 172, 16, 160 in order. Then you will see it appears     
    160.16.172.in-addr.arpa in the Reverse lookup zone name edit.
    Or in the Reverse Lookup Zone Name page, check
    Reverse lookup zone name radio button, then enter the name of the reverse lookup zone directly. Such as, enter
    160.16.172.in-addr.arpa in the edit.
    Click Next twice, click Finish.
    Reverse lookup zone name end up with in-addr.arpa.
    Best Regards,
    Tina

  • TextInput (with lookup reference) which doesn't display database value

    Hi,
    We are using JHeadstart 11.1.1.0.31 and have a problem with a field (varchar2 displayed as textInput) which references a lookup table. The value which is displayed is not the database value we expected but a number which seems to be the number of the record in the table. When we display the referenced field from the lookup table, we see the correct database value.
    When we run the service in the Model layer, this problem doesn't exist.
    Thanks for helping us,
    Petra Wernars / Jonathan Damen

    Hi,
    The issue here is that:
    - a model LOV has been defined on the View Object attribute
    - you are using a normal texinput to display the value
    - you are using something like #{bindings.MyField.inputValue} to bind the value
    The 'inputValue' will in this case assume a choicelist is rendered (because of the model LOV definition) so it will give the index within the choicelist, instead of the normal VO attribute value!
    Use 'attributeValue' instead in this case, so you will always show the real attribute value. Or remove the model LOV if you are not using it. Notice that with default options selected, JHeadstart will create a model LOV on each column that references another viewobject.
    Regards
    Evert-Jan de Bruin
    JHeadstart Team

Maybe you are looking for

  • About Horizontal mapping !!!

    Hello, I want to use the horizontal mapping, I have read the documentation several times but no succes until now !!! I have managed to use the vertical one and it worked... I did add this line in yhe kodo property file: kodo.jdbc.SubclassMapping: ver

  • Local node not included in the list of host names for grid installation

    I'm attempting to install clusterware on Solaris 11 on 2 nodes. I've tried tweaking the /etc/hosts file in a few different ways by including the fully-qualified name and without it for the localhost, but it still gives me this error every time. The r

  • Can i watch tv shows previously purchased through itunes on an apple tv?

    if so, do they stream every time i decide to watch an episode or are they stored locally?  each episode of LOST is ~1.3GB for example. i also subscribe to itunes match.  not sure if this makes a difference.

  • Factory Reset Toshiba Satellite M305-S4848

    Hello, We recently got this model laptop from a friend due to the fact ours was stolen. I'd like to factory reset it, but I was wondering if I really need to copy the restoration data onto seperate disks, or if I can just do it from my system. I did

  • OPP error in XML reports

    Hi all, If we run XML reports its running fine.But, sometimes following errors occured. *****Beginning post-processing of request 2139021 on node ORMDV114 at 23-MAR-2008 15:14:11. Post-processing of request 2139021 failed at 23-MAR-2008 15:14:11 with