Grouping by ID column, but showing Name column in the Tree View.
Hi, i'm using Crystal Reports for Visual Studio 2010. I'm grouping my report by TenantID column. When i generate the report, it shows the TenantID in the TreeView (on the left side). Is there a way that i can group by TenantID, but show TenantName column in the TreeView? How would i do that?
P.S. The reason i don't want to group by TenantName is because, sometimes some tenants may have the same name, and i don't want the report to combine them.
Thanks so much.
Aron
Hi Aron,
Here the solution with screenshot-wise:
Step1: Go to Group Expert
2. Click ptions -> options
3. Check Customize Group Name Field > Choose TenantName column -> ok
Regards,
DJ
Similar Messages
-
CU Tcodes name missing in the tree view
I have activated the Compatible Unit enhancement. However in the tcodes tree view, only tcodes are displayed. Name of the trasaction is not displayed.
Also posted [here|http://www.sapfans.com/forums/viewtopic.php?f=7&t=314463]
-
mixed bag
1. I have a security app on my computer, Flashbrief. I have it checked in the hide column but whenever I turn on the computerit appears in the top menu line.
2. Whenever Iturn on the computer, a new blank document window in MS Word 2011 appears. I do not have this listed in the login items.
3. I have a current model of Apple wireless mouse. It keeps getting stuck in text or e-mails and I have to somehowotherwise move the cursor to break it free.
Help with any of these will be appreciated.
BF1. I have a security app on my computer, Flashbrief. I have it checked in the hide column but whenever I turn on the computerit appears in the top menu line.
I've never heard of this software, and cannot find any reference to it online, which is a bit concerning. What is it supposed to do? There really isn't much need for security software on a Mac.
2. Whenever Iturn on the computer, a new blank document window in MS Word 2011 appears. I do not have this listed in the login items.
In Mac OS X 10.7, any applications left open when you shut down or restart are re-opened at startup, and any documents left open in an app when you quit are re-opened when you launch them again. The former can be controlled by unchecking the box in the restart/shutdown alert:
You will need to do this each time you shut down or restart, it won't remember that setting.
The latter can be deactivated by unchecking the box in System Preferences -> General:
3. I have a current model of Apple wireless mouse. It keeps getting stuck in text or e-mails and I have to somehowotherwise move the cursor to break it free.
That does not sound normal, but I don't use a mouse with my MBP, so I can't provide a solution, other than to try replacing the batteries in the mouse. -
How do I search scanned documents that Adobe Reader reads but shows 0 results from the search?
How do I search scanned documents that Adobe Reader reads but shows 0 results from the search?
If the scanned document was not processed for OCR, then it is just an image and cannot be searched for text.
-
Show your tasks in the calendar view - Outlook Web App
Hi,
Is it possible to show your tasks in the calendar view in Outlook Web App 2013 ?
Some explanations of what I want to do :-)
We use Project Server so user can encode their work, this tasks are sync with an Exchange Server 2013 so tasks can be view in Outlook Web App. It's working really fine but we also want that in OWA, tasks are showed in a calendar so users can share what they
have to do.
How can we add the tasks into a calendar or how can an user can easily share what he do ?
Thanks,
PatmolHi Patmol,
Tasks are not listed in
calendar in Outlook/OWA, To view task you will have to go to
Tasks folder or view the task
in To-do bar. You can also see the tasks for the day
in calendar folder if you go to Daily Task List. There are no Add-ins from Microsoft that can add
tasks in the
calendar along with Meetings/Appointments.
Thanks,
James -
Catalog manager not showing the tree view
Hey Everyone
I cannot see the tree view when i login in the catalog manger in the online mode.What could be the reason? I can see only the \ folder but not the shared,system and users folders.I checked even the instance config file and made sure the path was right.
Thankswhat does emctl status dbconsole show?
Hi All,
I have installed 10g in Win 2000. Enterprise manager
was working fine after installation. I restarted the
Oracle Service (DB Service, TNS, iSQL, DBControl)
from services in Control Panel. Database is up and
working fine but the Enterprise Manager is not
working. When I am trying to use the EM through
Internet Explorer, it is not asking for any login and
showing as database as down. I am able to connect to
DB from client PC. Please advice. -
My iPad used to organize TV shows by show name, now all the shows are in one folder.
When I used to sync my iPad with iTunes, all my Tivoed TV shows would neatly organize according to show name. Now they are all dumped into one folder. It is frustrating. How can I get them organized again?
Peter
To move a library from an old machine to a new machine:
Simply copy the old Library to the Pictures Folder in your new machine and launch iPhoto. There is no importing involved.
When you imported the old library you lost all the albums and imported all the duplication.
Do you still have the old library? Then trash the new one and start over.
Regards
TD -
It appears that my iPhone 5 has a wifi signal reception issue. I only show one bar on the wifi signal meter even when I an next to the router. Both my Macbook Air and my iPad2 show full wifi signals at the same time. Rebooting the Apple router and each device results in the same meter readings.
Does this occur with any Wi-Fi connection? Or only a specific one?
If it occurs with any Wi-Fi connection, take it to Apple.
If it is only occurring with a specific Wi-Fi connection, it is an issue with that Wi-Fi connection.
Try the following, it may help:
Settings > General > Reset > Reset Network Settings.
Forget the Wi-Fi connection on the iPhone then reconnect.
Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new). -
How to hide a tree node from the GUI but still keep it in the tree model?
Hi, All
I used a JTree in my project in which I have a DefaultTreeModel to store all the tree structure and a JTree show it on the screen. But for some reason, I want to hide some of the nodes from the user, but I don't want to remove them from the tree model because later on I still need to use them.
I searched on the web, some people suggested method to hide the root node, but that's not appliable to my project because I want to hide some non-root nodes; Some people also suggested to collapse the parent node when there are child to hide, it is not appliable to me either, because there still some other childnodes (sibling of the node to hide) I want to show.
How can I hide some of the tree node from the user? Thanks for any information.
LindaHere's an example using a derivation of DefaultTreeModel that shows (or does not show) two types of Sneech (appologies to the good Dr Zeus) by overiding two methods on the model.
Now, there are many things wrong with this example (using instanceof, for example), but it's pretty tight and shows one way of doing what you want.
Note: to make it useful, you''d have to change the implementation of setShowStarBelliedSneeches() to do something more sophisticated than simply firing a structure change event on the root node. You'd want to find all the star bellied sneech nodes and call fireTreeNodesRemoved(). That way the tree would stay expanded rather than collapse as it does now.
import javax.swing.JTree;
import javax.swing.JScrollPane;
import javax.swing.JOptionPane;
import javax.swing.JCheckBox;
import javax.swing.JPanel;
import javax.swing.tree.TreePath;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.DefaultMutableTreeNode;
import java.awt.Dimension;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Enumeration;
class FilteredTree
private class PlainBelliedSneech {
public String toString() { return "Plain Bellied Sneech"; }
private class StarBelliedSneech {
public String toString() { return "Star Bellied Sneech"; }
private class FilteredTreeModel
extends DefaultTreeModel
private boolean mShowStarBelliedSneeches= true;
private DefaultMutableTreeNode mRoot;
FilteredTreeModel(DefaultMutableTreeNode root)
super(root);
mRoot= root;
public Object getChild(Object parent, int index)
DefaultMutableTreeNode node=
(DefaultMutableTreeNode) parent;
if (mShowStarBelliedSneeches)
return node.getChildAt(index);
int pos= 0;
for (int i= 0, cnt= 0; i< node.getChildCount(); i++) {
if (((DefaultMutableTreeNode) node.getChildAt(i)).getUserObject()
instanceof PlainBelliedSneech)
if (cnt++ == index) {
pos= i;
break;
return node.getChildAt(pos);
public int getChildCount(Object parent)
DefaultMutableTreeNode node=
(DefaultMutableTreeNode) parent;
if (mShowStarBelliedSneeches)
return node.getChildCount();
int childCount= 0;
Enumeration children= node.children();
while (children.hasMoreElements()) {
if (((DefaultMutableTreeNode) children.nextElement()).getUserObject()
instanceof PlainBelliedSneech)
childCount++;
return childCount;
public boolean getShowStarBelliedSneeches() {
return mShowStarBelliedSneeches;
public void setShowStarBelliedSneeches(boolean showStarBelliedSneeches)
if (showStarBelliedSneeches != mShowStarBelliedSneeches) {
mShowStarBelliedSneeches= showStarBelliedSneeches;
Object[] path= { mRoot };
int[] childIndices= new int[root.getChildCount()];
Object[] children= new Object[root.getChildCount()];
for (int i= 0; i< root.getChildCount(); i++) {
childIndices= i;
children[i]= root.getChildAt(i);
fireTreeStructureChanged(this, path, childIndices, children);
private FilteredTree()
final DefaultMutableTreeNode root= new DefaultMutableTreeNode("Root");
DefaultMutableTreeNode parent;
DefaultMutableTreeNode child;
for (int i= 0; i< 2; i++) {
parent= new DefaultMutableTreeNode(new PlainBelliedSneech());
root.add(parent);
for (int j= 0; j< 2; j++) {
child= new DefaultMutableTreeNode(new StarBelliedSneech());
parent.add(child);
for (int k= 0; k< 2; k++)
child.add(new DefaultMutableTreeNode(new PlainBelliedSneech()));
for (int j= 0; j< 2; j++)
parent.add(new DefaultMutableTreeNode(new PlainBelliedSneech()));
parent= new DefaultMutableTreeNode(new StarBelliedSneech());
root.add(parent);
for (int j= 0; j< 2; j++) {
child= new DefaultMutableTreeNode(new PlainBelliedSneech());
parent.add(child);
for (int k= 0; k< 2; k++)
child.add(new DefaultMutableTreeNode(new StarBelliedSneech()));
for (int j= 0; j< 2; j++)
parent.add(new DefaultMutableTreeNode(new StarBelliedSneech()));
final FilteredTreeModel model= new FilteredTreeModel(root);
JTree tree= new JTree(model);
tree.setShowsRootHandles(true);
tree.putClientProperty("JTree.lineStyle", "Angled");
tree.setRootVisible(false);
JScrollPane sp= new JScrollPane(tree);
sp.setPreferredSize(new Dimension(200,400));
final JCheckBox check= new JCheckBox("Show Star Bellied Sneeches");
check.setSelected(model.getShowStarBelliedSneeches());
check.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
model.setShowStarBelliedSneeches(check.isSelected());
JPanel panel= new JPanel(new BorderLayout());
panel.add(check, BorderLayout.NORTH);
panel.add(sp, BorderLayout.CENTER);
JOptionPane.showOptionDialog(
null, panel, "Sneeches on Beeches",
JOptionPane.DEFAULT_OPTION,
JOptionPane.PLAIN_MESSAGE,
null, new String[0], null
System.exit(0);
public static void main(String[] argv) {
new FilteredTree(); -
Hide column, but show results.
I am having trouble with hiding columns in BEx Analyser. The trick is not hiding the colomn, but hiding it and still showing the result.
It is been a long time since someone answered a question of mine on the forums, so I hope this one isn't too difficult as well (or unclear).
<BR><BR>
This is the situation:<BR>
I have two key figures in the Column pane (Actual Cost and Forecast cost) as well as Calender Month.<BR>
On the rows, it is grouped by Program Position and project.<BR><BR>
For the key figures I want to do the following...<BR>
Forecast Cost: I want to see it for every calender month, and a total at the end.<BR>
Actual cost: I only want to see a total at the end.<BR>
<BR>
Each Program position has multiple projects, and I want to see the total for all the projects in a program position.<BR>
<BR>
It will look like this:<BR>
<BR>
Jan_2007 Feb_2007 Mar_2007 <b>Overall_Result</b><BR>
Forecast Forecast Forecast <b>Forecast Actual</b><BR>
ProgPos1 Project1A 10000.00 10000.00 10000.00 <b>30000.00 98010.00</b><BR>
ProgPos1 Project1B 20000.00 20000.00 10000.00 <b>50000.00 48000.00</b><BR>
ProgPos1 Project1C 20000.00 20000.00 20000.00 <b>60000.00 59000.00<BR>
ProgPos1 RESULT 40000.00 50000.00 40000.00 140000.0 205010.0</b><BR>
ProgPos2 Project2A 10000.00 10000.00 10000.00 <b>30000.00 98010.00</b><BR>
ProgPos2 Project2B 20000.00 20000.00 10000.00 <b>50000.00 48000.00</b><BR>
ProgPos2 Project2C 20000.00 20000.00 20000.00 <b>60000.00 59000.00<BR>
ProgPos2 RESULT 40000.00 50000.00 40000.00 140000.0 205010.0<BR>
OVERALL RESULT 80000.00 100000.0 80000.00 280000.0 410020.0</b><BR>
<BR>
How can I get the actual to only show as a result?<BR>
My current properties for "Actual" are: <BR>
Calculate Results As...Summation<BR>
Calculate Single Values As...Suppress Results<BR>
Also Apply to results ... not checked (checking it doesn't work)<BR>
<BR>
Zero suppression is active on columns.<BR>
<BR>
This only works partially, because I get the following results (March column ommited:<BR>
<BR>
Jan_2007 -
Feb_2007 -
<b>Overall_Result</b><BR>
Forecast Actual__ Forecast Actual__ <b>Forecast Actual</b><BR>
ProgPos1 Project1A 10000.00 -
10000.00 -
<b>30000.00 98010.00</b><BR>
ProgPos1 Project1B 20000.00 -
20000.00 -
<b>50000.00 48000.00</b><BR>
ProgPos1 Project1C 20000.00 -
20000.00 -
<b>60000.00 59000.00<BR>
ProgPos1 RESULT 40000.00 40000.00 50000.00 100000.0 140000.0 205010.0</b><BR>
ProgPos1 Project1A 10000.00 -
10000.00 -
<b>30000.00 98010.00</b><BR>
ProgPos1 Project1B 20000.00 -
20000.00 -
<b>50000.00 48000.00</b><BR>
ProgPos1 Project1C 20000.00 -
20000.00 -
<b>60000.00 59000.00<BR>
ProgPos1 RESULT 40000.00 40000.00 50000.00 100000.0 140000.0 205010.0<BR>
OVERALL RESULT 80000.00 80000.00 100000.0 200000.0 280000.0 410020.0</b><BR>
<BR>
Any ideas?<BR>
If I check the "Also Apply to results" for either colums or rows, it removes all the results.<BR>
<BR>
Greets<BR>
Rudolph<BR>Rudolph,
You may want to do this in a copy of your existing query.
Remove anything in your columns for starters. Let's just look at Actual YTD first and we can do the Forecast afterwards.
Right mouse click on your Column and select Create Structure.
Right mouse click on this structure and select Create Selection.
In the selection dialogue box drag over your time parameter (Fiscal Period), the Value Type = 10, Actual and the key figure. We need to put a variable on Fiscal Period to allow the user enter a From / To range. Suggest that you do not pick a time interval - select a Value Range and then pick two Period single value mandatory selection prompt.
The reason we pick two prompts, is that when we look at the Forecast we will pick the first value they entered (presumably period 1 year x) and use offsets to create the following 11 periods.
Regards
Gill -
'group by' works good, but need another column
Hi,
I am seeking for better construction for next issue, this code is not good-readable and seems I can't add another column to returned output:
;WITH q AS (
SELECT srvs.description as srv, apps.description as app
FROM srv_link_app as link LEFT JOIN servers as srvs
ON link.srv = srvs.id
LEFT JOIN apps
ON link.app = apps.id
SELECT
FROM (
SELECT DISTINCT app
FROM q
) qo CROSS APPLY
SELECT CASE ROW_NUMBER() OVER(ORDER BY srv) WHEN 1 THEN '' ELSE '; ' END + qi.srv
FROM q qi
WHERE qi.app = qo.app
ORDER BY
srv
FOR XML PATH ('')
) qi(srv)
Works perfect, It connects 3 tables: apps, servers, link and groupy by column servers. So,
link table is auxiliary connection.
Output is:
app1 | server1;server3
app16 | server6;server13
It's good but I need add another column app.long_info, for example (Output):
app1|srv1;srv2;srv5 | app.long_info hereCan you post DDL? What little you showed us is a mess. You have a magic generic “description” that transform from servers to applications in violation of ISO-11179 Standards, logic and data modeling. Likewise, you have the classic noob “id” that also morphs
from servers to applications. I will bet it can be a squid or an automobile, too!
>> So, link_table is auxiliary connection. <<
Auxiliary connections?? I never head that term before and I think been around SQL for awhile :). The term “link” comes from 1970's network databases. It was a type of pointer structure. Pointers connect, references do not. We would never use it in RDBMS. We
have n:m, 1:m or n:1 relationships and the relationships have real names. Using OUTER JOINs makes no sense.
Next, I see you hate Dr. Codd and First Normal Form (1NF). You use XML to make the code hard to port, hard to maintain an unpredictable. Good SQL programmers write and do not do display formatting in the query. This is the principle of any tiered architecture,
not just SQL.
Here is my guess, with clean up:
CREATE TABLE Applications
(app_id CHAR(12) NOT NULL PRIMARY KEY,
app_description VARCHAR(25) NOT NULL,
CREATE TABLE Servers
(server_id CHAR(12) NOT NULL PRIMARY KEY,
server_description VARCHAR(25) NOT NULL,
CREATE TABLE Application_Assignments
(app_id CHAR(12) NOT NULL
REFERENCES Applications
ON DELETE CASCADE
ON UPDATE CASCADE,
server_id CHAR(12) NOT NULL
REFERENCES Servers
ON DELETE CASCADE
ON UPDATE CASCADE,
PRIMARY KEY (app_id, server_id),
Since we have no sample data, no sample output, we can only guess. But your terms an approach are completely wrong. Have read any book on data modeling or RDBMS?
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
Auto size columns but with hidden columns
I want to hide some columns for interal use with the following statements:
jTable.getColumnModel().getColumn(i).setMaxWidth(0);
jTable.getColumnModel().getColumn(i).setMinWidth(0);
jTable.getColumnModel().getColumn(i).setPreferredWidth(0);
Now I find that the widths of hidden columns become not zero.
But I still want to auto-size the columns, so I add
setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
Then I find that the widths of hidden columns become not zero.
Could anyone tell me how to auto size the columns while keeping the hidden columns with zero widths?
Thanks!If you want to hide columns then remove them from the TableColumnModel. The data is not removed, the columns are just not painted. Here is an example:
http://forum.java.sun.com/thread.jsp?forum=31&thread=411506 -
Group Policy for Desktop background applied but showing black desktop in the client end
Trying to set wallpaper in group policy but it's coming up blank.We have windows 2008 and 2012 server.most of the computer is windows 7.
Hi,
Does this issue occur to all computers?
Besides, can the users access the wallpaper?
If this issue just happens to Windows 7, we can try applying the hotfix in the following article.
The "Desktop Wallpaper" Group Policy setting is not applied in Windows 7 or in Windows Server 2008 R2
http://support.microsoft.com/kb/977944/en-us
If the issue persists, we can refer to the following thread to troubleshoot the problem.
Black Desktop wall paper after implementing group policy
http://social.technet.microsoft.com/Forums/windowsserver/en-US/0c36d7bf-4694-46e1-b408-d644111c0264/black-desktop-wall-paper-after-implementing-group-policy?forum=winserverGP
Best regards,
Frank Shen -
Group employees by dept but show dept only once
Hi Gurus...
I have a query that returns the following result set...
DEPT# EMP#
10 101
10 102
10 103
20 201
20 202
20 203
However, I would need to have my result set as following, ie., show dept# only once for the list of employees in that dept...
DEPT# EMP#
10 101
102
103
20 201
202
203
Please suggest me the functions that I should be using to achieve this... Appreciate all your help in this reqard...
Thanks in adavance,
VivekSQL> SELECT EDEPCODE, ECODE, SUBSTR(ENAME,1,10) ENAME
2 FROM EMP;
EDEPCODE ECODE ENAME
10 1 ABC
10 2 DEF
10 3 GHI
20 4 JKL
20 5 MNO
20 6 PQR
10 7 MNO
7 rows selected.
SQL> SELECT
2 DECODE(ROW_NUMBER() OVER (PARTITION BY EDEPCODE ORDER BY ECODE),1,EDEPCODE,NULL) EDEPCODE,
3 ecode, SUBSTR(ename,1,10) AS ENAME
4 FROM emp;
EDEPCODE ECODE ENAME
10 1 ABC
2 DEF
3 GHI
7 MNO
20 4 JKL
5 MNO
6 PQR -
I have ran itunes diagnostic tests SEVERAL times and says no ipod,iphone,or ipad found.is it my cord?(because this cord im using still charges the ipod)Or is it the ipod charger port? or my usb ports on the laptop (cause ive tried every usb port,same results).please help!!
Hello, Fuentes94.
Thank you for visiting Apple Support Communities.
If your device in not recognized in iTunes, I would try the steps in the article below. Start with the section labeled Verify that the Apple Mobile Device USB Driver is installed > For Windows Vista, Windows 7, and Windows 8 > Update the Apple Mobile Device Driver.
iOS: Device not recognized in iTunes for Windows
http://support.apple.com/kb/TS1538
Cheers,
Jason H.
Maybe you are looking for
-
Assigning category to orders based on specific criteria (CIF Outbound)
Hi Experts, would you know if there is a user exit or a BADI, for outbound CIF from R3 to APO, which could assign specific order category to an order based on our own conditions? We would put these conditions in our code in this exit. The order type
-
SRM 7.0 Add Fields in Account Assignment Table
Hi SRM Gurus, I am working on SRM7.0. I want to add two fields in Account Assignment Table in Account assignment tab of Shopping cart Item. I can do it using WebDynpro Enhancement framework , i.e. 1) Create an append structure for Structure INCL_EEW_
-
HI All, I created a BPM in our upgraded PI 7.0 SP10 server. However every message is getting the scheduled in Outbound queue(Green Flag) while trying to go to the BPE. I checked SMQ1 and found that the messages are failing with the following error "
-
How come Facebook randomly won't work with Safari?
Whenever I try to access Facebook on Safari, it says "Safari cannot establish a secure connection to the server". I've tried looking at my firewall, parental controls, deleted cookies. I've reset safari and my router. I downloaded google chrome, and
-
Animation Tweening is producing a transparent to opaque transition
I have two frames with the start and end of my animation. My two layers contain a transparent background and an opaque object. When I choose the tweening option and add my specified number of frames, then test the animation, the start of the animatio