Help needed in Dynamic Configuration
Hello Gurus,
I have a requirement where in my input filename is : ABCD#XXX_YYYYMMDD_HHMMSS
I want my output filename as : VN01MMDDYY01
Where VN01 is the companycode which is in the Header field of my input file.
MMDDYY should be extracted from my input filename.
01 is static.
How do I alter my Dynamic Configuration to achieve this?Please guide me...
Thanks in advance..
Regards,
Swathi.Suresh
Hi,
VN01(From Source) >UDF>output field
try
DynamicConfiguration conf = (DynamicConfiguration)
container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey KEY_FILENAME = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String fileName = conf.get(KEY_FILENAME);
String tmp = a + (fileName.substring(fileName.indexOf("_")+5, fileName.indexOf("_")+7)) + (fileName.substring(fileName.indexOf("_")+7, fileName.indexOf("_")+9)) + (fileName.substring(fileName.indexOf("_")+3, fileName.indexOf("_")+5)) + "01";
return tmp;
catch (Exception e)
e.printStackTrace();
- Gujjeti.
Similar Messages
-
Help needed in tibco Configuration with OAS 10.1.3
Hi,
I am trying to using OAS 10.1.3 and with Tibco JMS Provider. I have deployed the MDB that gets messages from Tibco JMS Provider. Now here is the issue I am getting the following errors any ideas on what might be wrong:
WARNING: Code-source C:\Oracle_Software\AS10g\1013\oc4j_extended_101320_sa\j2ee\
home\lib\tibco\jms.jar (from <library> in /C:/Oracle_Software/AS10g/1013/oc4j_ex
tended_101320_sa/j2ee/home/config/application.xml) has the same filename but is
not identical to /C:/Oracle_Software/AS10g/1013/oc4j_extended_101320_sa/j2ee/hom
e/lib/jms.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.
xml in C:\Oracle_Software\AS10g\1013\oc4j_extended_101320_sa\j2ee\home\oc4j.jar)
. If it contains different versions of the same classes, it will be masked as th
e latter is already visible in the search path of loader default.root:0.0.0.
2007-05-07 22:36:01.055 WARNING J2EE JNDI-00002 Resource reference jms/myQueueCo
nnectionFactory not found. Allowing J2EEContext creation to continue anyway.
2007-05-07 22:36:01.087 WARNING J2EE JNDI-00004 No javax.jms.QueueConnectionFact
ory found at java:comp/resource/TibcoJMSReference/QueueConnectionFactories/myQCF
07/05/07 22:36:05 Oracle Containers for J2EE 10g (10.1.3.2.0) initialized
2007-05-07 22:36:06.055 WARNING J2EE EJB-02009 [ejb1:ejb1:EnableMdb] Unexpected
exception by JMS provider: javax.jms.InvalidDestinationException: Destination "Q
ueue[enableQueue]" has invalid type "class com.tibco.tibjms.naming.TibjmsFederat
edQueue" and cannot be used with OC4J JMS..
2007-05-07 22:36:06.055 WARNING J2EE EJB-02009 [ejb1:ejb1:EnableMdb] Unexpected
exception by JMS provider: javax.jms.InvalidDestinationException: Destination "Q
ueue[enableQueue]" has invalid type "class com.tibco.tibjms.naming.TibjmsFederat
edQueue" and cannot be used with OC4J JMS..
2007-05-07 22:36:06.055 WARNING J2EE EJB-02009 [ejb1:ejb1:EnableMdb] Unexpected
exception by JMS provider: javax.jms.InvalidDestinationException: Destination "Q
ueue[enableQueue]" has invalid type "class com.tibco.tibjms.naming.TibjmsFederat
edQueue" and cannot be used with OC4J JMS..
2007-05-07 22:36:06.055 WARNING J2EE EJB-02009 [ejb1:ejb1:EnableMdb] Unexpected
exception by JMS provider: javax.jms.InvalidDestinationException: Destination "Q
ueue[enableQueue]" has invalid type "class com.tibco.tibjms.naming.TibjmsFederat
edQueue" and cannot be used with OC4J JMS..
2007-05-07 22:36:06.055 WARNING J2EE EJB-02009 [ejb1:ejb1:EnableMdb] Unexpected
exception by JMS provider: javax.jms.InvalidDestinationException: Destination "Q
ueue[enableQueue]" has invalid type "class com.tibco.tibjms.naming.TibjmsFederat
edQueue" and cannot be used with OC4J JMS..
2007-05-07 22:36:06.071 WARNING J2EE EJB-02014 [ejb1:ejb1:EnableMdb] All message
consumer threads have terminated due to provider errors, stopping MDB.
Any help is appreciated. Can someone please provide me the steps to configure OC4J with Tibco incase I am doing something wrong I know there is a document out there http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-connect-to-tibco/doc/how-to-connect-to-tibco.html but somehow I tried following exactly what is listed in the document but it doesn't seems to work for me. Specially the following
deploying the resource adapter module (e.g., using admin.jar's "-deployconnector" command),
placing the <connector> element in the %ORACLE_HOME%/j2ee/home/config/oc4j-connectors.xml.xml file, and
pointing to the %ORACLE_HOME%/j2ee/home/config/oc4j-connectors.xml.xml file by placing a <connectors> element in the %ORACLE_HOME%/j2ee/home/config/application.xml file
Where do I make the changes in the sample for my needs if I have the following on Tibco side:
Initial context factory:
com.test.TestTibcoInitialContext
Provider url
ldap://someserver:389/ou=msg,dc=corp,dc=com
Destination(Queue):
testClientDestUD=D.TEST
Connection Factory
testClientUD=S.VV
Thanks for any help as I am bit confused going thru the doc.Hi Alastair,
Thank you so much for this really very very helpful document but still I am facing some issues:
1. The pdf file is specific to Linux environment while I have windows environment for:
Oracle Application Server 10.1.3.x
OBIEE Server 10.1.3.4
2. We are using MS Active Directory for the domain login authentication process. I have configured the OBIEE with that Active directory to allow users to use their domain credentials to login to OBIEE. I need to provide the SSO in this environment. But the document provides very good and elaborated information about SSO using OID. Is there any way we can do SSO using MS AD or we have to import the users in OID?
3. We are using a db table for the authorization process for users after authentication is passed in which we are storing the USER NAME and GROUP information. The Authorization block of rpd select the corresponding GROUP from this table using SQL query and authorizes the users for their access scope. I was trying to execute the function AD_Authorization using the sql supplied after creating it in db but it is showing the below error: (Oracle11gR2 DB Server)
SELECT getldapgroups('domainname\username') FROM dual;
ORA-31202: DBMS_LDAP: LDAP client/server error: Invalid DN syntax. 0000208F: LdapErr: DSID-0C090654, comment: Error processing name, data 0, vece
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_LDAP", line 1487
ORA-06512: at "SYS.DBMS_LDAP", line 234
ORA-06512: at "SCHEMA.GETLDAPGROUPS", line 45
4. Can we install OIM on Windows machine having the Oracle DB server installed already on it?
Your valuable response will be much awaited.
Thanks, -
Help Needed in Dynamic Sql or alternate to Dynamic Sql
Hi Am working in sqlserver 2008 R2 and here is my Table structure and SPC
;create table SalaryReport(IdSalary int primary key identity(1,1),
IDMainCompany int,IDSubCompany int,Salary money,Incentive int,NoofEmployees int, SalaryDate datetime, Creditscore int );
insert into SalaryReport (IDMainCompany,IDSubCompany,Salary,Incentive,NoofEmployees,SalaryDate,Creditscore)
( Select 100 as IDMainCompany , 1000 as IDSubCompany ,200000 AS Salary, 20000 as Incentive, 500 as NoofEmployees,
'2014-01-01' as SalaryDate, 60 as Creditscore union all
Select 100 as IDMainCompany , 1001 as IDSubCompany ,300000 AS Salary, 40000 as Incentive, 600 as NoofEmployees,
'2014-01-01' as SalaryDate , 70 as Creditscore union all
Select 100 as IDMainCompany , 1002 as IDSubCompany ,400000 AS Salary, 40000 as Incentive, 1500 as NoofEmployees,
'2014-01-01' as SalaryDate , 45 as Creditscore union all
Select 101 as IDMainCompany , 1003 as IDSubCompany ,30000 AS Salary, 2000 as Incentive, 100 as NoofEmployees,
'2014-01-01' as SalaryDate, 60 as Creditscore union all
Select 102 as IDMainCompany , 1004 as IDSubCompany ,450000 AS Salary, 25000 as Incentive, 700 as NoofEmployees,
'2014-01-01' as SalaryDate, 30 as Creditscore)
Sample Test Script:
DECLARE @IDMainCompany int = 100;
DECLARE @Process_Date datetime = '2014-01-01';
declare @Query nvarchar(max);
SELECT
CAST(SR.IDMainCompany AS VARCHAR(12)) AS IDMainCompany
,CAST(SR.IDSubCompany AS VARCHAR(12)) AS IDSubCompany
,CAST(SR.Salary AS VARCHAR(12)) AS Salary
,CAST(SR.Incentive AS VARCHAR(12)) AS Incentive
,CAST(SR.NoofEmployees AS VARCHAR(12)) AS NoofEmployees
,CAST(SR.SalaryDate AS VARCHAR(15)) AS SalaryDate
,CAST((SR.Creditscore) AS VARCHAR(15)) AS average
FROM SalaryReport SR
WHERE SR.IDMainCompany = @IDMainCompany
AND DATEPART(MM, SR.SalaryDate) = DATEPART(MM, @Process_Date)
UNION ALL
SELECT
'' AS IDMainCompany
,'' AS IDSubCompany
,'Total: ' + CAST(SUM(SR.Salary) AS VARCHAR(12)) AS Salary
,'Total: ' + CAST(SUM(SR.Incentive) AS VARCHAR(12)) AS Incentive
,'Total: ' + CAST(SUM(SR.NoofEmployees) AS VARCHAR(12)) AS NoofEmployees
,'' AS SalaryDate
,'Total: ' +CAST(avg(SR.Creditscore) AS VARCHAR(12)) AS Totalaverage
FROM SalaryReport SR
WHERE SR.IDMainCompany = @IDMainCompany
AND DATEPART(MM, SR.SalaryDate) = DATEPART(MM, @Process_Date)
group by IDMainCompany, DATEPART(MM, SalaryDate)
the sample data i posted is having less columns. actually i have 20 columns in the select list. Also the parameters to the where condition i gave two i.e IDMainCompany, SalaryDate. I will also need to use IDSubCompany for some case. My skeleton will be
Create Procedure Test(@IDMainCompany int, @IDSubCompany int = null, @SalaryDate datetime)
as
BEGIN
IF(@IDMainCompany is not null && @IDMainCompany > 0 && @SalaryDate is not null && @SalaryDate <> ' ' &&
@IDSubCompany is null)
BEGIN
--The logic what discussed on previous posts will falls here with @IDMainCompany, @SalaryDate as parameter to the where condition
END
IF(@IDMainCompany is not null && @IDMainCompany > 0 && @SalaryDate is not null && @SalaryDate <> ' ' &&
@IDSubCompany is null && @IDSubCompany > 0 )
BEGIN
--The logic what discussed on previous posts will falls here with @IDMainCompany, @SalaryDate,@IDSubCompany as parameter to the where condition
END
END
As said i need to include 20 columns in the select list and as union all used on the previous sample there are 20 columns on the first query and 20 columns on the second query after the union all. The SPC will become big. If i repeat this for second if condition,
it will be too big. How can i reduce this writing more lines.
I am aware of the concept dynamic sql. Is there any other way to do this? or if dynamic sql is the only option, can anyone help me rewriting this select statements as dynamic sql
Could anyone please assist me
loving dotnet>>
thanks for your reply and yes, i am invoking this from my asp.net application using C# language. Would you like to share something?
<<
Yes,
You can use client side dynamic sql. I'm not talking about concatenating strings. I'm talking about using Runtime Text Tamplates (preprocesed templates in Visual Studio 2010).
Add a new "Runtime Text Template" item to your VS project. Be "MyReportTemplate.tt" the file name of the runtime text template. The content of this file should be something like the following:
<#@ template language="C#" #>
<#@ assembly name="System.Core" #>
SELECT
-- part of your query goes here
-- the interesting part come next
FROM
SalaryReport SR
WHERE
SR.IDMainCompany = @IDMainCompany
<# if (IDSubCompany.HasValue && IDSubCompany.Value > 0) { #>
AND SR.IDSubCompany = @IDSubCompany
<# } #>
AND
DATEPART(MM, SR.SalaryDate) = DATEPART(MM, @Process_Date)
GROUP BY
IDMainCompany, DATEPART(MM, SalaryDate)
Add a new c# code file named MyReportTemplate.partial.cs closed to MyReportTemplate.tt with the following code:
public partial class MyReportTemplate
public int? IDSubCompany { get; set; }
Then, to execute the query you can write a code similar to the following:
public DataTable ExecuteReport(int mainCompanyId, int? subCompanyId, DateTime processDate )
using (var cn = CreateConnection())
using (var cmd = new SqlCommand())
using (var adapter = new SqlDataAdapter(cmd))
cmd.Connection = cn;
var template = new MyReportTemplate
IDSubCompany = subCompanyId
cmd.CommandText = template.TransformText();
cmd.Parameters.AddWithValue("@IDSubCompany", subCompanyId == null ? (object) DBNull.Value : subCompanyId.Value);
cmd.Parameters.AddWithValue("@IDMainCompany", mainCompanyId);
cmd.Parameters.AddWithValue("@Process_Date", processDate);
var table = new DataTable();
adapter.Fill(table);
return table;
EntityLite: A Lightweight, Database First, Micro ORM -
Help needed, Createing Dynamic User input
Hello,
I am attempting to create some dynamic user input by "predicting" what the user requires in a text box.
For example if the user enters "Smi" I have a select list pop up which gives the user all options that begin with "Smi".
I am able to achieve the popups but the interface is quite jerky and not terribly responsive I am trying to solve this by using a thread which starts and stops when new input is received but it is still not quite right.
The program uses a Sorted TreeSet to hold the data (I thought this would give me a quick search time) and a simple interface at this stage.
Any help would be fantastic
Thanks in advance :P
import java.io.*;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.event.*;
import java.text.*;
import java.util.*;
/** This program represents part of a larger user interface for allowing the
user to select data from a file or database.
<p>
When the program starts up, it will read in data from a given file, and hold
it in some type of container allowing rapid access.
<p>
The user may then type in the first few letters of the surname of a person,
and this program should immediately present in a popup dialog the names which
match. The user will be able to click on one of the names in the popup and
that will cause all data about that person to be displayed in the JTextArea
at the bottom of the window.
<p>
This program requires the FormLayout.class, FormLayout$Placement.class, and
FormLayout$Constraint.class files in the same directory
(folder) or in its classpath. These is provided separately.
class PartMatch extends JFrame implements Runnable
/** Close down the program. */
JButton quitbtn;
/** Field for the surname. */
JTextField namefld;
/** Full details of the person(s). */
JTextArea results;
/** Popup dialog to display the names and addresses which
match the leading characters given in namefld. */
Chooser matches;
/** Default background color for a window. */
final static Color defBackground = new Color(0xD0C0C0);
/** Default foreground color for a window. */
final static Color defForeground = new Color(0x000000);
/** Default background color for a field */
final static Color fldBackground = new Color(0xFFFFFF);
/** Default background color for a button */
final static Color btnBackground = new Color(0xF0E0E0);
final static Color dkBackground = new Color(0xB0A0A0);
/** Larger font */
final static Font bold = new Font("Helvetica", Font.BOLD, 30);
TreeSet members;
String input;
String[] found;
public static void main(String arg[])
UIManager.put("TextField.background",fldBackground);
UIManager.put("TextField.foreground",defForeground);
UIManager.put("TextField.selectionBackground",btnBackground);
UIManager.put("TextArea.background",fldBackground);
UIManager.put("TextArea.foreground",defForeground);
UIManager.put("TextArea.selectionBackground",btnBackground);
UIManager.put("Panel.background",defBackground);
UIManager.put("Label.background",defBackground);
UIManager.put("Label.foreground",defForeground);
UIManager.put("Button.background",btnBackground);
UIManager.put("Button.foreground",defForeground);
UIManager.put("CheckBox.background",defBackground);
UIManager.put("ScrollBar.background",defBackground);
UIManager.put("ScrollBar.thumb",btnBackground);
UIManager.put("ComboBox.background",btnBackground);
UIManager.put("ComboBox.selectionBackground",dkBackground);
PartMatch trial = new PartMatch(arg);
public PartMatch( String [] arg )
super("Part Match");
setDefaultCloseOperation(EXIT_ON_CLOSE);
Container cpane = getContentPane();
FormLayout form = new FormLayout(cpane);
JLabel lab1 = new JLabel("Fetch details") ;
lab1.setFont( bold );
form.setTopAnchor( lab1, 4 );
form.setLeftAnchor( lab1, 4 );
JLabel lab2 = new JLabel("Surname: ") ;
form.setTopRelative( lab2, lab1, 4 );
form.setLeftAlign( lab2, lab1 );
namefld = new JTextField( 30 );
form.setBottomAlign( namefld, lab2 );
form.setLeftRelative( namefld, lab2, 4 );
namefld.addCaretListener( new CaretListener()
public void caretUpdate(CaretEvent e)
showMatches();
quitbtn = new JButton( "Quit" );
quitbtn.addActionListener( new ActionListener()
public void actionPerformed(ActionEvent e)
quitProcessing();
form.setBottomAlign( quitbtn, namefld );
form.setLeftRelative( quitbtn, namefld, 15 );
results = new JTextArea( 10,50 );
results.setEditable(false);
JScrollPane jsp = new JScrollPane( results,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED );
form.setTopRelative( jsp, lab2, 6 );
form.setLeftAlign( jsp, lab2 );
form.setBottomAnchor( jsp, 5 );
form.setRightAnchor( jsp, 5 );
form.setRightAnchor( quitbtn, 5 );
matches = new Chooser( this );
//matches.setUndecorated(true);
pack();
setVisible(true);
namefld.requestFocus();
if (arg.length > 0) init(arg[0]);
else init("triathlon.txt"); //<<<<<<<<<<<<<<<< Place the default filename here
/** Called once only, at the end of the constructor, to read the data
* from the membership file.
public void init( String fname )
members = new TreeSet();
try {
FileReader fr = new FileReader(new File (fname));
Scanner scan = new Scanner(fr);
trimember cmem;
String cLine, eTag, memberNo, first, last, gender, yob, tel ,addr,
club;
while(scan.hasNextLine())
cLine = scan.nextLine();
Scanner scan2 = new Scanner(cLine);
scan2.useDelimiter(";");
eTag = scan2.next().trim();
memberNo = scan2.next().trim();
first = scan2.next().trim();
last = scan2.next().trim();
gender = scan2.next().trim();
yob = scan2.next().trim();
tel = scan2.next().trim();
addr = scan2.next().trim();
club = scan2.next().trim();
cmem = new trimember(eTag, memberNo, first, last, gender, yob,
tel, addr, club);
members.add(cmem);
catch (FileNotFoundException ex)
results.append("Sorry can't find the input file\n");
results.append("Please check file name and location and try again");
ex.printStackTrace();
/** Called every time there is a change in the contents of the text field
* namefld. It will first clear the text area. It then needs to search
* through the container of data to find all records where the surname
* starts with the characters that have been typed. The names and
* addresses need to be set up as strings and placed in
* an array of Strings. This can be placed in the "matches" window and
* displayed for the user, inviting one to be selected.
* <p>
* The performance of this is very important. If necessary, it may be
* necessary to run as a separate thread so that the user interface is
* not delayed. It is essential that the user be able to type letters at a
* reasonable speed and not have the keystroke processing held up by
* previous text.
public void showMatches( )
run();
// First clear the text area
//results.setText("");
// Determine the leading characters of the surname that is wanted
input = namefld.getText();
// Locate the data for this name, and display each matching item
// in the JTextArea ...
// Example of how to set the data in the popup dialog
matches.list.setListData(found);
matches.pack(); // resize the popup
// set the location of the popup if it is not currently visible
if ( ! matches.isVisible())
Dimension sz = matches.getSize();
Point mouse = getMousePosition();
Point framepos = getLocation();
int x=0, y=0;
if (mouse == null)
Point pt = results.getLocation();
x = pt.x + 20 + framepos.x;
y = pt.y + 20 + framepos.y;
else
x = mouse.x - 2 + framepos.x;
y = mouse.y - 2 + framepos.y;
matches.setLocation(x,y);
matches.setVisible(true);
namefld.requestFocus();
/** Perform any final processing before closing down.
public void quitProcessing( )
// Any closing work. Then
System.exit(0);
public void run()
ArrayList<String> foundit = new ArrayList<String>();
System.out.println(input);
if(input != null)
Iterator it = members.iterator();
while(it.hasNext())
trimember test = (trimember) it.next();
if (test.last.startsWith(input))
foundit.add(test.last +", "+ test.first);
found = new String[foundit.size()];
for(int i=0; i<foundit.size();i++)
found[i] = foundit.get(i);
/** A window for displaying names and addresses from the data set which
match the leading characters in namefld.
<p>
This will automatically pop down if the user moves the mouse out of the
window.
<p>
It needs code added to it to respond to the user clicking on an item in
the displayed list. */
class Chooser extends JWindow
/** To display a set of names and addresses that match the leading
characters of the namefld text field. */
public JList list = new JList();
Chooser( JFrame parent )
super( parent );
Container cpane = getContentPane();
cpane.addMouseListener( new MouseAdapter()
public void mouseExited(MouseEvent e)
Chooser.this.setVisible(false);
cpane.add("Center",list);
list.addListSelectionListener( new ListSelectionListener()
public void valueChanged(ListSelectionEvent e)
Chooser.this.setVisible(false);
System.out.println("ValueChanged");
// First clear the text area
results.setText("");
String in = (String) list.getSelectedValue();
System.out.println("Selected Value was : "+in);
String[] inlf = in.split(", ");
System.out.println("inlf[0]:"+inlf[0]+" inlf[1]:"+inlf[1]);
results.append("Surname \tFirst \teTag \tMemberNo \tSex \tYOB " +
"\tTel \tAddress \t\t\tClub\n");
Iterator it = members.iterator();
while(it.hasNext())
trimember test = (trimember) it.next();
if (test.last.equals(inlf[0])&&test.first.equals(inlf[1]))
results.append(test.toString()+"\n");
namefld.requestFocus();
public class trimember implements Comparable
String eTag;
public String memberNo;
public String first;
public String last;
String gender;
String yob;
String tel;
String addr;
String club;
public trimember(String eT, String me, String fi, String la,
String ge, String yo, String te, String ad, String cl)
eTag = eT;
memberNo = me;
first = fi;
last = la;
gender = ge;
yob = yo;
tel = te;
addr = ad;
club = cl;
//To String method to output string of details
public String toString()
return last + "\t" + first + "\t" + eTag + "\t" +
memberNo + "\t" + gender + "\t" + yob + "\t"+ tel + "\t" +
addr + "\t" + club;
//Compare and sort on Last name
public int compareTo(Object o)
trimember com = (trimember) o;
int lastCmp = last.compareTo(com.last);
int firstCmp = first.compareTo(com.first);
int memCmp = memberNo.compareTo(com.memberNo);
if (lastCmp == 0 && firstCmp !=0)return firstCmp;
else if (lastCmp==0&&firstCmp==0)return memCmp;
else return lastCmp;
}Please don't cross-post. It is considered very rude to do that here:
http://forum.java.sun.com/thread.jspa?messageID=9953193 -
Help needed, Providing Dynamic User input
Hello,
I am attempting to create some dynamic user input by "predicting" what the user requires in a text box.
For example if the user enters "Smi" I have a select list pop up which gives the user all options that begin with "Smi".
I am able to achieve the popups but the interface is quite jerky and not terribly responsive I am trying to solve this by using a thread which starts and stops when new input is received but it is still not quite right.
The program uses a Sorted TreeSet to hold the data (I thought this would give me a quick search time) and a simple interface at this stage.
Any help would be fantastic
Thanks in advance :P
import java.io.*;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.event.*;
import java.text.*;
import java.util.*;
/** This program represents part of a larger user interface for allowing the
user to select data from a file or database.
<p>
When the program starts up, it will read in data from a given file, and hold
it in some type of container allowing rapid access.
<p>
The user may then type in the first few letters of the surname of a person,
and this program should immediately present in a popup dialog the names which
match. The user will be able to click on one of the names in the popup and
that will cause all data about that person to be displayed in the JTextArea
at the bottom of the window.
<p>
This program requires the FormLayout.class, FormLayout$Placement.class, and
FormLayout$Constraint.class files in the same directory
(folder) or in its classpath. These is provided separately.
class PartMatch extends JFrame implements Runnable
/** Close down the program. */
JButton quitbtn;
/** Field for the surname. */
JTextField namefld;
/** Full details of the person(s). */
JTextArea results;
/** Popup dialog to display the names and addresses which
match the leading characters given in namefld. */
Chooser matches;
/** Default background color for a window. */
final static Color defBackground = new Color(0xD0C0C0);
/** Default foreground color for a window. */
final static Color defForeground = new Color(0x000000);
/** Default background color for a field */
final static Color fldBackground = new Color(0xFFFFFF);
/** Default background color for a button */
final static Color btnBackground = new Color(0xF0E0E0);
final static Color dkBackground = new Color(0xB0A0A0);
/** Larger font */
final static Font bold = new Font("Helvetica", Font.BOLD, 30);
TreeSet members;
String input;
String[] found;
public static void main(String arg[])
UIManager.put("TextField.background",fldBackground);
UIManager.put("TextField.foreground",defForeground);
UIManager.put("TextField.selectionBackground",btnBackground);
UIManager.put("TextArea.background",fldBackground);
UIManager.put("TextArea.foreground",defForeground);
UIManager.put("TextArea.selectionBackground",btnBackground);
UIManager.put("Panel.background",defBackground);
UIManager.put("Label.background",defBackground);
UIManager.put("Label.foreground",defForeground);
UIManager.put("Button.background",btnBackground);
UIManager.put("Button.foreground",defForeground);
UIManager.put("CheckBox.background",defBackground);
UIManager.put("ScrollBar.background",defBackground);
UIManager.put("ScrollBar.thumb",btnBackground);
UIManager.put("ComboBox.background",btnBackground);
UIManager.put("ComboBox.selectionBackground",dkBackground);
PartMatch trial = new PartMatch(arg);
public PartMatch( String [] arg )
super("Part Match");
setDefaultCloseOperation(EXIT_ON_CLOSE);
Container cpane = getContentPane();
FormLayout form = new FormLayout(cpane);
JLabel lab1 = new JLabel("Fetch details") ;
lab1.setFont( bold );
form.setTopAnchor( lab1, 4 );
form.setLeftAnchor( lab1, 4 );
JLabel lab2 = new JLabel("Surname: ") ;
form.setTopRelative( lab2, lab1, 4 );
form.setLeftAlign( lab2, lab1 );
namefld = new JTextField( 30 );
form.setBottomAlign( namefld, lab2 );
form.setLeftRelative( namefld, lab2, 4 );
namefld.addCaretListener( new CaretListener()
public void caretUpdate(CaretEvent e)
showMatches();
quitbtn = new JButton( "Quit" );
quitbtn.addActionListener( new ActionListener()
public void actionPerformed(ActionEvent e)
quitProcessing();
form.setBottomAlign( quitbtn, namefld );
form.setLeftRelative( quitbtn, namefld, 15 );
results = new JTextArea( 10,50 );
results.setEditable(false);
JScrollPane jsp = new JScrollPane( results,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED );
form.setTopRelative( jsp, lab2, 6 );
form.setLeftAlign( jsp, lab2 );
form.setBottomAnchor( jsp, 5 );
form.setRightAnchor( jsp, 5 );
form.setRightAnchor( quitbtn, 5 );
matches = new Chooser( this );
//matches.setUndecorated(true);
pack();
setVisible(true);
namefld.requestFocus();
if (arg.length > 0) init(arg[0]);
else init("triathlon.txt"); //<<<<<<<<<<<<<<<< Place the default filename here
/** Called once only, at the end of the constructor, to read the data
* from the membership file.
public void init( String fname )
members = new TreeSet();
try {
FileReader fr = new FileReader(new File (fname));
Scanner scan = new Scanner(fr);
trimember cmem;
String cLine, eTag, memberNo, first, last, gender, yob, tel ,addr,
club;
while(scan.hasNextLine())
cLine = scan.nextLine();
Scanner scan2 = new Scanner(cLine);
scan2.useDelimiter(";");
eTag = scan2.next().trim();
memberNo = scan2.next().trim();
first = scan2.next().trim();
last = scan2.next().trim();
gender = scan2.next().trim();
yob = scan2.next().trim();
tel = scan2.next().trim();
addr = scan2.next().trim();
club = scan2.next().trim();
cmem = new trimember(eTag, memberNo, first, last, gender, yob,
tel, addr, club);
members.add(cmem);
catch (FileNotFoundException ex)
results.append("Sorry can't find the input file\n");
results.append("Please check file name and location and try again");
ex.printStackTrace();
/** Called every time there is a change in the contents of the text field
* namefld. It will first clear the text area. It then needs to search
* through the container of data to find all records where the surname
* starts with the characters that have been typed. The names and
* addresses need to be set up as strings and placed in
* an array of Strings. This can be placed in the "matches" window and
* displayed for the user, inviting one to be selected.
* <p>
* The performance of this is very important. If necessary, it may be
* necessary to run as a separate thread so that the user interface is
* not delayed. It is essential that the user be able to type letters at a
* reasonable speed and not have the keystroke processing held up by
* previous text.
public void showMatches( )
run();
// First clear the text area
//results.setText("");
// Determine the leading characters of the surname that is wanted
input = namefld.getText();
// Locate the data for this name, and display each matching item
// in the JTextArea ...
// Example of how to set the data in the popup dialog
matches.list.setListData(found);
matches.pack(); // resize the popup
// set the location of the popup if it is not currently visible
if ( ! matches.isVisible())
Dimension sz = matches.getSize();
Point mouse = getMousePosition();
Point framepos = getLocation();
int x=0, y=0;
if (mouse == null)
Point pt = results.getLocation();
x = pt.x + 20 + framepos.x;
y = pt.y + 20 + framepos.y;
else
x = mouse.x - 2 + framepos.x;
y = mouse.y - 2 + framepos.y;
matches.setLocation(x,y);
matches.setVisible(true);
namefld.requestFocus();
/** Perform any final processing before closing down.
public void quitProcessing( )
// Any closing work. Then
System.exit(0);
public void run()
ArrayList<String> foundit = new ArrayList<String>();
System.out.println(input);
if(input != null)
Iterator it = members.iterator();
while(it.hasNext())
trimember test = (trimember) it.next();
if (test.last.startsWith(input))
foundit.add(test.last +", "+ test.first);
found = new String[foundit.size()];
for(int i=0; i<foundit.size();i++)
found[i] = foundit.get(i);
/** A window for displaying names and addresses from the data set which
match the leading characters in namefld.
<p>
This will automatically pop down if the user moves the mouse out of the
window.
<p>
It needs code added to it to respond to the user clicking on an item in
the displayed list. */
class Chooser extends JWindow
/** To display a set of names and addresses that match the leading
characters of the namefld text field. */
public JList list = new JList();
Chooser( JFrame parent )
super( parent );
Container cpane = getContentPane();
cpane.addMouseListener( new MouseAdapter()
public void mouseExited(MouseEvent e)
Chooser.this.setVisible(false);
cpane.add("Center",list);
list.addListSelectionListener( new ListSelectionListener()
public void valueChanged(ListSelectionEvent e)
Chooser.this.setVisible(false);
System.out.println("ValueChanged");
// First clear the text area
results.setText("");
String in = (String) list.getSelectedValue();
System.out.println("Selected Value was : "+in);
String[] inlf = in.split(", ");
System.out.println("inlf[0]:"+inlf[0]+" inlf[1]:"+inlf[1]);
results.append("Surname \tFirst \teTag \tMemberNo \tSex \tYOB " +
"\tTel \tAddress \t\t\tClub\n");
Iterator it = members.iterator();
while(it.hasNext())
trimember test = (trimember) it.next();
if (test.last.equals(inlf[0])&&test.first.equals(inlf[1]))
results.append(test.toString()+"\n");
namefld.requestFocus();
public class trimember implements Comparable
String eTag;
public String memberNo;
public String first;
public String last;
String gender;
String yob;
String tel;
String addr;
String club;
public trimember(String eT, String me, String fi, String la,
String ge, String yo, String te, String ad, String cl)
eTag = eT;
memberNo = me;
first = fi;
last = la;
gender = ge;
yob = yo;
tel = te;
addr = ad;
club = cl;
//To String method to output string of details
public String toString()
return last + "\t" + first + "\t" + eTag + "\t" +
memberNo + "\t" + gender + "\t" + yob + "\t"+ tel + "\t" +
addr + "\t" + club;
//Compare and sort on Last name
public int compareTo(Object o)
trimember com = (trimember) o;
int lastCmp = last.compareTo(com.last);
int firstCmp = first.compareTo(com.first);
int memCmp = memberNo.compareTo(com.memberNo);
if (lastCmp == 0 && firstCmp !=0)return firstCmp;
else if (lastCmp==0&&firstCmp==0)return memCmp;
else return lastCmp;
}Edited by: Roger on Nov 3, 2007 11:50 AMPlease don't cross-post. It is considered very rude to do that here:
http://forum.java.sun.com/thread.jspa?threadID=5233033&messageID=9953169#9953169 -
Help needed on Dynamic XML PDF
Hello,
I have an urgent need of help. We had a client requirement to develolp a custom form fillable Flowable template. We used adobe LiveCycle Designer to create a flowable form where fields can be suppressed\expanded to save space. LiveCycle form fields are databinded with the XML Schema at design time. After creating forms, data is prepopulated using the 3rd party ITextsharp for .NET dll using a FillXFA API. Filled PDF document appears fine with the data by adobe reader.
However, after we try to either convert this form to an Image I don't see DATA in the form and only see the static template. Our requirement is to take the populated PDF and merge it with another static PDF document. I am new to the adobe livecycle forms and needs assistance. I guess the issue is that final populated form is still XML, So If I open this form that is prepopulated with data into LiveCycle I don't see the data and only template, But we can view the populated form fine with data through adobe reader. Even through windows file preview I only see template, but after I open the file through reader I see the data. If through some way we can convert this snapshot (dynamic pdf = populated data with template) to a static pdf or flatten out the dynamic pdf, it will suffice our requirement.We are sort of stuck from past 10 days on this issue. Any help\feedback is greatly appreciated.
Please let me know if you need any input or examples. Thanks for your time.
Thank You,
Himali VaidHarshit Rungta:
You have opened a number of related questions today. I'd like to see the other ones closed before you continue with this one.
I'll lock this but will re-open it once the others are marked as solved.
Rob -
Help needed when dynamically creating new stage sprites
Morning folks,
I'm feeling very rusty when asking this question! It feels
like I should
know the answer but simply unable to comprehend where I'm
going wrong at the
moment!!
I'm in the process of creating a Director piece that involves
the user
having to drag "shapes" onto a pre-defined grid [drag and
drop style] --
there are currently three different types of shape that can
be dragged of
which many of the shapes can be of the same type. So I need
to display the
three shape types on one side of the screen and allow the
user to drag and
drop as many as they wish to the girded area.
I've written the drag and drop routine but now having
difficulty in
producing the dynamic creation of a new draggable shape; so
far I've managed
to create a new "shape" sprite from my cast library and
placed it in the
correct location. Then I create and add a new instance of my
"Drag and Drop"
behaviour onto the newly created sprite, but this is where it
goes wrong --
although I can drag the dynamically created sprite, once
dropped Director
complains of not knowing what its local properties are, for
example I'm
unable to reference the locH and locV of the newly created
sprite!
I'm really at a loss on this one and would appreciate any
kind of guidance!
Many thanks in advance, Mark ;-)Hi Saravanan,
>>>><b>First column - Welcome message , below Date , time and place</b>
It is possible to add date, time and location in the welcome area. Jus add a table to the <td> of the welcome area container. Like this.
<% Date d= new Date(); %>
<TD nowrap class="prtlHdrWelcome" ti="0" tabIndex="0" id="welcome_message"><%=StringUtils.escapeToHTML(GetWelcomeMsg(componentRequest, welcomeClauseStr))%><table width="100"><tr><td nowrap><%=d%></td><td>INDIA</td></tr></table></TD>
Hope it helps.
Regards,
Saravanan
P.S: Hope you remember the thread
<a href="http://">https://www.sdn.sap.com/irj/sdn/thread?threadID=152135&messageID=1703666</a> -
Help need for webserver configuration
Hi
i need configuration help from your side..I need to configuration for allowing traffic for webserver. topology was router-> firewall-->ace--> webserevr
-
Help needed regarding Dynamic Programming
Hi,
While doing dynamic programming , we bind the context variable with two types of
values .
1 . ddic
2 . extern
My doubt is in which case we should use ddic and where to use extern .
Can anybody help me out regarding this.
Thanks a lot.Hi Ki,
Predefined, Web Dynpro UI-specific, and user-defined Dictionary types all have the
prefix ddic:.
wdContext.getNodeInfo()
.addAttribute(
"Visibility",
"ddic:com.sap.ide.webdynpro.uielementdefinitions.Visbility")
Logical Dictionary types from Adaptive RFC models have the prefix extern:.
Check this links
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9214b1e5-0601-0010-fdb0-ec32d43b06e0
/people/dipankar.saha3/blog/2007/05/31/how-to-create-dynamic-approval-process-using-conditional-loop-block-in-guided-procedure
Regards,
Mithu -
Help needed for IPC configuration error
hi all,
I have installed IPC according to installation guide, RFC's are working perfectly. IPC_COM_SESSION_BEGIN gives a value. Still i get the following error while checking the ipc monitor n runnin the test.
Testing IPC standard installation. This test checks the IPC standard installation.Requires the default database. If Web Phone WP-940
is not in your database or not maintained
as expected, this test may fail.
Response tested successfully
Error while creating documentnull
Dispatcher gives
Using JAVA_HOME: C:\j2sdk1.4.2_03
Using CLASSPATH: ..\lib\IPCCustPatch.jar;..\lib\IPCPatch.jar;..\lib;..\lib\IPCEx
t.jar;..\lib\SAP_IPC.jar;..\lib\thirdParty.jar;..\lib\iaik_ssl.jar;..\lib\iaik_j
ce.jar
Using PATH: D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program
Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\W
bem;%java_home%\bin
Feb 17, 2007 1:42:58 PM com.sap.sxe.log.log_api.SXE.ModuleMgr [main] Debug:
Couldn't determine location of command GetPatchInfo in module SYSTEM
Feb 17, 2007 1:42:58 PM ....socket.server.dispatcher.RegisterMgr [main] Info: C
ontacting basis system
Feb 17, 2007 1:42:58 PM ....socket.server.dispatcher.RegisterMgr [main] Info: R
etrieved gateway settings from SAP Basis SystemCRMSERVER:sapgw09,CRMSERVER:sapgw
09
Feb 17, 2007 1:42:58 PM ....socket.server.dispatcher.RegisterMgr [main] Info: D
ispatcher settings:
Try 1000 ms to ping an IPC server.
Don't contact IPC servers the next 60000 ms after a ping.
Use normal load balancing without any specialized servers.
Specialized servers are generalized to replace dead ones.
Load one leaves a server alone for 45000 msec.
RFC support is enabled.
(dispatcher:IPC_RFC_DISPATCHER, servers:IPC_RFC_SERVER_1
gateways:CRMSERVER:sapgw09,CRMSERVER:sapgw09) Don't send mail
about servers that are down.
Feb 17, 2007 1:42:58 PM com.sap.sxe.socket.server.ServerBase [main] Info: I
PC Security-Level: 0
Feb 17, 2007 1:42:59 PM com.sap.sxe.socket.server.ServerBase [Main TCP/IP L
oop] Info: SAP IPC Dispatcher start
Feb 17, 2007 1:42:59 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Info: JCO Version: 2.1.3 (2004-03-08)
Feb 17, 2007 1:42:59 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Info: JCO Middleware Version: 2.1.3 (2004-03-08)
Feb 17, 2007 1:42:59 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Info: Libjrfc version: 2.1.3 (2004-03-08)
Feb 17, 2007 1:42:59 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Info: librfc version:
This RFC library belongs to the SAP R/3 Release *** 640,0,21 *** MT-SL
Versions of SAP internal libraries:
dptr: 2
ni : 37
cpic: 3
rfc : 3
Feb 17, 2007 1:42:59 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Info: Path to JCO: jar:file:/D:/ipc/lib/thirdParty.jar!/com/sap/mw/jco/JCO.
class
Feb 17, 2007 1:42:59 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Error: Repository Error: Malformed Repository Entry: GetSupportedSAPClients
(no export SPC_ERROR_NUMBER)
Feb 17, 2007 1:42:59 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Error: Repository Error: Malformed Repository Entry: Ping (no export SPC_ER
ROR_NUMBER)
Feb 17, 2007 1:42:59 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Info: JCO_MW_MAX_STARTUP_DELAY = 3600. Assigned this value to jco.middlewar
e.max_startup_delay
Feb 17, 2007 1:42:59 PM ...server.rfc.RFCServer$JCOTraceListener [Main TCP/IP L
oop] Error: Please note: JCO Tracelevel 0 messages are mapped to error messages.
Typically they do not reflect IPC errors. JCO Error messages are typically no c
ause for concern
Feb 17, 2007 1:42:59 PM com.sap.sxe.socket.server.rfc.RFCServer [Main TCP/IP L
oop] Debug: RFC Server is non-unicode server
Feb 17, 2007 1:42:59 PM com.sap.sxe.socket.server.rfc.RFCServer [Main TCP/IP L
oop] Debug: RFC Server is non-unicode server
Feb 17, 2007 1:42:59 PM com.sap.sxe.socket.server.rfc.RFCServer [Main TCP/IP L
oop] Debug: RFC Server is non-unicode server
Feb 17, 2007 1:42:59 PM com.sap.sxe.socket.server.rfc.RFCServer [Main TCP/IP L
oop] Debug: RFC Server is non-unicode server
Feb 17, 2007 1:42:59 PM com.sap.sxe.socket.server.rfc.RFCServer [Main TCP/IP L
oop] Debug: RFC Server is non-unicode server
Feb 17, 2007 1:42:59 PM ... RFC Servers for program/destination [Main TCP/IP L
oop] Info: IPC_RFC_DISPATCHER via CRMSERVER:sapgw09
Feb 17, 2007 1:42:59 PM com.sap.sxe.socket.server.JavaServer [Admin TCP/IP
Loop] Info: Started Admin Thread on port 9163
Feb 17, 2007 1:42:59 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Info: SAP IPC Dispatcher 4.0 SP07 started at Sat Feb 17 13:42:59 GMT+05:30
2007 on port 4444
Feb 17, 2007 1:43:05 PM ...ket.server.SocketConnection.CRMSERVER [WorkerThread-
1] Debug: request: <HEAD OP="Register" STATUS="STATUS" LEN="27" />host=192.168.0
.50&port=9999
Feb 17, 2007 1:43:05 PM ...ket.server.dispatcher.RegisterWrapper [WorkerThread-
1] Info: IPC Client Security-Level: 0
Feb 17, 2007 1:43:05 PM ...e.socket.server.dispatcher.ServerInfo [WorkerThread-
1] Info: 192.168.0.50:9999 Sat Feb 17 13:43:05 server registered
Feb 17, 2007 1:43:05 PM ...et.server.command.dispatcher.Register [WorkerThread-
1] Info: Server registered: 192.168.0.50:9999
Feb 17, 2007 1:43:05 PM ...xe.socket.server.CommandMgr.CRMSERVER [WorkerThread-
1] Info: command executed:Register, response code:200
Feb 17, 2007 1:43:05 PM ...ket.server.SocketConnection.CRMSERVER [WorkerThread-
1] Debug: response: <HEAD OP="Register" ID="79920001" STATUS="200" LEN="77" />
rfcProgramId=IPC_RFC_SERVER_1&rfcGatewayHost=CRMSERVER&rfcGatewayPort=sapgw09
Feb 17, 2007 1:43:05 PM ...ket.server.SocketConnection.CRMSERVER [WorkerThread-
1] Debug: response time of command Register: 172
Feb 17, 2007 1:43:59 PM ...ket.server.dispatcher.RegisterWrapper [Thread-2] Deb
ug: PING for 192.168.0.50:9999 (31 msec, load: 100/0)
Feb 17, 2007 1:43:59 PM ...ket.server.dispatcher.RegisterWrapper [Thread-2] Deb
ug: Updated value is 5741 (31 ping, 100/0 load, never used)
Feb 17, 2007 1:43:59 PM com.sap.sxe.socket.server.Storage [Cleaner] Debu
g: Session cleanup finished after 0 msec
Server gives
Using JAVA_HOME: C:\j2sdk1.4.2_03
Using CLASSPATH: ..\lib\IPCCustPatch.jar;..\lib\IPCPatch.jar;..\lib;..\lib\IPCEx
t.jar;..\lib\SAP_IPC.jar;..\lib\thirdParty.jar;..\lib\classes12.zip;..\lib\iaik_
ssl.jar;..\lib\iaik_jce.jar
Using PATH: D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program
Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\W
bem;%java_home%\bin
Feb 17, 2007 1:43:03 PM com.sap.sxe.log.log_api.SXE.ModuleMgr [main] Debug:
Couldn't determine location of command GetPatchInfo in module SYSTEM
Feb 17, 2007 1:43:04 PM com.sap.sxe.log.log_api.SXE.ModuleMgr [main] Debug:
Couldn't determine location of command PMESetSessionLanguage in module PME
Feb 17, 2007 1:43:04 PM com.sap.sxe.log.log_api.SXE.ModuleMgr [main] Debug:
Couldn't determine location of command RemoveProduct in module IPC
Feb 17, 2007 1:43:04 PM com.sap.sxe.log.log_api.SXE.ModuleMgr [main] Debug:
Couldn't determine location of command CreateAdminSession in module IPC
Feb 17, 2007 1:43:04 PM com.sap.sxe.log.log_api.SXE.ModuleMgr [main] Debug:
Couldn't determine location of command Profiler in module IPC
Feb 17, 2007 1:43:04 PM com.sap.sxe.log.log_api.SXE.ModuleMgr [main] Debug:
Couldn't determine location of command DumpKnowledgeBaseBuffer in module IPC
Feb 17, 2007 1:43:04 PM com.sap.sxe.log.log_api.SXE.ModuleMgr [main] Debug:
Couldn't determine location of command getXMLProperties in module IPC_ADMIN
Feb 17, 2007 1:43:04 PM com.sap.tte.kernel4.TTEKernel [main] Info: S
tarting initialisation TTE Kernel
Feb 17, 2007 1:43:04 PM com.sap.tte.kernel4.TTEKernel [main] Info: T
TE Kernel is not enabled
getLocalHost()=CRMSERVER/192.168.0.50
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.ServerBase [main] Info: I
PC Security-Level: 0
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.ServerBase [main] Info: T
his server will restart itself when database logon fails
Feb 17, 2007 1:43:05 PM com.sap.sce.kbrt.imp.kb_loader [Thread-1] Deb
ug: Create KB_CRM_LOADER
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.ServerBase [Main TCP/IP L
oop] Info: SAP IPC Server start
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.client.Client [Main TCP/IP L
oop] Info: IPC Client Security-Level: 0
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.client.Client [Main TCP/IP L
oop] Debug: Client request: Register:host=192.168.0.50&port=9999
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.client.Client [Main TCP/IP L
oop] Debug: Client response: Register:rfcProgramId=IPC_RFC_SERVER_1&rfcGatewayHo
st=CRMSERVER&rfcGatewayPort=sapgw09
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.client.Client [Main TCP/IP L
oop] Debug: Client closed:
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Info: Server registered at dispatcher CRMSERVER:4444
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Info: JCO Version: 2.1.3 (2004-03-08)
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Info: JCO Middleware Version: 2.1.3 (2004-03-08)
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Info: Libjrfc version: 2.1.3 (2004-03-08)
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Info: librfc version:
This RFC library belongs to the SAP R/3 Release *** 640,0,21 *** MT-SL
Versions of SAP internal libraries:
dptr: 2
ni : 37
cpic: 3
rfc : 3
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Info: Path to JCO: jar:file:/D:/ipc/lib/thirdParty.jar!/com/sap/mw/jco/JCO.
class
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Error: Repository Error: Malformed Repository Entry: GetSupportedSAPClients
(no export SPC_ERROR_NUMBER)
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Error: Repository Error: Malformed Repository Entry: Ping (no export SPC_ER
ROR_NUMBER)
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Info: JCO_MW_MAX_STARTUP_DELAY = 3600. Assigned this value to jco.middlewar
e.max_startup_delay
Feb 17, 2007 1:43:05 PM ...server.rfc.RFCServer$JCOTraceListener [Main TCP/IP L
oop] Error: Please note: JCO Tracelevel 0 messages are mapped to error messages.
Typically they do not reflect IPC errors. JCO Error messages are typically no c
ause for concern
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.rfc.RFCServer [Main TCP/IP L
oop] Debug: RFC Server is non-unicode server
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.rfc.RFCServer [Main TCP/IP L
oop] Debug: RFC Server is non-unicode server
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.rfc.RFCServer [Main TCP/IP L
oop] Debug: RFC Server is non-unicode server
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.rfc.RFCServer [Main TCP/IP L
oop] Debug: RFC Server is non-unicode server
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.rfc.RFCServer [Main TCP/IP L
oop] Debug: RFC Server is non-unicode server
Feb 17, 2007 1:43:05 PM ... RFC Servers for program/destination [Main TCP/IP L
oop] Info: IPC_RFC_SERVER_1 via CRMSERVER:sapgw09
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.JavaServer [Main TCP/IP L
oop] Info: SAP IPC Server 4.0 SP07 started at Sat Feb 17 13:43:05 GMT+05:30 2007
on port 9999
Feb 17, 2007 1:43:05 PM com.sap.sxe.socket.server.JavaServer [Admin TCP/IP
Loop] Info: Started Admin Thread on port 9164
Warning in ConversionEngine: There is no entry in the table EWUKEYS. EMU currenc
y conversion disabled.
Feb 17, 2007 1:43:59 PM ...ket.server.SocketConnection.CRMSERVER [WorkerThread-
1] Debug: request: <HEAD OP="GetLoad" />
Feb 17, 2007 1:43:59 PM ...xe.socket.server.CommandMgr.CRMSERVER [WorkerThread-
1] Info: command executed:GetLoad, response code:200
Feb 17, 2007 1:43:59 PM ...ket.server.SocketConnection.CRMSERVER [WorkerThread-
1] Debug: response: <HEAD OP="GetLoad" ID="79980001" STATUS="200" LEN="24" />
socketLoad=100&rfcLoad=0
Feb 17, 2007 1:43:59 PM ...ket.server.SocketConnection.CRMSERVER [WorkerThread-
1] Debug: response time of command GetLoad: 16
Feb 17, 2007 1:44:59 PM ...ket.server.SocketConnection.CRMSERVER [WorkerThread-
1] Debug: request: <HEAD OP="GetLoad" ID="79980001" />
Feb 17, 2007 1:44:59 PM ...xe.socket.server.CommandMgr.CRMSERVER [WorkerThread-
1] Info: command executed:GetLoad, response code:200
Feb 17, 2007 1:44:59 PM ...ket.server.SocketConnection.CRMSERVER [WorkerThread-
1] Debug: response: <HEAD OP="GetLoad" ID="79980001" STATUS="200" LEN="24" />
socketLoad=100&rfcLoad=0
Feb 17, 2007 1:44:59 PM ...ket.server.SocketConnection.CRMSERVER [WorkerThread-
1] Debug: response time of command GetLoad: 0
PLS help
Thanks in advance.Hi
I m getting the below error while clicking the configuration link in the product catalog. Any idea pls?
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
at java.util.Vector.get(Vector.java:709)
at com.sap.isa.ipc.ui.jsp.action.GetMFATabAction.ecomPerform(GetMFATabAction.java:170)
at com.sap.isa.isacore.action.EComBaseAction.doPerform(EComBaseAction.java:353)
at com.sap.isa.core.BaseAction.execute(BaseAction.java:211)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at com.sap.isa.core.RequestProcessor.processActionPerform(RequestProcessor.java:674)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at com.sap.isa.core.RequestProcessor.process(RequestProcessor.java:391)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at com.sap.isa.core.ActionServlet.process(ActionServlet.java:243)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at com.sap.isa.core.RequestProcessor.processForwardConfig(RequestProcessor.java:267)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at com.sap.isa.core.RequestProcessor.process(RequestProcessor.java:391)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at com.sap.isa.core.ActionServlet.process(ActionServlet.java:243)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) -
Help needed for dynamic update form
I could really use some advice - I've been asked to build a time tracking application (basically a timesheet) and I have a fair bit done but the part I am really struggling with is the best way to accommodate some of the specifications. I am NOT a programmer (I have some coldfusion experience but nothing really advanced) so I have not managed to sucessfully integrate the various methods I've found on the web so far. The database is created and so are all the queries, and I have also written a cfc to handle the drop-down menu logic needed but I don't really know how to integrate it with the form.
Our production server has ColdFusion MX7 so all the great functionality in the CF8 examples I can't use.
The issue is the user should ideally be able to add/edit/delete multiple rows at once- I like CFGRID, and the HTML version seems best. The main issue with the Flash version is the scrolling to get to the insert/delete buttons- I couldn't see how to get rid of that. A separate add and edit form could be ok depending on how easy it is to use.
One problem I have is that I can't work out how to have default values with the grid (the userID which is a session variable, and the date which is constantly changing- there is a cfcalendar for the user to change date).
The biggest hurdle is the related select drop-downs I need- it's not quite as simple as the city,state,postcode examples. For the first drop down the pick an option- and for only 2 of those options there is a second drop-down. Anything else and it stops there. For the second drop-down, there are 2 options, and depending on which one of these they pick the 3rd drop-down pulls a query from one or another table in the database (2 entirely different things). The three options have different database tables. The main timesheet table just stores the id number from those tables (so I also need to display the names on the drop-down from the options tables not the number).
I played with simple and complicated javascript and coldfusion solutions as well, but because it's a form to update records and also because of the above specs I just couldn't get anything to work right. I tried binding with the cfc and nothing would bind, plus I don't know how to make all happen without a page reload.
Does anyone have any advice for the best approach to this? As I mentioned I've got tables, queries and even a cfc but I'm not too clear on how to put it all together properly within the constraints of MX7.
PS I also can't post a lot of code because of where I work- I know that's not helpful but am looking for the best approach to this, then I can work on the details. Right now I am jumping from solution to solution and not getting anywhere.Well, a lot of code has come and gone because I couldn't make it work, where I'm currently at is:
<cfform name="updateform" id="updateform" action="#CurrentPage#?#CGI.QUERY_STRING#">
<cfgrid name="MainData" height="400" insertbutton="add" deletebutton="remove" query="getMainData" insert="yes" delete="yes" rowheight="20" selectmode="edit" format="html">
<cfgridcolumn name="id" display="no">
<cfgridcolumn name="userID" display="no">
<cfgridcolumn name="entrydate" display="no">
<cfgridcolumn name="activityID" >
<cfgridcolumn name="typeID">
<cfgridcolumn name="projectID" values="#ValueList(getProjects.id)#" valuesdisplay="#ValueList(getProjects.name)#">
<cfgridcolumn name="time" width="10">
<cfgridcolumn name="comment" width="150">
</cfgrid>
<cfinput type="hidden" name="entrydate" value="#Session.username#">
<cfinput type="hidden" name="entrydate" value="#editdate#">
<cfinput name="update" type="Submit" value="Update">
</cfform>
** for some reason getProjects.name doesn't work and causes an error. I haven't worked out how to get the default inputs for the date and user ID to work either. I also tried binding and a flash form somewhere along the way.
** the CFC is below, #ds# didn't work and I had to put in the actual DSN name, not sure why, but anyway this is the logic of the thing. Ideally I would like to use this logic with the cfgrid, but I'm not sure if that is possible? It seems like it would be the most user friendly approach.
The CFC so far is:
<cfcomponent>
<cffunction name="getActivities" access="remote" returnType="query">
<cfquery name="getActivities" datasource="#ds#">
SELECT * FROM timesheet_activities
</cfquery>
<cfreturn getActivities>
</cffunction>
<cffunction name="getTypes" access="remote" returnType="query">
<cfargument name="Activity" type="any" required="true">
<cfif ARGUMENTS.Activity EQ "">
<cfset getType = "">
<cfelse>
<cfquery name="getTypes" datasource="#ds#">
SELECT * FROM timesheet_type
</cfquery>
</cfif>
<cfreturn getTypes>
</cffunction>
<cffunction name="GetProjects" access="remote" returnType="query">
<cfargument name="Activity" type="any" required="true">
<cfargument name="Type" type="any" required="true">
<cfif ARGUMENTS.Activity EQ "" OR ARGUMENTS.Type EQ "">
<cfset LstProjects = "">
<cfelseif ARGUMENTS.Activity EQ "1" OR "3">
<cfquery name="getProjects" datasource="#ds#">
SELECT id,name FROM projectsa
WHERE completed = 'false'
</cfquery>
<cfelse>
<cfquery name="getEProjects" datasource="#dse#">
SELECT id,name FROM projectsb
WHERE statusID = '6'
</cfquery>
</cfif>
<cfreturn getProjects>
</cffunction>
</cfcomponent>
Any attempts to actually use the cfc didn't work. I tried to use it with a normal html update form and got the message- failed to bind, Activity didn't exist. I also tried to bind it to a flash grid. The argument for Activity needs to come from the drop-down Activity type selected. Maybe I'm missing something.
ETA:
just moved everything to the live MX7 server (because my dev server is Coldfusion8) and I get the following:
Attribute validation error for tag CFGRID. The tag does not allow the attribute(s) BINDONLOAD,BIND.
Does this mean I definitely can't use the CFC with the cfgrid on MX7? Or is there a way to do it?
Any advice would be greatly appreciated. -
Help Needed with Dynamic RePort PAges
I've created a link that dynamically will generate a data
report from my db. I have about 30 reports the client needs to be
able to run. Do I have to create a separate page for every single
recordset?? Is there a more efficient way to do this??You could make a drop down menu with the name of the report
in it and then show that report on the redirect page using an if
statement to determine which sql statement to run. Also you can
have multiple recordset on a page.
Are you using php, asp or cfm? -
I am looking to create a good dynamic text scroller like the
one that
is a component. Any one have information on how to make one
it is
really appreciated.
Thanks
RandyIn your program and dynamic actions use structure RP50D for return dates (RP50D-DATE1 and RP50D-DATE2 to retrun values)
0000 06 75 I INS,0041,,,(RP50D-DATE1),(RP50D-DATE2)/D
0000 06 76 W P0041-DAR01='01'
0000 06 77 W P0041-DAT01=RP50D-DATE1
PROGRAM ZHPADYN.
TABLES : RP50D,
P0000,
P0041.
*& Form GET_DATE
* text
FORM GET_DATE .
DATA : I0041 LIKE P0041,
L_DAT LIKE P0041-DAT01,
L_DAR LIKE P0041-DAR01.
PERFORM READ_INFOTYPE(SAPFP50P) USING P0000-PERNR
'0041'
P0000-BEGDA
P0000-ENDDA
'1'
'NOP'
I0041.
DO 12 TIMES
VARYING L_DAR FROM I0041-DAR01 NEXT I0041-DAR02
VARYING L_DAT FROM I0041-DAT01 NEXT I0041-DAT02.
IF L_DAR = 'HR'.
RP50D-DATE1 = L_DAT.
ENDIF.
IF L_DAR = 'PE'.
RP50D-DATE2 = L_DAT.
ENDIF.
ENDDO.
ENDFORM. "GET_DATE
Hope this helps,
Puneet -
Hi,
Can we use dynamic table name in PL/SQL.
My query is “select col_nm from table_nm”. Here I have to pass the table_nm using cursor.
I tried giving “select col_nm from cursor.table_nm”. But it not taking the cursor value for table name.
How can we do this in oracle?
Can we store the output of EXECUTE IMMEDIATE statement in a variable?Here is a small example.
DECLARE
my_table VARCHAR2(10) := 'DUAL';
my_value INTEGER;
BEGIN
EXECUTE IMMEDIATE 'SELECT 1 FROM ' || my_table INTO my_value;
DBMS_OUTPUT.PUT_LINE(my_value);
END;
you can use your cursor value in the place of my_table.
Thanks,
Karthick.
http://www.karthickarp.blogspot.com/ -
Help needed with Expressway Configuration
Hi,
I need to add following licenses on expressway (EXPWY-E-K9).
1. LIC-VCS-10+ - Video Comm Server 10 Add Non-traversal Network Calls
2. LIC-VCSE-5+ - Video Communication Server - 5 Traversal Calls
In datasheet it says N/A against these licenses. Can someone please suggest the solution to add these licenses.
Thank you.What do you have, a VCS-Expressway, or are you searching for licenses for Expressway (Edge / Core)?
The VCS is the older style of video deployment, the Expressway is the newer CUCM only based setup.
The VCS had the LIC-VCS licenenses for Calls,
Expressway has: LIC-EXP-RMS
Ordering Options for Cisco Expressway Series
Cisco Expressway Rich Media Session License
LIC-EXP-RMS
(Required for concurrent calls to/from any endpoint or application not registered to Cisco Unified Communications Manager. For example, Business to Business Calls, Cisco Collaboration Meeting Rooms, Jabber Guest and for
interworked calls e.g. H.323 to SIP, H.264 AVC to H.264 SVC)
Maybe you are looking for
-
Help! I 'm using an old G4 powerbook, Mac OSX 10.5.8, iTunes ver 10. I have multiple iTunes libraries on an external drive. Everything was fine for a while, then all of the iTunes library files, i.e. iTunes Library.itl, xml, itdb, artwork folder, Med
-
Every time I start The new ITunes it comes up with a error pls help
It comes up with erros saying" ITunes cannot run because it has detected a problem with your audio configuration" and i just bought a new ipod and its ticking me off... if anyone could leave a ipod support phone number that would be nice 2
-
How to give out a status message indicating the number of fields selected
Hi experts, I hope some one might have done what I'm trying to do. Could some one please show me how to give out a status message saying for example how many fields have been give out(or selected) in the t_ouput in an alv grid? Is there a FM that cou
-
2012 RDS Group Policy - Adobe Reader and Acrobat to Co-exist
I have a 2012 RDS session host that 20 users terminal in to.We have always had Adobe Reader installed for users to open PDF files.10 of the users required Adobe Acrobat Pro, so we obtained a license for 10 users to access Acrobat Pro.We installed Acr
-
Conditon record is not picking in CRM
I have created new condition table with new combination and downloaded to CRM from R/3. After that i have new condition records with that combination and those records also came to CRM from R/3. But when i create service order this condtion record is