How to enter hierarchy-variables directly (without choosing from a list)
Hi folks,
using business explorer Support Package 18 Patch 2 (and earlier) we face the following problem:
when having to enter a hierarchy-node as variable one has to choose the node from the history-list or even from the hierarchy itselft.
As we have many nodes that´s pretty boring and we would like to enter the code of the nodes (eg. "EAST") directly into the variable-field. Pressing does not work.
Has anyone an idea if there is another way to enter the code directly into the field?
Thx and best regards,
Thomas
Edited by: Thomas Kejik on Oct 8, 2008 3:49 PM
Hi folks,
using business explorer Support Package 18 Patch 2 (and earlier) we face the following problem:
when having to enter a hierarchy-node as variable one has to choose the node from the history-list or even from the hierarchy itselft.
As we have many nodes that´s pretty boring and we would like to enter the code of the nodes (eg. "EAST") directly into the variable-field. Pressing does not work.
Has anyone an idea if there is another way to enter the code directly into the field?
Thx and best regards,
Thomas
Edited by: Thomas Kejik on Oct 8, 2008 3:49 PM
Similar Messages
-
How can i make an MDB to choose from a list of Queues
In my application i am having 40 Queues in all, now my present MDB is configured to read messages from only one Queue and act upon it. Now in order to handle messages from 20 different Queues, do i need to deploy 20 MDBs , one for each Queue. Ot is it possible to program a single MDB in such a way so that it can act on 20 or more queues, taking one Q at a time.
rc...hi jm4rc,
until the ejb 2.1 specifications, it does not specify that you can or cannot define more
than one destination per consumer or MDB. however, the specification is consistent
about mentioning a destination per MDB which uses Queues as end pont, hence is
called PTPP (point-to-point protocol), e.g, from "one" end to "another".
if you do define in your descriptor file that your MDB (consumer) should listen to more
than one destination, the behavior is not specified nor defined at how the container
will handle a scenario, i.e., it can behave properly or troublesome.
if your intention is to allow your MDB to listen to multiple destination, you might want
to configure your MDBs to become "subscriber", rather than "consumer" so that it
may be able to listen to more than one end-point and you could also configure it to
publish message to more than one end-point as well.
in the end, you may have to define only a single MDB to process messages that will
arrive at many end-points. after all, container can instantiate multiple instances of
one MDB type, maintain them in the pool, activate them to process several requests
simultaneously.
regards, -
How to create Hierarchy Variable
Hi,
Can any one please tell me (step by step) how to craete Hierarchy Variable for Prod Hierarchy?
Please do not give help.sap.com link..its very confusing and did not help me at all.
ThanksHello Shalini,
You need to follow the below steps
For hierarchy
1) To create a hierarchy variable, you need to select the characteristic with the hierarchy. Go to the hierarchy tab in the object properties. Select hierarchy -> Hierarchy variable.
2) Go to select hierarchy variable and new variable.
3) Give technical name and description, and other details as per requirement.
4) Save the variable and select the variable.
For Hierarchy node variable
1) To create a hierarchy node variable, Select a characteristic which has a hierarchy. Select Restrict from the context menu. Select Variable in the Select value list box. Select create new variable.
2) Give technical name and description and other details as per requirement. Select type of variable as HIERARCHY NODE
3) Save and select the variable.
Hope this helps,
Regards. -
How to getFocus in a ComboBox without choosing the inside data?
How to getFocus in a ComboBox without choosing the inside data? Once I clicked on the ComboBox, I couldnt get the focus unless I choose the data inside. Although I had tried with many different types listeners, but still couldnt get it. Could anyone help me???
It is easier to work with the JComboBox in 1.4 for what you want to do.
But try this and see if it works for you. I added a FocusListener to all the other components on the panel, and had them close the combo box popup list. Now, if another component previously had the focus, it would take 2 clicks to have the combo box's list pop up. It's quite round-about, but it seems to work.
I also printed a message on the console.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.event.*;
public class ComboBoxPopupTest
public static void main( String [] args )
final JComboBox comboBox = new JComboBox( new Object [] { "one", "two",
"three", "four" } );
JButton button = new JButton( "huh" );
JButton button2 = new JButton( "Yo, baby!" );
final JPanel panel = new JPanel();
final Runnable hidePopup =
new Runnable()
public void run()
// This method is deprecated in 1.4.
// But you won't need it in 1.4 anyway...
Component comp = SwingUtilities.findFocusOwner(panel);
if ( comp != null )
if ( comp.getClass().toString().indexOf("ComboBox") > -1 )
comboBox.setPopupVisible( false );
System.out.println( "helloooo comobox" );
}; // end the Runnable
FocusListener focusListener = new FocusAdapter() {
public void focusLost( FocusEvent evt )
SwingUtilities.invokeLater( hidePopup );
// In Java 1.4, just add a focus listener to the combo box
// instead of adding it to all the other components.
button.addFocusListener( focusListener );
button2.addFocusListener( focusListener );
panel.add( comboBox );
panel.add( button );
panel.add( button2 );
JFrame frame = new JFrame( "Hello" );
frame.getContentPane().add( panel, BorderLayout.CENTER );
frame.setSize( 400, 300 );
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
frame.setVisible( true );
}Tell me if that works for you. -
How can i remove unwanted e-mail address from my list?
how can i remove unwanted e-mail address from my list?
Go to settings -> mail contacts and calendars -> tap on the desired account and choose delete at the bottom of the page. This will delete the email accunt from the device.
-
How to use hierarchy variable.
Hi all ,
In 0Account I have four hierarchies , please tell me how can I use all these 4 hierarchies in a single BEx query.
Presently I am able use only one hierarchy .
With regardsHi,
If u want the user to be able to choose 1 of the 4 hierarchies, in the hierarchy tab of the properties of 0ACCOUNT in BEx Query Designer, click on the white button beside "Select Hierarchy" and then on the white button present against the drilldown for Hierarchy Variables. Create a new variable there & then select it from the drilldown. You should then be able to use the variable & select 1 of the 4 hierarchies. -
Hi,
Currently, we are using crystal report to all of our reporting applications, but since I/users have encountered some issues about CR's speed to load only a simple report, maybe it is now time for us to adopt a new reporting environment in which I think SSRS
can fill this problem.
To start with, I have here a sample code, that uses the crystal report to print the report directly without previewing:
csCashInvoiceCal csCashCal; --Crystal report name .rpt
dsCsReceipt dsCs; --created dataset
DataTable u;
DataRow s;
private System.Drawing.Printing.PrintDocument printDocument1;
private System.Windows.Forms.PrintDialog printDialog1;
ParameterValues paramValue;
ParameterDiscreteValue discreteValue;
ParameterFieldDefinition fieldDefinition;
private void btnPrint_Click(object sender, EventArgs e)
this.Cursor = Cursors.WaitCursor;
loadReceipt2();
print2();
csCashCal.Close();
this.Cursor = Cursors.Default;
private void loadReceipt2()
dsCs = new dsCsReceipt(); --created dataset
u = dsCs.Tables.Add("DtCsReceipt");
u.Columns.Add("Qty", Type.GetType("System.String"));
u.Columns.Add("UOM", Type.GetType("System.String"));
u.Columns.Add("Description", Type.GetType("System.String"));
u.Columns.Add("UnitPrice", Type.GetType("System.String"));
u.Columns.Add("Discount", Type.GetType("System.String"));
u.Columns.Add("Amount", Type.GetType("System.String"));
try
for (int i = 0; i < dgvDesc.Rows.Count - 1; i++)
s = u.NewRow(); double.TryParse(dgvDesc.Rows[i].Cells[Discount2.Name].Value.ToString(), out discount);
s["Qty"] = double.Parse(dgvDesc.Rows[i].Cells[Qty.Name].Value.ToString());
s["UOM"] = dgvDesc.Rows[i].Cells[Uom2.Name].Value.ToString();
s["Description"] = invcode + dgvDesc.Rows[i].Cells[Description.Name].Value.ToString();
s["UnitPrice"] = dgvDesc.Rows[i].Cells[UnitPrice.Name].Value.ToString();
if (discount != 0)
s["Discount"] = "(" + string.Format("{0:0.##}", discount) + "%)";
else
s["Discount"] = "";
s["Amount"] = dgvDesc.Rows[i].Cells[Amount2.Name].Value.ToString();
u.Rows.Add(s);
catch (Exception) { }
csCashCal = new csCashInvoiceCal();
csCashCal.SetDataSource(dsCs.Tables[1]);
//csCashCal.Refresh();
loadParameter2();
private void loadParameter2()
ParameterFieldDefinitions paramFieldDefinitions;
paramValue = new ParameterValues();
discreteValue = new ParameterDiscreteValue();
paramFieldDefinitions = csCashCal.DataDefinition.ParameterFields;
discreteValue.Value = date;
fieldDefinition = paramFieldDefinitions["Date"];
commonParam();
discreteValue.Value = txtcsno.Text;
fieldDefinition = paramFieldDefinitions["InvoiceNo"];
commonParam();
discreteValue.Value = txtNameTo.Text;
fieldDefinition = paramFieldDefinitions["CustomerName"];
commonParam();
discreteValue.Value = txtAdd.Text;
fieldDefinition = paramFieldDefinitions["CustomerAddress"];
commonParam();
------other parameters----
private void commonParam()
paramValue.Clear();
paramValue.Add(discreteValue);
fieldDefinition.ApplyCurrentValues(paramValue);
private void print2()
using (printDocument1 = new System.Drawing.Printing.PrintDocument())
using (this.printDialog1 = new PrintDialog())
//this.printDialog1.UseEXDialog = true;
this.printDialog1.Document = this.printDocument1;
DialogResult dr = this.printDialog1.ShowDialog();
if (dr == DialogResult.OK)
int nCopy = this.printDocument1.PrinterSettings.Copies;
int sPage = this.printDocument1.PrinterSettings.FromPage;
int ePage = this.printDocument1.PrinterSettings.ToPage;
string PrinterName = this.printDocument1.PrinterSettings.PrinterName;
try
csCashCal.PrintOptions.PrinterName = PrinterName;
csCashCal.PrintToPrinter(nCopy, false, sPage, ePage);
printcount++;
//saveCountPrint();
catch (Exception err)
MessageBox.Show(err.ToString());
This is only a simple sales receipt application that uses dgv and textboxes to push its data to dataset to the crystal report, a simple one but there are instances that it is very slow.
But I'm having trouble implementing this using SSRS, since I'm only new to this one, wherein I created the report using report wizard, with two button options inside the form for print preview or direct print selection. Actually, it is very easy to implement
with print preview because it uses reportviewer. My problem is that how can I print the report directly without using a reportviewer?
So here is my code so far which I don't know what's next:
private void button2_Click(object sender, EventArgs e)
this.Cursor = Cursors.WaitCursor;
loadReceipt3();
//print3();
this.Cursor = Cursors.Default;
ReportParameter[] parameter = new ReportParameter[11];
private void loadParameter3()
parameter[0] = new ReportParameter("InvoiceNo", txtcsno.Text);
parameter[1] = new ReportParameter("Date", date);
parameter[2] = new ReportParameter("CustomerTin", txtTin.Text);
parameter[3] = new ReportParameter("CustomerName", txtNameTo.Text);
parameter[4] = new ReportParameter("CustomerAddress", txtAdd.Text);
parameter[5] = new ReportParameter("Agent", agent);
parameter[6] = new ReportParameter("Discount", "Discount: ");
parameter[7] = new ReportParameter("TotalDiscount", lblDiscount.Text + "%");
parameter[8] = new ReportParameter("TotalSales", rdtotal);
parameter[9] = new ReportParameter("Tax", rdtax);
parameter[10] = new ReportParameter("TotalAmount", rdnet);
private void loadReceipt3()
DataSet dsrs = new DataSet();
DataTable dtrs = new DataTable();
DataRow drs;
dtrs.Columns.Add("Qty", Type.GetType("System.String"));
dtrs.Columns.Add("UOM", Type.GetType("System.String"));
dtrs.Columns.Add("Description", Type.GetType("System.String"));
dtrs.Columns.Add("UnitPrice", Type.GetType("System.String"));
dtrs.Columns.Add("Discount", Type.GetType("System.String"));
dtrs.Columns.Add("Amount", Type.GetType("System.String"));
try
for (int i = 0; i < dgvDesc.Rows.Count - 1; i++)
drs = dtrs.NewRow();
drs["Qty"] = double.Parse(dgvDesc.Rows[i].Cells[Qty.Name].Value.ToString());
drs["UOM"] = dgvDesc.Rows[i].Cells[Uom2.Name].Value.ToString();
drs["Description"] = invcode + dgvDesc.Rows[i].Cells[Description.Name].Value.ToString();
drs["UnitPrice"] = dgvDesc.Rows[i].Cells[UnitPrice.Name].Value.ToString();
if (discount != 0)
drs["Discount"] = "(" + string.Format("{0:0.##}", discount) + "%)";
else
drs["Discount"] = "";
drs["Amount"] = dgvDesc.Rows[i].Cells[Amount2.Name].Value.ToString();
dtrs.Rows.Add(s);
catch (Exception) { }
int addtlRow = 7;
if (addtlRow > (count - 1))
addtlRow = addtlRow - (count - 1);
for (int i = 0; i < addtlRow; i++)
dtrs.Rows.Add();
loadParameter3();
LocalReport localreport = new LocalReport();
localreport.SetParameters(parameter);
localreport.DataSources.Clear();
localreport.DataSources.Add(new ReportDataSource("dsSalesReceiptSsrs", dtrs));
localreport.Refresh();
//what's next....
So what's next after local..refresh()? Actually, I have googled a lot but I didn't found the exact solution that I'm looking for which confuses me a lot.
Anyway I'm using VS 2010 with sql server 2012 express.
You're help will be greatly appreciated.
Thank you,
HardzAfter some further studies with ReportViewer controls and with the use of this tutorial @ : http://msdn.microsoft.com/en-us/library/ms252091.aspx, which helps me a lot on how to print a report without using a report viewer, I found out what is missing
with my code above and helps solve my question.
Here's the continuation of the code above:
private void loadReceipt3()
loadParameter3();
LocalReport localreport = new LocalReport();
localreport.ReportPath = @"..\..\SsrsCashReceipt.rdlc";
localreport.SetParameters(parameter);
localreport.DataSources.Clear();
localreport.DataSources.Add(new ReportDataSource("dsSalesReceiptSsrs", dtrs));
Export(localreport);
print4();
private IList<Stream> m_streams;
private int m_currentPageIndex;
private void Export(LocalReport report)
string deviceInfo =
@"<DeviceInfo>
<OutputFormat>EMF</OutputFormat>
<PageWidth>8.5in</PageWidth>
<PageHeight>11in</PageHeight>
<MarginTop>0.25in</MarginTop>
<MarginLeft>0.25in</MarginLeft>
<MarginRight>0.25in</MarginRight>
<MarginBottom>0.25in</MarginBottom>
</DeviceInfo>";
Warning[] warnings;
m_streams = new List<Stream>();
report.Render("Image", deviceInfo, CreateStream,
out warnings);
foreach (Stream stream in m_streams)
stream.Position = 0;
private void print4()
if (m_streams == null || m_streams.Count == 0)
throw new Exception("Error: no stream to print.");
PrintDocument printDoc = new PrintDocument();
PrintDialog printDlg = new PrintDialog();
printDlg.Document = printDoc;
DialogResult dr = printDlg.ShowDialog();
if (dr == DialogResult.OK)
if (!printDoc.PrinterSettings.IsValid)
throw new Exception("Error: cannot find the default printer.");
else
printDoc.PrintPage += new PrintPageEventHandler(PrintPage);
m_currentPageIndex = 0;
printDoc.Print();
Dispose();
public void Dispose()
if (m_streams != null)
foreach (Stream stream in m_streams)
stream.Close();
m_streams = null;
private Stream CreateStream(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek)
Stream stream = new FileStream(name + "." + fileNameExtension,
FileMode.Create);
m_streams.Add(stream);
return stream;
private void PrintPage(object sender, PrintPageEventArgs ev)
Metafile pageImage = new
Metafile(m_streams[m_currentPageIndex]);
// Adjust rectangular area with printer margins.
Rectangle adjustedRect = new Rectangle(
ev.PageBounds.Left - (int)ev.PageSettings.HardMarginX,
ev.PageBounds.Top - (int)ev.PageSettings.HardMarginY,
ev.PageBounds.Width,
ev.PageBounds.Height);
// Draw a white background for the report
ev.Graphics.FillRectangle(Brushes.White, adjustedRect);
// Draw the report content
ev.Graphics.DrawImage(pageImage, adjustedRect);
// Prepare for the next page. Make sure we haven't hit the end.
m_currentPageIndex++;
ev.HasMorePages = (m_currentPageIndex < m_streams.Count);
Thank you very much for this wonderful tutorial. :) -
How to display Hierarchy Variable in BI 7.0 WAD
Hi Experts
I have a variable for Cost Center which is a Hierarchy Variable and not a Hierarchy Node Variable. I am using BI WAD 7.0 and my requirement is that the user wants to see for what Hierarchy s/he ran for.
I am using a Information Web Item whihc is under Advanced tab. After dragging that I check the box for Variables so that the user see all the variables he ran for and after s/he prints its more precise report.
My problem is I cant see the Hierarchy variable value in my Web Template ....I can see at the variable POP UP screen I enter my Hierarchy but after executing it I dont see my Hierarchy variable value.
Your suggestions will be reciprocated with Points.
ThanksHello Experts,
To substantiate my earlier question ...I have 3 Hierarchies for 0COSTCENTER
In the WAD under the Information Web ITem i check the box for
Display Variables (VARIABLES_VISIBLE)
I have 3 variables
1) Hierarchy Variable : user will pick 1 out of 3 Hierarchy
(not a node but entire Hierarchy)
2) Fiscal Year/period
3) Value type
But I can see only 2 variables after the Web template is executed , the user wants to see for what hierarchy it ran when it prints the report
Your suggestions are supremely appreciated
Thanks
Nick -
How to enter bind variables in Calender SQL statement
Hi,
Anyone know how to include bind variables in Calender SQL statement. Let's say in sql statement below:
select
EMP.HIREDATE the_date,
EMP.ENAME the_name,
null the_name_link,
null the_date_link,
null the_target
from SCOTT.EMP
order by EMP.HIREDATE
thanks.Hi,
Here is the sql statement
select
EMP.HIREDATE the_date,
EMP.ENAME the_name,
null the_name_link,
null the_date_link,
null the_target
from SCOTT.EMP
where deptno = :dept
order by EMP.HIREDATE
Thanks,
Sharmila -
How to pass a variable into sqlplus script from file
here is my problem :
I have plenty of sql scripts to run. So every time I need to run sqlplus /nolog @scriptxx.name<enter> and then type login<enter>, password<enter>, second login<enter> , second password<enter> - and when it finishes again from the beggining with next one...
I am fed up with passing these parameters every time. I would like to create a file (files?) with these logins and passwords (located f.ex. in directory where I run the script) then tells, in some way, to my scripts that answers for their questions is inside this file(s).
Is there any way to do it in such a way ?
something like: accept DataUser char %read from file user1.txt without my inerteraction%
ps.
I cannot add directly these parameters to script because I need to run them on different servers (DEVs and PRODs) and every server has different users and passwords
KP>Actually the START command would resolve the issue, in conjunction with passing parameters and DEFINEs in a sensible manner.
DEFINE dathasb = '&1'
ACCEPT dathasb char prompt 'etc...'
When dathasb already has a value, ACCEPT won't prompt.
Too many people start hacking and don't use the power of Oracle because they don't the needful : Reading the documentation.
Other than that obviously the series of scripts needs of course to be re-engineered.
Asking interactively for a password .... even 20 years back we already didn't do this anymore.
Of course that was the time when exporting anything beyond the VAX 11/750 to Eastern Europe was prohibited because of US export regulations ;)
You could store the passwords in Oracle Wallet and be done with it.
You could use OS authenticated accounts and be done with it.
But then you still didn't post a version, even not when requested.
Sybrand Bakker
Senior Oracle DBA -
How-To Display the Number of Records Returned from a List to the User?
We currently are using lists to identify accounts that meet various criteria. Because the territories vary from 4k to 60k customers the users have stated that they don't know the size of the list and therefore don't know if they need to refine the list. Currently they are exporting to Excel to look at the row count to see if they need to further refine their searches. This takes quite a while and while shuffling through many lists is a bit painful. Isn't there a way to just show the total records returned from the list down at the bottom of the screen where it allows you to see 25/50/75/100 records at a time?
There is probably a simple way to do this but it is a large user dissatisfier at the time because we simply don't know how to make this show up. Again we are using lists and not analytics for simple lists at this time.
- john
Edited by: user11286597 on Jun 19, 2009 11:02 AMThanks Bobb. I can't believe that one wasn't in R1 :)
Is there a link to the items being worked in the next release by any chance?
- john -
How do you add Contacts to Address Book From a List
How do you add Contacts to Address Book from an outside source?
In Address Book go to Help Menu -> Importing Contacts to get started.
-
Hi, I want to format my macbook pro and i don't know what to choose from this lis
Mac OS Extended (Journaled)
Mac OS Extended
Mac OS Extended (Case-sensitive, Journaled)
Mac OS Extended (Case-sensitive)MAC OS Extended (Journaled)
-
How to run the variable exit without calling the variable selection screen?
Hi all
I have a query with 2 variables 0P_PRQUA (Previous Calendar Quarter (SAP Exit)) and ZCCDAT02.
ZCCDAT02 is a Key Date variable that is derived based on the last day of the quarter that is entered in 0P_PRQUA. The exit code works correctly when calling up the variable screen and ZCCDAT02 is derived properly.
The problem is that 0P_PRQUA is set to "Can be changed in query navigation". So if the user changes the value of the quarter the exit is not triggered and the value of ZCCDAT02 does not change.
Is it possible to trigger the exit or is there another way to do it? Ideas would be appreciated. I am trying to create a Web Template with a Dropbox box for the Quarter.
Query is written in BW 3.X.
Regards
ChamiHi guys
Just to restate the requirement. I want the user to be able to change the value of the variable, WITHOUT calling the variable selection screen.
I want the user to be able to change the value of the quarter by using a dropdown box from within the web template. Once that is selected I want the value of ZCCDAT02 to be derived from the new value of the quarter.
Regards
Chami -
How to reach public variables in a servlet from jsp
this is myclass.java servlet
public class myclass{
public String var1,var2;
public void method1() {
var1="test1";
var2="test2";
}this is my jsp page;
<%@ page import="com.xxx.albumlerim.myclass"%>
<%
myclass tester=new myclass();
tester.method1();
out.print(tester.var1);
out.print(tester.var2);
%>jsp can run the method but doesnt recognize tester.var1 and tester.var2 how can i reach this variables what i must do.?
thank you
Burak
Message was edited by:
netsoniccI may have used the term incorrectly. Basically I meant using the <jsp:include> tag to invoke a servlet directly. Then the servlet could send the output you need. That way you could keep things more modular.
So for example -- you say you have a servlet with these values. Maybe you could add some functionality to it so if it's invoked with a particular URL, it produces output displaying these values.
Then you could use <jsp:include> to invoke that new functionality via that URL.
Just an idea.
Maybe you are looking for
-
Copying pictures from Aperture 3
My wife wants to upload some of our picutres to the Costco web site for printing. She's been copying the individual images from Aperture to a folder on our desktop. In doing so she's noticed that the individual file sizes are quite small and that the
-
Using HS.Exp function to write data to a Consolidated Account
Hi, Just wanted to know whether i can use the HS.Exp function to write data to a consolidated account? Thanks
-
Problem With loosing connection with wired PC
I have a model WRT54GS wireless router. My computer is wired into the back of the router. I loose the connection to the internet sometimes and when I check the connection status it says my computer is connected to another Router. Then it asks me if I
-
Bit Ordering for Structures in a Union
Hello. I seem to be having a problem with interpreting data placed into a char array that is overlayed with a structure. It seems to be related to bit ordering. The overall scope of my application is to take a data packet, send it over a serial co
-
"An error exists on this page." - too vague!
Hello. I'm using v 9.5.1. I open a PDF which I have created and it says "An error exists on this page. Acrobat may not display the page correctly. Please contact the person hwo created the PDF document to correct the problem." Well, I can't see any p