How to create a combobox
hi experts
i have a dynpro with two fields as a matchcodes that works fine... cause they are from z structure with domains .... but ....... how can i convert them into comboboxes ... or something like that
any help would be apreciated
thx in advance
Hi.
Please try.
PROCESS BEFORE OUTPUT.
PROCESS AFTER INPUT.
PROCESS ON VALUE-REQUEST.
FIELD ZZDYNPRO-ZZFLD1
MODULE F4_GET_ZZFLD1. "<--- Dynpro Field
MODULE F4_GET_ZZFLD1 INPUT.
POPUP
CLEAR L_I_DDSHRETVAL.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'SELECT_KEY' "<--- Select key
VALUE_ORG = 'C' or 'S'
TABLES
VALUE_TAB = L_IT_VALUE "<--- Combobox field list
RETURN_TAB = L_IT_DDSHRETVAL
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
ENDMODULE.
Similar Messages
-
How to create dynamic combobox
hi Gurus,
I have a jsp page and I want to setup a combobox on it that will get clientnames from the databse(mysql). Can someone give me source code to get the job done. I have class for connection.
here is my code for class
package admin;
import java.sql.*;
// http://www.javaservice.net/%7Ejava/bbs/read.cgi?b=javatip&c=r_p&m=devtip&n=1014323889&s=t
public class DBPool {
private static boolean connect = false;
private static Connection[] cons = null;
private static int maxCons = 10;
//private static Boolean[] consStatus = new Boolean[maxCons];
private static int conID = -1;
private static final String dbURL = "jdbc:mysql://localhost:3306/virsarmedia";
private static final String user = "root";
private static final String password = "";
// This DB Pool needs to be re-written so that uses Vector(or Hashtable)
// not to share one Connection for many Statements
static{
try
System.out.print("Loading MySQL Driver ... ");
Class.forName("org.gjt.mm.mysql.Driver");
System.out.println("OK");
}catch(ClassNotFoundException e){System.out.println(e.getMessage());}
// create Connection
public static final synchronized Connection createConn(){
try{
return DriverManager.getConnection(dbURL,user,password);
} catch (SQLException e){
e.printStackTrace();
return null;
// get db pool manager
public static final synchronized Connection getConnMgr(){
// create connections when it's called at the first
if(!connect){
cons = new Connection[maxCons];
for(int i=0; i<maxCons; i++){
cons[i] = createConn();
if(cons[i] == null) return null;
connect = true;
// round robin returning Connection
conID++;
if(conID <= maxCons) conID = 0;
try{
if(cons[conID].isClosed()) cons[conID] = createConn();
} catch(SQLException se){
System.out.println(se.getMessage());
cons[conID] = createConn();
return cons[conID];
// destory all connections
public static final void destory(){
connect = false;
for(int i=0; i<maxCons; i++){
if(cons[i] != null){
try{
cons.close();
} catch(SQLException se){
cons[i] = null;
cons = null;
// get numberOfRows
public static final int getRows(ResultSet rs){
int numberOfRows = 0;
try{
rs.last();
numberOfRows = rs.getRow();
rs.beforeFirst();
} catch(SQLException se){
se.printStackTrace();
return numberOfRows;
I have a servet doing the job of retrieveing the records from the databse.
I want to retrieve all records client names from the databse and display it in the combo box.package data;
import admin.*;
import business.*;
import java.sql.ResultSet;
import java.sql.*;
import java.util.Vector;
public class ClientDB {
final static String TBL_USER = "client";
public static int readClientID(Connection connection, Client client) throws SQLException{
//This method will return 0 if ClientID isn't found.
String query = "SELECT ClientID FROM Client " +
"WHERE ClientID = '" + client.getClientID() + "'";
Statement statement = connection.createStatement();
ResultSet record = statement.executeQuery(query);
record.next();
int clientID = record.getInt("ClientID");
record.close();
statement.close();
return clientID;
Here is code for JSP where I want to set combobox <%@ page import="java.util.*" %>
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<%@ page import="admin.*" %>
<%@ page import="data.*" %>
<%
String query = "SELECT clientName from client";
// Statement statement = null;
%>
<SELECT NAME="userSelectedCategory" onChange="this.form.submit();">
<%
try{
Statement statement = connection.createStatement();
ResultSet result = statement.executeQuery(query);
}catch(Exception e){
e.printStackTrace();
} finally{
try{
if(statement != null) statement.close();
}catch(SQLException se){
se.printStackTrace();
//Create a blank first option so the onChange event works.
out.println("<option value=\"-\">-</option>");
//Loop though all the categories in the database
while(result.next())
//This is a category from the database
String optionCategoryValue = result.getString(1);
//Construct the option tag in a String variable
String optionTag = "<OPTION VALUE=\"" + optionCategoryValue + "\"";
if(optionCategoryValue.equals(userSelectedCategory))
optionTag += " selected=\"selected\"";
//close the option tag
optionTag += ">" + optionCategoryValue + "</OPTION>";
//printout the option tag
out.println(optionTag);
//Close the result set and statment to free up resoures
%>
</SELECT>
}Everything else is ok except the combo. Infact I don't know how I can set it. I am trying to do this since last 48 hours. please help me.
ThanksSorry Code for JSP is wrong here is right CODE. I am sorry about that
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN//">
<html>
<link href="../virsar.css" rel="stylesheet" type="text/css" />
<head>
<title>Virsar Media Administation Menu</title>
</head>
<body>
<table cellspacing=0 cellpadding=0>
<td><img src="../images/title.jpg"></td>
</table>
<table cellspacing=0 cellpadding=0 width=800>
<td width=20>
<!-- <br><br><br><br><br><br><br><br><br><br> -->
</td>
<!-- <td width=1 bgcolor=black></td> -->
<td>
<h1>Subscriptions Processing Menu!</h1>
<%-- Following code can be used to Add the record on the front end--%>
<script language="JavaScript">
function validate(form) {
if (form.paymentID.value=="") {
alert("Please fill in PaymentID");
form.paymentName.focus();
else if (form.clientID.value=="") {
alert("Please fill in ClientID");
form.clientID.focus();
else if (form.paymentType.value=="") {
alert("Please fill in Payment Type");
form.paymentType.focus();
else {
form.submit();
</script>
<table cellpadding="5" border=1>
<tr valign="bottom">
<th>Subscription ID</th>
<th>Client ID</th>
<th>Client Name</th>
<th>Subscription Type</th>
<th>Amount</th>
<th>Subscription Start Date</th>
<th>Subscription Expiry Date</th>
<th>Description</th>
<th>State</th>
<th>Update Subscription</th>
<th>Delete Subscription</th>
</tr>
<%@ page import="business.*" %>
<% java.util.Vector payments = (java.util.Vector)session.getAttribute("payments");
if(payments != null){
for (int i =0; i<payments.size(); i++){
Payment payment = (Payment)payments.get(i);
if(payment instanceof Payment){
%>
<tr valign="top">
<td><p><%= payment.getPaymentID() %></td>
<td><p><%= payment.getClientID() %></td>
<td><p><%= payment.getClientName() %></td>
<td><p><%= payment.getPaymentType() %></td>
<td><p><%= payment.getPaymentAmount() %></td>
<td><p><%= payment.getPaymentStartDate() %></td>
<td><p><%= payment.getPaymentExpiryDate() %></td>
<td><p><%= payment.getPaymentDescription() %></td>
<td><p><%= payment.getPaymentState() %></td>
<td><a href="../servlet/admin.ShowPaymentServlet?paymentID=<%=payment.getPaymentID()%>">Update </a></td>
<td><a href="../servlet/admin.DeletePaymentServlet?paymentID=<%=payment.getPaymentID()%>">Delete </a></td>
</tr>
<%
%>
</table>
<form action="../servlet/admin.AddPaymentServlet" method="get">
<table cellspacing="5" border="0">
<tr>
<td align="right">Subscription ID:</td>
<td><input type="text" name="paymentID"
value="">
</td>
</tr>
<tr>
<td align="right"> Client Name :</td>
<%-- ---------------------------------------- this is where I want to set my combo -------------------- --%>
<td>
<input name="clientName" type = "text" value= "../servlet/admin/ShowCompanyNames.getClientID()"></input>
</td>
<!-- <td><input type="text" name="clientName"
value="">
</td> -->
</tr>
<tr>
<td align="right"> ClientID </td>
<td><input type="text" name="clientID"
value="">
</td>
</tr>
<tr>
<td align="right"> Payment Type :</td>
<!-- <td><input type="text" name="paymentType"
value="">
</td>
-->
<td>
<INPUT TYPE=RADIO NAME="paymentType" VALUE="Monthly">Montly
<INPUT TYPE=RADIO NAME="paymentType" VALUE="Yearly">Yearly
<INPUT TYPE=RADIO NAME="paymentType" VALUE="One Time">One Time
<INPUT TYPE=RADIO NAME="paymentType" VALUE="Other">Other<br>
</td>
</tr>
<tr>
<td align="right"> Payment Amount :</td>
<td><input type="text" name="paymentAmount"
value="">
</td>
</tr>
<tr>
<td align="right"> PaymentStartDate :</td>
<td><input type="text" name="paymentStartDate"
value="">
</td>
</tr>
<tr>
<td align="right"> PaymentExpiryDate :</td>
<td><input type="text" name="paymentTelephone"
value="">
</td>
</tr>
<tr>
<td align="right"> Description :</td>
<td><input type="text" name="paymentDescription"
value="">
</td>
</tr>
<tr>
<td align="right"> Status :</td>
<td><input type="text" name="paymentState"
value="">
</td>
</tr>
<td></td>
<td><input type="button" value="Add Subscription info."
onClick="validate(this.form)"></td>
</tr>
</table>
</form>
<table>
<tr>
<td>
<form action="Cadmin.PaymentsServlet" method="get">
<input type="submit" value="Refresh List">
</form>
</td><td>
<form action="../Admin/index.html">
<input type="submit" value="Go Back">
</form>
</td>
</table>
</td>
</table>
</html>
</body>
</html> -
Hi all,
I am new to Flash and a cant find any tutorial that explain
how to create a Combobox with Flash 8.
I need to create a couple of comboxes with a submit button
that would export the datas through an email. I understand that for
exporting an actionscript sends the vars to a PHP page that
forwards the datas through email.
Can someone explain me how to create a combobox with a submit
button?
And if possible, the PHP code as well?
Thank you very much.You need to have the component in your library to be able to use it. Drag a ComboBox component onto the stage and then remove it.
-
How to create combobox to display more than one columns
I need kind help with the following question. As the combobox includes two pieces--textbox and the combobox list. Then how to create a combo box bean, which is based on table EMP(empno number(6), ename varchar2(40)) records for example, to achieve these features:
1) allow more than one columns to be displayed in its records list--e.g., I need to show these records:
empno (value) ename (label)
103 David M Baker
104 David M Baker
105 Kelly J Volpe
106 Krista F Carpenter
107 Michelle P Silverman
The two 'David M Baker's are different employees, but unfortunately, with the same name.
2) allow combo box list to return the column value 'empno' even though it shows both columns as above. i.e., if user picks the second record above, then the combobox list returns 104 to the textbox in the background, but the 'David M Baker' is displayed on the textbox. Of course the combobox list may return 'David M Baker' if needed when there is only one column in the list as the current standard feature.
3)allow partial match search by typing in some letters. i.e., if user types in the textbox of the combobox letter 'K' or 'k' then the partially matched records
105 Kelly J Volpe
106 Krista F Carpenter
should be automatically displayed in the combobox list, not the whole list as above; then user may double click to choose one of the two or if user continues to type in 'R' or 'r', then the uniquely matched record 'Krista F Carpenter' is displayed in the textbox and the 106 is returned to the textbox.
4) as a bonus if it's doable, allow combobox to return values to different textboxes when its records list has more than one columns.
The reason I need these features is that I am working on the project migrated from Microsoft Access applications to centralized Java version web application. We at beginning promised to users community that Java swing will provide all the GUI user friendly features Microsoft Access has, but now we got stucked--we ate our words and got tons of complains from our users community. This is just the most needed component I posted here. I really hope that Java would add all the default GUI user-friendly features to compete with MS since its Win95 GUI has been accepted as industry standard. And most users are used to it. They claimed that they don't know and don't care what tool you use the newly created application should be more user friendly, not the opposite.
I would be very much appreciated if any one would help me with this item.Thanks for your comments. I think nobody expects Sun to write everything including special features for its components. But I do think Sun should provide at least those standard user-friendly features for the GUI components because most users have been used to the GUI user-friendly features provided by Win95 and Access/Excel applications. Then this will help us to productively create applications to beat MS applications.
Other wise like me, to get the existing GUI features, existed in old MS Access application, for our migrated Java application, I must re-create the GUI components library first which is a big burden to me at least, for others it might be fun for coding on their own from scratch, but I have to focus on the timing of project.
If you really can pass the request to Sun and push them move a bit, please pass these words: before Sun starts to revise them, please play around window GUI, e.g., Access/Excel applications, then plan what to do, the bottom line is to equally match or better than them in FUNCTIONALITY(Look and feel is not my focus here). Don't ignore the influence of Windows regardless of you hate it or love it, the reality is most users are so familiar with windows GUI features which are accepted as industry standard. Thus the choice is to match or better to beat them. Don't make your car by closing your door, don't assume users will like what you come out in a closed room. -
Hai , How to create 'Define New ' ?
hai,
How to create 'Define New ' in Combo box and then Enter the value in the user defined table how to get the value from the database table and display combo box ?Hi.
I used this example for the matrix column. It's work and open a form for defining new values.
Your need to add an event to refresh values in combobox.
Think I help you.
Best regards
Sierdna S.
P.S. How to proceed.
1) Fill the combobox with valid values:
Try
' Add first value to combobox
oCombo.ValidValues.Add("", "")
Dim oRS As SAPbobsCOM.Recordset
oRS = SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
Dim sSql As String = "SELECT Code, Name FROM [@" & sLinkedTable & "]"
oRS.DoQuery(sSql)
oRS.MoveFirst()
While oRS.EoF = False
oCombo.ValidValues.Add(oRS.Fields.Item("Code").Value, oRS.Fields.Item("Name").Value)
oRS.MoveNext()
End While
' Last value
oCombo.ValidValues.Add("Define","Define")
If Not oRS Is Nothing Then
System.Runtime.InteropServices.Marshal.ReleaseComObject(oRS)
oRS = Nothing
End If
System.GC.Collect() 'Release the handle to the table
Catch ex As Exception
' log exception
Finally
oCombo = Nothing
End Try
2) In Item event handler
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_COMBO_SELECT _
And pVal.FormUID = sFormUID _
And pVal.ItemUID = sMatrixUID _
And pVal.ColUID = sColUID _
And pVal.BeforeAction = False _
And pVal.ItemChanged = True _
Then
Try
Dim oMatrix As SAPbouiCOM.Matrix
oMatrix = oForm.Items.Item(MatrixID).Specific
If oMatrix Is Nothing Then Throw New Exception("ERROR: matrix object is nothing"))
Try
Dim oCombo As SAPbouiCOM.ComboBox
Dim sValue As String = ""
oCombo = oMatrix.Columns.Item(sColUID).Cells.Item(pVal.Row).Specific
sValue = oCombo.Selected.Value
If sValue.Equals("Define") Then
Try
oCombo.Select(0, SAPbouiCOM.BoSearchKey.psk_Index)
oForm.Refresh()
Catch ex As Exception
' log exception
End Try
SBO_Application.Menus.Item("<menu id to activate>").Activate()
End If
BubbleEvent = False
Catch ex1 As Exception
' log exception
End Try
Catch ex As Exception
' log exception
End Try
End If -
How to create a business partner whose BP category is person in crm portal?
How to create a business partner whose BP category is person in crm portal.When I use Partner and account management>Partner function in portal,I create a new partner,the partner category is default organization,can not change.
But I what to create a partner with the partner category person,how can I do it?
Is there any other special function to ceate a BP in portal matching the function with T code Bup1(create BP)in sap gui?
By the way,I have the whole privileges in portal and crm.
thanksHello,
Standard CRM PC UI application offers three options when you push 'New' button: 'Person', 'Organization' and 'Group' (combobox appears). In your case, 'Person' should be selected.
p.s. If you don't see combobox mentioned above, it could be security issue.
Kirill -
Hi how to create jbutton, jcombobox with same size
hi i m just new in gui
and i added some of buttons and comboboxes
but i want their width to be equally sized
regardless of their character length..
but..
how to dousing null layout and set the component size
setLayout(null);
add(b1); \\Button
add(c1); \\Combo bax
b1.setBounds(0,10,30,20); \\(Left,top,width,height)
c1.setBounds(0,35,30,20); \\(Left,top,width,height)
this will create a button size of 30*20 at 0,10 position
and create a Combobox size of 30*20 at 0,35 position
try it........... -
How to make a combobox (list of thingf of which to choose - drop down) in Muse? ...like a questionnaire with multible choise!
Hello,
If you want to create a drop down, you can try using the <select> tag of HTML.
For example:-
<select>Choose answer
<option>Ans1</option>
<option>Ans2</option>
<option>Ans3</option>
</select>
You need to embed it by choosing Object-->Insert HTML
Regards,
Neha -
How to Create the Custom print Quote Report ?
Hi All,
I want to create the custom Print Quote report . I know the below details and referred the below metalinks .
Note: 780722.1 - How to Create a Custom Print Quote Template in Oracle Quoting ?
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=780722.1
Note: 392728.1 - How to Modify the data source for the XML version of the Print Quote report
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=392728.1
Note: 468982.1 - How To Customize The Asoprint.Xsl
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=468982.1.
Oracle Metalink:
Note: To add a column to the print quote report, following files need to be updated:
LinesVO.xml --- xml files containing the sql query and attribute definition
LinesVORowImpl.class - public class extending the framework class OAViewRowImpl.
This class contains the set and get for the attributes defined in xml file.
ASOPRINT.xsl - this is the xsl stylesheet file used to describe the report layout.
This file needs to be modified to include the new column being added to the report
QUESTION :
My question is,
1. wether my approach (below iare the details)of trying to extend the PromptVO is the right way or is there any other way to add the new columns.
I want to add new fields on to the report . When i looked into the it says the below
Here we find that to add a new column, oracle says to update the LINESVO.xml, do they really mean to update the base files.
This report uses following VO's
PROMPTVO
HEADERVO,
LINESVO.
To create new Headers & Prompts, i tried extending the PROMPTVO. Once the extended VO is substitued , i dont even get the data for standard oracle Prompts. is this the right way to add columns?
ThanksHi All,
I want to create the custom Print Quote report . I know the below details and referred the below metalinks .
Note: 780722.1 - How to Create a Custom Print Quote Template in Oracle Quoting ?
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=780722.1
Note: 392728.1 - How to Modify the data source for the XML version of the Print Quote report
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=392728.1
Note: 468982.1 - How To Customize The Asoprint.Xsl
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=468982.1.
Oracle Metalink:
Note: To add a column to the print quote report, following files need to be updated:
LinesVO.xml --- xml files containing the sql query and attribute definition
LinesVORowImpl.class - public class extending the framework class OAViewRowImpl.
This class contains the set and get for the attributes defined in xml file.
ASOPRINT.xsl - this is the xsl stylesheet file used to describe the report layout.
This file needs to be modified to include the new column being added to the report
QUESTION :
My question is,
1. wether my approach (below iare the details)of trying to extend the PromptVO is the right way or is there any other way to add the new columns.
I want to add new fields on to the report . When i looked into the it says the below
Here we find that to add a new column, oracle says to update the LINESVO.xml, do they really mean to update the base files.
This report uses following VO's
PROMPTVO
HEADERVO,
LINESVO.
To create new Headers & Prompts, i tried extending the PROMPTVO. Once the extended VO is substitued , i dont even get the data for standard oracle Prompts. is this the right way to add columns?
Thanks -
How to create a report based on a DataSet programatically
I'm working on a CR 2008 Add-in.
Usage of this add-in is: Let the user choose from a list of predefined datasets, and create a totally empty report with this dataset attached to is. So the user can create a report based on this dataset.
I have a dataset in memory, and want to create a new report in cr2008.
The new report is a blank report (with no connection information).
If I set the ReportDocument.SetDataSource(Dataset dataSet) property, I get the error:
The report has no tables.
So I must programmatically define the table definition in my blank report.
I found the following article: https://boc.sdn.sap.com/node/869, and came up with something like this:
internal class NewReportWorker : Worker
public NewReportWorker(string reportFileName)
: base(reportFileName)
public override void Process()
DatabaseController databaseController = ClientDoc.DatabaseController;
Table table = new Table();
string tabelName = "Table140";
table.Name = tabelName;
table.Alias = tabelName;
table.QualifiedName = tabelName;
table.Description = tabelName;
var fields = new Fields();
var dbField = new DBField();
var fieldName = "ID";
dbField.Description = fieldName;
dbField.HeadingText = fieldName;
dbField.Name = fieldName;
dbField.Type = CrFieldValueTypeEnum.crFieldValueTypeInt64sField;
fields.Add(dbField);
dbField = new DBField();
fieldName = "IDLEGITIMATIEBEWIJS";
dbField.Description = fieldName;
dbField.HeadingText = fieldName;
dbField.Name = fieldName;
dbField.Type = CrFieldValueTypeEnum.crFieldValueTypeInt64sField;
fields.Add(dbField);
// More code for more tables to add.
table.DataFields = fields;
//CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo info =
// new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
//info.Attributes.Add("Databse DLL", "xxx.dll");
//table.ConnectionInfo = info;
// Here an error occurs.
databaseController.AddTable(table, null);
ReportDoc.SetDataSource( [MyFilledDataSet] );
//object path = @"d:\logfiles\";
//ClientDoc.SaveAs("test.rpt", ref path, 0);
The object ClientDoc referes to a ISCDReportClientDocument in a base class:
internal abstract class Worker
private ReportDocument _ReportDoc;
private ISCDReportClientDocument _ClientDoc;
private string _ReportFileName;
public Worker(string reportFileName)
_ReportFileName = reportFileName;
_ReportDoc = new ReportDocument();
// Load the report from file path passed by the designer.
_ReportDoc.Load(reportFileName);
// Create a RAS Document through In-Proc RAS through the RPTDoc.
_ClientDoc = _ReportDoc.ReportClientDocument;
public string ReportFileName
get
return _ReportFileName;
public ReportDocument ReportDoc
get
return _ReportDoc;
public ISCDReportClientDocument ClientDoc
get
return _ClientDoc;
But I get an "Unspecified error" on the line databaseController.AddTable(table, null);
What am i doing wrong? Or is there another way to create a new report based on a DataSet in C# code?Hi,
Have a look at the snippet code below written for version 9 that you might accommodate to CR 2008, it demonstrates how to create a report based on a DataSet programmatically.
//=========================================================================
+ * the following two string values can be modified to reflect your system+
+ ************************************************************************************************/+
+ string mdb_path = "C:
program files
crystal decisions
crystal reports 9
samples
en
databases
xtreme.mdb"; // path to xtreme.mdb file+
+ string xsd_path = "C:
Crystal
rasnet
ras9_csharp_win_datasetreport
customer.xsd"; // path to customer schema file+
+ // Dataset+
+ OleDbConnection m_connection; // ado.net connection+
+ OleDbDataAdapter m_adapter; // ado.net adapter+
+ System.Data.DataSet m_dataset; // ado.net dataset+
+ // CR variables+
+ ReportClientDocument m_crReportDocument; // report client document+
+ Field m_crFieldCustomer;+
+ Field m_crFieldCountry;+
+ void CreateData()+
+ {+
+ // Create OLEDB connection+
+ m_connection = new OleDbConnection();+
+ m_connection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + mdb_path;+
+ // Create Data Adapter+
+ m_adapter = new OleDbDataAdapter("select * from Customer where Country='Canada'", m_connection);+
+ // create dataset and fill+
+ m_dataset = new System.Data.DataSet();+
+ m_adapter.Fill(m_dataset, "Customer");+
+ // create a schema file+
+ m_dataset.WriteXmlSchema(xsd_path);+
+ }+
+ // Adds a DataSource using dataset. Since this does not require intermediate schema file, this method+
+ // will work in a distributed environment where you have IIS box on server A and RAS Server on server B.+
+ void AddDataSourceUsingDataSet(+
+ ReportClientDocument rcDoc, // report client document+
+ System.Data.DataSet data) // dataset+
+ {+
+ // add a datasource+
+ DataSetConverter.AddDataSource(rcDoc, data);+
+ }+
+ // Adds a DataSource using a physical schema file. This method require you to have schema file in RAS Server+
+ // box (NOT ON SDK BOX). In distributed environment where you have IIS on server A and RAS on server B,+
+ // and you execute CreateData above, schema file is created in IIS box, and this method will fail, because+
+ // RAS server cannot see that schema file on its local machine. In such environment, you must use method+
+ // above.+
+ void AddDataSourceUsingSchemaFile(+
+ ReportClientDocument rcDoc, // report client document+
+ string schema_file_name, // xml schema file location+
+ string table_name, // table to be added+
+ System.Data.DataSet data) // dataset+
+ {+
+ PropertyBag crLogonInfo; // logon info+
+ PropertyBag crAttributes; // logon attributes+
+ ConnectionInfo crConnectionInfo; // connection info+
+ CrystalDecisions.ReportAppServer.DataDefModel.Table crTable;+
+ // database table+
+ // create logon property+
+ crLogonInfo = new PropertyBag();+
+ crLogonInfo["XML File Path"] = schema_file_name;+
+ // create logon attributes+
+ crAttributes = new PropertyBag();+
+ crAttributes["Database DLL"] = "crdb_adoplus.dll";+
+ crAttributes["QE_DatabaseType"] = "ADO.NET (XML)";+
+ crAttributes["QE_ServerDescription"] = "NewDataSet";+
+ crAttributes["QE_SQLDB"] = true;+
+ crAttributes["QE_LogonProperties"] = crLogonInfo;+
+ // create connection info+
+ crConnectionInfo = new ConnectionInfo();+
+ crConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;+
+ crConnectionInfo.Attributes = crAttributes;+
+ // create a table+
+ crTable = new CrystalDecisions.ReportAppServer.DataDefModel.Table();+
+ crTable.ConnectionInfo = crConnectionInfo;+
+ crTable.Name = table_name;+
+ crTable.Alias = table_name;+
+ // add a table+
+ rcDoc.DatabaseController.AddTable(crTable, null);+
+ // pass dataset+
+ rcDoc.DatabaseController.SetDataSource(DataSetConverter.Convert(data), table_name, table_name);+
+ }+
+ void CreateReport()+
+ {+
+ int iField;+
+ // create ado.net dataset+
+ CreateData();+
+ // create report client document+
+ m_crReportDocument = new ReportClientDocument();+
+ m_crReportDocument.ReportAppServer = "127.0.0.1";+
+ // new report document+
+ m_crReportDocument.New();+
+ // add a datasource using a schema file+
+ // note that if you have distributed environment, you should use AddDataSourceUsingDataSet method instead.+
+ // for more information, refer to comments on these methods.+
+ AddDataSourceUsingSchemaFile(m_crReportDocument, xsd_path, "Customer", m_dataset);+
+ +
+ // get Customer Name and Country fields+
+ iField = m_crReportDocument.Database.Tables[0].DataFields.Find("Customer Name", CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault);+
+ m_crFieldCustomer = (Field)m_crReportDocument.Database.Tables[0].DataFields[iField];+
+ iField = m_crReportDocument.Database.Tables[0].DataFields.Find("Country", CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault);+
+ m_crFieldCountry = (Field)m_crReportDocument.Database.Tables[0].DataFields[iField];+
+ // add Customer Name and Country fields+
+ m_crReportDocument.DataDefController.ResultFieldController.Add(-1, m_crFieldCustomer);+
+ m_crReportDocument.DataDefController.ResultFieldController.Add(-1, m_crFieldCountry);+
+ // view report+
+ crystalReportViewer1.ReportSource = m_crReportDocument;+
+ }+
+ public Form1()+
+ {+
+ //+
+ // Required for Windows Form Designer support+
+ //+
+ InitializeComponent();+
+ // Create Report+
+ CreateReport();+
+ //+
+ // TODO: Add any constructor code after InitializeComponent call+
+ //+
+ }+//========================================================================= -
How to create a group calendar?
Hello,
i am sorry but this is one more question on wiki-group-calendars.
*In short:*
I am not able to create a group calendar with the wiki frontend. the calendar that is created with a wiki is owned by the admin of the wiki. So it is always a personal calendar that cannot be shared in iCal.
LONG:
I want to create a group calendar that is viewed and edited through iCal.app and the web service. Apple´s "wiki deployment" guide says on page 57:
+"The web calendar allows you to easily schedule events for yourself or your group. ...+
+There are *two types of web calendars: personal and group*. You can send and receive event invitations through the personal calendar but not through the group calendar. Also, *while anyone in a group can create or edit events in a group calendar*, you can edit only events in your own personal calendar or event invitations you send to other people.+
+The web calendar uses iCal Server to store events and invitations. ..."+
But there is not mentioned how to create a group calendar. The calendar created with the wiki web-frontend belongs to the admin of that particular wiki. This is why the calendar data ist stored in folder named with the UUID of the wiki admin. Also the alias "http://server.fqdn:8008/principals/groups/mygroupname/" which i provided in iCal turns into ..._uids_UUID-of-the-wiki-admin and only the wiki-admin can access this calendar in iCal.app.
My research on this topic reveals that there were in issue that should be resolved in 10.6.4 (that is running on our Server). So, again, how to create a group calendar?
Thanks, Philipp.
10.6.4 OSX Server
10.6.x Clientsfarmer tan wrote:
you need to go to the wiki page and add the wiki's there and then in the setting of the wiki is where you set permissions and services such as calendar, blog, and podcast you can also set all permissions for the wiki in the settings tab
fyi none of my groups were available unless i logged into the wiki as the Directory Admin not Server Admin
migrated from 10.5.7 to 10.6
Message was edited by: farmer tan
Could you be more specific farmer tan, please?
You said "you need to go to the wiki page and add the wiki's there...." What is the "wiki page" you mention? Is that some place I go to via the browser or the Server Admin tool?
I went to http://ical.mysite.com/ical/ and logged in as the Directory Administrator but didn't see anything resembling what you described.
Thanks in advance for any help you can provide. -
How to create i view in visual composer give details screenshots
how to create i view in visual composer give details screenshots
Hi,
Go through these threads
VisualComposer
http://help.sap.com/bp_epv170/EP_US/HTML/Executive_Cockpit.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1752b737-0401-0010-0ba3-87c3eda8c6ce
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e019d290-0201-0010-f186-8630a949800a
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30987099-a74c-2a10-70b5-a2751ce79359
http://help.sap.com/saphelp_nw04/helpdata/en/fd/4a7e40417c6d1de10000000a1550b0/content.htm
Tarak
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00b9ba6d-1291-2a10-208d-bd27544e7939 -
How to create a variant to a maintenance view (trans: SM31)
Hi gurus.
I have created a maintenance view (called z_jest). By running it from SM31 there is a variant option. However, I am not able to create the variant which I want to filter a selection upon in this transaction.
I have even looked into transaction SE54 and created a variant for the maintenance table view there( called z_jestv). Then going back to transaction SM31 and view z_jest, i push 'Variant' radiobutton and type as variant: 'z_jestv', I only get the message: "Variant z_jestv for object z_jest does not exist".
Can anybody please advice on how to create and/or connect the variant to the maintenance view?
Regards LL.Hi Mahalakshmi
Thanks for reply.
When I look into the procedure, there is a prerequisite: "The basis dialog for which the maintenance variant is created already exists."
I am a little bit unsertain if I miss this 'Basic dialog'. Can you please advice on how to check / create this 'basic dialog' before I go on to create the variant. (I need this 'basic dialog' as input in the procedure you sent.)
(Note: I have already created a 'maintenance dialog' for the view, but I have a feeling, that is something different...) -
How to create transaction for a maintenance view, Thank you.
How to create transaction for a maintenance view,
Thank you.
deniz...Hi Deniz,
Go to se93.
Then create the new T.code.
Under that select parameter Transaction.
Then give the sm30 in the t.code in default values tab.
check the checkbox skip initial screen.
in classification tab.
click checkbox inherit gui attributes..
Now below..
In the default values..
select
viewname and give ur table name.
UPDATE= Xsave
view - table name ( Should be upper case
update X ( should be upper case).
http://www.sap-basis-abap.com/sapbs011.htm
Hope this helps you.
Regards,
Viveks -
How to create a query view in sap bw?
can any one please tell me how to create a query view in sap bw 3.5?
Hi,
you can do this by using Bex analyzer and WAD ..
gop through this link ..
http://help.sap.com/saphelp_nw70/helpdata/en/0e/1339427f82b26be10000000a155106/content.htm
http://help.sap.com/saphelp_nw70/helpdata/en/0d/af12403dbedd5fe10000000a155106/frameset.htm
hope this helps you ..
Reagrds,
shikha
Maybe you are looking for
-
How to clear the report from Cache.
Hello all,,, In my project iam using crystsal report for eclipse to generate reports. Iam using a .jsp page to call my report.(which i got it from the examples of CRE). The name of my jsp page is poi.jsp The name of my Crystal report is Department.rp
-
Getting fed up after almost 3 months of issues the...
Hi, well long story that around 3 months ago my net connection went down (solid amber light) got a BT engineer visit though 2 hours before he came the Internet connect came back up. The Engineer keep his appointment and re-wired everything for me and
-
Phone memory full??
i'm using n81 8gb.the prob is phone mem is owez full.i check in the file mnger but cant find the files that coz my memory full
-
Just FYI, new blog post "More Windows Server 2008 Guides Available in TechNet Gallery"
Just FYI, new blog post "More Windows Server 2008 Guides Available in TechNet Gallery" at http://aka.ms/Sqatv1 Thanks - James McIllece
-
Secure JSESSIONID for Weblogic running HTTP behind load balancers
We run multiple Weblogic application servers behind a load balancer. We use an SSL accelerator to avoid encrypt/decrypt functions on the CPUs hosting Weblogic. Our Weblogic servers are running version 10.3. Here is my conundrum: 1) For security purpo