Customers profile classes

how can I update or change the profile class for group of customers.
In which table do i need to update or change.
I try to change it manually in front end screens for one customer at a time , but I need to change the profile class for large number of customers.
can anyone give on idea on this...Thanks in advance.

Hi Pra,
You have to insert data into tables ra_customers_interface_all and ra_customer_profiles_int_all and then run the concurrent Customer Interface, avaiable from AR Super User: Interface: Customer.
A sample script to insert data in order to change customer profile class:
-- Starts here
insert into ra_customers_interface_all
(orig_system_customer_ref,
insert_update_flag,
org_id,
customer_name,
last_updated_by,
last_update_date,
created_by,
creation_date,
customer_status,
customer_number)
values (hz_cust_accounts.orig_system_reference,
'U', -- stands for update
          fnd_profile.value('ORG_ID'),
          hz_party.party_name,
          -1,
          sysdate,
          -1,
          sysdate,
          hz_cust_accounts.status,
          hz_cust_accounts.account_number);
insert into ra_customer_profiles_int_all
(insert_update_flag,
orig_system_customer_ref,
customer_profile_class_name,
org_id,
credit_hold,
last_updated_by,
last_update_date,
created_by,
creation_date)
values ('U', -- stands for update
hz_cust_accounts.orig_system_reference,
          :new_profile_class_name,
          fnd_profile.value('ORG_ID'),
          :credit_hold_flag,
          -1,
          sysdate,
          -1,
          sysdate );
-- End
Hope it helps,
Ketter Ohnes

