Need additional field populated along with this FMS on Market Docs
During creation of a marketing doc such as Sales order, the user searches for the item which has this query loaded into item field.
SELECT T0.[ItemCode], t1.[AvgPrice],t1.[OnHand], T1.[WhsCode] FROM OITM T0 INNER JOIN OITW T1 ON T0.ItemCode = T1.ItemCode WHERE T1.[WhsCode] =(SELECT warehouse from oudg where code= 'manager') and t0.[invntitem]='Y'
Search of item field displays other info such as quanitty in warehouse and warehouse along with item code. In above case the warehouse is 02 for maanger profile.
However, on selecting any of the above items, the warehouse displayed on sales order is 01 (not 02 which is what it should have been). Why did not the relevant warehouse 02 get loaded?
How can I over come this without using just the above FMS query. Do I have to use another FMS query for warehouse field also?
Thank you.
Hi, I have this FMS query that displays items from warehouse of the logged in user's defaults. However, the actual warehouse on sales
Hi,
FMS query will only return the first column from the query result. Whatever displayed will be irrelevant. If you need Warehouse 02, FMS has to be set on warehouse column with the whscode as first column.
Thanks,
Gordon
Similar Messages
-
I just got a new iPod touch 4th generation and I'm trying to connect to my router and my iPod says, 'Cannont find network.' I don't know what to do! No other networks come up on the list so I can't 'tag' along with thier wifi. Please help. I need advice.
What type network is yu router set up for? The 4G iPod can only connect and see 2.4 GHZ networl like B, G and the 2,4 GHz N. There is also a 5 GHz N but the iPod will not even seethat network.
See:
iOS: Troubleshooting Wi-Fi networks and connections
iOS: Recommended settings for Wi-Fi routers and access points -
I am using iphone 3gs, I upgraded my i-os to 6.0 from 5.1.1 however I am facing performance issue, along with this all the applications including settings or any other shuts down automatically. Is there any way by which I can use my phone in better way?
No, downgrading from any version of iOS to an earlier version is not supported.
-
Confused if i need the enterprise DPS along with enterprise license from Apple
Do I need to buy the Enterprise DPS if I already have a Enterprise developers license with Apple? I want to develope in-house apps with indesign but everywhere i read no body gives a straight answer.
I have "creative cloud membership" which includes a single edition DPS already so I have single edition DPS now. I want to build an app using indesign and dps but host it on my own server. Can I do this with my single edition along with my enterprise developer licnese from Apple? Or do I have to buy the enterprise DPS to go along with my enterprise developers license from Apple?
thank you for your time
DarianYou will need an Enterprise DPS account along with the Enterprise Apple account. There is nothing ambiguous about this.
And you really need to read Apple’s license very carefully about private distribution. They are very strict about anything not going through the app strore. -
Need a developer to work with me - FMS/Flex/RTMFP/RTMP etc.
Hi,
I already own a video chat website that uses strictly Stratus (RTMFP), as you may already know, the connections between the peers are not always stable, as in people don't always connect to each others.
From my past programmer's opinion, it was because of Stratus, he is sure his coding is good.
With the release of FMS 4, which includes RTMFP, my plan is to modify my website so it works with FMS 4 Enterprise Edition, which I will be purchasing.
I want to combine both RTMP and RTMFP in the connections between the peers.
There are also a lot of improvements to come for my website, which is all about Flex/FMS/php/MySQL.
If you want to be the first to take part in a project that's going to be very big because of :
1. The opportunities that FMS 4 offers us;
2. The motivation I have, and that you should have!
3. The resources I have to keep growing effectively.
So, if you are competent with this type of programming project, please reply and contact me
Thanks,
Danyhttp://www.adobe.com/products/flashmediaserver/helpmechoose.html
If this is correct the RTMFP peer introduction services is available only to the Enterprise version, FMIS support RTMFP and IP unicast only, means communication is only betweend Client and FMIS possible but no peer2peer. I'm not a FMS Guru, but I think you can't replace with FMIS the Stratus service for a application as Webcam chat and if you use FMIS for it without Stratus you need to provide the needed bandwith.
If I have missunderstand I would be happy, this will save for me many bucks :-) -
Need help fixing a bug with this program...
I've been working for hours trying to fix the bug I have with this program...
http://ss.majinnet.com/AccountManager.java - This is the source code of my program
http://ss.majinnet.com/Dalzhim.jpg - This is an image used inside the program
http://ss.majinnet.com/sphereaccu.scp - This is a text file you need to use the program
First of all, to know what bug I am talking about.. You will need to download those 3 files.. Then you can compile AccountManager.java and run it.. When the program has opened, go into: File -> Open Account File
and browse until you can open up the text file sphereaccu.scp ... Then there should be a list of names appearing on the left, and when you select any, there will be variables appearing in the TextFields on the right. When that's done, all you have to do to see where the bugs are is to use the options: Edit -> Create New Account as well as Edit -> Remove Account ... When you use the Create New Account option for the first time, it works fine.. But when you use it a second time, errors are appearing on the console (can't find what generates those errors...). And the biggest problem is that when you use the Remove Account option, it doesn't remove the selected account, and over that it generates errors in the console as well...
If anyone can help me fix those errors, I'd be very grateful !won't pretend to understand everything or why you do somethings, but FWIW,
//package Dalzhim.AccountManager;
import java.io.*;
import java.awt.*;
import java.util.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.event.*;
public class AccountManager
JFrame window;
Container mainPane;
JSplitPane splitPane;
JPanel leftPane,rightPane;
JList accountList;
JTextField accountName,plevel,priv,password,totaltime,lasttime,lastchar,firstconnect;
JTextField firstIP,lastconnect,lastIP,lang;
JLabel label1,label2,label3,label4,label5,label6,label7,label8,label9,label10,label11,label12;
JMenuBar menuBar;
JMenu file,edit,end;
JMenuItem open,save,quit,create,remove,search,ab;
JFileChooser jfc,jfcs;
JButton searchButton,createButton;
JTextField searchString,newName,newPassword,newPLevel;
JDialog searchWindow,createWindow;
File accountFile = null;
File savingFile = null;
FileInputStream fis;
StringTokenizer st;
String content;
String lastSearch = "";
String[] strings,lines;
String[] parameters,arguments;
Vector accountNames;
Hashtable plevels,privs,passwords,totaltimes,lasttimes,lastchars,firstconnects;
Hashtable firstIPs,lastconnects,lastIPs,langs;
String newline = "";
int[] activated;
int lastSelection = -1;
AL al;
LL ll;
public static void main(String args[])
AccountManager am = new AccountManager();
public AccountManager()
al = new AL();
ll = new LL();
window = new JFrame("Account Manager");
mainPane = window.getContentPane();
leftPane = new JPanel();
rightPane = new JPanel();
leftPane.setLayout(new GridLayout(1,1,5,5));
rightPane.setLayout(null);
splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,leftPane,rightPane);
mainPane.setLayout(new GridLayout(1,1,5,5));
mainPane.add(splitPane);
menuBar = new JMenuBar();
file = new JMenu("File");
edit = new JMenu("Edit");
end = new JMenu("?");
menuBar.add(file);
menuBar.add(edit);
menuBar.add(end);
open = new JMenuItem("Open Account File");
open.addActionListener(al);
file.add(open);
save = new JMenuItem("Save Account File");
save.addActionListener(al);
file.add(save);
quit = new JMenuItem("Quit");
quit.addActionListener(al);
file.add(quit);
create = new JMenuItem("Create New Account");
create.addActionListener(al);
edit.add(create);
remove = new JMenuItem("Remove Selected Account");
remove.addActionListener(al);
edit.add(remove);
search = new JMenuItem("Search");
search.addActionListener(al);
edit.add(search);
ab = new JMenuItem("About");
ab.addActionListener(al);
end.add(ab);
window.setJMenuBar(menuBar);
accountList = new JList();
accountList.addListSelectionListener(ll);
leftPane.add(new JScrollPane(accountList));
accountName = new JTextField(50);
plevel = new JTextField(50);
priv = new JTextField(50);
password = new JTextField(50);
totaltime = new JTextField(50);
lasttime = new JTextField(50);
lastchar = new JTextField(50);
firstconnect = new JTextField(50);
firstIP = new JTextField(50);
lastconnect = new JTextField(50);
lastIP = new JTextField(50);
lang = new JTextField(50);
label1 = new JLabel("Account Name:");
label2 = new JLabel("Player Level:");
label3 = new JLabel("Priv Level:");
label4 = new JLabel("Password:");
label5 = new JLabel("Total Connected Time:");
label6 = new JLabel("Last Connected Time:");
label7 = new JLabel("Last Character Used:");
label8 = new JLabel("First Connect Data:");
label9 = new JLabel("First Connected IP:");
label10 = new JLabel("Last Connected Date:");
label11 = new JLabel("Last Connected IP:");
label12 = new JLabel("Language:");
rightPane.add(accountName);
rightPane.add(plevel);
rightPane.add(priv);
rightPane.add(password);
rightPane.add(totaltime);
rightPane.add(lasttime);
rightPane.add(lastchar);
rightPane.add(firstconnect);
rightPane.add(firstIP);
rightPane.add(lastconnect);
rightPane.add(lastIP);
rightPane.add(lang);
rightPane.add(label1);
rightPane.add(label2);
rightPane.add(label3);
rightPane.add(label4);
rightPane.add(label5);
rightPane.add(label6);
rightPane.add(label7);
rightPane.add(label8);
rightPane.add(label9);
rightPane.add(label10);
rightPane.add(label11);
rightPane.add(label12);
label1.setBounds(10,10,150,25);
accountName.setBounds(175,10,200,25);
label2.setBounds(10,40,150,25);
plevel.setBounds(175,40,200,25);
label3.setBounds(10,70,150,25);
priv.setBounds(175,70,200,25);
label4.setBounds(10,100,150,25);
password.setBounds(175,100,200,25);
label5.setBounds(10,130,150,25);
totaltime.setBounds(175,130,200,25);
label6.setBounds(10,160,150,25);
lasttime.setBounds(175,160,200,25);
label7.setBounds(10,190,150,25);
lastchar.setBounds(175,190,200,25);
label8.setBounds(10,220,150,25);
firstconnect.setBounds(175,220,200,25);
label9.setBounds(10,250,150,25);
firstIP.setBounds(175,250,200,25);
label10.setBounds(10,280,150,25);
lastconnect.setBounds(175,280,200,25);
label11.setBounds(10,310,150,25);
lastIP.setBounds(175,310,200,25);
label12.setBounds(10,340,150,25);
lang.setBounds(175,340,200,25);
Dimension rightdim = new Dimension(380,425);
rightPane.setMinimumSize(rightdim);
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
window.pack();
window.setSize(550,425);
window.setResizable(false);
window.setVisible(true);
public void openAccountFile()
byte[] b = null;
try
fis = new FileInputStream(accountFile);
b = new byte[fis.available()];
fis.read(b,0,fis.available());
catch(FileNotFoundException e)
catch(IOException e)
content = new String(b);
newline = String.valueOf(content.charAt(content.indexOf("\n")));
parseAccountFile();
public void parseAccountFile()
StringTokenizer st = new StringTokenizer(content, "[");
strings = new String[st.countTokens()];
createArrays();
for (int i=0;i<strings.length;i++)
strings[i] = st.nextToken();
for(int i=0;i<strings.length;i++)
parseAccountParameters(i);
sort();
public void parseAccountParameters(int which)
StringTokenizer st = new StringTokenizer(strings[which],"\n");
lines = new String[st.countTokens()];
for(int i=0;i<lines.length;i++)
lines[i] = st.nextToken();
parameters = new String[lines.length];
arguments = new String[lines.length];
accountNames.add(getAccountName(lines[0]));
for(int i=1;i<lines.length;i++)
parseAccountParameter(i,which);
public void parseAccountParameter(int which,int strings)
StringTokenizer st = new StringTokenizer(lines[which],"=");
parameters[which] = st.nextToken();
if(st.hasMoreTokens())
arguments[which] = st.nextToken();
stockValues(strings);
public void stockValues(int a)
for(int i=0;i<parameters.length;i++)
if(arguments!=null)
if(parameters[i].equals("PLEVEL"))
plevels.put(accountNames.get(a),arguments[i]);
else if(parameters[i].equals("PRIV"))
privs.put(accountNames.get(a),arguments[i]);
else if(parameters[i].equals("PASSWORD"))
passwords.put(accountNames.get(a),arguments[i]);
else if(parameters[i].equals("TOTALCONNECTTIME"))
totaltimes.put(accountNames.get(a),arguments[i]);
else if(parameters[i].equals("LASTCONNECTTIME"))
lasttimes.put(accountNames.get(a),arguments[i]);
else if(parameters[i].equals("LASTCHARUID"))
lastchars.put(accountNames.get(a),arguments[i]);
else if(parameters[i].equals("FIRSTCONNECTDATE"))
firstconnects.put(accountNames.get(a),arguments[i]);
else if(parameters[i].equals("FIRSTIP"))
firstIPs.put(accountNames.get(a),arguments[i]);
else if(parameters[i].equals("LASTCONNECTDATE"))
lastconnects.put(accountNames.get(a),arguments[i]);
else if(parameters[i].equals("LASTIP"))
lastIPs.put(accountNames.get(a),arguments[i]);
else if(parameters[i].equals("LANG"))
langs.put(accountNames.get(a),arguments[i]);
public String getAccountName(String line)
String name = "";
for(int i=0;i<line.indexOf("]");i++)
name = name + (String.valueOf(line.charAt(i)));
return name;
public void createArrays()
accountNames = new Vector();
plevels = new Hashtable();
privs = new Hashtable();
passwords = new Hashtable();
totaltimes = new Hashtable();
lasttimes = new Hashtable();
lastchars = new Hashtable();
firstconnects = new Hashtable();
firstIPs = new Hashtable();
lastconnects = new Hashtable();
lastIPs = new Hashtable();
langs = new Hashtable();
public void showValues()
if(lastSelection!=-1)
//keepValues();
int i = -1 == accountList.getSelectedIndex() ?
lastSelection :
accountList.getSelectedIndex();
accountName.setText((String)accountNames.get( i ));
plevel.setText((String)plevels.get(accountNames.get( i )));
priv.setText((String)privs.get(accountNames.get( i )));
password.setText((String)passwords.get(accountNames.get( i )));
totaltime.setText((String)totaltimes.get(accountNames.get( i )));
lasttime.setText((String)lasttimes.get(accountNames.get( i )));
lastchar.setText((String)lastchars.get(accountNames.get( i )));
firstconnect.setText((String)firstconnects.get(accountNames.get( i )));
firstIP.setText((String)firstIPs.get(accountNames.get( i )));
lastconnect.setText((String)lastconnects.get(accountNames.get( i )));
lastIP.setText((String)lastIPs.get(accountNames.get( i )));
lang.setText((String)langs.get(accountNames.get( i )));
lastSelection = i ;
public void keepValues()
accountNames.setElementAt(accountName.getText(),lastSelection);
plevels.put(accountNames.get(lastSelection),plevel.getText());
privs.put(accountNames.get(lastSelection),priv.getText());
passwords.put(accountNames.get(lastSelection),password.getText());
totaltimes.put(accountNames.get(lastSelection),totaltime.getText());
lasttimes.put(accountNames.get(lastSelection),lasttime.getText());
lastchars.put(accountNames.get(lastSelection),lastchar.getText());
firstconnects.put(accountNames.get(lastSelection),firstconnect.getText());
firstIPs.put(accountNames.get(lastSelection),firstIP.getText());
lastconnects.put(accountNames.get(lastSelection),lastconnect.getText());
lastIPs.put(accountNames.get(lastSelection),lastIP.getText());
langs.put(accountNames.get(lastSelection),lang.getText());
public void saveAccountFile()
keepValues();
String saving = "";
for(int i=0;i<strings.length;i++)
saving = saving + ("["+(String)accountNames.get(i)+"]"+newline);
if(plevels.get((String)accountNames.get(i))!=null && !(plevels.get((String)accountNames.get(i)).equals("")))
saving = saving + ("PLEVEL="+plevels.get((String)accountNames.get(i))+newline);
if(privs.get((String)accountNames.get(i))!=null && !(privs.get((String)accountNames.get(i)).equals("")))
saving = saving + ("PRIV="+privs.get((String)accountNames.get(i))+newline);
if(passwords.get((String)accountNames.get(i))!=null && !(passwords.get((String)accountNames.get(i)).equals("")))
saving = saving + ("PASSWORD="+passwords.get((String)accountNames.get(i))+newline);
if(totaltimes.get((String)accountNames.get(i))!=null && !(totaltimes.get((String)accountNames.get(i)).equals("")))
saving = saving + ("TOTALCONNECTTIME="+totaltimes.get((String)accountNames.get(i))+newline);
if(lasttimes.get((String)accountNames.get(i))!=null && !(lasttimes.get((String)accountNames.get(i)).equals("")))
saving = saving + ("LASTCONNECTTIME="+lasttimes.get((String)accountNames.get(i))+newline);
if(lastchars.get((String)accountNames.get(i))!=null && !(lastchars.get((String)accountNames.get(i)).equals("")))
saving = saving + ("LASTCHARUID="+lastchars.get((String)accountNames.get(i))+newline);
if(firstconnects.get((String)accountNames.get(i))!=null && !(firstconnects.get((String)accountNames.get(i)).equals("")))
saving = saving + ("FIRSTCONNECTDATE="+firstconnects.get((String)accountNames.get(i))+newline);
if(firstIPs.get((String)accountNames.get(i))!=null && !(firstIPs.get((String)accountNames.get(i)).equals("")))
saving = saving + ("FIRSTIP="+firstIPs.get((String)accountNames.get(i))+newline);
if(lastconnects.get((String)accountNames.get(i))!=null && !(lastconnects.get((String)accountNames.get(i)).equals("")))
saving = saving + ("LASTCONNECTDATE="+lastconnects.get((String)accountNames.get(i))+newline);
if(lastIPs.get((String)accountNames.get(i))!=null && !(lastIPs.get((String)accountNames.get(i)).equals("")))
saving = saving + ("LASTIP="+lastIPs.get((String)accountNames.get(i))+newline);
if(langs.get((String)accountNames.get(i))!=null && !(langs.get((String)accountNames.get(i)).equals("")))
saving = saving + ("LANG="+langs.get((String)accountNames.get(i))+newline);
saving = saving + newline;
try
FileOutputStream fos = new FileOutputStream(savingFile);
fos.write(saving.getBytes());
catch(FileNotFoundException e)
catch(IOException e)
public void about()
final JDialog info = new JDialog(window,"About",true);
Container aboutPane = info.getContentPane();
aboutPane.setLayout(null);
Image image = Toolkit.getDefaultToolkit().getImage(getClass().getResource("Dalzhim.jpg"));
ImageIcon sig = new ImageIcon(image);
JLabel sign = new JLabel(sig);
JLabel text1 = new JLabel("AccountManager v0.2Beta");
JEditorPane text2 = new JEditorPane();
JEditorPane text3 = new JEditorPane();
JEditorPane text4 = new JEditorPane();
JButton close = new JButton("Okay");
JEditorPane jep = new JEditorPane();
sign.setBounds(10,0,374,292);
text1.setBounds(125,300,250,20);
text2.setBounds(10,350,400,20);
text3.setBounds(10,400,400,20);
text4.setBounds(10,450,400,20);
close.setBounds(150,500,100,20);
close.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
info.setVisible(false);
text2.setText("Created by �alzhim");
text3.setText("Dalzhim, also known as, Amlaruil");
text4.setText("[email protected] - [email protected]");
text2.setEditable(false);
text3.setEditable(false);
text4.setEditable(false);
text2.setBackground(new Color(207,207,207));
text3.setBackground(new Color(207,207,207));
text4.setBackground(new Color(207,207,207));
aboutPane.add(sign);
aboutPane.add(text1);
aboutPane.add(text2);
aboutPane.add(text3);
aboutPane.add(text4);
aboutPane.add(close);
jep.setBackground(new Color(207,207,207));
jep.setEditable(false);
jep.setText("TEST");
info.pack();
info.setSize(400,550);
info.setResizable(false);
info.setVisible(true);
public void search()
searchWindow = new JDialog(window,"Search");
Container searchPane = searchWindow.getContentPane();
searchPane.setLayout(null);
searchString = new JTextField(lastSearch);
searchButton = new JButton("Search");
searchString.addActionListener(al);
searchButton.addActionListener(al);
searchPane.add(searchString);
searchPane.add(searchButton);
searchString.setBounds(10,10,175,25);
searchButton.setBounds(200,10,100,25);
searchString.selectAll();
searchWindow.pack();
searchWindow.setSize(320,65);
searchWindow.setResizable(false);
searchWindow.setVisible(true);
public void search(String what)
accountList.setSelectedValue(what,true);
public void createAccount()
createWindow = new JDialog(window,"Create New Account");
Container createPane = createWindow.getContentPane();
createPane.setLayout(null);
newName = new JTextField();
newPassword = new JTextField();
newPLevel = new JTextField();
createButton = new JButton("Create Account");
JLabel createlabel1 = new JLabel("Account Name:");
JLabel createlabel2 = new JLabel("Account Password:");
JLabel createlabel3 = new JLabel("Account PLevel:");
createPane.add(newName);
createPane.add(newPassword);
createPane.add(newPLevel);
createPane.add(createButton);
createPane.add(createlabel1);
createPane.add(createlabel2);
createPane.add(createlabel3);
newName.addActionListener(al);
newPassword.addActionListener(al);
newPLevel.addActionListener(al);
createButton.addActionListener(al);
newName.setBounds(160,10,200,25);
newPassword.setBounds(160,45,200,25);
newPLevel.setBounds(160,80,200,25);
createButton.setBounds(160,115,200,25);
createlabel1.setBounds(10,10,150,25);
createlabel2.setBounds(10,45,150,25);
createlabel3.setBounds(10,80,150,25);
createWindow.pack();
createWindow.setSize(375,175);
createWindow.setResizable(false);
createWindow.setVisible(true);
public void createProcess()
String tempname = newName.getText();
String temppass = newPassword.getText();
String templeve = newPLevel.getText();
createWindow.dispose();
if(!(accountNames.contains(tempname)))
accountNames.add(tempname);
sort();
passwords.put(tempname,temppass);
plevels.put(tempname,templeve);
search(newName.getText());
public void sort()
Object[] sorting = new Object[accountNames.size()];
accountNames.toArray(sorting);
String[] sorting2 = new String[sorting.length];
for(int i=0;i<sorting.length;i++)
sorting2[i] = (String)sorting[i];
Arrays.sort(sorting2,String.CASE_INSENSITIVE_ORDER);
accountNames.clear();
for(int i=0;i<sorting2.length;i++)
accountNames.add(sorting2[i]);
accountList.setListData(accountNames);
public void removeAccount()
if(accountList.getSelectedIndex()==-1)
JOptionPane.showMessageDialog(window,"You must select an account from the list to use the Remove option");
else
int i = accountList.getSelectedIndex();
System.out.println( "ra: " + i + " an: " + accountNames.elementAt( i ) );
System.out.println(accountNames.elementAt( i ));
plevels.remove(accountNames.elementAt( i ));
privs.remove(accountNames.elementAt( i ));
passwords.remove(accountNames.elementAt( i ));
totaltimes.remove(accountNames.elementAt( i ));
lasttimes.remove(accountNames.elementAt( i ));
lastchars.remove(accountNames.elementAt( i ));
firstconnects.remove(accountNames.elementAt( i ));
firstIPs.remove(accountNames.elementAt( i ));
lastconnects.remove(accountNames.elementAt( i ));
lastIPs.remove(accountNames.elementAt( i ));
langs.remove(accountNames.elementAt( i ));
accountNames.removeElementAt( i );
accountList.setListData( accountNames );
//sort();
showValues();
class AL implements ActionListener
public void actionPerformed(ActionEvent e)
if(e.getSource()==open)
jfc = new JFileChooser(accountFile);
jfc.setDialogTitle("Select your account file");
jfc.setMultiSelectionEnabled(false);
jfc.addActionListener(al);
jfc.showOpenDialog(window);
else if(e.getSource()==jfc)
accountFile = jfc.getSelectedFile();
openAccountFile();
else if(e.getSource()==save)
jfcs = new JFileChooser(savingFile);
jfcs.setDialogTitle("Where do you wish to save?");
jfcs.setMultiSelectionEnabled(false);
jfcs.addActionListener(al);
jfcs.showSaveDialog(window);
else if(e.getSource()==ab)
about();
else if(e.getSource()==jfcs)
savingFile = jfcs.getSelectedFile();
saveAccountFile();
else if(e.getSource()==quit)
System.exit(-1);
else if(e.getSource()==search)
search();
else if(e.getSource()==searchString)
searchButton.doClick();
else if(e.getSource()==searchButton)
accountList.setSelectedValue(searchString.getText(),true);
lastSearch = searchString.getText();
searchWindow.dispose();
else if(e.getSource()==create)
createAccount();
else if(e.getSource()==newName)
newPassword.requestFocus();
newPassword.selectAll();
else if(e.getSource()==newPassword)
newPLevel.requestFocus();
newPLevel.selectAll();
else if(e.getSource()==newPLevel)
createButton.doClick();
else if(e.getSource()==createButton)
if(newName.getText().equals("") || newPassword.getText().equals("") || newPLevel.getText().equals(""))
createWindow.dispose();
JOptionPane.showMessageDialog(window,"You have to enter an account name, a password and a plevel");
else
createProcess();
else if(e.getSource()==remove)
removeAccount();
class LL implements ListSelectionListener
public void valueChanged(ListSelectionEvent e)
showValues(); -
To open your library with this version of iPhoto, it first needs to be prepared.
I am receiving this message: To open your library with this version of iPhoto, it first needs to be prepared.
But when I try to prepare as by instructions, I am told that my existing version doesn't require to be prepared?
Any help please!Given that you present nothing except a problem with no contexno one can possbly anser
What version of iPhoto do you have? You state that you have OS X 10.8.5 in your profile - is that correct? What are the instructions that you are following that do not work?
LN -
Any way to update additional fields for SDLS with equipment at serial no cr
Dear all,
In the serializing procedure SDLS in the serial no profile
there is an option to create equipment alongwith serial no
creation. Currently it is updating only customer no into the
equipment master .
Is there any way to update additional fields into the equipment
master at the time of serial no capture ?
regards
MagiI think basically the answer is no, and even if you could I don't think it would help you much. A virtual machine error is exactly that, an error in the VM, not your code. The only thing I can suggest is that, if you want to see if your app is falling over in the same place every time, you use something like log4j.
-
Help needed in pre populating emailform with custom attributes
Hi All,
I have a requirement where in I am trying to pre-populate Service Request Information(Service Request Number, Priority, Emp responsible) on mail forms when the user selects Email workcenter and the relevant Mailform.
Steps I have done:
Created a custom Structure with Service Request Number, Priority, Emp responsible
Added the structure under MAINTAIN ATTRIBUTE CONTEXTS FOR MAILFORMS
This helped the newly added fields appear in the mailforms.
Create a custom class( copy of CL_CRM_ERMS_STKT_SM_DS) and updated the structure details to the new custom structure and replaced serviceticket //currentserviceticket/ to //currentservicerequest).
Also modified line-value to u2018parts/context/srv/number/text()u2019).
Logged in to WEBUI using IC_MANAGER Role and created a mail form by selecting the attributes from the custom structure containing service request fields.
Logged in as Agent and tried selecting an email form by navigating away from Service request page. The values(Service Request ID, etc) are not getting filled and even tried implementing the bad iIF_EX_CRM_IM_ADD_DATA_BADI .
The control is not coming to the custom class and also to the BADI. I have placed explicit break statement also.
Can someone help me on this issue at your convenient time please..
Any pointers would be of great help.
Regards,
EurekaCRM_IM_ADD_DATA_BADI has been used by us for same purpose.
In the badi did u assign the mail context as the filter and also used the attributes from the same mail context in mail form.
It will work defintely and badi gets called when u click on insert on create email page on interaction center based on UTIL_IC
Pratyasha -
Need Additional Field in sales document
Hi Experts,
I have some issue in marketing documents.
My client needs an extra field named LR NO(Lorry Receipt No) and MRP in sales invoice document and it needs to be updated in the database everytime when the sales invoice document is added.
I heard of creating an User defined table and user defined tables will solve this issue.
Pls guide me by giving proper navigation steps and help me in solving the issue.
Thanx in advance,
Regards,\
VamsiHi Vamsi,
You have posted the exactly same question here yesterday:
Re: Extra Fields
As you know, if your question is not solved, you may need to rephrase your question and just keep the part that is not solved. Only you yourself would be the best person to solve your client's problem. If you don't have a complete understanding of their requests, I don't think any others could point you to the right direction.
Thanks,
Gordon -
Need additional field in structure FPAYH
Dear experts,
I want to add field REGUP-REBZG into structure FPAYH. I have read OSS note 663832 which says it can be done but I am not sure how to go about doing this.
I have added function "FI_PAYMEDIUM_SAMPLE_06" in customizing under adjust payment medium format as per the OSS note.
How do I proceed from here? Tx.Hi,
Basically, you need to do the below steps:-
(1) Need to add field REBZG in include CI_FPAYP in transaction SE11.
(2) Need to copy the function module FI_PAYMEDIUM_SAMPLE_06 into a custom one
(3) Then code in the custom function module to fetch the REGUP-REBZG and pass it on to T_FPAYP-REBZG
(4) Then assign this custom function module to your payment medium format for event 06.
Activity (1) to (3) needed to be done by your ABAPer.
Regards,
Gaurav -
What cable do I need for a mac mini with this monitor
I want a mac mini for christmas, I have a monitor but it only supports VGA, so what cable do i need to get a mac mini up and running on this monitor
ThanksYou will need the mini-DisplayPort to VGA adapter cable, here.
-
Need to display seqno along with his superior number
Hi friends,
I have a table adm_menus
It's DDL is
CREATE TABLE "ADM_MENUS"
( "MENU_ID" NUMBER,
"MENU_NAME" VARCHAR2(60 BYTE),
"PARENT_MENU_ID" NUMBER,
"SEQ_NO" NUMBER,
"DISP_SEQ_NO" VARCHAR2(250 BYTE),
"MENU_ACTION_TYPE" VARCHAR2(60 BYTE),
"MENU_ACTION" VARCHAR2(2000 BYTE),
"MENU_PARAMETER" VARCHAR2(2000 BYTE),
"INACTIVE_DATE" DATE,
"CREATED_BY" NUMBER(15,0),
"CREATION_DATE" DATE,
"LAST_UPDATED_BY" NUMBER(15,0),
"LAST_UPDATE_DATE" DATE
)DML is
Insert into ADM_MENUS (MENU_ID,MENU_NAME,PARENT_MENU_ID,SEQ_NO,DISP_SEQ_NO,MENU_ACTION_TYPE,MENU_ACTION,MENU_PARAMETER,INACTIVE_DATE,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE)
values (19,'TRANSACTION',null,10,'10',null,null,null,to_date('12-10-11','DD-MM-RR'),-1,to_date('12-10-11','DD-MM-RR'),-1,to_date('12-10-11','DD-MM-RR'));
Insert into ADM_MENUS (MENU_ID,MENU_NAME,PARENT_MENU_ID,SEQ_NO,DISP_SEQ_NO,MENU_ACTION_TYPE,MENU_ACTION,MENU_PARAMETER,INACTIVE_DATE,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE)
values (18,'TRANSACTION',19,10,'10',null,null,null,to_date('12-10-11','DD-MM-RR'),-1,to_date('12-10-11','DD-MM-RR'),-1,to_date('12-10-11','DD-MM-RR'));
Insert into ADM_MENUS (MENU_ID,MENU_NAME,PARENT_MENU_ID,SEQ_NO,DISP_SEQ_NO,MENU_ACTION_TYPE,MENU_ACTION,MENU_PARAMETER,INACTIVE_DATE,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE)
values (20,'Report1',18,30,'3010',null,null,null,to_date('12-10-11','DD-MM-RR'),-1,to_date('12-10-11','DD-MM-RR'),-1,to_date('12-10-11','DD-MM-RR'));My scenario in the sense is i need to display the results for the disp_seq_no column like
Since from the above DML statement i have three rows, For my explanation im taking four columns
menu_id------->parent_menu_id-------------->seq_no------------>Disp_seq_no
19 null 10
18 19 10
20 18 30For the above rows i need to display the rows for the column disp_seq_no as
For the first row from the above result the parent_menu_id is null(so, in my case he is the parent and there is no any superior to him, so his disp_seq_no has to be '010'(i.e his seq_no with *'0' infront of it*.)
For the second and third row i need like
menu_id------->parent_menu_id------------->seq_no------------>Disp_seq_no
19 null 10 010
18 19 10 010010
20 18 30 010030For the second row, he has the parent menu id as '19', so i need his disp_seq_no like (his parents seq_no and his own Seq_no(but i need '0' infront of each and every seq number)) like
010010
For the third row, he has the parent menu id as '18', so the disp_seq_no has to be 010030
How i can able to achieve it friends.
Brgds,
Mini/* Formatted on 10/12/2011 9:57:19 AM (QP5 v5.149.1003.31008) */
WITH ADM_MENUS
AS (SELECT 19 menu_id, NULL parent_menu_id, 10 seq_no FROM DUAL
UNION
SELECT 18, 19, 10 FROM DUAL
UNION
SELECT 20, 18, 30 FROM DUAL)
SELECT menu_id,
parent_menu_id,
seq_no,
CASE CONNECT_BY_ISLEAF
WHEN 0
THEN
REPLACE (SYS_CONNECT_BY_PATH (seq_no, ','), ',', '0')
ELSE
SUBSTR (REPLACE (SYS_CONNECT_BY_PATH (seq_no, ','), ',', '0'),
LENGTH (SYS_CONNECT_BY_PATH (seq_no, ',')) - 5)
END
disp_seq_no
FROM ADM_MENUS
START WITH parent_menu_id IS NULL
CONNECT BY PRIOR menu_id = parent_menu_id
19 10 010
18 19 10 010010
20 18 30 010030 -
Canon EOS Rebel T3. Need editing program that came with this camera.
I have Canon Rebel T3. Recently I had computer problems and my programs were wiped out.
It is not the driver for the camera, but the editing program that came with the camera, where files were placed, cropped, sorted, etc. I have searched everywhere for this and cannot find it.HelpHere:
http://www.usa.canon.com/cusa/consumer/products/cameras/slr_cameras/eos_rebel_t3_18_55mm_is_ii_lens_kit#DriversAndSoftware -
I have a problem sending files along with thier directories to server
The Problem is i couldnt understand the sequence in which should the file transfers will execute.....
Here is the Code ......
The **************Error************* i get is that it makes one dir then other one and paste one file in it after writing another file in the second loop it gives error on write UTF that Socket write Error COnnection Reset by peer
***************************CLIENT************************
package oam.filemanager;
import java.net.*;
import java.util.*;
import java.io.*;
import oam.beans.*;
public class FileClient {
Socket socket;
DataOutputStream dataout;
FileBean file;
public void SetSocket() {
//Create socket connection
try {
socket = new Socket("localhost", 9898);
dataout = new DataOutputStream(socket.getOutputStream());
String wavfiles []=null;
//Directory & Wavfiles Manipulation
file=new FileBean();
String dirs []= file.getDirsForSocket("Accounts//");
for(int i=0;i<dirs.length;i++){
wavfiles= file.getWavfiles("Accounts//"+dirs[i]+"//");
//sending Username & DIR
dataout.writeUTF(dirs);
if (wavfiles.length==0)
dataout.writeUTF("no");
for (int j=0;j<wavfiles.length;j++){
//Sending Filename
dataout.writeUTF(wavfiles[j]);
//getting file to be send
File f = new File("Accounts//"+dirs[i]+"//"+wavfiles[j]);
int fileLength = (int) f.length();
System.out.println("fileLength " + fileLength);
byte data[] = new byte[fileLength]; //settting array of byte to file len
//reading from file acha
FileInputStream fis = new FileInputStream(f);
// Send file length
dataout.writeInt(fileLength); // writing file length
dataout.flush();
System.out.println("Length Sent .... " + fileLength);
dataout.flush();
// Send file
int loop = 0;
loop = fis.read(data);
System.out.println("......1......" + "in loop" + loop);
if (loop > -1) {
dataout.write(data);
//closeConnection();
// output.flush();
catch (UnknownHostException e) {
System.out.println("Unknown host:");
System.exit(1);
catch (IOException e) {
System.out.println("No I/O " + e.getMessage());
System.exit(1);
catch (Exception e){
e.printStackTrace();
public static void main(String args[]) {
FileClient serv = new FileClient();
serv.SetSocket();
******************************************SERVER*********************
import java.io.*;
import java.net.*;
import java.io.*;
class ClientThread
implements Runnable {
FileOutputStream output;
DataInputStream input;
String uname;
String filename;
Socket client;
public ClientThread(Socket clientth) {
this.client=clientth;
public void checkdir(String dirname){
File f =new File("..//Accounts//"+uname+"//");
if (!f.exists()){
f.mkdirs();
public void run() {
try {
while (true) {
input = new DataInputStream(client.getInputStream());
uname = "";
filename = "";
uname = input.readUTF();
checkdir(uname);
filename = input.readUTF();
if (!filename.equals("no")) {
System.out.println("Filename Recieved of file: " + filename);
File f = new File("..//Accounts//" + uname + "//" + filename);
if (!f.exists()) {
RandomAccessFile raf = new RandomAccessFile(f, "rw");
raf.setLength(0);
int length;
int pack = 0;
int fileLength = 0;
System.out.println("User Name received...." + uname);
System.out.println("...2a....");
fileLength = input.readInt();
System.out.println("...2b....");
System.out.println("Length Receieved .... " + fileLength);
// input.readInt();
// input.readInt();
byte data[] = new byte[fileLength];
System.out.println("Length Receieved .... " + fileLength);
input.read(data);
raf.write(data);
raf.close();
System.out.println("File Receieved and Wrote at Server");
// clientoutput.flush();
else {
System.err.println("File Already Exists request by " + uname);
} //if check ends
catch (IOException e) {
System.out.println("in or out failed"+ e.getMessage());
System.exit( -1); }
public class FileServer {
Socket client;
ServerSocket server;
public FileServer(){
File f=new File("..//Accounts") ;
if(!f.exists())
f.mkdirs();
public void listenSocket() {
try {
server = new ServerSocket(9898);
catch (IOException e) {
System.out.println("Could not listen on port 9898 Server Already Listening");
System.exit( -1);
while (true) {
ClientThread cth;
try {
cth = new ClientThread(server.accept());
Thread thr = new Thread(cth);
thr.start();
catch (Exception mye) {
mye.printStackTrace();
protected void finalize() {
try {
server.close();
catch (IOException e) {
System.out.println("Could not close socket");
System.exit( -1);
public static void main(String args[]) {
FileServer serv = new FileServer();
serv.listenSocket();Well Thanks a lot : jschell so nice of u helping me all through this well i sort out this problem as well...
i wasnt sending all files at once ...........one by one the problem was the biggest file is 240 k and byte arraay couldnt accomdate it ................so now i am sending files in 4k packets any of u guys need help u can see this code how to send files in packets .................
//**********************SERVER************************************
package servermanager;
import java.io.*;
import java.net.*;
import java.io.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class ClientThread
implements Runnable {
FileOutputStream output;
DataInputStream input;
DataOutputStream dataout;
String uname;
String filename;
Socket client;
JTextArea log;
public ClientThread(Socket clientth,JTextArea mylog) {
this.client=clientth;
this.log=mylog;
public void checkdir(String dirname){
File f =new File("..//Accounts//"+uname+"//");
if (!f.exists()){
f.mkdirs();
public synchronized void startTransfer(){
try {
FileOutputStream fos=null;
input = new DataInputStream(client.getInputStream());
uname = "";
filename = "";
uname = input.readUTF();
checkdir(uname);
filename = input.readUTF();
File f = new File("..//Accounts//" + uname + "//" + filename);
RandomAccessFile raf = new RandomAccessFile(f, "rw");
raf.setLength(0);
raf.close();
long fileLength=0;
byte lenbuf[]=null;
int help =input.read();
lenbuf = new byte[help];
input.read(lenbuf);
String lenz = new String(lenbuf);
fileLength = new Integer(lenz).longValue();
fos = new FileOutputStream (f);
byte data[]=new byte[4096];
int length;
while( (length=input.read(data, 0, 4096)) > 0) {
fos.write(data, 0, length);
fos.close();
log.append("\n File Recieved = ["+filename+"]:---:"+"of Size["+fileLength+"]:---:"+"By ["+uname+"]." );
catch (IOException e) {
log.append("\n In or Out failed"+e.getMessage());
System.exit( -1);}
public void run() {
startTransfer();
public class FileServer extends JFrame {
int port;
Socket client;
ServerSocket server;
JScrollPane textscrollpane = new JScrollPane();
JTextArea log = new JTextArea();
JButton clear_btn = new JButton();
JButton stop_btn = new JButton();
public FileServer(){
port=9898;
File f=new File("..//Accounts") ;
if(!f.exists())
f.mkdirs();
try {
jbInit();
catch(Exception e) {
e.printStackTrace();
public void listenSocket() {
try {
server = new ServerSocket(port);
catch (IOException e) {
log.append("\n Could not listen on port["+port+"]");
System.exit( -1);
while (true) {
ClientThread cth;
try {
cth = new ClientThread(server.accept(),log);
Thread thr = new Thread(cth);
thr.start();
catch (Exception mye) {
log.append("\n Thread Exception["+mye.getMessage()+"]");
protected void finalize() {
try {
server.close();
catch (IOException e) {
log.append("\n Could not Close Socket on port["+port+"]");
System.exit( -1);
public static void main(String args[]) {
FileServer serv = new FileServer();
serv.setBounds(new Rectangle(150,150,500,300));
serv.show();
serv.listenSocket();
private void jbInit() throws Exception {
this.getContentPane().setLayout(null);
textscrollpane.setBounds(new Rectangle(1, 21, 489, 212));
log.setBackground(Color.black);
log.setForeground(Color.green);
log.setToolTipText("Server Log");
log.setEditable(false);
log.setLineWrap(true);
clear_btn.setText("Clear");
clear_btn.addActionListener(new FileServer_clear_btn_actionAdapter(this));
clear_btn.setBounds(new Rectangle(323, 245, 86, 13));
clear_btn.setToolTipText("");
stop_btn.setToolTipText("");
stop_btn.setBounds(new Rectangle(55, 246, 86, 13));
stop_btn.setText("Stop");
stop_btn.addActionListener(new FileServer_stop_btn_actionAdapter(this));
this.addWindowListener(new FileServer_this_windowAdapter(this));
this.getContentPane().add(textscrollpane, null);
this.getContentPane().add(stop_btn, null);
this.getContentPane().add(clear_btn, null);
textscrollpane.getViewport().add(log, null);
log.setText("Server Initiated Listening on Port [9898]...");
void stop_btn_actionPerformed(ActionEvent e) {
System.exit(0);
void this_windowClosed(WindowEvent e) {
System.exit(0);
void this_windowClosing(WindowEvent e) {
System.exit(0);
void clear_btn_actionPerformed(ActionEvent e) {
log.setText("");
class FileServer_stop_btn_actionAdapter implements java.awt.event.ActionListener {
FileServer adaptee;
FileServer_stop_btn_actionAdapter(FileServer adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.stop_btn_actionPerformed(e);
class FileServer_this_windowAdapter extends java.awt.event.WindowAdapter {
FileServer adaptee;
FileServer_this_windowAdapter(FileServer adaptee) {
this.adaptee = adaptee;
public void windowClosing(WindowEvent e) {
adaptee.this_windowClosing(e);
class FileServer_clear_btn_actionAdapter implements java.awt.event.ActionListener {
FileServer adaptee;
FileServer_clear_btn_actionAdapter(FileServer adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.clear_btn_actionPerformed(e);
//**********************CLIENT************************************
package servermanager;
import java.net.*;
import java.util.*;
import java.io.*;
public class FileClient {
Socket socket;
DataOutputStream dataout;
public void SetSocket(String dir,String filename) {
try {
socket = new Socket("localhost", 9898);
dataout = new DataOutputStream(socket.getOutputStream());
//sending Username & DIR name
dataout.writeUTF(dir);
//Sending Filename
dataout.writeUTF(filename);
dataout.flush();
File f = new File("Accounts//"+dir+"//"+filename);
byte data[]=new byte[4096]; //40k
long filelength=f.length();
String lenbuf = String.valueOf(filelength);
byte lenz[] = lenbuf.getBytes(); //file length in bytes
int lenzLen = lenz.length;
FileInputStream fis = new FileInputStream(f);
dataout.write(lenzLen); //sending length in integer
dataout.flush();
System.out.println(lenzLen+"--------First Thing Sent length of byte array");
dataout.write(lenz); //sendinf byte Array length
dataout.flush();
System.out.println(lenz+"--------Second Thing Sent bytes");
int loop=0;
while(loop!=-1){
loop=fis.read(data);
dataout.write(data);
dataout.flush();
socket.close();
catch (UnknownHostException e) {
System.out.println("Unknown host:");
System.exit(1);
catch (IOException e) {
System.out.println("No I/O " + e.getMessage());
System.exit(1);
catch (Exception e){
e.printStackTrace();
public static void main(String args[]) {
FileClient serv = new FileClient();
FileBean file=new FileBean();
String wavfiles []=null;
String dirs []= file.getDirsForSocket("Accounts//");
for(int i=0;i<dirs.length;i++){
wavfiles= file.getWavfiles("Accounts//"+dirs[i]+"//");
//if (wavfiles.length==0)
for (int j=0;j<wavfiles.length;j++){
serv.SetSocket(dirs,wavfiles[j]);
Maybe you are looking for
-
I am using an apple email account and my emails are randomly disappearing before I get a chance to read them. They are not anywhere on my device, not trash, junk etc. The only solution from apple has been to resend me the past 7 days of email in orde
-
Family Sharing: Can it be used to back up multiple phones to the same iCloud account?
With the Family Sharing feature of iOS8 & Yosemite, is it possible to back up multiple iPhones automatically to one iCloud account? My family needs a way to automatically back up their iPhones. It would get really costly and otherwise problematic to
-
ITunes updates and Firefox 3.0 won't open up after installation...
I really hope someone can solve this thing... I can't install iTunes updates (from 7.1.2 on) and Firefox 3.0, because they both present the same problem: after download and regular installation, when I click on the .app to open it up, the icon jumps
-
Hello all, Can any body explain me about cutover strategy, the scenario is my client is paying full advance payment against PO and but recived half material so PO is open . How we can expalin to client to prepare cutover plan startegy to prepare cut
-
Where can I find HP Memories Disc for download? Uninstalling it caused problems.
I uninstalled HP Memories Disc and now my computer prompts me to reinstall it when I open various unrelated programs. It's supremely frustrating and the only solution seems to be to reinstall it. However I have no idea where my discs are for this