CRM ISA 5.0 - Add data to the WebCatArea

Hello experts
I have to associate an integer value to the WebCatAreas. This value is 1 for the first head webcatarea of catalog and all its childrens, 2 for the next ...
I can generate this value in CategoriesB2C.inc.jsp in the menu displaying loop.
I have to get this value in all the products jsp pages (list of products of an area, product sheet page ...)
But how to add data to the webcatarea bean ? should I use the addExtensionData (I don't have to store this data in the backend ...) ? should I use the userSessionData to store a table which do the mapping between areaID and my custom value ?
Thank you for your help.

Hello Sateesh Chandra,
The need is simple : I have to integrate XiTi marking. In XiTi there is "level 2 sites" that have been defined in hard into XiTi interface, corresponding to my "head" categories, with numbers associated (category1 = 4, category2 = 5 ...).
In all the pages of my site that "are into" a category, I have to put a javascript code, containing a variable that I have to set to the level 2 site number. For example if I'm in page Category1 / Family1 / Product1, the javascript variable will have to be 4. Idem for the page Family1 which contains the list of the family1 products ...
The level 2 sites in XiTi have been created in the same order than my menu, so I though I could use the position of the head category in the menu to determine the level 2 site number (in case of a change in the CRM catalog, we will have to change the configuration of level 2 sites numbers in XiTi interface but it happen's very rarely).
I will try with the getPosition method and I'll come back to see if you advise me a better solution.
Thank you very much one more time !
Regards
JL.

Similar Messages

  • Add data to the table in the database with the use of add button

    The name of my database is Socrates.
    The name of the table in the database is Employees
    I want to be able to add data to the database. i am presently working on the add button such that when i enter date into the textfield and press the add button it should automatically register in the table.
    The error upon compilation is with this line of code
    If (ae.getSource() == jbtnA)// it says that ";" is expected
    Below is the entire code
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Mainpage extends JFrame implements ActionListener
         JTextField jFirstName = new JTextField(15);
         JTextField jSurname = new JTextField(12);
         JTextField jCity = new JTextField(10);
         JTextField jCountry = new JTextField(12);
         JTextField jSSN = new JTextField(8);
         JLabel jFirstLab = new JLabel("First Name");
         JLabel jSurnameLab = new JLabel("Surname");
         JLabel jCityLab = new JLabel("City");
         JLabel jCountryLab = new JLabel("Country");
         JLabel jSSNLab = new JLabel("Social Security Number (SSN)");
         JButton jbtnA = new JButton ("Add");
         JButton jbtnPrv = new JButton ("Previous");
         JButton jbtnNt = new JButton ("Next");
         JButton jbtnDl= new JButton ("Delete");
         JButton jbtnSrch = new JButton ("Search");
         public Mainpage (String title)
              super (title);
              Container cont = getContentPane();
              JPanel pane1 = new JPanel();
              JPanel pane2 = new JPanel();
              JPanel pane3 = new JPanel();
              pane1.setLayout (new GridLayout (0,1));
              pane2.setLayout (new GridLayout(0,1));
              pane3.setLayout (new FlowLayout());
              pane1.add(jFirstLab);
              pane1.add(jSurnameLab);     
              pane1.add(jCityLab);
              pane1.add(jCountryLab);
              pane1.add(jSSNLab);
              pane2.add(jFirstName);
              pane2.add(jSurname);
              pane2.add(jCity);
              pane2.add(jCountry);
              pane2.add(jSSN);
              pane3.add(jbtnA);
              pane3.add(jbtnPrv);
              pane3.add(jbtnNt);
              pane3.add(jbtnDl);
              pane3.add(jbtnSrch);
              cont.add(pane1, BorderLayout.CENTER);
              cont.add(pane2, BorderLayout.LINE_END);
              cont.add(pane3, BorderLayout.SOUTH);
              jFirstName.addActionListener(this);
              jSurname.addActionListener(this);
              jCity.addActionListener(this);
              jCountry.addActionListener(this);
              jSSN.addActionListener(this);
              jbtnA.addActionListener(this);
              jbtnPrv.addActionListener(this);
              jbtnNt.addActionListener(this);
              jbtnDl.addActionListener(this);
              jbtnSrch.addActionListener(this);
              validate();
              setVisible(true);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              pack();
              setResizable(false);
         public void actionPerformed(ActionEvent ae)
                   If (ae.getSource() == jbtnA)
                                    fst = jFirstName.getText();
                        srn = jSurname.getText();
                        cty = jCity.getText();
                        cnty = jCountry.getText();
                        int sn =
    Interger.parseInt(jSSN.getText());
                                    String ad = "Insert into Employees
    (Firstname,Surname,City,Country,SSN)" +
    "values('"fst"','"srn"','"cty"','"cnty"','"sn"')";
                        Statement stmt = con.createStatment();
                        int rowcount = stmt.executeUpdate(ad);
                        JOptionPane.showMessageDialog("Your
    details have been registered");
                        Statement stmt = con.createStatment();
                        int rowcount = stmt.executeUpdate(ad);
    public static void main (String args[])
              Mainpage ObjFr = new Mainpage("Please fill this
    registration form");
              try
                   Class.forname("sun.jdbc.odbc.JdbcOdbcDriver");
                   String plato = "jdbc:odbc:socrates";
                   Connection con =
    DriverManager.getConnection(plato);
              catch(SQLException ce)
                   System.out.println(ce);
    }

    i have restructured the code, but the following line of code is giving error:
    String plato = jdbc:odbc:socrates;
    the entire code is below:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    public class Mainpage extends JFrame implements ActionListener
         JTextField jFirstName = new JTextField(15);
         JTextField jSurname = new JTextField(12);
         JTextField jCity = new JTextField(10);
         JTextField jCountry = new JTextField(12);
         JTextField jSSN = new JTextField(8);
         JLabel jFirstLab = new JLabel("First Name");
         JLabel jSurnameLab = new JLabel("Surname");
         JLabel jCityLab = new JLabel("City");
         JLabel jCountryLab = new JLabel("Country");
         JLabel jSSNLab = new JLabel("Social Security Number (SSN)");
         JButton jbtnA = new JButton ("Add");
         JButton jbtnPrv = new JButton ("Previous");
         JButton jbtnNt = new JButton ("Next");
         JButton jbtnDl= new JButton ("Delete");
         JButton jbtnSrch = new JButton ("Search");
         Statement stmt;
            String ad;
            public Mainpage (String title)
              super (title);
              Container cont = getContentPane();
              JPanel pane1 = new JPanel();
              JPanel pane2 = new JPanel();
              JPanel pane3 = new JPanel();
              pane1.setLayout (new GridLayout (0,1));
              pane2.setLayout (new GridLayout(0,1));
              pane3.setLayout (new FlowLayout());
              pane1.add(jFirstLab);
              pane1.add(jSurnameLab);     
              pane1.add(jCityLab);
              pane1.add(jCountryLab);
              pane1.add(jSSNLab);
              pane2.add(jFirstName);
              pane2.add(jSurname);
              pane2.add(jCity);
              pane2.add(jCountry);
              pane2.add(jSSN);
              pane3.add(jbtnA);
              pane3.add(jbtnPrv);
              pane3.add(jbtnNt);
              pane3.add(jbtnDl);
              pane3.add(jbtnSrch);
              cont.add(pane1, BorderLayout.CENTER);
              cont.add(pane2, BorderLayout.LINE_END);
              cont.add(pane3, BorderLayout.SOUTH);
              jFirstName.addActionListener(this);
              jSurname.addActionListener(this);
              jCity.addActionListener(this);
              jCountry.addActionListener(this);
              jSSN.addActionListener(this);
              jbtnA.addActionListener(this);
              jbtnPrv.addActionListener(this);
              jbtnNt.addActionListener(this);
              jbtnDl.addActionListener(this);
              jbtnSrch.addActionListener(this);
              validate();
              setVisible(true);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              pack();
              setResizable(false);
              try
                   Class.forname(sun.jdbc.odbc.JdbcOdbcDriver);
                   String plato = jdbc:odbc:socrates;
                   Connection con = DriverManager.getConnection(plato);
                   stmt = con.createStatment();
              catch(SQLException ce)
                   System.out.println(ce);
              catch(ClassNotFoundException ce)
                   System.out.println(ce);
         public void actionPerformed(ActionEvent ae)
                   try
                        if(ae.getSource().equals(jbtnA))
                                         fst = jFirstName.getText();
                             srn = jSurname.getText();
                             cty = jCity.getText();
                             cnty = jCountry.getText();
                             int sn = Interger.parseInt(jSSN.getText());
                                         ad = "Insert into Employees
    values('"+fst+"',"+srn+"','"+cty+"','"+cnty+"','"+sn+"')";
                             stmt.executeUpdate(ad);
                             JOptionPane.showMessageDialog(this, "Your details have been
    registered");
                   catch(SQLException ce)
                        System.out.println(ce);
    public static void main(String args[])
              Mainpage ObjFr = new Mainpage("Please fill this registration form");
    }

  • How to add data in the saved spreadshee​t file

    Hi all,
    I am having trouble in adding data onto an already saved spreadsheet file. I don't want to overwrite the old file but modify it, such that the new data is stored below the old data. Or
    As I am saving the data in a 2-D array in the VI, where the first row of the array is occupied only, each time I take new measurements the old data is lost, is there a way to keep the old data and store the new one below the old data in the same array. Any help in this matter would be appreciated.
    Regards
    Ibtasam
    Message Edited by Ibtasam on 07-11-2007 05:58 AM
    In the name of Allah, the most mercifull and the most Gracious

    Hi all,
    I have actually managed to find a way to add comments before saving the data. Following steps are followed:
    1.) Add a table on the front panell
    2.) Connect the table as an indicator to the output array
    3.)Finally make a varaible by right clicking on the table indicator (Block diagram) and connect this variable as an input to the Write to Spreadsheet.vi
    this way you get the array output into the table and you can add comments in the table and then save it. If any body need any more information then please let me know
    regards
    Ibtasam
    In the name of Allah, the most mercifull and the most Gracious

  • Add data to the existing data

    Hi,
    I created a new table with columns sno,sname,subjects in it.
    I inserted the data into the table as below...
    sno     sname     subjects
    100     Satya     Computers,Electronics,Data Structres
    101     Dave     Computers,Civil,Informatics
    102     John     Computers,Commerce
    Now I need to add one more subject(Mechanical) to the subjects column.....
    ex:Computers,Electronics,Data Structres,Mechanical
    Computers,Civil,Informatics,Mechanical
    Computers,Commerce,Mechanical
    Can anyone please suggest how I can add a new subject in the existing data...
    Thanks in advance

    user11048416 wrote:
    Hi,
    I created a new table with columns sno,sname,subjects in it.
    I inserted the data into the table as below...
    sno     sname     subjects
    100     Satya     Computers,Electronics,Data Structres
    101     Dave     Computers,Civil,Informatics
    102     John     Computers,Commerce
    Now I need to add one more subject(Mechanical) to the subjects column.....
    ex:Computers,Electronics,Data Structres,Mechanical
    Computers,Civil,Informatics,Mechanical
    Computers,Commerce,Mechanical
    Can anyone please suggest how I can add a new subject in the existing data...
    Thanks in advanceIt fails even the first normal form which says each attribute of a column should be atomic...
    May be you should go for redesigning the table structure if possible or else there is huge possibility of update,insert and delete anomalies.
    Ravi Kumar

  • How i can add data to the dev ?

    hello  ,
    we have  dev / qa / prod .
    the problem is that the "dev" don’t have enough data and we need
    to pass the development to the qa for any simple test  .
    is it possible to insert data just to the tables without erase or make
    damage to the existing  programs/develops ?

    //the problem is that the "dev" don’t have enough data and we need
    to pass the development to the qa for any simple test .
    How much is the data content to be created into the table ?
    For unit testing is this a report or what program is to be run in the QA?
    Can u elaborate the query in this regard?
    //is it possible to insert data just to the tables without erase or make
    damage to the existing programs/develops ?
    Are u trying to transport the table with entries into QA for just testing purpose ?
    confirm this .
    in my opinion if at all the entries are required to test some scenario
    like say one or two max 5 per scenario ,
    can't u create some entries in debugging itself by appending the entry in ur QA itself .
    regards,
    vijay.

  • Re: How do get readers to add data within the app?

    Is this possible

    You'd have to build an HTML form and then include it via a web overlay in your folio.
    Neil

  • Adding data to the formula log or package log

    Is it possible to add data to the package or formula log?
    I have create a package to load and process a file into a dimension file, but there is also transformation and record checking in the package, so it is possible records will be rejected (duplicate ID or non existent parent member).
    I store these values in a seperate table in the SQL database, so the records are available.
    Is it possible to add this data in the log file so it can be viewed from the view status in datamanager?
    Regards,
    Tim Vierhout
    Edited by: Tim Vierhout on Dec 8, 2009 10:22 AM

    Hi Tim,
    You can try to use the %LOGTABLE% parameter in the scrip logic call. In SQL, the BPC log is a temporally SQL table with one field called MSG, so if in you package you pass this parameter to the SQL procedure where you store the duplicates, so you can insert this records to LOGTABLE and then you will get this back in BPC as part of the log.
    Hope this helps,
    Let me know if need more help on this,
    Regards,
    Carlos.

  • How to add data in a file

    hi,
    I have written following code.I have a file. i want to add data in this file.
    When i add data then data is added but i donnot get the previous data. What`s the problem of my code? Is there anyone can help me? how i will add data with the previous data? Please help me.
    String username=request.getParameter("UserName");
    String userage=request.getParameter("UserAge");
    String address=request.getParameter("UserAddress");
    String sex=request.getParameter("sex");
    FileWriter f = new FileWriter("d:\\download_dreamweaver\\Project_3\\WebContent\\SaveData.txt");
    f.append(username);
    f.close(); ith regards
    bina

    Looks like you're creating a new file (which overwrites the old one) every time. You need to open the file first and then append to it.

  • How to add date in XSLT?

    All,
    soa version: 11.1.1.4
    There is a requirement for me to add date to the current date in XSLT.  I searched in 'Data functions', there I couldn't find any pre-defined functions.  How do I achieve it in XSLT?  Any help is appreciated.
    thanks
    sen

    Hi Sen,
    You can do this using the below:
    <xsl:value-of select="xp20:add-dayTimeDuration-to-dateTime(xp20:current-dateTime(),'P1D')"/>
    You can change the P1D based on the number of days you want to add.
    For example 3 days = P3D
    Thanks,
    Deepak.

  • BI 7 WAD - Copy function - Add data instead of overwrite

    Hi,
    We use copy function to copy data from one version to another. We need to add data to the second version. But when we execute the copy function, data in the second version is overwritten. Can anybody help how to do this in planning modeler on BI 7 (or WAD). This can be done in BPS0 but we would like to do the same in RSPLAN.
    regards,
    Lokesh Nandula

    Thanks Jeoffrey. In the below link its stated that ''The key figure values for the To values are always overwritten during copying"
    http://help.sap.com/saphelp_nw70/helpdata/en/44/21e0697641648fe10000000a1553f7/frameset.htm
    Infact, we already started with FOX...but couldnt complete it. Can you please check the below FOX. We use a variable for Version.
    Operand Keyfigure, Version
    DATA VAR1 TYPE 0VERSION.
    VAR1=VARV (ZKMDVFIB_VERSION).
    {0AMOUNT, VAR1} = {0AMOUNT, VAR1} + { 0AMOUNT, Z01 }.
    {ZIAMT1, VAR1} = {ZIAMT1, VAR1} + { ZIAMT1, Z01 }.
    {ZIAMT2, VAR1} = {ZIAMT2, VAR1} + { ZIAMT2, Z01 }.

  • HT4571 I have been trying to add data to my I pad and when I add it it goes to a page that says error. Is there another way to add data?

    I have been trying to add data to my I pad and when I add it it goes to a page that says error. Is there another way to add data?

    The installer is over 5Gb's and could take many hours to download.
    Check the download status in the App Store application.

  • Add data in webtogo client

    Hello!
    I read and work through the webtogo tutorial (to do list application). Everything works fine while I'm adding data in online mode. But if I try to add data in the webtogo client nothing happens. Is there a solution to solve that problem?
    regards
    Marco

    Hi,
    If you do not have Table Maintenance for your table and if you want to transfer the data to QA client then yes, it is required to create a Transport Request and then transport the Request number to QA client. if u do have table maintenance then you can directly create the data in the table in QA client itself.
    thanks,
    sksingh

  • Row size of Structure in CRM ISA

    Hi Guys,
    I want to iterate a Structure on Java side of CRM ISA but I don't know the row size of that structure. Could you please tell me how to get the row size or length of that structure so that I can iterate the structure. Or if there is any other method to iterate or get the multiple values from the structure please tell me.
    Thanks & Regards,
    Sunil Patidar

    Are you trying to iterate through the fields of the structure?  If so there appears to be a .fields() method on the structure object that gives you a JCO.Iterator.  You can try something like this:
    JCO.FieldIterator fields = sapStructure.fields();
    while (fields.hasNextFields()) {
              JCO.Field fld = fields.nextField();
              String fieldName = fld.getName();
              String fieldVal = recordField.getValue();
    I've never tried this before so I don't know if its what you need.

  • JTable add row as the first row problem?

    table.addRow();
    i want it show on the first row
    how to do?

    JTable doesn't have an addRow() method. Add add data to the TableModel not the table.
    The DefaultTableModel has addRow() and insertRow() methods.

  • ABAP debugging in CRM ISA B2C application

    Hi gurus !
    I need to debug FM 'CRM_ISA_BASKET_ORDER' to monitor some values in a CRM ISA 4.0 B2C application. The FM is stateful and I have set the necessary parameters in modification-config.xml file. However, when running the CRM ISA 4.0 B2C application from a remote client, I do not get the SAPGUI popping up as given in the SAP_ISA4DevExtG10.pdf documentation. Have I missed any setting ? Is there anything else that I need to complete to get the SAPGUI to popup to debug the FM ?
    Cheers,
    Ashok.

    - Did you set an external break point or just a session break point?
    - Did you set the RFC-user in SAPGUI as debug user? Utilities -> Settings -> ABAP Editor -> Debugging -> External Debugging: Here should be the RFC user of the B2C application.
    Florian

Maybe you are looking for