Value in Query align by left
Hi Experts,
I have a problem in B1 query.
For example my query is as follow
Select 1.001
B1 query will show
1 : align by right
The problem is that the value is not 1.001
If I change the query
Select '1.001'
B1 query will show
1.001 : align by left
The value is ok, but the alignment is left. How to let the value align by right?
Glen
That is normal behavior of query result. The first one is number so that will be aligned right. The second one is text so that will be left. Everything within ' ' would be a text no matter it is letter or number.
Thanks,
Gordon
Similar Messages
-
Dump when trying to display characteristic values in QUERY DESIGNER
Hi Experts,
Life seems to become a struggle with 7.0 for me :-(.
My current problem:
If I try to display characteristic values in Query Designer (left section of screnn, wthin dimensions) system dumps frequently.
It's that kind of dump, that doen't help really (to my oponion)_
What happened?
The exception 'CX_RSR_X_MESSAGE' was raised, but it was not caught anywhere
along
the call hierarchy.
Since exceptions represent error situations and this error was not
adequately responded to, the running ABAP program
'CL_RSBOLAP_BICS_SERVICES======CP' has to be
terminated.
How to correct the error
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"UNCAUGHT_EXCEPTION" "CX_RSR_X_MESSAGE"
"CL_RSBOLAP_BICS_SERVICES======CP" or "CL_RSBOLAP_BICS_SERVICES======CM003"
"HANDLE_UNCAUGHT_EXCEPTION"
... etc.
BW 79, SP21
GUI 7100.4.14.3136
Any ideas?
Thanks in Advance and Regards
JoeHi Vikram,
Thanks for reply. Reinstalling GUI was successful, but - error still occurs. ..
Regards
Joe
Edited by: J.F.B. on May 28, 2010 3:02 PM -
MenuBar Component - Aligning Menu Left
Hello all,
I have a quick question. Is it possible to set the menubar
component so that it's submenu is configured to display to the left
( if it was on the far left of the screen)?
Currently I have it placed on the left side of the screen,
with text aligned to right. The following problems occur :
The arrows that are displayed when a menu has children is on
the right, is it possible to align it left?
The 2nd/3d level submenus open on TOP of their parent menu,
instead of to the left, like I would like them to.
Is there a sort of static property or something that I'm not
finding that is made to align the entire menu to the right?
Screenshot
HereCan you please explain why you have PHP code inside your CSS body selector?
PHP does not belong in your CSS code.
body{
<?php
// define variables and set to empty values
$nameErr = $emailErr = $genderErr = $websiteErr = "";
$name = $email = $gender = $comment = $website = "";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (empty($_POST["name"])) {
$nameErr = "Name is required";
} else {
$name = test_input($_POST["name"]);
// check if name only contains letters and whitespace
if (!preg_match("/^[a-zA-Z ]*$/",$name)) {
$nameErr = "Only letters and white space allowed";
if (empty($_POST["email"])) {
$emailErr = "Email is required";
} else {
$email = test_input($_POST["email"]);
// check if e-mail address is well-formed
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
$emailErr = "Invalid email format";
if (empty($_POST["website"])) {
$website = "";
} else {
$website = test_input($_POST["website"]);
// check if URL address syntax is valid (this regular expression also allows dashes in the URL)
if (!preg_match("/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%= ~_|]/i",$website)) {
$websiteErr = "Invalid URL";
if (empty($_POST["comment"])) {
$comment = "";
} else {
$comment = test_input($_POST["comment"]);
if (empty($_POST["gender"])) {
$genderErr = "Gender is required";
} else {
$gender = test_input($_POST["gender"]);
function test_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
Nancy O. -
On left hand side of query designer what are the char values on query for an infoobject is it master or transaction data.
Regards,
ManishHi,
On Left hand side we have Key Figures, Dimensions which contain Characteristics ,Calc KF, Restricted KF and Time Characteristics. We can see Master data for the Characteristics here but it is suggested to Drag particular Char to Rows and see desired master data attributes here in the Report.
Hope This Helps,
Regards,
rik -
Hi All,
the code below suppose to show a list with a few buttons below.
in this dialog i have only minor problem.
The problem is that all my buttons aligned to left size.
if i omit line number 193 (jButtonPane.setLayout(new GridLayout(1,nOfButtons,1,1))),
it centralized but i am loosing the behaviour of the buttons.
when i shrinking the dialog the button dissapear:
and i need that the button will show like:
[OK...] [Cancel...] etc...
how can i centralized the buttons and still not "lost" the buttons.
this is my code:
package test;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GraphicsEnvironment;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.DefaultListModel;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
public class DialogFrame {
String Message2Show="Default Message";
JButton[] ButtonArray;
String [] btnArrayText;
String [] lineArray;
String Title;
int nOfButtons;
int nOfLines;
String[] data;
private JPanel jContentPane = null;
private JPanel jButtonPane = null;
private JPanel jmessagePane = null;
private JList MessageList=null;
private JScrollPane jScrollPane = null;
private JPanel jPanel2 = null;
private DefaultListModel listModel;
private static int DialogWidthPreferedSize=500;
private static int DialogHightPreferedSize=200;
final static boolean shouldFill = true;
final static boolean shouldWeightX = true;
final static boolean RIGHT_TO_LEFT = false;
//Specify the look and feel to use. Valid values:
//null (use the default), "Metal", "System", "Motif", "GTK+"
final static String LOOKANDFEEL = "System";
public DialogFrame() {
// TODO Auto-generated constructor stub
// creating and showing this application's GUI.
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
public DialogFrame(String message) {
// TODO Auto-generated constructor stub
ParseMessage(message);
// for test add data
AddData2Message();
//creating and showing this application's GUI.
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
private void createAndShowGUI() {
initLookAndFeel();
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
JFrame frame = new JFrame(Title);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Display the window.
int maxHeight = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()[0].getDisplayMode().getHeight();
int maxWidth = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()[0].getDisplayMode().getWidth();
frame.pack();
frame.setSize(DialogWidthPreferedSize, DialogHightPreferedSize);
frame.setLocation(GetWidth(maxWidth),GetHeight(maxHeight));
frame.setContentPane(getJContentPane());
frame.setVisible(true);
private void initLookAndFeel() {
String lookAndFeel = null;
if (LOOKANDFEEL != null) {
if (LOOKANDFEEL.equals("Metal")) {
lookAndFeel = UIManager.getCrossPlatformLookAndFeelClassName();
} else if (LOOKANDFEEL.equals("System")) {
lookAndFeel = UIManager.getSystemLookAndFeelClassName();
} else if (LOOKANDFEEL.equals("Motif")) {
lookAndFeel = "com.sun.java.swing.plaf.motif.MotifLookAndFeel";
} else if (LOOKANDFEEL.equals("GTK+")) { //new in 1.4.2
lookAndFeel = "com.sun.java.swing.plaf.gtk.GTKLookAndFeel";
} else {
System.err.println("Unexpected value of LOOKANDFEEL specified: "
+ LOOKANDFEEL);
lookAndFeel = UIManager.getCrossPlatformLookAndFeelClassName();
try {
UIManager.setLookAndFeel(lookAndFeel);
} catch (ClassNotFoundException e) {
System.err.println("Couldn't find class for specified look and feel:"
+ lookAndFeel);
System.err.println("Did you include the L&F library in the class path?");
System.err.println("Using the default look and feel.");
} catch (UnsupportedLookAndFeelException e) {
System.err.println("Can't use the specified look and feel ("
+ lookAndFeel
+ ") on this platform.");
System.err.println("Using the default look and feel.");
} catch (Exception e) {
System.err.println("Couldn't get specified look and feel ("
+ lookAndFeel
+ "), for some reason.");
System.err.println("Using the default look and feel.");
e.printStackTrace();
private JPanel getJContentPane()
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(new BorderLayout());
//FOR THE LIST
jContentPane.add(getMessagePanel(), BorderLayout.CENTER);
//FOR THE BUTTONS
jContentPane.add(getButtonPanel(), BorderLayout.SOUTH);
return jContentPane;
/******* FOR THE LIST **********/
private JPanel getMessagePanel()
if (jmessagePane == null)
jmessagePane = new JPanel();
jmessagePane.setLayout(new GridLayout(1,0));
jmessagePane.add(getJScrollPane(), null);
return jmessagePane;
private JScrollPane getJScrollPane() {
if (jScrollPane == null) {
jScrollPane = new JScrollPane();
jScrollPane.setViewportView(getMessage());
return jScrollPane;
private JList getMessage() {
if (MessageList == null) {
MessageList = new JList(listModel);
MessageList.setBackground(Color.cyan);
return MessageList;
/******* FOR THE BUTTON **********/
private JPanel getButtonPanel()
if (jButtonPane == null)
jButtonPane = new JPanel();
jButtonPane.setLayout(new GridLayout(1,nOfButtons,1,1));//test
jButtonPane.add(getJPanel2(),null);
return jButtonPane;
private JPanel getJPanel2()
if (jPanel2 == null)
jPanel2 = new JPanel();
jPanel2.setLayout(new GridLayout(0,nOfButtons));
//Cretae Buttons Dynamically Regard user request
ButtonArray=new JButton[nOfButtons];
//Crteate Button objects
for(int i=0;i<nOfButtons;i++)
getButton(btnArrayText,i);
//add buttons to panel
for(int i=0;i<nOfButtons;i++)
jButtonPane.add(ButtonArray[i]);
return jPanel2;
private JButton getButton(String Text,int ind) {
ButtonArray[ind] = new JButton(Text);
ActionListener l = new ActionListener()
public void actionPerformed(ActionEvent e)
JButton SelectedButton = (JButton)e.getSource();
String ac = SelectedButton.getActionCommand();
MyActionEvents(ac,SelectedButton);
ButtonArray[ind].setActionCommand(String.valueOf(ind + 1));
ButtonArray[ind].addActionListener(l);
return ButtonArray[ind];
private int GetWidth(int maxWidth){
int x=0;
x=(maxWidth/2)-(DialogWidthPreferedSize/2);
return x;
private int GetHeight(int maxHeight){
int y=0;
y=(maxHeight/2)-(DialogHightPreferedSize/2);
return y;
void ParseMessage(String message)
Title="";
String value="";
int loc;
/*****************TITLE TREATMENT*********************/
for ( loc=0; loc<message.length() && message.charAt(loc) != ':'; loc++)
Title += message.charAt(loc);
//Title += ":";
/*****************BUTTON TREATMENT*********************/
message = (message.substring(loc+1)).trim();
value = "";
for (loc=0; loc<message.length() && message.charAt(loc) != ':'; loc++) value += message.charAt(loc);
nOfButtons=Integer.parseInt(value);
btnArrayText=new String[nOfButtons];
for (int i=0; i<nOfButtons; i++)
message = (message.substring(loc+1)).trim();
value = "";
for (loc=0; loc<message.length() && message.charAt(loc) != ':'; loc++) value += message.charAt(loc);
btnArrayText[i] = value;
/*****************TEXT TREATMENT*********************/
message = (message.substring(loc+1)).trim();
value = "";
for (loc=0; loc<message.length() && message.charAt(loc) != ':'; loc++) value += message.charAt(loc);
nOfLines = Integer.parseInt(value);
lineArray = new String[nOfLines];
for (int i=0; i<nOfLines; i++) {
message = (message.substring(loc+1)).trim(); value = "";
for (loc=0; loc<message.length() && message.charAt(loc) != ':'; loc++) value += message.charAt(loc);
lineArray[i]=value;
private void MyActionEvents(String actionCommand,JButton SelectedButton)
int val;
val=Integer.parseInt(actionCommand);
switch(val)
case 1:
System.out.println("ac = " + actionCommand);
break;
case 2:
System.out.println("ac = " + actionCommand);
break;
case 3:
System.out.println("ac = " + actionCommand);
break;
case 4:
System.out.println("ac = " + actionCommand);
break;
case 5:
System.out.println("ac = " + actionCommand);
break;
case 6:
System.out.println("ac = " + actionCommand);
break;
case 7:
System.out.println("ac = " + actionCommand);
break;
case 8:
System.out.println("ac = " + actionCommand);
break;
int size = listModel.getSize();
String Name=SelectedButton.getText();
listModel.insertElementAt(Name,size);
//For testing
private void AddData2Message()
listModel = new DefaultListModel();
data=new String[lineArray.length];
for(int i=0;i<lineArray.length;i++)
listModel.addElement(lineArray[i]);
Tia
GabiThe arrow to open the tab history of the Back and Forward buttons has been removed in Firefox 4 and later.
Use one of these methods to open the tab history list:
* Right click on the Back or Forward button
* Hold down the left mouse button on the enabled Back or Forward button until the list opens
You can look at this extension:
* Backward Forward History Dropdown: https://addons.mozilla.org/firefox/addon/backforedrop/ -
How to get formated value from query
i get value from query use the follow method
Object obj1 = dataAccess.getValue(i,j,DataMap.DATA_UNFORMATTED);
Object obj1 = dataAccess.getValue(i,j,DataMap.DATA_FORMATTED);
the first method retrun a value '1666.0',
the second method return a value null
but i want to get the value '1,666'.
who can tell me how can get the formated value?Ahu,
An implementation of DataAccess is not required to support all DataMap constants. For example, the OLAP-based Query object does not support DataMap.DATA_FORMATTED. To find out which DataMaps are supported for a particular implementation, you can call the DataDirector's getSupportedDataMap method.
If you have an Crosstab instance, there is a way to get the formatted cell value, based upon the formatting rules associated with the Crosstab. Get the GridViewFormatManager reference from the Crosstab, and call its formatDataValue method to return a String representation of the formatted data value.
Hope this helps,
djb -
I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query
parameter to report parameter i need to pass distinct values. How can i resolve thisHi nancharaiah,
If I understand correctly, you want to pass distinct values to report parameter. In Reporting Service, there are only three methods for parameter's Available Values:
None
Specify values
Get values from a query
If we utilize the third option that get values from a dataset query, then the all available values are from the returns of the dataset. So if we want to pass distinct values from a dataset, we need to make the dataset returns distinct values. The following
sample is for your reference:
Select distinct field_name from table_name
If you have any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Can we pass dynamic cell associated value [of scorecard] as query string parameter in custom hyperlink property of KPI of scorecard in PPS SP2013 , so that we can pass those values to another page
How to get those cell associated values and set these dynamic value as query string parameter in custom hyperlink property of KPI of scorecard in performance point services in sharepoint 2013I could somehow link to the table name, but that can be changed... Any ideas?
Not sure if this will help or not but maybe a little from several areas might point you in the right direction.
If you are concerned about users changing the table name then you can define a name to reference the table and then if the user changes the table name then the Refers to automatically changes to the new table reference but your defined name remains the same.
However, if users want to break a system even when you think you have it bullet proof the users come along with armour piercing bullets.
Example:
Insert a table (say Table1)
Go to Define a name and insert a name of choice (eg. ForMyTab1)
Then click the icon at the right of the Refers to field and select the entire table including the column headers and it will automatically insert something like the following in the Refers to field.
=Table1[#All]
Now if a user changes the table name then Table1 will also automatically change.
Example code to to reference the table in VBA.
Sub Test()
Dim wsSht1 As Worksheet
Dim lstObj1 As ListObject
Set wsSht1 = Worksheets("Sheet1")
Set lstObj1 = wsSht1.ListObjects(Range("ForMyTab1").ListObject.Name)
MsgBox lstObj1.Name
End Sub
Regards, OssieMac -
I want to sum up value at query level ]
at cube level
Material Year Period Qty
A 001.2007 100
B 001.2007 200
A 001.2007 300
C 002.2007 400
at query, I want to show it in this way. How to do that in query? I don't want to make any change in cube.
Material Year Period Qty
A 001.2007 400
B 001.2007 200
C 002.2007 400
Thanks.Hi,
You don't need to change cube. Just add year, period and material to row and qty to column. For period, select 'total' option.
Viswa -
Tabstrip's Push buttons are align by left in 1 place
Hi experts
I put a Tabstrip in my screen,but his Push buttons are align by left in 1 place,How can i do something to make the push buttons align 1 by 1.
BR
Chris huangThose MM Rollover Menus are awful. I'm not surprised you're having trouble with them.
The Sordid tale of MM Fireworks Menus
http://losingfight.com/blog/2006/08/11/the-sordid-tale-of-mm_menufw_menujs/
The best advice I can offer is to scrap the MM Rollovers you have now and use a good CSS Menu system.
DW Spry Menus
http://layersmagazine.com/spry-navigation-dreamweaver.html
CSS Express Drop-Down Menus (tutorial)
http://www.projectseven.com/tutorials/navigation/auto_hide/
List-O-Rama (Free DW Extension)
http://www.dmxzone.com/go?5618
Pop-Menu Magic2 by PVII (paid DW extension)
http://www.projectseven.com/products/menusystems/pmm2/index.htm
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Adding column values in query designer
Hi,
I have requirement to add value in query designer the values should look like this
Column A Column B
10 10
20 30
30 60
40 100
the first values of column B will be same as Column A 10. The second value of column B = column A 1st value +Column A second value similarly Third value of column B = 1st + 2nd + 3rd values of column a. So on and so forth
Any help will be highly appriciated.
Regards,
rayHi
Just create the formula and go to the properties of that formula and go to the calculattion tab and in the "CALCULATE SINGLE VALUE AS " select the option the additive ( not sure but once check that will perform additive operation plz once check it) and select the cumulative check box.
I think u can get it , because in one of my project i did that calculation.
Hope u got it,
Thanx & Regards,
RaviChandra -
How to get POF object's field value from query result
hi,all:
I want to get field value from the query result, my code is below
Set setResults = cache.entrySet(createFilter("homeAddress.state = 'MA'"));
for (Iterator iter = setResults.iterator(); iter.hasNext(); )
Contact c=(Contact)iter.next();
System.out.println ("firstame####=" + c.getFirstName());
* but I get error*
Exception in thread "main" java.lang.ClassCastException: com.tangosol.util.ConverterCollec
tions$ConverterEntrySet$ConverterEntry cannot be cast to com.oracle.handson.Contact
at com.oracle.handson.QueryExample.printResults(QueryExample.java:159)
at com.oracle.handson.QueryExample.query(QueryExample.java:86)
at com.oracle.handson.QueryExample.main(QueryExample.java:43)
who can tell me how to get POF object's field value from query resultHi,
If you look at the Java Doc for the entrySet method here http://download.oracle.com/docs/cd/E15357_01/coh.360/e15725/com/tangosol/util/QueryMap.html#entrySet_com_tangosol_util_Filter_ you will see that it returns a Set of Map.Entry instances so you need to do this...
Set setResults = cache.entrySet(createFilter("homeAddress.state = 'MA'"));
for (Iterator iter = setResults.iterator(); iter.hasNext(); )
Map.Entry entry = iter.next();
Contact c=(Contact)entry.getValue();
System.out.println ("firstame####=" + c.getFirstName());
}JK -
Font just does not align totally left
Hi folks, I need to know, how i can align the text totally to the border of the text frame, as you can see in the picture it just does not align totally left.
I´ve been searching the web for solutions but did not find anything. I tried "Textrahmenoptionen" - I guess in english it´s text frame options, but there everything seems so to be right, please help me. Thanks in advanceCheck this thread:
Re: Text alignment to column (not baseline) guides -
Cfinput 'datefield' always aligns to left
It appears that cfinput 'datefield' always aligns to left, I have tried everything I can think of to get it to align center (in the td, in a div, style in the input, etc) and it just wont align center, I even tried putting a bunch of in front of the input and it puts them on the right. Any Help would be appreciated.
Over the years I have moved away from using CF input validation and instead use jquery and the validation plug-in.
For a more direct answer, have you tried creating a "center" class with text-align set to !important:
.center{ text-align:center !important; }
Then adding this class to the cfinput tag? -
Hi All;
Below is my query and the output and i need to remove null values from the output
Any help regarding same is much appreciated
Thanks
; WITH CTE AS
select a.opportunityid,a.new_entrypoint_displayname,c.parentcustomerid,c.contactid,c.fullname,a.new_mainprogramme_idname,
a.new_subprogramme_idname,
a.owneridname,
a.new_dateofapplication,count(appt.activityid) as NoOfAppointments,
ap.scheduledstart,
ap.scheduleddurationminutes
from opportunity a
left join contact c on (c.contactid = a.parentcontactid)
inner join activitypointer ap on ( ap.regardingobjectid = c.contactid )
inner join appointment appt on (appt.activityid = ap.ActivityId)
where
appt.new_didmeetingtakeplace = 1
and appt.statecode = 1 and
(a.SCRIBE_DELETEDON is null and c.SCRIBE_DELETEDON is null and ap.SCRIBE_DELETEDON is null and appt.SCRIBE_DELETEDON is null)
group by a.opportunityid,a.new_entrypoint_displayname,c.parentcustomerid, c.contactid,c.fullname,a.owneridname,
a.new_mainprogramme_idname,a.new_subprogramme_idname,
a.new_dateofapplication,ap.scheduledstart,
ap.scheduleddurationminutes
union
select a.opportunityid,a.new_entrypoint_displayname,c.parentcustomerid,c.contactid,c.fullname,
a.new_mainprogramme_idname,a.new_subprogramme_idname,a.owneridname,
a.new_dateofapplication,count(appt.activityid) as NoOfAppointments,
ap.scheduledstart,
ap.scheduleddurationminutes
from opportunity a
left join contact c on (c.contactid = a.parentcontactid)
inner join activitypointer ap on (ap.regardingobjectid = a.opportunityid)
inner join appointment appt on (appt.activityid = ap.ActivityId)
where
appt.new_didmeetingtakeplace = 1
and appt.statecode = 1 and
(a.SCRIBE_DELETEDON is null and c.SCRIBE_DELETEDON is null and ap.SCRIBE_DELETEDON is null and appt.SCRIBE_DELETEDON is null)
group by a.opportunityid,a.new_entrypoint_displayname,c.parentcustomerid,c.contactid,a.owneridname,
a.new_mainprogramme_idname,a.new_subprogramme_idname,
c.fullname,a.new_dateofapplication,
ap.scheduledstart,
ap.scheduleddurationminutes
CTE2 As
select opportunityid,parentcustomerid,new_entrypoint_displayname,contactid,fullname,
new_mainprogramme_idname,new_subprogramme_idname,cte.owneridname,
ac.new_businessstartdate,new_dateofapplication,(NoOfAppointments),
case when ac.new_businessstartdate > = CTE.scheduledstart
then (CTE.scheduleddurationminutes) end as PreStartHours,
case when ac.new_businessstartdate < CTE.scheduledstart
then (CTE.scheduleddurationminutes) end as PostStartHours
pp.new_outputs,
case when po.new_outputsname = 'Pre Start Assist'
then 'Yes' else 'No' end as Precheck,
case when po.new_outputsname = 'Business Assist'
then 'Yes' else 'No' end as Buscheck
from CTE
join account ac on (ac.accountid = CTE.parentcustomerid)
join dbo.new_programmeoutput as po on (CTE.opportunityid = po.new_relatedopportunity)
join dbo.new_programmeprofile pp on (
po.new_mainprogrammeid = pp.new_mainprogrammeid and
po.new_subprogrammeid = pp.new_subprogrammeid
and pp.new_claimstartdate = po.new_claimdate
and pp.new_outputsname = po.new_outputsname)
where (ac.SCRIBE_DELETEDON is null)
group by opportunityid,parentcustomerid,new_entrypoint_displayname,contactid,fullname,ac.new_businessstartdate,new_dateofapplication,NoOfAppointments,
scheduledstart,new_mainprogramme_idname,new_subprogramme_idname,cte.owneridname,scheduleddurationminutes
select opportunityid,parentcustomerid,new_entrypoint_displayname,contactid,fullname,
new_mainprogramme_idname,new_subprogramme_idname,cte2.owneridname,
new_businessstartdate,new_dateofapplication,(NoOfAppointments),
PreStartHours, PostStartHours,po.new_programmeoutputid,
case when (new_outputsname) = 'Pre Start Assist'
then 'Yes' else 'No' end as Precheck,
case when (new_outputsname) = 'Business Assist'
then 'Yes' else 'No' end as Buscheck --po.*
from cte2
left join dbo.new_programmeoutput as po on (cte2.opportunityid = po.new_relatedopportunity)
where po.new_claimmonthidname is not null and po.statuscode_displayname = 'claimed'
group by opportunityid,parentcustomerid,new_entrypoint_displayname,contactid,fullname,
new_mainprogramme_idname,new_subprogramme_idname,cte2.owneridname,
new_businessstartdate,new_dateofapplication,(NoOfAppointments),
PreStartHours, PostStartHours,po.new_programmeoutputid,new_outputsname
--where new_claimmonthidname is not null --and CTE2.PreStartHours is not null and CTE2.PostStartHours is not null
Pradnya07i need to remove null values from the output
Hello,
What exactly do you mean with "remove", to filter the rows out from result set or to replace the null value by an other value e.g. 0? This can be done with the
ISNULL function:
ISNULL(case when ac.new_businessstartdate > = CTE.scheduledstart
then (CTE.scheduleddurationminutes) end, 0) as PreStartHours, ...
Olaf Helper
[ Blog] [ Xing] [ MVP]
Maybe you are looking for
-
I am using a download manager (of sorts), Getbot, and it picks up the 'copy link location' to download anything. The problem I have, as I already put in my question results in the wrong item being clicked upon and my e-mail client (Thunderbird) gets
-
To display output of ALV GRID in background.
Hi, I have a report which is giving TIMEOUT error .This report is interactive( it calls a standard transaction based on user action ) If i run this report in background then I can see the output through spool in basic list . Whether it is possible
-
Using two Time Capsules - 2nd as backup drive without internet
Let me explain the setup first: I have Motorola SurfBoard SBG6580 <-> to this is connected my NEW Time Capsule 3TB via Ethernet This new 3TB TC provides internet and Time Machine back ups to my iMac and Macbook. So far everything is good! Now, I have
-
So I have set up the new Time Capsule baked up everything, created a new network and put the ATV on it but I don't seem to be able to connect to the Capsule with the ATV. The macbooks on. iTunes is cranked up.....what have I missed?
-
Hello, I have a problem with the VAT Register numbers in Italy. This is a serious issue for the Italian authorities. The number of the month of June starts with 2008/1 instead of 2008/8. The last printing was related to April month and the last page