Similar Messages

  • Update Profile Class for Customer

    Hi,
    Can anyone tell me if I can update the customer profile class with sql query
    This is the query I have written for updating
    update hz_customer_profiles set profile_class_id = 'number', standard_cycle_id= 'number'
    where cust_account_id in (select cust_account_id from hz_customer_profiles where collector_id in (a,b))
    So can i use ths query to update for all the customers in the oraganization...
    I know there is an API hz_customer_profiles_v2pub to update the customer profile for customers...but i have no idea how to do with that...
    can you tell me how to update with API ( with steps)
    Thx a lot for the Help
    Regards
    Jdev...

    You can try your luck in the E-business suite forums.

  • Profile class not getting created for new site for existing customer.

    Hi,
    I am creating a new site address for an existing customer using Customer Interface in oracle apps 11.5.10.2. The issue is the profile class is not getting assigned correctly at site level. It is getting defaulted with the profile class of the customer. Below is the data that I am inserting in RA_CUSTOMER_PROFILES_INT_ALL
    INSERT INTO ra_customer_profiles_int_all
    (orig_system_customer_ref
    ,orig_system_address_ref
    ,insert_update_flag
    ,customer_profile_class_name
    ,credit_hold
    ,org_id
    ,last_updated_by
    ,last_update_date
    ,created_by
    ,creation_date
    ,last_update_login
    )VALUES
    (x_orig_system_reference -- This is old customer reference as he already exists in the system
    ,x_address_ref -- This is a new address reference
    ,'I'
    ,rec_cust_det.customer_profile_class_name -- In the file I am giving it as 'ABC1' but it is getting defaulted with 'DEFAULT' which belongs to customer profile class at the header level
    ,'N'
    ,fnd_profile.value('org_id')
    ,fnd_global.user_id
    ,SYSDATE
    ,fnd_global.user_id
    ,SYSDATE
    ,fnd_global.login_id
    Can anyone please help me how to resolve this issue. Hope you understood. Otherwise please let me know.
    Regards
    Dev

    Please apply patch 4649221 to get this work.
    Regards
    Dev

  • Assign collector to a profile class

    hi all,!
    just trying to assign collector to a profile class in receivables.. but cant find where to do it or any documentation that tells me!
    any advice?
    cheers!

    As the local variable has a lifetime of the executing method's
    duration, you must ensure the innerclass (which has a longer lifetime)
    has access to it by declaring it final.This is not quite exact. All this is due to the way inner classes are implemented. An inner class maintains the contents of the outer local variables used in two ways:
    - If it is primitive, use the value verbatim (so the class has no relationship to the outer variable, it just uses the same number, so the local var needs to be final or else there could be surprises for a programmer who would think that changing the local var would also change the value used in the inner class)
    - If it is a reference, copy it as a class member, and use that one wherever needed. For similar reasons as above, the two references have to be in sync, so the local var has to be final (the inner var can't change anyway)
    This apply only to local variables because class members are accessible through a secret reference of the enclosing object passed in the constructor of the inner class. Static members are anyway accessible.
    <teacher's mode off/>
    <sorry for that, but someone might find the explanation useful :-)/>
    By the way, the OP can get the value "t" out of the inner class by providing a special Thread subclass, ie
    class MyThread extends Thread {
      public void run() {
        t = something;
      trythis t;
    MyThread thread = new MyThread();
    thread.start();
    thread.join();
    thread.t; //This is accessibleI'm not sure if this would be preferable to the array approach (which is ), but it is useful to know your alternatives

  • Jeode and PDA Profile (PDAP)  PIM classes

    Are there classes like the PDA Profile Classes available for Jeode PersonalJava 1.2 ??
    This J2ME class can eg. access the contact list:
    "Contact" Represents a single Contact entry in a PIM Contact database.
    or the todo list:
    "ToDoList" Represents a ToDo list containing ToDo elements.
    http://altair.snu.ac.kr/~seungil/research/pdap-1.0/javadoc/index.html
    http://altair.snu.ac.kr/~seungil/research/pdap-1.0/
    is something similar available for Jeode PersonalJava 1.2 ???

    No but PersonalJava allow you to have your own implementation on this.

  • Divide Customers based on Aging Bucket

    Is there any way we can split the customers of different profile class having different aging buckets defined?

    Hmmm.... you can put me in the "Ancient" bucket. :-)
    By the way, what is an "aging bucket"?

  • API to update Customer Profile Info for Customer

    Hi ,
    Can anybody tell me how to update the customer profile information for a customer.
    For ex: A Group of Customers are having different Profile class, statement cycle, Payment Terms, collector.
    I have to update those with same Profile Class values..
    Is there an API to do this, if so can you tell me the process of updating.
    Where can I find the API.
    Thanks a lot for the Help....
    Regards,
    JDev...

    Hi,
    You can use "HZ_CUSTOMER_PROFILE_V2PUB.update_customer_profile" public api to update the required information in the Customer Profile.

  • Collectors Attachment to Customers

    We have a requirement where a group of customers have to attached to a 'Person', viz., collector. This person will be responsible for collection and follow-up from the selected customers. Similarly, few collectors will be attached to different set of customers.
    For this, we don't want to use Profile-Class, because already profile-class is attached to the customers. So, can I just change the 'Collector' to 'Desired collector' using Customer-Standard option? ie., the class will still remain as the old profile-class, but just the 'collector' will be changed.
    Is it correct to do like this? Pls advise.
    Also, when I want to choose the collector for a customer, If I use AR_CUSTOMER_PROFILES, there are two recordw, one with Site-Use-Id and other as null(which was created by the above process of customer-collector attachment). As such, how to identify the collector for a customer then?
    Thanks.

    Yes you can always query up the customer in the customer-standard form and change the collector to the desirved person. It doesn't have to be defaulted through the profile class always & can be different.
    In reply to
    Also, when I want to choose the collector for a customer, If I use AR_CUSTOMER_PROFILES, there are two recordw, one with Site-Use-Id and other as null(which was created by the above process of customer-collector attachment). As such, how to identify the collector for a customer then?
    The one for which the site_use_id is null represents the profile at the customer account level, whereas if the site_use_id is populated it implies that this profile information is for a particular site.

  • Error won't let me access another class(has got me tearing my hair off)

    Alright peeps, so basically i have 2 buttons in the mainfraime class. The first button leads to the contestant's page and the second to the voters page. The first button works and directs the user to the PasswordDemo page, but to the hell of me i cant figure out why it refuses to recognize the "Profile" class that its supposed to go to when the user clicks the second button. It keeps on telling me that "The method Profile() is undefined for the type Mainframe". Please help.
    Mainframe class:
    //The applications first or the main frame
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Mainframe extends JFrame {
            private JButton myFirstButton;
            private JButton mySecondButton;
            private javax.swing.JButton jButton1;
            private javax.swing.JButton jButton2;
            private javax.swing.JLabel jLabel1;
            private javax.swing.JLabel jLabel2;
            private javax.swing.JLabel jLabel3;
            // Constructor for a new frame
            public Mainframe() {
                    super("Welcome Page");
                    myFirstButton = new JButton("Contestant");
                    myFirstButton.setFont(new Font( "Arial", Font.BOLD, 18));
                    myFirstButton.setBackground(Color.red);
                    mySecondButton = new JButton("Voter");
                    mySecondButton.setFont(new Font( "Arial", Font.BOLD, 18));
                    mySecondButton.setBackground(Color.ORANGE);
                    Container c = getContentPane();
                    FlowLayout fl = new FlowLayout(FlowLayout.LEFT);
                    c.setLayout(fl);
                    c.add (myFirstButton);
                    c.add (mySecondButton);
                    ButtonHandler handler = new ButtonHandler();    //creation of a new Object
                    myFirstButton.addActionListener(handler);          // Attach/register handler to myFirstButton
                    mySecondButton.addActionListener(handler);        //Attach/register handler to mySecondButton
                    setSize(400, 300);
                    show();
            public static void main(String [] args) {
                    // Make frame
                    Mainframe f = new Mainframe();
                    f.addWindowListener(
                            new WindowAdapter() {
                                    public void windowClosing(WindowEvent e) {
                                            // This closes the window and terminates the
                                            // Java Virtual Machine in the event that the
                                            // Frame is closed by clicking on X.
                                            System.out.println("Exit via windowClosing.");
                                            System.exit(0);
            } // end of main
            // inner class for button event handling
            private class ButtonHandler implements ActionListener {
                    public void actionPerformed(ActionEvent e) {
                            if (e.getSource() == myFirstButton) {
                                 PasswordDemo inputForm = new PasswordDemo();
                                    //inputForm.setVisible(true);
                                    try
                                    PasswordDemo.createAndShowGUI();
                                    inputForm.setVisible(false);
                                    catch(Exception d)
                                   // new PasswordDemo();
                            if (e.getSource() == mySecondButton) {
                           //     Profile p = Profile();
                           //     p.setVisible(true);
            public void actionPerformed (ActionEvent e)
                String cmd = e.getActionCommand();
                if (mySecondButton.equals(cmd)) {
                     boolean success=true;
                     if(success)
                     Profile p = Profile();
                       p.setVisible(true);
          //  private void mySecondButtonActionPerformed(java.awt.event.ActionEvent evt)
         //        Profile p = Profile();
         //       p.setVisible(true);
    } // end of outer class
    }Profile class:
    import java.awt.event.ActionListener;
    import java.sql.*;
    public class Profile extends javax.swing.JFrame {
        public Profile() {
            initComponents();
        @SuppressWarnings("unchecked")
        private void initComponents() {
            titleLabel = new javax.swing.JLabel();
            nameAccess = new javax.swing.JLabel();
            ageAccess = new javax.swing.JLabel();
            heightAccess = new javax.swing.JLabel();
            weightAccess = new javax.swing.JLabel();
            lastNameAccess = new javax.swing.JLabel();
            descriptionAccess = new javax.swing.JLabel();
            nameLabel = new javax.swing.JLabel();
            lastNameLabel = new javax.swing.JLabel();
            ageLabel = new javax.swing.JLabel();
            heightLabel = new javax.swing.JLabel();
            weightLabel = new javax.swing.JLabel();
            descriptionLabel = new javax.swing.JLabel();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            titleLabel.setFont(new java.awt.Font("Gungsuh", 1, 18)); // NOI18N
            titleLabel.setText("\"User\"'s Profile");
            nameAccess.setText("Name: ");
            nameLabel.setText("");
            lastNameAccess.setText("Last Name: ");
            lastNameLabel.setText("");
            ageAccess.setText("Age: ");
            ageLabel.setText("");
            heightAccess.setText("Height: ");
            heightLabel.setText("");
            weightAccess.setText("Weight: ");
            weightLabel.setText("");
            descriptionAccess.setText("Description: ");
            descriptionLabel.setText("");
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(titleLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(nameAccess)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(nameLabel))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(lastNameAccess)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lastNameLabel))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(ageAccess)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(ageLabel))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(heightAccess)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(heightLabel))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(weightAccess)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(weightLabel))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(descriptionAccess)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(descriptionLabel)))
                    .addContainerGap(151, Short.MAX_VALUE))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(titleLabel)
                    .addGap(13, 13, 13)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(nameAccess)
                        .addComponent(nameLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lastNameAccess)
                        .addComponent(lastNameLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(ageAccess)
                        .addComponent(ageLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(heightAccess)
                        .addComponent(heightLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(weightAccess)
                        .addComponent(weightLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(descriptionAccess)
                        .addComponent(descriptionLabel))
                    .addContainerGap(139, Short.MAX_VALUE))
            pack();
        }// </editor-fold>
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new Profile().setVisible(true);
        // Variables declaration - do not modify
        private javax.swing.JLabel ageAccess;
        private javax.swing.JLabel ageLabel;
        private javax.swing.JLabel descriptionAccess;
        private javax.swing.JLabel descriptionLabel;
        private javax.swing.JLabel heightAccess;
        private javax.swing.JLabel heightLabel;
        private javax.swing.JLabel lastNameAccess;
        private javax.swing.JLabel lastNameLabel;
        private javax.swing.JLabel nameAccess;
        private javax.swing.JLabel nameLabel;
        private javax.swing.JLabel titleLabel;
        private javax.swing.JLabel weightAccess;
        private javax.swing.JLabel weightLabel;
        // End of variables declaration
    }PasswordDemo class:
    import javax.swing.*;
    import java.sql.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Arrays;
    import java.net.*;
    import java.io.*;
    import java.util.Scanner;
    public class PasswordDemo extends JPanel
                              implements ActionListener  {
        private static String OK = "ok";
        private static String HELP = "help";
        private static String Register = "Register";
        private JFrame controllingFrame; //needed for dialogs
        private JTextField username;
        private JPasswordField passreg;
        private JTextField usernamefield;
        private JPasswordField passwordField;
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        private JTextField name;
        private JTextField age;
        private JTextField height;
        private JTextField weight;
    private javax.swing.JPanel jPanel1;
        private void gothere() {
                      JFrame f = new JFrame("This is a test");
                      f.setSize(400, 300);
                      Container content = f.getContentPane();
                      content.setBackground(Color.white);
                      content.setLayout(new FlowLayout());
                     // content.add(new JButton("Button 1"));
                      //content.add(new JButton("Button 2"));
             name = new JTextField("Please put your name here", 20);
              name.setFont(new Font("Serif", Font.PLAIN, 14));
              content.add(name);
              age = new JTextField("Please put your age here", 20);
              age.setFont(new Font("Serif", Font.PLAIN, 14));
              content.add(age);
              height = new JTextField("Please indicate your height here", 20);
              height.setFont(new Font("Serif", Font.PLAIN, 14));
              content.add(height);
              weight = new JTextField("Please indicate your weight here", 20);
              weight.setFont(new Font("Serif", Font.PLAIN, 14));
              content.add(weight);
              content.add(new JButton("Submit"));
               f.setVisible(true);
         public PasswordDemo(JFrame f) throws Exception {
            //Use the default FlowLayout.
            controllingFrame = f;
            //Create everything.
            usernamefield = new JTextField(10);
            usernamefield.setActionCommand(OK);
            usernamefield.addActionListener(this);
            passwordField = new JPasswordField(10);
            passwordField.setActionCommand(OK);
            passwordField.addActionListener(this);
            passreg = new JPasswordField(10);
            passreg.setActionCommand(Register);
            passreg.addActionListener(this);
            username = new JTextField("This is a sentence", 20);
            username.setActionCommand(Register);
            username.addActionListener(this);
            JLabel reg = new JLabel("If you are a new contestant please register: \n");
            JLabel user = new JLabel("Username: \n");
            user.setLabelFor(username);
            JLabel pass = new JLabel("Password: \n");
            user.setLabelFor(passreg);
            JLabel label = new JLabel("Enter your username and password to log in: ");
            label.setLabelFor(usernamefield);
            label.setLabelFor(passwordField);
            JComponent buttonPane = createButtonPanel();
            //Lay out everything.
            JPanel textPane = new JPanel(new FlowLayout(FlowLayout.TRAILING));
            textPane.add(reg);
            textPane.add(user);
            textPane.add(pass);
            textPane.add(username);
            textPane.add(passreg);
            textPane.add(label);
            textPane.add(usernamefield);
            textPane.add(passwordField);
            add(textPane);
            add(buttonPane);
        public PasswordDemo() {
              // TODO Auto-generated constructor stub
         protected JComponent createButtonPanel() {
            JPanel p = new JPanel(new GridLayout(0,1));
            JButton okButton = new JButton("OK");
            JButton helpButton = new JButton("Help");
            JButton regButton = new JButton("Register");
            okButton.setActionCommand(OK);
            helpButton.setActionCommand(HELP);
            regButton.setActionCommand(Register);
            okButton.addActionListener(this);
            helpButton.addActionListener(this);
            regButton.addActionListener(this);
            p.add(okButton);
            p.add(helpButton);
            p.add(regButton);
            return p;
        public void actionPerformed (ActionEvent e)
            String cmd = e.getActionCommand();
            if (OK.equals(cmd)) { //Process the password.  
                boolean success=true;                        //Sign In
                 String Username="";
                 String Password="";
                 Username = this.usernamefield.getText();
                 Password = this.passwordField.getText();
                 try
                     success=check2(Username,Password);
                 catch(Exception d)
                      System.out.println("Got out");
                 if(success)
                 JOptionPane.showMessageDialog(controllingFrame, "Sign in Successful");
                 Form F = new Form(Username);
                 F.setVisible(true);
                 else
                 JOptionPane.showMessageDialog(controllingFrame, "Sign in was unsuccessful");     
            else if(HELP.equals(cmd)) { //The user has asked for help.
                JOptionPane.showMessageDialog(controllingFrame,
                    "You can get the password by searching this example's\n"
                  + "source code for the string \"correctPassword\".\n"
                  + "Or look at the section How to Use Password Fields in\n"
                  + "the components section of The Java Tutorial.");
            else if(Register.equals(cmd)) {  //*****************************************************
                 boolean success=true;
                 String Username="";
                 String Password="";
                 Username = this.username.getText();
                 Password = this.passreg.getText();
                 try
                      success=check(Username,Password);
                 catch(Exception d)
                      System.out.println("Something bad happened");
                 if(success)
                 JOptionPane.showMessageDialog(controllingFrame, "Registration successful");
                 else
                 JOptionPane.showMessageDialog(controllingFrame, "Registration was unsuccessful");
        //Must be called from the event dispatch thread.
        protected void resetFocus() {
            passwordField.requestFocusInWindow();
        static void createAndShowGUI() throws Exception {
            //Create and set up the window.
            JFrame frame = new JFrame("Registration Page");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            final PasswordDemo newContentPane = new PasswordDemo(frame);
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Make sure the focus goes to the right component
            //whenever the frame is initially given the focus.
            frame.addWindowListener(new WindowAdapter() {
                public void windowActivated(WindowEvent e) {
                    newContentPane.resetFocus();
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String args[]) {
            //Schedule a job for the event dispatch thread:
            //creating and showing this application's GUI.
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    //Turn off metal's use of bold fonts
              UIManager.put("swing.boldMetal", Boolean.FALSE);
              try{
              createAndShowGUI();
                catch(Exception e)
        public void sendUserPass(String user,String pass)throws Exception
             //Send request
             Class.forName("com.mysql.jdbc.Driver");
              Connection con = DriverManager.getConnection("jdbc:mySql://localhost:3306/Contest","root","");
              System.out.println("connected :D:D:D:D");
              PreparedStatement state = con.prepareStatement("Insert Into Contestant (USERNAME,PASSWORD) values ('"+user+"','"+pass+"')");
              state.executeUpdate();
              /*while(Result.next())
                   System.out.println(Result.getString(1)+"\t"+Result.getString(2));
              //server should reply by updating database
        public boolean check(String user,String pass)throws Exception
             //Send request
             Socket Sock = new Socket ("LocalHost",5000);
             DataOutputStream toServer = new DataOutputStream(Sock.getOutputStream());
             BufferedReader buff = new BufferedReader(new InputStreamReader(Sock.getInputStream()));
             String sentence="";
             toServer.writeBytes("1\n");
             sentence=buff.readLine();
             System.out.println(sentence+"\n");
             toServer.writeBytes(user+" "+pass+"\n");
             String answer="";
             answer = buff.readLine();
             if(answer.equals("No"))
                  return false;
             return true;
             /*Class.forName("com.mysql.jdbc.Driver");
              Connection con = DriverManager.getConnection("jdbc:mySql://localhost:3306/Contest","root","");
              System.out.println("connected :D:D:D:D");
              PreparedStatement state = con.prepareStatement("Select Username From Contestant where '"+user+"'= username");
              ResultSet Result = state.executeQuery();
              if(!Result.next())
              return true;*/
              //server should reply by updating database
        public boolean check2(String user,String pass)throws Exception
             Socket Sock = new Socket("localhost",5000);
             DataOutputStream toServer = new DataOutputStream (Sock.getOutputStream());
             BufferedReader buff = new BufferedReader(new InputStreamReader(Sock.getInputStream()));
             toServer.writeBytes("2\n");
             System.out.println("Well I sent the message");
             String sentence = buff.readLine();
             toServer.writeBytes(user+" "+pass+"\n");
             System.out.println(sentence);
             sentence=buff.readLine();
             System.out.println(sentence+"\n");
             if(sentence.equals("No"))
                  return false;
             return true;
    }

    Profile p = Profile();That says "call a method name 'Profile' that's defined in the current class."
    Perhaps what you meant was:
    Profile p = new Profile();which says "create a new instance of the Profile class, and invoke its no-arg constructor."

  • Setting 'MO: Security Profile or MO: Operating Unit profile option' - Urgen

    All,
    Version: 12.0.4
    Module: Purchasing
    I'm trying to invoke the PO_CHANGE_API1_S.record_acceptance to send the Advance shipment Notice doc to Oracle R12. On invocation I'm getting the following error
    ORA-20001: APP-FND-02902: Multi-Org profile option is required+
    set either MO: Security Profile or MO: Operating Unit profile option+
    1. How do I set this profile option?
    2. Is it required to set both security and OU profile option?
    3. At what level(site,appln,resp,user,ou,...) should I set the profile?
    Please help me.
    Thanks,
    Sen

    Hi,
    You can set those profile options from System Administrator responsibility > Profile > System.
    Please see these docs for details.
    Note: 602141.1 - R12 - Error ORA-20001, APP-FND-02902 Accessing Profile Classes Form With Multi-Org Access Control (MOAC) Enabled
    Note: 338332.1 - App-Fnd:02902: Multi-Org Profile Option Is Required. Ora-20001
    Note: 393560.1 - How To Prevent the Profile Option MO: Operating Unit being set to NULL at Site Level?
    Regards,
    Hussein

  • Onscreen Proofing Profiles Missing

    "Aperture provides several dozen profiles that match the characteristics of many printers, screen devices, and color spaces." according to the bottom of page 125 in the online manual. However, the only profiles I have listed in Aperture's View/Proofing Profile menu are ones provided with the OS and others I have installed in Library/Colorsync/Profiles. So, how do I get these "dozens of profiles" to appear? My original install was Aperture 1.1 to a MacBook Pro 2GHz 15" running OS 10.4.5. I'm currently running Aperture 1.1.2 in OS 10.4.7.
    Thanks in advance for any help,
    Ken Seibert

    This is a well-document bug.
    If you do a search through the proofing threads, you will find a simlar thread to this.
    Fortunately, I have provided a temporary solution to this bug. It seems as though Aperture does not like profiles that are set to the "display" class. In order to have Aperture use the profile correctly, you must manually change the profile that is giving you trouble, i.e. sRGB from "display" class to "output" class. Once this is done, Aperture will show images correctly when using it as a proof.
    Be sure to duplicate the profile that you wish to change and rename it, i.e. web-proofing or something to that effect.
    You can download the software to change the profile class from fuji film as they have a demonstration package that you can use temporarily to do this.
    Good luck.

  • Can't Profile my JSP's on embedded OC4J - what am I doing wrong?

    I can profile (Event and Execution) my executable client-side classes (ie, fired off via a main method) fine, but cannot get any profiling info on my JSP's - any suggestions on what I'm missing?
    I'm using JDev 9.0.3. I've tried it with and without the .jsps package in the Profile "Classes and Packages to include" path. I've tried it with and without the "Remote Profiling" option checked. I'm using the exact same section of code in my class and jsp, and the class works fine for both Execution and Event profiling, so I don't think its the code or my use of the API that's flawed. I've set the project's "Default Run Target" to the JSP (for attempts to profile the JSP - its set to the class for profiling of the main-invoked class).
    ojvm is selected under the Runner "Java Virtual Machine" option. The standard defaults are selected under the Tools:Preferences Embedded OC4J options.
    The profiler window just acts as if the JSP never runs (though in the log window, I get the "Profiler UI connected..." and the OC4J startup messages just fine.
    Most frustrated and appreciate any assistance!
    Thanks,
    Jim

    I can profile (Event and Execution) my executable client-side classes (ie, fired off via a main method) fine, but cannot get any profiling info on my JSP's - any suggestions on what I'm missing?
    I'm using JDev 9.0.3. I've tried it with and without the .jsps package in the Profile "Classes and Packages to include" path. I've tried it with and without the "Remote Profiling" option checked. I'm using the exact same section of code in my class and jsp, and the class works fine for both Execution and Event profiling, so I don't think its the code or my use of the API that's flawed. I've set the project's "Default Run Target" to the JSP (for attempts to profile the JSP - its set to the class for profiling of the main-invoked class).
    ojvm is selected under the Runner "Java Virtual Machine" option. The standard defaults are selected under the Tools:Preferences Embedded OC4J options.
    The profiler window just acts as if the JSP never runs (though in the log window, I get the "Profiler UI connected..." and the OC4J startup messages just fine.
    Most frustrated and appreciate any assistance!
    Thanks,
    Jim Jim,
    your solution is not inconsistent with how the execution and event profiler work. In the online documentation it states that "samples that have accumulated from the start of the program (or the last clear) are displayed when you pause the Execution Profiler or when the program terminates." You can hit 'pause' as you mention, 'snapshot', or stop the process to get results from the execution and event profilers. Basically, you need to tell the profiler when to provide a sample. Also if you plan to do any remote profiling of JSP's you will need to manually start the application and start a browser to invoke the JSP or servlet.
    I hope this

  • Struts + Profile?

    I'm desining a small application which will allow customers to edit their profiles (i.e. their fname, lname, phone etc) and view it. I'm still at the designning stage, i have a few questions:
    Which approach is better?
    a) A customer can view their profile the information will be displayed as text. A customer can edit their profile using the edit button which will direct them to a form where they can edit it
    OR
    b) the customers profile is presented in textfields and can be edited and viewed at the same time
    any other suggestions are welcome.
    I've looked at commonly used profiles (phpBB etc) and they use b.
    in both designs the values are extracted from the db, i want to start with the basics so i just have on field "firstName".

    anyone? I think i'm going to go with a).

  • Creating multiple profiles, using unified profile types, to store multiple values for same properties

    Hi All:
    I am trying to create multiple profiles, using unified profile types, to
    store multiple values for same properties. Here my intention of using
    'unified profile types' is to create multiple profiles (to store multiple
    values for a property). All the properties are stored in the same database
    maintained by Personalization server. Also, I am trying to use the same
    'USER' ejb as profile class/home/pk/jndi.
    The scenerio is,
    define unified profile types (Business, Vacation) using Personalization
    admin tools, using com.beasys.commerce.axiom.contact.User,
    com.beasys.commerce.axiom.contact.UserHome,
    com.beasys.commerce.axiom.contact.UserPk,
    com.beasys.commerce.axiom.contact.User for Profile Class, Home, Pk class,
    JNDI name respectively.
    Define Property set 'HotelCommerce' with property
    HotelProp as single, restricted, text (valid values Single, Double)
    Now you can use the attached jsp files to login as a user and try to set the
    property value for HotelProp for each profile. As per my understanding, I
    was expecting that I can set different values for the property 'HotelProp'
    for each profiles. But unexpectedly, all the profiles get the same value.
    Question. is it the correct behavior? if yes, how can I achieve this
    functionality?
    if not, do you see any problem in my scripts?
    your answer asap is appreciated. we need to make decision on using
    Personalization server v/s developing our own Personalization server!!!:)
    thanks,
    -rajesh
    PS: I have tried 'Unified Profile Example' type too, but that did not work.
    [propsettest.jsp]
    [home.jsp]

    I am trying to create multiple profiles, using unified profile types, to
    store multiple values for same properties. Here my intention of using
    'unified profile types' is to create multiple profiles (to store multiple
    values for a property). All the properties are stored in the same database
    maintained by Personalization server. Also, I am trying to use the same
    'USER' ejb as profile class/home/pk/jndi.Hello Rajesh,
    This is not the purpose of the UUP. The UUP is used to allow existing
    database schemas to be aggregated with the existing Weblogic Personalization
    Server database schema to provide a single, customized user profile with which
    to maintain the user properties (
    http://e-docs.bea.com/wlcs/p13n/users.htm#1068901 )
    If you want to have properties that change value based on some "profile" or
    classification of a user, then you should use classifier rules to change the
    user from "OnVacation" to "AtWork" or "AtHome". You can use these classifier
    rules to select content for the user or conditionally execute logic (
    http://e-docs.bea.com/wlcs/p13n/rules.htm )
    Ture Hoefner
    BEA Systems, Inc.
    1655 Walnut Street; suite 200
    Boulder, CO 80302
    www.beasys.com

  • Creating a class with only one method in it

    Do you think it is worth creating a class if you only have one method in it?
    Or do you think i should just put it in the class that contains the main method?
    Just wondering.
    Thank you.

    lol, what does it depend on.
    The class i am talking about, is to register new
    customers, A class is typically a noun in your problem description - so the class could be Customer, or maybe Registry. But "register new customers" is an action, so this should be a method, and it should belong to whatever class in your system you think should have the responsibility to register new custromers.
    a pretty major part of the application.
    But is it really required to have it's own class?
    If it still depends, what does it depend on?

Maybe you are looking for