Boolean in a combo with "no selection label"
Does anyone know how to display a boolean value in a combobox with a "no selection label" ? If it's a primitive boolean, false is bound to the control by default. If the property is Boolean it causes Property 'foo' not readable on type java.lang.Boolean
This is my bean:
public class Report {
private boolean forecast;
public boolean isForecast() {
return forecast;
public void setForecast( boolean reportForecast ) {
this.forecast = reportForecast;
}and this is my jsf page:
<h:selectOneMenu value="#{report.forecast}" required="true" >
<f:selectItem itemValue="true" itemLabel="yes" />
<f:selectItem itemValue="false" itemLabel="no" />
</h:selectOneMenu>As I wrote before, I would like yet another option in the input, a "no selection option" with label "Pick one..". With the primitive boolean, the field gets instantied with false by default. When I try to use Boolean type, I get the following error when entering the page:
javax.el.PropertyNotFoundException: /editReport.xhtml @50,108 value="#{report.forecast}": Property 'forecast' not readable on type java.lang.BooleanWhen I try to use autoboxing in accessors (just leave the primitive boolean in the signatures) I get
javax.el.ELException: /editReport.xhtml @50,108 value="#{report.forecast}": Error reading 'forecast' on type pl.alior.creditrating.entity.Report
Similar Messages
-
Plotting a combination chart with a combo box for selection
Hi:
I am a newbie using xcelcius and I need help on the following:-
I need to create a combination chart that plots 3 years data by month, and I need a combo box selection at the top that allows me to select user display for each difference region. I manage to create one that plots only 2008 data with a combo-box selection, but I have no idea how to do it for a combi chart in xcelcius. Any advise?Hi Ning,
I assume your data are like this:
Region Year Jan Feb Mar
APJ 2006 $234.45 $310.34 $321.54
APJ 2007 $314.35 $319.12 $256.89
APJ 2008 $425.54 $354.34 $285.73
North Asia 2006 $534.64 $642.35 $484.64
North Asia 2007 $631.74 $654.13 $754.34
North Asia 2008 $754.31 $423.65 $634.32
South East Asia 2006 $536.42 $576.35 $525.42
South East Asia 2007 $426.78 $876.43 $643.75
South East Asia 2008 $634.87 $425.77 $732.43
If this, you can set the insertion type of combo box is "Filtered Rows", see steps:
1) For Combo Box, bind General > Labels to the Region column.
2) Set General > Data Insertion > Insertion Type is "Filtered Rows" (you can refer to following flash to see how "Filtered Rows" works).
3) Set its Source Data are Year, Jan, Feb, ... columns and Destination to blank cells.
4) Bind Chart to the destination data.
Now when you select APJ from Combo Box, it will insert all the rows of APJ data to the desitination cells which will be displayed in Chart.
Hope this can help! -
ADF Tree with Boolean Check Box: How to find selected items
Hi Experts,
ADF: 11.1.1.5.0
WLS: 10.3.6
I am using an ADF Tree which contains elements at two levels (say Departments and Employees). My requirement is to give provision for user to select Departments and Employees using the check boxes. User should be able to select what ever Departments he/she likes and what ever employees he/she likes. There should not be a provision to select Employee with out selecting the corresponding Department (root node in the tree).
I am facing the below issues while trying to implement this use case:
1. Always, only the first master record will be expanded by default (I am using "Display Row" property value as "default" and "ExpandAllEnabled" as "true"). My need is to expand all the master records by default. So that user need not explicitly expand each master record node and then select the associated child records.
2. Currently, I am using value change listener associated to af:selectBooleanCheckBox to identify the Departments and Employee records that have been selected. Since not all departments (masters) are expanded by default, if user selects the check box of department (master) and then expands the department node, automatically all the employees of that department are selected. But, this event is not triggering the value change listener for the employee records. Because of this, after a department node is selected and then expanded, all the child elements' check boxes are selected but the events are not generated. Hence, I am not able to capture the selection of employee records.
To summarize,
1. Please let me know how to expand all master nodes in af:Tree by default.
2. Please let me know the best approach to identify the selected items (both master and detail items) in the af:Tree component using af:selectBooleanCheckBox.
Thanks in advance,
RathnamHi,
Can you please elaborate the solution? I have a similar problem in
https://forums.oracle.com/thread/2579664 -
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 -
Dear all,
Iam trying to print the packing list using smarforms,
T.Code - VL74 - After providing the input for the selection screen,
eg. output_type - 0001.
outbound.deliv - 80000834.
In the "OUTPUT FROM HANDLING UNITS" screen, im getting the list of labels available for that selection.
say for eg.
HU Ob Object key Out. Med Role Name 1 City PkMtT PackMatls
1000004002 01 0080000834 0001 1 WE CALCADOS LTDA BENTO GONCALVES Z001 300026
1000004003 01 0080000834 0001 1 WE CALCADOS LTDA BENTO GONCALVES Z001 300026
1000004005 01 0080000834 0001 1 WE CALCADOS LTDA BENTO GONCALVES Z001 300026
1000004006 01 0080000834 0001 1 WE CALCADOS LTDA BENTO GONCALVES Z001 300026
with the Selection check box attached to the first field, when i
select the first and second HUs, it should be passed to the
driver program, but im getting only one HU value passed into the driver program.
In the driver program my code goes like below,
REPORT ZSDPACKDR LINE-COUNT 100 MESSAGE-ID VV.
TABLES: VBCO3, TVST.
INCLUDE ZPALIDATA_PL.
INCLUDE RVADTABL.
DATA: RETCODE LIKE SY-SUBRC, "Returncode
XSCREEN(1) TYPE C. "Ausgabe Printer/Screen
Internal table for lips
DATA: lips_wa TYPE lips.
DATA: int_lips LIKE lips_wa OCCURS 0 WITH HEADER LINE.
*& Form ENTRY
text
-->RETURN_CODE text
-->US_SCREEN text
FORM ENTRY USING RETURN_CODE US_SCREEN.
CLEAR RETCODE.
XSCREEN = US_SCREEN.
PERFORM PROCESSING USING XSCREEN.
IF RETCODE NE 0.
RETURN_CODE = 1.
ELSE.
RETURN_CODE = 0.
ENDIF.
ENDFORM. "ENTRY
FORM PROCESSING USING PROC_SCREEN.
PERFORM GET_DATA.
CHECK RETCODE = 0.
ENDFORM. "PROCESSING
FORM GET_DATA.
REFRESH: LVBPLK, LVBPLA, int_lips.
CLEAR: LVBPLK, LVBPLA, int_lips.
DATA: FM_NAME TYPE RS38L_FNAM.
VBCO3-VENUM = NAST-OBJKY. "00000.....
VBCO3-SPRAS = NAST-SPRAS. "D
VBCO3-KUNDE = NAST-PARNR. "KUNDE
VBCO3-PARVW = NAST-PARVW. "WE
VBCO3-PACKD = 'X'.
CALL FUNCTION 'SD_PACKING_PRINT_VIEW_SINGLE'
EXPORTING
COMWA = VBCO3
IMPORTING
VBPLK_WA = LVBPLK
VBPLA_WA = LVBPLA
VBADR_TVST = LVBADR "n_916660
TABLES
VBPLP_TAB = LVBPLP
EXCEPTIONS
SHIPPING_UNIT_NOT_UNIQUE = 1
SHIPPING_UNIT_NOT_FOUND = 2
OTHERS = 3.
IF SY-SUBRC NE 0.
RETCODE = 1.
PERFORM PROTOCOL_UPDATE.
ENDIF.
in the above coding, i used SD_PACKING_PRINT_VIEW_SINGLE', but i tried with SD_PACKING_PRINT_VIEW also, but no values getting loaded in the importing structures. if im doing anything wrong, pls correct me.
*CALL FUNCTION 'SD_PACKING_PRINT_VIEW'
EXPORTING
COMWA = VBCO3
AUFTRAG_NICHT_LESEN = ' '
EXPORTDATEN_NICHT_LESEN = ' '
IMPORTING
VBPLA_WA =
TABLES
VBPLK_TAB = LVBPLK
VBPLP_TAB = LVBPLP
VBPLS_TAB = LVBPLS
EXCEPTIONS
OBJECT_NOT_FOUND = 1
OTHERS = 2
*IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
The problem is:
For any of the above function call,
The VBCO3 itself im getting only one label number, hence it is processing for only one, i want to know how to pass on the multiple
label number to this function call ie, in VBC03.
meaning i would like to know, in which internal table , i can get the list of all the selected HUs, so that i shall loop this function call inorder get the appropriate output.
kindly help me to sort this issues.
Points assured.
regs,
RajaDear Srihari,
I wrote above code in first label(now i deleted do-enddo) only.
first i am moving seven lebels data into seven wa's.
after that reading the first record and moving another itab(for printing at main window i.e. 8 label).
clearly, there is no space problem..because instead puttting all the required field i put only customer name.
Now it is printing well in first page with 8 labels(main window) also.
But in the second Page it displays only 7 labels and not printing rest of the labels.
for example my itab has 20 records it displays 8 labels in first page &
next 7 labels in second page and not print the rest of the 5 labels i.e. it is not calling third page(?).
code..
CLEAR : WA1, WA2, WA3, WA4, WA5, WA6, WA7.
loop at it_final into wa_final FROM 1 TO 7.
if sy-tabix = '1'.
wa1 = wa_final.
elseif sy-tabix = '2'.
wa2 = wa_final.
elseif sy-tabix = '3'.
wa3 = wa_final.
elseif sy-tabix = '4'.
wa4 = wa_final.
elseif sy-tabix = '5'.
wa5 = wa_final.
elseif sy-tabix = '6'.
wa6 = wa_final.
elseif sy-tabix = '7'.
wa7 = wa_final.
endif.
endloop.
delete it_final from 1 to 7.
**Push every 8th row if it_final in it_main
read table it_final into wa_final index 1. "deleting 8th, 16th,... records
if sy-subrc = 0.
append wa_final to it_main.
else.
exit.
endif.
*Delete the rows from it_main which are present in it_final
loop at it_main into wa_final.
delete table it_final from wa_final. "deleting 8 th row from it_final.
endloop.
Edited by: anurag.radha on Jan 6, 2012 1:09 PM -
Need help with Advanced Selection in MSA
Hi,
Has anyone managed to identify how to create additional
advanced selection criteria using links to existing combo engines ? Documentation on Mobile system maint is limited so looking for some additional help. Some criteria you can run the check against but not all why ? What should go in the hierachy fields and how do you select the choice list values ?
Thanks in advance
MHi,
Thanks,my issue is I want to use the combo box so the user can select from the drop down the relevant code from the choice list. Not rocket science really.
Example of sql generated for profession whch is kna1 field.
select KNA1.TITLE,KNA1.SFAKNA2,KNA1.SFAKNA1,KNA1.PROFRESSION as PROFESSION,KNA1.PAFKT,KNA1.NAME2,KNA1.NAME1,KNA1.KVTGRP,KNA1.KVCPPOS,KNA1.KUNNR,KNA1.KTOKD,KNA1.BPACT,KNA1.ANRED,KNA1.ABTNR,ADRC.TELNR_LONG,ADRC.STREET,ADRC.POST_CODE1,ADRC.CITY1,ADRC.ADRCDFLT,ADDR.SFAKNBP , (KNA1.PROFESSION ='MIC') as ReturnValue1 from SMOKNA1 KNA1,SMOADRC ADRC,CDBD_ADDREXT ADDR where kna1.deleted='0' and KNA1.Source='CON' and ADRC.deleted='0' and ADDR.deleted = '0' and (ADRC.ADRCDFLT='S' or ADRC.ADRCDFLT='P') and (1=1) and kna1.sfakna1=adrc.sfakna1 and adrc.sfaadrc = addr.sfaadrc order by kna1.name1
Code fails !
I have set VAR1 as a free Combo with Bdoc as Choice, segment as Choice List with fields chkey/Textx so hiearchy fields looks like this //*/Profession hiearchy params being mandt/spras/list
It will not check is this because there is an error in this definition ?
Regards
MM -
Problems importing photos with a color label.
Hello:
I'm trying to import photos and assign a color label at the same time. My idea is to know what pics are just imported and put they into "status 0" of my workflow, that is, the pic is just imported and need to be accepted/rejected, then be classified, then made basic corrections, etc, etc. I'm going to change color labels to go from red to green status... a tipical workflow.
OK, this is what I did:
Import pics:
* I select the directory and create/assign a new metadata preset.
* In this metadata preset I set author/creator and some other IPTC fields.
* Also I put the word "red" in Label field.
* Do the import...
What I can see then:
The photos are imported and the red label is visible. You can see the red label in the grid view (at every photo's bottom) and also, at the bottom toolbar, you can see that the red label is checked. If you click at the small label at the photo's bottom you can see the small menu with the red label checked.
OK, it seems that the color label is imported but...
In the filmstring, if you filter to see only the red labeled pics... nothing is selected !! You have to unassign and assign again the red label and this time you can filter by color label.
What is happening ? Does Lightroom read the color label from two different fields from the metadata ? Is something not synched during the import process ?
Regards,
Javier.Sorry if I couldn't explain correctly. English is not my main language...
I know you can assign names to the existing colors label and create different sets. I just create my own set.
What I'm refering to is to the Label field that is part of the basic IPTC data into a metadata preset. I'm not sure if it's the same field that is used to assign color labels.
What I did was to create a metadata preset, assign the word "red" as the value of the IPTC Label field and then apply this preset into an import. All the pics were imported with the red label set, so yes, it is possible to do the import and set the color label. The problem is that you can't use the filters that are into the filmstring view. So there is some mismatch here: the red color is shown at the bottom of the pics imported, but the filmstring filters can't "see" that the pics have this color label assigned. -
Problem with showing unit-label
Hi All,
i just have a problem with controls that have two displays (like
slider). I need the digital display with an unit-label. But when I
enable showing the label it appears two times and I have no chance to
disable one. Is there a methode that I can reach my target?
bye
HenrikThere is a way but it rather looks like a bug in LabVIEW...
The object must be a control and the VI must be in Run Mode or running:
Select the text in the unit label of the digital display and delete it.
It can generate insane object errors if you manipulate the object further,
thus it is safer just to hide the label.
Jean-Pierre Drolet
John Lum a écrit dans le message :
[email protected]..
> Henrik Skupin wrote:
>
> > i just have a problem with controls that have two displays (like
> > slider). I need the digital display with an unit-label. But when I
> > enable showing the label it appears two times and I have no chance to
> > disable one. Is there a methode that I can reach my target?
>
> Others may have a more
elegant way of getting around this, but one quick
> workaround is to edit the control to hide the unit label that you don't
> want to see.
>
> Let's say you want to hide the unit label next to the slider part of the
> control: simply select the control, do Edit >> Edit Control, move the
> offending unit label over top of the digital display, then select Move to
> Back from the Reorder menu.
>
> Regards,
> John Lum
> National Instruments
> -
When logged into Aruba Central, how do I search IAPs with a particular label?
Q: When logged into Aruba Central, how do I search IAPs with a particular label?
A: This is a very common request from many of the Aruba Central customers. For example, an administrator wants to quickly look at the status of all IAPs serving the guests in the campus? Or If he wants to immediately track down the IAPs only in the warehouse.
In such cases, this feature would be really handy and helps us to give immediate glance of the required IAPs.
How does this work ?
For Aruba Central, to help in such cases, one needs to first assign the access points with appropriate labels. As we discussed above, all IAPs in the warehouse, can be labeled with a label string as "warehouse". Similarly, an IAP in the guest lobby, can be labeled with a "lobby IAP" label.
Aruba Central would then group these IAPs in the backend and index the seacrh, to be ready to pull up the list when you search with a particular label.
Now, here is how you search the list of IAPs with a particular label:
1. On the Central web interface, next to search text box, is the "Filter" icon.
2. Click on the "Filter" icon and it would list out all the labels that has been assigned across devices.
3. Select the label you need to search for and click on search.CarterFamily,
Essentially, unless something odd is going on, the issue might be an incorrect Registry key entry. If that is the underlying cause of the problem, then correcting the Registry should allow you to recover your profile.
You might try the the following fix.
Find, Open, and follow the procedure in the file named: Temporary Profile Error
Kind Regards,
Dragon-Fur -
How can i get all values from jtable with out selecting?
i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
thanks in advance.
rajaYou could set the table's data model to be the same:
output2.setModel( output1.getModel() ); -
SSRS Report with mutli select values in parameters
Hi All,
I am creating a SSRS report and displaying the result in tablix. I want to make the report to filter by multi select values from the parameters.
I have 3 parameters. For all the three parameters, I have set "Default Values" and "Available Values". Also, modified my result dataset to get the values from parameters using "WHERE ID = @Parameter1" (example) and so
on..
3 Parameters types: 1. Yes or No
2. Date 3. Values with NULL in the DB
Problems:
1. When I am passing the default values "Yes" "No" - it is throwing errors because default values is passed as Yes "AND" No instead of "OR" condition. The value stored in the DB wil have either Yes or No but not both.
2. When I am querying the date values, it is a DateTime field in the DB. But I have queried like SELECT CONVERT(DATE, EXE_DATE) AS DATE FROM table which is giving only date in SQL but in SSRS displaying date with time.
3. When I pull the list of values for third Parameter from SQL, it has some NULL values. When I try to use it in SSRS, it is not displaying the NULL value as select option in the list of values
Any suggestions for the above three problems for SSRS with multi select values as filter will be helpful.
Maruthu | My BlogHi Maruthi,
Regarding the three things:
1.) I believe your first parameter is mutliselect , please convert it to single select.
Steps:
a.) Select the parameter, right click and go to parameter properties
b.) Under General Tab in DataType section remove the checkbox for Allow Multiple Value.
2.) Instead of returning as the date please return string. For example :
SELECT CONVERT(VARCHAR, GETDATE(),101)
Here is the list of conversion : http://www.sqlusa.com/bestpractices/datetimeconversion/
3.) As such there is no concept of null in SSRS. (Its a relational concept) . We do have nothing , which means empty. In Order to use null please select the Allow null option in the DataType section of the Parameter, This will add an checkbox for null in
the report preview. Its developer job to handle the null values in there query.
Regards Harsh -
The standard report for BOMs of a material with a selected period?
Hi Gurus
Is there any standard report for BOMs of a material with a selected period?Hi,
You will have to develop a report for your requirement,
The following tables will be used for the report
MAST-WERKS
STPO-MATNR
MARA-MAKTX
STPO-BMENG
STPO-POSNR
STPO-IDNRK
STPO-MAKTX
STPO-DATUV
STPO-MENGE
STKO-MEINS
STPO-AVOAU
Regards
Merwyn -
Submit report with dynamic selections
Hi All,
I am trying to Submit a report with dynamic selections. I am using the option SUBMIT REPORT WITH FREE SELECTIONS.
But the dynamic selections are not getting passed.
Request you to kindly provide some inputs
My code is
DATA: trange TYPE rsds_trange,
trange_line LIKE LINE OF trange,
trange_frange_t_line LIKE LINE OF trange_line-frange_t,
trange_frange_t_selopt_t_line LIKE LINE OF trange_frange_t_line-selopt_t,
texpr TYPE rsds_texpr.
trange_line-tablename = 'PA0002'.
*trange_frange_t_line-tablename = 'PA0002'.
trange_frange_t_line-fieldname = 'GBJHR'.
trange_frange_t_selopt_t_line-sign = 'I'.
trange_frange_t_selopt_t_line-option = 'EQ'.
trange_frange_t_selopt_t_line-low = '1987'.
trange_frange_t_selopt_t_line-high = '1987'.
APPEND trange_frange_t_selopt_t_line TO trange_frange_t_line-selopt_t.
APPEND trange_frange_t_line TO trange_line-frange_t.
APPEND trange_line TO trange.
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions = texpr.
submit RPCADVQ0
VIA SELECTION-SCREEN
WITH SELECTION-TABLE rspar_tab
WITH FREE SELECTIONS it_texpr
and returN.
Kindly provide your inputs
Regards
ReshmaHi Reshma,
Use the FM - RS_REFRESH_FROM_DYNAMICAL_SEL before FREE_SELECTIONS_RANGE_2_EX.
data: trange type rsds_trange,
g_repid type sy-repid.
g_repid = 'RPCADVQ0'.
call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
exporting
curr_report = g_repid
mode_write_or_move = 'M'
importing
p_trange = trange
exceptions
not_found = 1
wrong_type = 2
others = 3.
if sy-subrc eq 0.
" Do the changes to the trange
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions = texpr.
submit RPCADVQ0
VIA SELECTION-SCREEN
WITH SELECTION-TABLE rspar_tab
WITH FREE SELECTIONS it_texpr
and returN.
endif.
Cheers,
Kothand -
How do i take one layer with multiple selections...
how do i take one layer with multiple selections and make those selections their own layer?
Yes sir. It w was really hard to explain. It is discontiguous segments that are separated by transparent areas. And I want those non transparent areas to be on their own layer. I have a photo shop file that has a bunch of buttons on them and they are on a transparent background. It is one layer. I want to select all the buttons and put them on their own layers. I can do this manually by selecting a button and cmd Just to a new layer, but when I have 200 buttons it is a daunting task.
Sent by MailWise<http://www.mail-wise.com/installation/4> – Your emails, with style. -
How to replace the existing selection screen with new selection screen
Hi,
I have first selection screen with parametre as a table name, then I have created dynamic selection screen as 2nd selection screen with different fields of that table as select options. This is done using genaration of dynamic report. Now If I click on button on this 2nd selction screen , then I want to replace this 2nd dynamic selection screen , with the other selection screen fields.
Can anybody guide me, How to do replace one slection screen with different selection screen.
and one imp thing is this selction screen is populating with dynamic fields on it.
Regards,
MrunalAs I can understand you want to make some of the screen field to disable or visible on screen depending upon the interaction of user with screen 1.
You may use this example code in PBO of screen 2.
LOOP AT SCREEN.
" action has been taken to modify the area office screen as per the option chosen at screen 99.
CASE ACTION.
" if the user has taken up the option of UPLOAD
WHEN 'UP'. " screen processing while we upload the plan
" during upload we will make dates as output fields only
IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
" also make 2 buttons disabled
IF SCREEN-NAME = 'AO_DO' OR SCREEN-NAME = 'AO_VE'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
WHEN 'DN'. " screen processing while we upload the approved plan
" during upload we will make dates as output fields only
IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
" also make 2 buttons disabled
IF SCREEN-NAME = 'AO_UP' OR SCREEN-NAME = 'AO_VE'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
WHEN 'VW'. " screen processing while we view the plan
" during upload we will make dates as output fields only
IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
" also make 2 buttons disabled
IF SCREEN-NAME = 'RLGRAP-FILENAME' OR SCREEN-NAME = 'FNAME'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
" and hide the file input field
IF SCREEN-NAME = 'AO_DO' OR SCREEN-NAME = 'AO_UP'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDCASE.
ENDLOOP.
Maybe you are looking for
-
How do I delete ALL emails on Droid Turbo (pop3)?
I have a Droid Turbo, and love it. But I cannot figure out how to mass delete (all) emails from the phone. I use Pop3 to my email. I know you can swipe individual emails to delete or press and hold on an email to select, then do the same individually
-
Can i generically change the "send from" email address in mavericks 10.9.2?
I have my regular email address and another that I'd prefer to be sending from. That one doesn't have password as it's a simple forwarding email. Can I send from it? Can't see how without setting it up as full email address.
-
How do you save a "song listing" to print?
Someone, Anyone.... I am attempting to print my 'song listing". All works well on my printer except my library is big enough that it will take sometime to accomplish the task on my printer. There is an option when printing that gives the user the cha
-
Why does my macbook stay stuck after turn on?
Hi, last night when I turned on my macbook pro it was stuck, I could see the screen with the icons but when I clicked on them nothing happened, I couldn't make it react, I couldn't click on anything. It took me 10 minutes to make it work. The same ha
-
Change the default row maximum in an Analysis report?
I'm using OBIEE 11.1.1.3 (and testing this on 11.1.1.5) and am curious how to change this setting: On all our Analysis reports we can view Rows 1 - 25 in the Results tab for the report. I want to change this so I can see more than 25 rows as my defau