Custom property renderer for multiple value selections of property metadata
Hi,
We have created custom predefined metadata properties and fetching data from SAP to display values while uploading a document from KM.Everything is working fine and values are being displayed in a dropdown.
The standard property multi-valued displays values in checkboxex but the requirement is to allow for multiple selections in dropdown using shift ot ctrl key.
We started creating our own property renderer by decompiling classes like allowedvalues_multivalued
but we could not see the property on the upload screen.
Any help is greatly appericiated.
Thanks,
Vasu.
Vasu,
Try changing the property renderer setting in your custom property. There might be one which allows a multiple select box. If not, you can always create your own. The following links are helpful:
https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5800
https://www.sdn.sap.com/irj/sdn/nw-cm?rid=/library/uuid/f7b176eb-0701-0010-2b84-8edb1f76771d
Andrew
Similar Messages
-
Enhancing standard (single select)search help for Multiple value selection
Hi,
Standard search help for Business Partner (in cProjects) allows only single value selection for input fields. I want to make this multiple selection.
Is there a way to do it.
I used an OVS and built a similar search but its difficult to get the standard options like saving to personal value list etc in it.
It would be good if there is a way to modify the standard search help to allow multiple selection. Any ideas??
Appreciate your help,
Thanks,
Sri
Edited by: Sri on Sep 9, 2010 8:50 PM
Edited by: Sri on Sep 9, 2010 8:52 PMAs far as I know you can't make a standard ABAP dictionary search help return multiple entries - where you get this sort of functionality the searches don't use the standard Elementary search help framework (e.g. organisational structure searches)
Given that the WDA search help relies on these dictionary based searches, I'd think very much that you couldn't enhance it to return multiple. how you could even return multiple entries into a single UI element input field is also confusing to me.
I'd suggest creating a freely programmed value help, it would certainly take quite some effort to recreate those personal value lists etc, but it could be done - I don't like OVS, but that just me. -
Multiple values selection in Selector Component of Xcelsius
I wanted to select Mutiple values in Selector Component?I dont want List Builder..I wanted to Select multiple values in Combo box or List box..
Is there any way?
Thanks in Advance..
MiniHi Mini,
First of all check your version of Xcelsius ( open Xcelsius -> got to Help tab ->About Xcelsius check the version) if it is 5.3.3.0 then its ok...otherwise open the below link to download the HotFix-
[https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm]
the functionality is offered in latest Fix Pack only. After you install the fix, you will get an additional functionality of multiple series selection in Combo Box as well as in List Box.
Add as many series as you want for multiple value selection.
Good Luck. -
Crystal Token (Multiple Values Selection)
Hello Experts,
I am using a view for a custom report and have a problem with token i have defined. I would like to Token to display multiple value selection list so user can check the style he need.
Ex: When i use select * from OITW the token displays item code selection list but when i am using view crystal does not display selection list. Does the tokens respect Views? Please advise.Hi Praneeth
Try this
code@select T1.V1_code, T1.V1_name FROM OADM T0 CROSS JOIN View1 T1
It seems that putting a B1 table in there makes it work. The same applies to selection from UDT's
Hope this helps
Rob -
BSP: multiple values selection in select-option
Hi,
Our customer requires multiple values selection in BSP pages as he is used to in standard SAP GUI.
I found it's impossible in standard.
Could it be possible to used javascript for this ... each select-option would have its own script that would pass table with selected values as parameter to HTTP request?
thanks
JurajOf course this is possible, you have HTML in the frontend, so you can do as much as HTML allows you. If you know DHTML you can play with it and create almost every layout you want, but then you have to keep in mind that you will have to take care about everything behind, starting from conversions (input/output), formatting, validation and so on.
-
SetSelectedValue for multiple values in List Box
Hi,
I want to set the selectedValue for multiple values in the List Box. If i use setSelectedValue for all the values, it just highlights the last one.
Can anyone tell me how do i highlight multiple values in the List Box?
Scenario:
I have one screen where the List Box and "Go" button is placed. When i select multiple values in the list box and hit "Go" it should display what i have selected in the List Box.
Note: List Box is generated dynamically.
Thanks,
Naresh VsetSelectedValue as the name indicates will set one value and in your case since you are using it multiple times it would pick the last value.
When the user selects multiple values from the list box and clicks on Go you can capture those values in the controller for processing. What are you trying to achieve by resetting all the selected values on the same listbox ? -
The file size of selected file in input file control is shown as 0 for multiple file selection in Safari 5.1. If you select single file, then it is able to return file size correctly. However, if you select multiple files, then the file size of each of the selected file is always returned as 0 from javascript. This works correctly in Safari 4.0 but it does not work in Safari 5.1.
How do I get the correct file size in Safari 5.1 ?If you want to post (or send me) a link to the lrcat file, I'd take a look at it for you, and give you a break-down what's consuming all the bytes. But it might be fun to learn how to do that yourself (e.g. using SQL). I use SQLiteSpy, but other people have their favorites.. (or you can use a command-line client if you prefer..). One way: just run "drop table "{table-name}" on each table then look at filesize (do this to a copy, not the real thing).
Anyway, it's hard to imagine keywords and captions etc. taking much of the space, since even if you had 1000 10-character words of text metadata per photo average that still only adds up to 117MB, which isn't a substantial portion of that 8G you're seeing occupied.
Anyway, if you've painted the heck out of most of them and not cleared dev history, that'll do it - that's where I'd put my money too...
One thing to consider to keep file-size down:
===================================
* After reaching a milestone in your editing, take a snapshot then clear edit history, or the top part of it anyway (e.g. leave the import step), using a preset like:
Clear Edit History.lrtemplate
s = {
id = "E36E8CB3-B52B-41AC-8FA9-1989FAFD5223",
internalName = "No Edit",
title = "Clear Edit History",
type = "Develop",
value = {
settings = {
NoEdit = true,
uuid = "34402820-B470-4D5B-9369-0502F2176B7F",
version = 0,
(that's my most frequently used preset, by far ;-})
PS - I've written a plugin called DevHistoryEditor, which can auto-consolidate steps and reduce catalog size - it's a bit cumbersome to use a.t.m. but in case you're interested...
Rob -
Dynamic where clause for MULTIPLE values
In the following of dynamic where clause?
i have some somewhat different problem.
Is a dynamic where clause for multiple values possible?
If the inputvariable varCode1,varCode2,varCode3,varCode4 are 0 then show all id's otherwise filter the resultset on var1 and/or var2,and/or var3,and/or var4.
Example table:
create table t
(d int,var int);
insert into t values (1 ,1 );
insert into t values (2 ,1 );
insert into t values (3 ,2 );
insert into t values (4 ,3 );
insert into t values (5 ,4 );
insert into t values (6 ,4 );
insert into t values (7 ,4 );
insert into t values (8 ,4 );
insert into t values (9 ,5 );
insert into t values (10, 6);
insert into t values (11, 6);
So what i want to change the where clause upon the value of the varCodes. If var1 and var are not 0 a "AND" should be used otherwise an "OR"
select id
from tst
where var = DECODE( :varCode1, 0, var, :varCode1)
or/and(?) DECODE( :varCode2, 0, var, :varCode2)
or DECODE( :varCode3, 0, var, :varCode3)
or DECODE( :varCode4, 0, var, :varCode4)Please turn off your Caps Lock
and try this link
Dynamic WHERE clause -
SQL Command code for multiple value string parameter
Hi,
I'm using crystal 2008 and there is a check box for multiple value SQL Command I need some help in writing the SQL Command code for oracle (or sql server) for a multiple value STRING parameter.
Thanks in advance,
MarilynI could be wrong here, but I do not believe you can pass a multiple valued parameter to an SQL Command data source. How I have gotten around this in the past is to put the "real" report into a subreport. In the main report, create a formula field (basic syntax):
formula = join({?parameter}, "|")
Then, use this to pass the selected values to the subreport's parameter (call it {?sr-parm}). The SQL Command in the subreport can then use that (MS SQL):
select *
from table
where charindex(table.field, '{?sr-parm}') > 0
HTH,
Carl -
How to search for multiple values with Bex Prompts
Hi,
I would like to know if it is possible to search for multiple values at the same time with Bex Prompts instead of searching one value at a time (please see the screen shot below). I searched the forum couldn't find any relevant answers. please let me know how to achieve?
Thanks,
Charvi.Hi Charvi,
You can use wild card search to ensure you get multiple similar values listed as search output.use * for multiple characters and ? for single character.
For Example, Ravi * would result you all employees with first name as Ravi
You can use various search formats such as * Ravi * and * Ravi and Ra?? etc.
Thanks
Mallik -
Multiple values selection implementation in VC
Hi
I am working with VC. We are trying to implement an multiple input selection.
Our first option was to use the Help value wizard but i saw in this forums that is just possible with BI systems (we are using BAPI thus R/3 system).
Now, we are trying to change de BAPI and put the input in tables. This goes well in R/3.
Howeaver when we implement in VC this BAPI and fill the input table in the screen and send a submit message those table values are not sent.
Any idea what is going on ? Is there a way to implement our requirement the multiple value selection using BAPI ?
Best regards
CarlosCarlos,
As Marcel said it can be a lot of things. It is hard say. But I can tell from my experience that when you charge a BAPI in your source system you dont grab this change in VC. You should try to save your BAPI under other name and re-import it to VC.
Do you how to debug using SE73? This should help you also to follow your BAPI behaviour and also see if VC is really executing your BAPI.
Regards,
Gilson -
Multiple value selection lists - Problem filtering
I'm builing a news application with publisher, and one of the fields is a multiple value selection list. We're filtering news stories to different pages based on the values. Problem is, I can't get the right content items to display. I did it no problem with a single selection box. The code I'm using is:
<pcs:foreach expr="folderByPath(folder, '../../Articles')" var="articles">
<pcs:foreach expr="articles" var="art">
<pcs:if expr="art.testkeyword == 'choice2'">
</pcs:value>"><pcs:value expr="art.headline"></pcs:value></a><br />
</pcs:if>
</pcs:foreach>
</pcs:foreach>
So if 'choice2' is in a single select list, no problem. If it's part of a multiple select, I get nothing. I'm thinking I'm missing something really easy, like logic operators. But I couldn't find anything of help in the documentationHi,
Make use of contains function.
Syntax : contains(string1,string2) this returns true if string 1 has string 2
Usage
<pcs:if expr="contains(test,'A')">
</pcs:if>
** 'test' is the name of the multi select box
Edited by bharatkarthik at 06/22/2007 4:10 PM -
How to set a payload field value only once for multiple instances selected?
The user needs to set a payload field value and then he can approve the task so the task can continue through the process, that's fine when the user selects one instance and sets the value in the task details section and then clicks the approve button, but how do we achieve the same behavior in a multiple way?, I mean the user can select multiple tasks in the workspace (in this case the details task page is not available and instead the following label appear "Multiple tasks selected") then if the user clicks the Actions drop down -> APPROVE he only gets the message "your request was processed successfully", so how can the user modify the payload field value only once for all the selected tasks so when he clicks APPROVE the value is populated in all the instances selected.
Thanks,
Carlos.In the action which displays the edit page just set the form idx value before displaying the jsp.
-
Custom Cell Renderer for JList
I'm getting some strange behaviour from my custom cell renderer.
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
public class TestRenderer implements ListCellRenderer {
private JPanel jpCell = new JPanel();
public Component getListCellRendererComponent
(JList list, Object value, int index, boolean isSelected,
boolean cellHasFocus) {
jpCell.add(new JLabel("Render"));
return jpCell;
import javax.swing.*;
import java.awt.*;
public class TestPanel extends JFrame {
public TestPanel() {
JList jlst = new JList(new String[]{"Value", "Value2", "Value3"});
jlst.setCellRenderer(new TestRenderer());
JPanel panel = new JPanel();
panel.add(jlst);
add(panel);
public static void main(String[] args) {
TestPanel frame = new TestPanel();
frame.setSize(300, 300);
frame.setLocationRelativeTo(null);
frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
frame.setVisible(true);
}As you will see the renderer displays the string several times in each cell depending on which layout manager I use. However, if I replace the JPanel with a JLabel and set the String as text on the label the String is only printed once per cell. I can't see to find the reason for this.
Edited by: 811488 on 18-Nov-2010 09:44
Edited by: 811488 on 18-Nov-2010 09:45
Edited by: 811488 on 18-Nov-2010 09:45So getListCellRendererComponent returns a component whose paintComponent method is called with the Graphics object of the JList Yes, except that the paint(...) method is called. There is a difference. paintComponent() only paints the component. In the case of a JPanel you would get a boring gray colored component. paint() will paint the component and its children and the Border of the component as well. So you get a much more exiting component.
Read the section from the Swng tutorial on [url http://download.oracle.com/javase/tutorial/uiswing/painting/index.html]Custom Painting for more information.
So the state of the cell is not the state of the cell Renderer Component meaning the image rendered onto the cell only reflects the state of the Cell Renderer Component at the time the cell was rendered.Yes which is why this method should be efficient because repainting is consistently being done for all the cells. For example every time row selection changes multiple rows need to be repainted. Think of this same concept when you use a JTable which also contains multiple columns for each row.
That is why you should not be adding/removing components in the rendering code.
It makes sense except that if this was the case the first version of the Render that I posted should have been rendered first with one "Render" then two then three, shouldn't it?Yes, except that you can't control when or how often the rendering is done. Add the following to the renderer:
System.out.println(index + " : " + jpCell.getComponentCount());You will see that rendering is done multiple times. The JList tries to determine its preferred width. To do this it loops through all the items in the list and invokes the renderer to get the width of the largest renderer. Well the largest width is the last renderer because 3 labels have been added to the panel. So that width becomes the preferred width of the list. Then the GUI is displayed and the list is painted. Every time the renderer is called an new label is added, but after the 3rd label there is no room to paint the label so it is truncated.
Change your code to the following:
//add(panel);
add(jlst);Now change the width of the frame to see what happens.
Given all the help you have received, I expect to see many "helpfull answers" selected as well as a "correct answer" (if you want help in the future that is). -
Using One Property Node For Multiple Controls/I​ndicators
Question for all you LabVIEW gurus. Is there a way to create 1 property node that is used for multiple indicators? For example, if I wanted to display the same value on 10 different indicators using the property node - value function do I need to create 10 separate property node-value instances for each indicator? Or is there a way to tie all of those indicators to only one property node?
Thanks!
Solved!
Go to Solution.Hi hobby1
You could create a cluster, and inside in it put all the indicators, see the image attached
Attachments:
capture1.JPG 14 KB
Maybe you are looking for
-
I want to use the screen on my touchsmart as a monitor on a new PC.
I just bought a new gaming tower and i would like to know if i could hook it up to my touchsmart as a monitor.
-
Additional Account Assignment not working
Dear all, I implemented Functional Area as additional account assignment. Then I entered Functional area in asset master record. When I post depreciation using AFAB, I can NOT see functional area. What would be the reason? Best regards, Onur
-
How can I make the font / text size bigger? When I print a web page it's so small I can hardly read it. I have a HP Deskjet F2210 all-in-one printer. Thank you
-
Where does one find the Oracle Best Practice/recommendations for how to DR
What is the Oracle Best Practice for install/deployment and configuration of ODI 11g for Disaster Recovery? We have a project that is using Oracle ODI 11g (11.1.1.5). We have configured all the other Oracle FMW components as per the Oracle DR EDG gui
-
Reason to put database fields inside the fields 1. I put in (word and database fields) inside fields box in order to let my word display smoothly one by one. Problem is , i am in section report footer d, i plan to suppress {Qrev if the value is "AAA"