Sorting the Values in Dropdown box values in dashboard
Hi,
I have a small problem. In the dash board I have a drop down which will displays the list of the employess. How to assign the sort to this. I have checked all the option but in the web application designed I didnt find any option for it.
Please help me in this.
Thanks
naveen
Yes, you can do this by specifying this parameter in your web item.
<param name="ONLY_VALUES" value="X"/>
This will return all the objects as part of a form so you need to write your own html form around this.
To sort this within javascript, the easiest thing to do is convert this list of form values to an array, sort this array, and then re-render the form values. There's an example online of doing this with a table here:
http://javascript.internet.com/forms/sort-data-table.html
You could do this with for a form in a similar manner.
Similar Messages
-
Sort the values in Bex query variable screen
Dear Experts,
Is it possible to sort the values of a dropdown list for variables on BEX variable selection screen ?
For example, For calender month selection, the values are by default sorted by ascending order.
Is it possible to sort by descending order ?
Regards,
ravindraHi Ravindra,
yeah it is possible by writing an abap code for the field calmonth/week...etc this is depends on the F4 help of the selection field. so you need to write a code for F4 help for making it in descending order. hope it helps.
Thanks,
Vachan -
Hi,
In my application, i want to use Mapping in the case
Key -Value
A - 2
B - 3
C - 7
D - 5
For that I used HashMap. But I want to sort the values and place in map as from Highest order. For that in google it is suggested to refer SortedMap. But this SortedMap is sorting the Key content only not Value content.
For sorting the Value's what I have to do under Collection?
Any idea?DHURAI wrote:
I will explain my concept in detail.
I am having a String array; a[]={qw,q,as,l,kj,q,q,l}
From this i am mapping
key value
qw 1
q 3
as 1
l 2
kj 1
using HashMap.
From this I want to fetch q whose value is greater. How can I do this?
Hope this explains better.You still haven't said how often you want to do that. What I explained will work, but it might not be what you want if you often change values. -
Sorting the values in the HashMap maintaing the key-value relationship
Hi,
I want to sort the HashMap based on the values. I have tried several other ways but the closest I can get is sort the values but have to loose the keys. I wanted to sort the collection based on the values but at the same time maintain the key-value relationship. Is there any way I can get this functionality either by using any collection API or by some other way?
Thanks and appreciate your help....
--coolersI believe that Commons Collections from Jakarta has something like that.
http://jakarta.apache.org/commons/collections/
But I'm not sure. -
What is the use of dropdown box in wad in bi-7
what is the use of dropdown box in wad in bi-7
Hi,
Dropdown box in WAD is for changing the output of full or particular part of template at runtime.
For Eg. suppose u have states in dropdown box and u want the output of according to particular state then u select that state from dropdown box. so the output comes accordingly.
For doing these u have to assign a data provider to dropdown box which query give the output of states. and in the property of dropdown box u hav to assign the item which will affect by this dorpdown box.
I think it will help u.
Assign Point if it helps.
Regards,
Ravi -
Sorting the values in a column in a Web Template Report
Hi All,
I have a report build on WAD in which a table is displayed with certain rows and columns and have certain text values in one column and few numeral values in the other few columns. When i right click on the 1st column(having text values) and click on Sort Ascending by Name, the values are sorted in groups.There are other 3 columns next to that column which have text values as well but when i right click on them and try to sort it in some order(ascending by name/descending by name), there are no reorganization of the values in the column. Again, once i go to the other remaining columns having numeral values in it, the values get sorted in ascending/descending order as per the sort selection. Please advise on how i can make the sort possible in the columns in which the rearrangement is not happening. Do i need to change the Query to some settings? Please advise.
Thanks!
Subhra Ghosh.Subhra,
In BW reports, the sorting of characteristic values always happens left-to-right. When you choose to sort by columns 2 - 4, you are actually just specifying whether to sort ascending|descending and/or by key or text. This sort happens for each value of the first column, however. Therefore, the sort in column 2 is only noticeable when you have more than one row with the same value in column 1, etc.
This sorting behavior is different than the Excel type of sorting, which may be your confusion here.
If you want to sort first by a column other than column 1, you must swap the columns so that the desired characteristic is in column 1.
Hope this helps...
Bob -
Sorting the values of a map.
I have been stuck on this problem for a while. I have a TreeMap, which can be changed to a HashMap if needed, with a set of keys as Strings and values which are Integers.
EXAMPLE
String1, 123
String2, 333
String3, 222
String4, 758
I need the values sorted in decending order (9-0).
Thanks in advance for all your help.I have been stuck on this problem for a while. I have
a TreeMap, which can be changed to a HashMap if
needed, with a set of keys as Strings and values which
are Integers.You must be the first one who changed a TreeMap into a HashMap and then lived to tell about it. -:)
Anyway a TreeMap is always sorted on key, not value. To have your dataset sorted on value you must reload into another TreeMap and invert the key/value pairs in the process. The values then become keys in the new TreeMap which means that the former values must be unique for this to work.
I'm sure there's a simple solution but it's better if you described what you want to accomplish in general terms than to let people struggle with a solution scenario that's probably suboptimal. How do you want to access your objects and why and when do you need them to be sorted. -
How To sort the values of a OVS result table?
Hello,
I'm trying (because i'm new je je), to implement an OVS for an inputfield in my WD app. Now i know for sure that my sophisticated value help do the search of the object and stuff, but i'm wondering if i can "sort" or include the sort method in my result table that is show in my OVS rendered view? Plis if you guys could give me some tutorials or info that would be great
Kisses
MCok that's another idea that i had in mind, built a new window, but my issue was how call that window fron the table cell, just like an OVS? wich UI Element help me with that, no link to action, no button, it most be something like an inputfield, how did you do that?
Kisses
MC -
How to get a newHP driver to appear in the Printer Setup Dropdown box?
I asked this question in a slightly different way in another thread, but I think it was too specific. The problem is that I installed the new driver for an HP OfficeJet 6110 and it works fine via USB, but it is ultimately a remote printer. The wireless Print server works fine with another windows PC and I can ping it via the Mac and get it to spool with the generic driver (gibberish). HP mounts the driver like an application and it doesn't appear in the Printer Setup as one of the options, and I don't know how to get it to appear there. I've searched the forums and Gimp appears to work on Epson/Canon, etc., but not HP, so I'm at a bit of a loss.
Any help is much appreciated.
Thanks,I have the same problem. Attempting to add a printer, Stylus Photo R200 (USB OS 10.4.11) to the Printer List I get the same error message, "client=error-request-value-too-long". I've reinstalled drivers multiple times to no avail.
Somebody out there know what to do? -
Get values based on Dropdown box selection-Important
Hi All,
In first table, i have an two textfields one is for "item no" and other is "item desc" and in the second table I have an "dropdown box" and "item desc".
Whatever is entered in the "item no" its populating in the "dropdown box", when an dropdown is selected any item that item desc should be displayed.
For example: In first table
Item no Item Desc
item 1 abc
item 2 def
item 3 ghi
and in the second table
Dropdown box Item desc
item 2 def
item 3 ghi
When am selecting item2 in dropdown box the related text is not getting dispalyed. And moreover the using instindex and the value is populating 0, below is the script
var Instindex = xfa.resolveNode("Page1.Subform1.Table1.Row2.Calculation").rawValue;
app.alert(Instindex);
var my_concatcomm = xfa.resolveNode("Page1.Itemtable.Table2.Row2[" + Instindex + "].EnterItemDescription").rawValue
var my_concatcomm = "Page1.Itemtable.Table2.Row2["+ 3 +"].EnterItemDescription"
app.alert("Index value::"+ xfa.resolveNode(my_concatcomm).rawValue);
Can anybody please help me on this.
Thank you for your help in advacneYes one more thing, i do not want any buttons or anyother webitem to be clicked to get this. this should be set with some commands if avilalbe or some other guess ?
-
Sort F4 values in BEX variable screen
Hi ,
Does anyone know how to sort F4 value help in BEX variable selection screen. This query has come up time and again in SDn and there seems to be no proper reply to this. If anyone has worked on this do let me know.
Thanks,
VaishnaviHi Nara,
Kindly have a look at below thread,
Sort the values in Bex query variable screen
Hope this helps.
Regards,
Mani -
Width of pivot view dropdown box
Hi All,
here I have a question,how can we increase/decrease the width of the pivot view dropdown box?
Any help will be appreciated.
Thanks
Aravind.Hi Srikanth,
Whenever we add a column into the pages area in pivot view,then one dropdown box will be appeared above the view to select values like in dashboard prompt.
I wanna increase width of That dropdown box.
Thanks
Aravind -
Sort the Shortcut Dropdownlist of Team Member Home Page in Oracle Project
In Team Member Home Page, need to sort the values in the Shortcuts dropdown list.
I have checked the VO(ShortcutDroplistVO), which is used as Dummy VO.
Checked the ShortcutDroplistAM,ShortcutDroplistRN,ShortCutDroplistCO, which is attached to the Shortcut field.
Shortcut Dropdown list values are not given in Controller class,View Object.
I am confused how the values are populated dynamically?
Could anyone help me to solve this issue?There are two ways to go ahead:
First one:
1. Extend controller and in processRequest get ShortcutDropListVO object
2.get the query using vo.getQuery()
3. Add orderby caluse to the query and set it using vo.setQuery()
But vo.setQuery() may or may not work properly.
Second one:
1. Create custom VO(as required) in Jdeveloper under custom folder structure and move it into server
2. extend controller and in processRequest attach custom VO to seeded AM (you can get sample code in many threads)
3. get drop down bean value and attach custom VO to it using sample code
OAMessageChoiceBean bean = (OAMessageChoiceBean)webBean.findChildRecursive("beanID");
bean.setPickListViewObjectDefinitionName();
bean.setPickListCacheEnabled(false);
Note: custom VO should have same columns and order of columns as seeded VO
-Anand
Edited by: T.A.Anand on 25 Nov, 2010 7:55 PM -
Sort the Valuenode records in table
Hi Experts,
Following is the code I wore to retrive and display Portal roles in a table. The context maintained is as follows and got the results properly. I want to know how to sort the table values by Role_Name?. Could some one help me?
[Value node] Role_table
[Value Attribute] RoleID
[Value Attribute] Role_Name
[Value Attribute] PCD_Location
//Retrive the roles from the Role factory
String[] theroles = rolefact.getRolesOfUser(unique_id,true);
for(int i=0; i<theroles.length; i++ )
//Retrive user attributes and add to the context attribute values
String roleid = rolefact.getRole(theroles<i>).getDisplayName();
String rolename = rolefact.getRole(theroles<i>).getDescription();
String role_desc = rolefact.getRole(theroles<i>).getUniqueName();
IPrivateUserView.IRole_tableElement rowelement = wdContext.createRole_tableElement();
rowelement.setAttributeValue("RoleID",roleid);
rowelement.setAttributeValue("Role_Name",rolename);
rowelement.setAttributeValue("PCD_Location",role_desc);
//Append the roles obtained and bind to the rolenode
al.add(rowelement);
wdContext.nodeRole_table().bind(al);
Please help me with some code on how to sort the value node table?. I promise to award the points for the right solution. I appreciate coding help.
Thank you
Regards
MarutiHi Maruti,
1. Get the size of the node, save it in a variable say <b>si</b>
int si = wdContext.nodeRole_table().size();
2. Iterate as follows
for(int i=0;i<si;i++)
for(int j=i+1;j<si;j++)
if(wdContext.nodeRole_table().getRole_tableElementAt(i).getAttributeAsText("Role_Name").compareToIgnoreCase(wdContext.nodeRole_table().getRole_tableElementAt(j).getAttributeAsText("Role_Name"))<0)
wdContext.nodeRole_table().swapElements(i,j);
Regards,
Mathan MP -
Sorting the numbers in a Varchar2 Column
I've a column in a table which contains two type of values, either 0-30 or A-Z. Can I sort the values of this column firstly on numbers and then on Characters like this:
1
2
3
4
10
A
Bwith t as (
select 'A' str from dual union all
select 'B' str from dual union all
select to_char(level) str from dual connect by level <= 10
select str
from t
order by case
when translate(str,'A0123456789','A') is null then to_number(str)
end nulls last,
str
STR
1
2
3
4
5
6
7
8
9
10
A
STR
B
12 rows selected.
SQL> SY.
Maybe you are looking for
-
Lost Mail on Network User Accounts
This problem has happened several times and I am pretty sure it relates to using Network User accounts. We're running Tiger server and all user accounts are stored on the server. We are using POP mail that is hosted externally. A user logs in to his
-
Pages '09 in full screen tooltip appears on other Spaces
Hi all, I'm using Lion 10.7.1, Pages '09 (4.1, 923) on a mid-2010 13" Macbook Pro. I love the full screen view on Pages and I use four desktops with Spaces. In the last couple of days I've used one of Pages' Newsletter templates (doesn't matter which
-
HT1212 what if your home button does not work to try to fix the connect to itunes problem?
How do you diable your locked i pod touch using itunes if your home button does not work?
-
Need a query/function to handle subsidiaries in a company tree
Hi, not sure this is the right forum category but here you go: I have a holding tree with more than 200 companies, and several layers. Each company is defined by: - a unique ID - a direct parent ID --> the company immediately above in the tree - an u
-
How do I merge Aperture libraries?
On rather poor advice, I started splitting my Aperture library by year -- I did this by setting up a smart album for each year and clicking "Export > Smart Album as New Library..." I now want to merge them back together but am not sure how. I am also