Enabling JHeadStart to Generate Automatically RollBack Button

How to modify JHeadStart Templates so it generates automatically a Rollback Button in every Uix Page.
Best regards

Medba,
You can make customizations like this in the JHeadstart Generator Templates. For instance, take a look at the dataPage.jut file. You'll find the following section:
<pageButtonBar>
<contents>
$CHILD_NAV_BUTTONS$
$NEW_BUTTON$
$DELETE_BUTTON$
$SAVE_BUTTON$
</contents>
</pageButtonBar>
You can enter your own rollback button there, and it will be included in every page generated using this template. There are a few other templates you'll need to modify, for instance dataPagePC.jut (PC = Parent-Child) that also contains buttons. As long as the button puts 'event=Rollback' on the session or 'event_Rollback=true', it will do the trick.
Kind regards,
Peter Ebell
JHeadstart Team

Similar Messages

  • Rollback button

    Hi all!!
    I'm trying to include a Rollback button in a form, but it doesn't works.
    The UIX code is:
    <submitButton text="Cancelar"
    model="${bindings.Rollback}"
    id="Rollback0"
    event="action"
    disabled="${createMode}"/>
    When i execute the form and test the button i got this error "java.lang.NullPointerException". I have no idea what's happening, because when i put and use a Rollback button in a table it works fine.
    Any help will be appreciated.
    Roxana

    Hi Steven and thank you for your answer. This is the error that apper in the console:
    05/06/17 09:30:47 javax.servlet.ServletException
    05/06/17 09:30:47      at oracle.adf.controller.struts.actions.StrutsUixLifecycle$NonRenderingPageBroker.renderError(StrutsUixLifecycle.java:345)
    05/06/17 09:30:47      at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
    09:30:47 DEBUG (JhsDataAction) -No commit event in request and multiRowUpdateEvent request param not set, multi-row update NOT executed
    05/06/17 09:30:47      at oracle.adf.controller.struts.actions.StrutsUixLifecycle._runUixController(StrutsUixLifecycle.java:215)
    05/06/17 09:30:47      at oracle.adf.controller.struts.actions.StrutsUixLifecycle.processUpdateModel(StrutsUixLifecycle.java:106)
    05/06/17 09:30:47      at oracle.jheadstart.controller.strutsadf.action.JhsStrutsUixLifecycle.processUpdateModel(JhsStrutsUixLifecycle.java:140)
    05/06/17 09:30:47      at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:317)
    05/06/17 09:30:47      at oracle.jheadstart.controller.strutsadf.action.JhsDataAction.processUpdateModel(JhsDataAction.java:622)
    05/06/17 09:30:47      at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:508)
    05/06/17 09:30:47      at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:112)
    05/06/17 09:30:47      at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
    05/06/17 09:30:47      at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
    05/06/17 09:30:47      at oracle.jheadstart.controller.strutsadf.action.JhsDataAction.handleLifecycle(JhsDataAction.java:389)
    05/06/17 09:30:47      at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
    05/06/17 09:30:47      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    05/06/17 09:30:47      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    05/06/17 09:30:47      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
    05/06/17 09:30:47      at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:127)
    05/06/17 09:30:47      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:527)
    05/06/17 09:30:47      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    05/06/17 09:30:47      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    05/06/17 09:30:47      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    05/06/17 09:30:47      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    05/06/17 09:30:47      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
    05/06/17 09:30:47      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
    05/06/17 09:30:47      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
    05/06/17 09:30:47      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
    05/06/17 09:30:47      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
    05/06/17 09:30:47      at oracle.jheadstart.controller.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:172)
    05/06/17 09:30:47      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:645)
    05/06/17 09:30:47      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
    05/06/17 09:30:47      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    05/06/17 09:30:47      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    05/06/17 09:30:47      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    05/06/17 09:30:47      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    05/06/17 09:30:47      at java.lang.Thread.run(Thread.java:534)
    05/06/17 09:30:47 javax.servlet.ServletException
    05/06/17 09:30:47      at oracle.adf.controller.struts.actions.StrutsUixLifecycle$NonRenderingPageBroker.renderError(StrutsUixLifecycle.java:345)
    05/06/17 09:30:47      at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
    05/06/17 09:30:47      at oracle.adf.controller.struts.actions.StrutsUixLifecycle._runUixController(StrutsUixLifecycle.java:215)
    05/06/17 09:30:47      at oracle.adf.controller.struts.actions.StrutsUixLifecycle.processUpdateModel(StrutsUixLifecycle.java:106)
    05/06/17 09:30:47      at oracle.jheadstart.controller.strutsadf.action.JhsStrutsUixLifecycle.processUpdateModel(JhsStrutsUixLifecycle.java:140)
    05/06/17 09:30:47      at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:317)
    05/06/17 09:30:47      at oracle.jheadstart.controller.strutsadf.action.JhsDataAction.processUpdateModel(JhsDataAction.java:622)
    05/06/17 09:30:47      at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:508)
    05/06/17 09:30:47      at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:112)
    05/06/17 09:30:47      at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
    05/06/17 09:30:47      at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
    05/06/17 09:30:47      at oracle.jheadstart.controller.strutsadf.action.JhsDataAction.handleLifecycle(JhsDataAction.java:389)
    05/06/17 09:30:47      at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
    05/06/17 09:30:47      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    05/06/17 09:30:47      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    05/06/17 09:30:47      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
    05/06/17 09:30:47      at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:127)
    05/06/17 09:30:47      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:527)
    05/06/17 09:30:47      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    05/06/17 09:30:47      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    05/06/17 09:30:47      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    05/06/17 09:30:47      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    05/06/17 09:30:47      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
    05/06/17 09:30:47      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
    05/06/17 09:30:47      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
    05/06/17 09:30:47      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
    05/06/17 09:30:47      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
    05/06/17 09:30:47      at oracle.jheadstart.controller.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:172)
    05/06/17 09:30:47      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:645)
    05/06/17 09:30:47      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
    05/06/17 09:30:47      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    05/06/17 09:30:47      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    05/06/17 09:30:47      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    05/06/17 09:30:47      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    05/06/17 09:30:47      at java.lang.Thread.run(Thread.java:534)
    Any ideas?
    Thanks in advance
    Roxana

  • Commit/Rollback Button, Count Records, Ctrl-End pblm?

    1. How about adding a commit and rollback button on the SQL Worksheet?
    2. How about a quick way to count the records in the result set in sqlworksheet and the data tab?
    3. Noticed that using ctrl-end on the data tab does not move to the last record. You still need to page down to the end, or scroll to the end. ctrl-end should move to the last record in the table. I get 55 records, ctrl-end, and then go to rec 105. There are 1k's of records in the table. Paging down will get me there.
    4. What about drag and drop selected text in SQL Worksheet?
    5. On the table tab (and sub tabs...what are they called?), automatically store the filters and sorts on a user.table level (and maybe a dropdown to recall them)? These are the kind of requests that really improve your efficiency, and acceptance of the product. The user believes that as they use the product, they are building a foundation that can be easily recalled later.
    As a note for any settings files...they should be stored so they can be easily transported to the next release or another pc. They should probably be in a directory with the operator's name (like my documents).

    I think it would be good to have a function (like Ctrl-End) that allows you to jump to the last record - even if there are a million rows.
    As far as a "work-around", exporting will count the records, so you could run your query and in the result table right-click, select Export -> some format. Once you select the file to export to, the Fetched Rows count is replaced with a Rows count for the export.
    The export does not appear fetch the rows in the results (unless you have already fetched to the end of the query) - in my example, when I ran the query the row count was "Fectched Rows: 100". I exported and the row count was "Rows: 4992". Then when I paged down in the results, the row count was updated to "Fectched Rows: 150". From this, I would assume that it is rerunning the query separately if you haven't already fetched the last record in the results.
    Interestingly, if I then scrolled down to the end of the query (displayed "All Rows Fetched: 4992") and then did an export, it appeared to scroll through the fetched records but ended up with "Row: 4991" displayed, but the full 4992 records were in the export file.
    Another interesting point - if I set up my query to return 199 records (ROWNUM < 200), when I run it, it displayed "Fectched Rows: 100". Once I page down enough it shows "Fectched Rows: 150" and then "Fectched Rows: 200". Then it is only after I page down more that it updates to "All Rows Fetched: 199".

  • Create, commit, rollback button behavior

    I have a view object dropped as a form. It has the default create, commit and rollback buttons.
    On initial display, only the create button is enabled, and the form is read-only.
    I click create button, which then it allows me to enter input.
    Upon clicking create button again, the form saves the input, clears itself, awaiting next input, and both commit and rollback buttons become enabled. I can continue to add more rows using create button.
    When I click either commit or rollback, the form becomes read-only again, and only the create button is enabled.
    This is the JDev standard form behavior which I want.
    Now, I add just 2 more enhancement, and this behavior gets broken.
    First, I drop the same view object as a table underneath the form, so that as records are added, the table will reflect it.
    Secondly, the form has two selectOneChoice components whereby upon valuechange on the first selectOneChoice, the second
    selectOnechoice items are dynamically populated via bean method and partial trigger.
    With these 2 changes, the entire page behaves like following:
    Upon create click, it gives me the form, but subsequent click on create does not clear the fields.
    If I click the create again, it then clears the fields. So, it takes 2 clicks on create to get a cleared form.
    But, it adds the row because I see it in the table below, but only one column displays the value in the newly added row.
    Upon commit, the row displays all values.
    Another thing is it fails to save the value from the second selectOneChoice field.
    Could you please point out what I am not doing right here?
    I would appreciate your insight.
    Thanks.
    Edited by: paikyunki on Oct 23, 2008 6:31 PM

    Chris,
    I might post the code tomorrow in my office - I am home now. Thanks for your offer.
    I gave some thoughts to my problem later, and it seems like one easy way out would be to create a form using ADF Faces components, then write a service method to insert a new row
    from the data gleaned through this form.
    I am new to JDev, and this approach of not utilizing the built-in functions of JDev may seem like defeating the very purpose of JDev.
    I find Oracle's Business Component's non-gui model very understandable and a strong alternative to Hibernate/Spring.
    However, it seems like sometimes it just may be easier, such as in this case, to resort to programmatic way.
    What is your view on this? I have used JDev less than 3 wks and would like to hear from experts.
    Yunki

  • AMIS releases set of JHeadstart Application Generator Extensions

    Now you can have JHeadstart generate:
    - radiobuttons (horizontal, vertical, grid-style)
    - stacked regions and side-by-side regions
    - JavaScript event code
    - different prompts and displayTypes for Find, Table and Formpages
    - Bubble help (balloon help)
    - NLS enabled hint-text
    - CSS styles per item, region or group
    - LOVs that diplay and return more than one value
    - a lot more than this
    through the JAG Extensions just published by AMIS. See for all details, examples, instructions and the necessary software: http://technology.amis.nl/blog/index.php?p=225.
    Note:
    - it is for JHeadstart 10g (9.0.5.x) (not for ADF JHeadstart and not for JHeadstart 9i (9.0.4.x)
    - it only affects JSP generation (not UIX)
    - it is a consolidation of our JHeadstart Cookbook's recipes
    - it is free (and not supported)
    - just as manual post-generation changes are not covered by a migration to ADF JHeadstart, these generated extensions are (probably) not migrated. We may provide a migration facility of some sort to help you migrate the AMIS JAG Extensions.
    We hope you will like this package. We would appreciate it, if you would let us know what you think!
    best regards,
    Lucas Jellema
    AMIS JHeadstart Team
    www.amis.nl

    Lucas, just amazing.... ;-)
    I hope you will provide a migration facility to JHS-ADF as it will be released in the (very) near future.
    Regards,
    Marcel

  • When generate automatically a JTable after a click on a tree node

    final int x[] = {0, 1, 2, 22, 0, 2, 0, 1, 0, 2};
    final int y[] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3};
    final int larg[] = {1, 1, 20, 1, 2, 21, 1, 22, 2, 22};
    final int haut[] = {1, 1, 1, 1, 1, 1, 1, 1, 22, 22};
    final int px[] = {5, 5, 85, 5, 0, 0, 0, 0, 0, 0};
    final int py[] = {2, 0, 0, 0, 2, 0, 2, 0, 94, 0};
    //****************** POSITIONNEMENT DES COMPOSANTS
    final Container conteneur = getContentPane();
    final GridBagLayout gridBg = new GridBagLayout();
    conteneur.setLayout(gridBg);
    final GridBagConstraints contrainte = new GridBagConstraints();
    contrainte.fill = contrainte.BOTH;
    //*********** JCOMBO1 **************
    borneDate1 = new JComboBox();
    Calendrier req = new Calendrier();
    String[] valCal = req.lireDansTable();
    borneDate1.addItem("");
    for (int i = 0; i<= valCal.length - 1; i++){
          borneDate1.addItem(valCal);
    contrainte.gridx = x[0];
    contrainte.gridy = y[0];
    contrainte.gridwidth = larg[0];
    contrainte.gridheight = haut[0];
    contrainte.weightx = px[0];
    contrainte.weighty = py[0];
    contrainte.insets = new Insets(1, 1, 1, 1);
    contrainte.ipadx = 20;
    gridBg.setConstraints(borneDate1, contrainte);
    conteneur.add(borneDate1);
    //*********** JCOMBO2 **************
    borneDate2 = new JComboBox();
    req = new Calendrier();
    valCal = req.lireDansTable();
    borneDate2.addItem("");
    for (int i = 0; i<= valCal.length - 1; i++){
    borneDate2.addItem(valCal[i]);
    contrainte.gridx = x[1];
    contrainte.gridy = y[1];
    contrainte.gridwidth = larg[1];
    contrainte.gridheight = haut[1];
    contrainte.weightx = px[1];
    contrainte.weighty = py[1];
    gridBg.setConstraints(borneDate2, contrainte);
    conteneur.add(borneDate2);
    //*********** JLABEL1 **************
    lbl1 = new JLabel(" Dates de S�lection.");
    contrainte.gridx = x[2];
    contrainte.gridy = y[2];
    contrainte.gridwidth = larg[2];
    contrainte.gridheight = haut[2];
    contrainte.weightx = px[2];
    contrainte.weighty = py[2];
    gridBg.setConstraints(lbl1, contrainte);
    conteneur.add(lbl1);
    //*********** BOUTON IMPRIMER **************
    btmImprimer = new JButton("IMPRIMER");
    contrainte.gridx = x[3];
    contrainte.gridy = y[3];
    contrainte.gridwidth = larg[3];
    contrainte.gridheight = haut[3];
    contrainte.weightx = px[3];
    contrainte.weighty = py[3];
    gridBg.setConstraints(btmImprimer, contrainte);
    conteneur.add(btmImprimer);
    //*********** BOUTON AUJOURD'HUI **************
    btmAujourdhui = new JButton("Ce jour");
    contrainte.gridx = x[4];
    contrainte.gridy = y[4];
    contrainte.gridwidth = larg[4];
    contrainte.gridheight = haut[4];
    contrainte.weightx = px[4];
    contrainte.weighty = py[4];
    gridBg.setConstraints(btmAujourdhui, contrainte);
    conteneur.add(btmAujourdhui);
    //*********** JLABEL 2 **************
    lbl2 = new JLabel(" Journal.");
    //lbl2.setVisible(false);
    contrainte.gridx = x[5];
    contrainte.gridy = y[5];
    contrainte.gridwidth = larg[5];
    contrainte.gridheight = haut[5];
    contrainte.weightx = px[5];
    contrainte.weighty = py[5];
    gridBg.setConstraints(lbl2, contrainte);
    conteneur.add(lbl2);
    //*********** JLABEL 3 **************
    lbl3 = new JLabel(" Adresse ");
    contrainte.gridx = x[6];
    contrainte.gridy = y[6];
    contrainte.gridwidth = larg[6];
    contrainte.gridheight = haut[6];
    contrainte.weightx = px[6];
    contrainte.weighty = py[6];
    gridBg.setConstraints(lbl3, contrainte);
    conteneur.add(lbl3);
    //*********** JTEXTFIELD **************
    txtPath = new JTextField();
    contrainte.gridx = x[7];
    contrainte.gridy = y[7];
    contrainte.gridwidth = larg[7];
    contrainte.gridheight = haut[7];
    contrainte.weightx = px[7];
    contrainte.weighty = py[7];
    gridBg.setConstraints(txtPath, contrainte);
    conteneur.add(txtPath);
    //*********** JTREE **************
    DefaultMutableTreeNode racine = new DefaultMutableTreeNode("MEDIACAST");
    //**********RECUPERER LES LIGNES ANIMATEUR*******
    parentNode = new DefaultMutableTreeNode("ANIMATEURS");
    racine.add(parentNode);
    GenererEnregistrement enregAnimateur = new GenererEnregistrement();
    String[] sEnregAnim = enregAnimateur.lireDansTable("SELECT numero_anim FROM animateur ORDER BY numero_anim", "numero_anim");
    for(int i = 0; i <= sEnregAnim.length - 1; i++){
    fils = new DefaultMutableTreeNode(sEnregAnim[i]);
    parentNode.add(fils);
    //************RECUPERER LES LIGNES COMPTE******************
    parentNode = new DefaultMutableTreeNode("COMPTES");
    racine.add(parentNode);
    GenererEnregistrement enregCompte = new GenererEnregistrement();
    String[] sEnregCompte = enregCompte.lireDansTable("SELECT id_compte FROM compte ORDER BY id_compte", "id_compte");
    for(int i = 0; i <= sEnregCompte.length - 1; i++){
    fils = new DefaultMutableTreeNode(sEnregCompte[i]);
    parentNode.add(fils);
    //************RECUPERER LES LIGNES DATE******************
    parentNode = new DefaultMutableTreeNode("DATES");
    racine.add(parentNode);
    GenererEnregistrement enregDate = new GenererEnregistrement();
    String[] sEnregDate = enregDate.lireDansTable("SELECT daty FROM calendrier ORDER BY numero_enreg", "daty");
    for(int i = 0; i <= sEnregDate.length - 1; i++){
    fils = new DefaultMutableTreeNode(sEnregDate[i]);
    parentNode.add(fils);
    //*************AFFICHAGE******************
    TreeNode root = racine;
    arbre = new JTree(root);
    JScrollPane paneTree = new JScrollPane();
    //**********EVENEMENT CLICK DROIT DANS JTREE***************
    MouseListener ml = new MouseAdapter() {
    public void mousePressed(MouseEvent e) {
    int selRow = arbre.getRowForLocation(e.getX(), e.getY());
    TreePath selPath = arbre.getPathForRow(selRow);
    if(selRow != -1) {
         if(e.getButton() == 1) {
         txtPath.setText(selPath.toString());
         //**-> CREER LE VECTEUR POUR JTable**<-
         String sPere = txtPath.getText();
         int iResComp = sPere.compareTo("[MEDIACAST, ANIMATEURS]" + arbre.getLastSelectedPathComponent().toString() + "]");
         //****ANIMATEURS***************
         switch(iResComp){
         case -49:
              String sReq = "SELECT animateur.matricule, animateur.prenom, calendrier.daty, compte.id_compte";
              sReq = sReq + " " + "FROM animateur, liaison";
              sReq = sReq + " " + "WHERE animateur.numero_anim = ? AND liaison.numero_anim = ? AND calendrier.daty = liaison.daty";
              String[] sParamIn = {
              arbre.getLastSelectedPathComponent().toString(), arbre.getLastSelectedPathComponent().toString()
              String[] sTypeParamIn = {
              "entier", "entier"
              String[] sParamOut = {
              "matricule", "prenom", "daty", "id_compte"
              GenererEnregistrement enreg = new GenererEnregistrement();
              objEnreg = enreg.retournerToutEnreg(sReq, sParamIn, sTypeParamIn, sParamOut);
              iNbEnreg = enreg.donnerNbEnreg(sReq, sParamIn, sTypeParamIn, sParamOut);
              Object[] teteTable = {
              "Matricule","Prenom","Date", "Numero Compte"
                                            data = clickTreeNode(teteTable.length, iNbEnreg, sParamOut.length, objEnreg);
              tableau = new JTable(data);
                                            //*********** JTABLE **************
              JScrollPane paneTab = new JScrollPane(tableau);
              contrainte.gridx = x[9];
              contrainte.gridy = y[9];
              contrainte.gridwidth = larg[9];
              contrainte.gridheight = haut[9];
              contrainte.weightx = px[9];
              contrainte.weighty = py[9];
              gridBg.setConstraints(paneTab, contrainte);
              conteneur.add(paneTab);
              break;
              else if(e.getButton() == 3) {
                   arbre.setSelectionPath(selPath);//Donne le focus au noeud click�
                   txtPath.setText(selPath.toString());
              //***********POUR LES NOEUDS PERES*******************************
              if(arbre.getLastSelectedPathComponent().toString() == "ANIMATEURS"){
                   System.out.println(selPath.getParentPath().toString());
              //***********POUR LES NOEUDS FILS********************************
              String sPere = txtPath.getText();
              int iResComp = sPere.compareTo("[MEDIACAST, ANIMATEURS]" + arbre.getLastSelectedPathComponent().toString() + "]");
              switch(iResComp){
                   case -49:
                        System.out.println("NOEUDS DANS ANIMATEURS:" + iResComp + " " + arbre.getLastSelectedPathComponent().toString());
                        break;
                   case 2:
                        if(arbre.getLastSelectedPathComponent().toString() != "COMPTES")
                             System.out.println("NOEUDS DANS COMPTES:" iResComp " " + arbre.getLastSelectedPathComponent().toString());
                             break;
                   case 3:
                        if(arbre.getLastSelectedPathComponent().toString() != "DATES")
                             System.out.println("NOEUDS DANS DATES:" + iResComp + " " + arbre.getLastSelectedPathComponent().toString());
                             break;
              arbre.addMouseListener(ml);
              paneTree.setViewportView(arbre);
              contrainte.gridx = x[8];
              contrainte.gridy = y[8];
              contrainte.gridwidth = larg[8];
              contrainte.gridheight = haut[8];
              contrainte.weightx = px[8];
              contrainte.weighty = py[8];
              gridBg.setConstraints(paneTree, contrainte);
              conteneur.add(paneTree);
              //Afficher la fen�tre
              ImageIcon ico = new ImageIcon("c:\\works\\mediacast\\gpao\\hlpglobe.gif");
              this.setIconImage(ico.getImage());
              //this.pack();
              this.setVisible(true);
    I want to generate automatically a table after a click on a tree node but I don't know when to procede

    Please do the following.<br><br>
    #In the location bar, type '''about:config''' and hit Enter.<br><br>
    #In the filter at the top, type: '''keyword.URL'''<br><br>
    #Double click it and remove whatever's in there and replace it with http://www.google.com/search?q= and then click OK.<br><br>
    #Close the tab
    The URL to add in "keyword.URL" becomes a link in this post, so right click it and choose "Copy Link Location" to copy it to the Windows clipboard. Then hit CTRL+V to paste it. Saves you having to type the whole thing.
    '''To reset your home page, do the following'''.<br><br>
    * Go to the site you want to set as your homepage.<br><br>
    * Click the Firefox button, go to '''Options '''| '''Options '''| '''General'''.<br><br>
    * Make sure it says "''Show My Homepage''" in the first dropdown menu.<br><br>
    * Click the button called "'''Use Current Pages'''" to set the homepage to the one you have on the screen.<br>
    N.B. Some of your plugins are out of date which exposes your system to attack. Please visit the [http://www.mozilla.com/en-US/plugincheck/ Plugins Check] page and update where necessary.
    Also, click '''Help '''| '''Check For Updates''' to update Firefox to 3.6.19

  • How can you enable back the Android native Menu button in AIR 2.7?

    I've noticed in AIR 2.7 for Android, that now the bottom icons in Android 3.0 Honeycomb are hidden (replaced by small dots) in AIR 2.7, whereas in AIR 2.6 they were always visible. That's cool. Since the bottom bar can never be hidden in Android 3, at least now those icons are less visible (unless you intentionally touch the bottom bar, then the icons show up for a few seconds).
    BUT I also noticed in AIR 2.7 compiled apps, the native "Menu" icon is not visible anymore, even after touching the bottom bar. In AIR 2.6 you could see and press that button (which can be captured from AIR so you can show a custom settings menu or whatever).
    So, quoting the subject --> How can you enable back the Android native Menu button in AIR 2.7?

    There is a work around and a reason for the menu issue.  Honeycomb doesn't natively support a menu softkey, it is only to support old apps comiled in phone API levels.  If you compile a Honeycomb app in 2.7 or 3.0, it is expected you manage the settings within the larger tablet UI framework.  See below link for more info and work around. 
    http://forums.adobe.com/message/3964792#3964792

  • Freight cost in a purchase order when generating automatic freight cost

    Hi Experts,
    when i generate automaticly a Purchase Order whith a freight cost, in the PO it keeps the first freight in the Item Overview.
    When it generate more freight cost in the same PO, the first Freight Cost stay in the Item Overview, and the freight cost is increasing in the Item : PO History. right.
    Is it possible to remove the first entry from the Item Overview or put the total of the freight cost who are incresing in the PO??
    Thanks in advance.
    Dom.

    Hi dev,
    We did something similar last week. To charge the freight cost to the receiving party we did a manual service entry sheet for that. 
    We created a separate Po with Transport vendor and the receiving plant and account type is Z shipment costing and service item description as intercompany freight.
    You will specify the limit of the amount here, and   specify the G/L account here. Now create the service entry sheet withthe freight amount and settle.
    I think you can follow the similar thing with additional lines for your requirement for other charges.
    Since we want let the receiving plant pay the freight we didn't create the shipment cost document of LE-TRA.
    Let see if any other suggestions comes.
    Regards,
    ratna

  • Reporting Services Cube Parameters not generated automatically

    Hi, I have a few reports which display data from an Analysis Services cube.
    For example my report uses Dateset1 as the source of the report.
    When I modify Dataset1 by adding a new parameters in the Query Designer, a new (hidden) dataset is created called:  CustomerAgeCustomerAge.
    But a new parameter on the report is not automatically generated. In the Dataset1 - Dataset Properties \ Parameters there is an entry for the parameter which should be created e.g. [@CustomerAgeCustomerAge]. I can work around this but I'd like to find the
    cause. Is there a max number of parameters which are generated automatically - my report has 12.

    Hi darkdusky,
    Based on my understanding, when you add a new parameter in dataset query, the parameter doesn’t generate automatically in report parameters.
    In Reporting Service, when we define a dataset query that contains a query variable, the query command is parsed. For each query variable, a corresponding dataset parameter and report parameter are created automatically. As we tested in our environment,
    even we create thirteen parameters in data set query, corresponding parameters automatically appear both in report parameters and dataset parameters in dataset properties.
    So in your scenario, I would like to know how about your query with those parameters. If possible, please provide some screenshots of results before and after you add a new parameter in dataset query.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • Snapshots not getting generated automatically

    Hi all,
    I want to generate an ADDM report. For that, I am running the addmrpt.sql script in $ORACLE_HOME/rdbms/admin
    While running, i am being asked for the begin_snap ID and end_snap ID. The problem is I have only one snap_id. The snapshots are not getting generated automatically for every 1 hr, as they shd be. I have to manually create a snapshot and run the ADDM script. I know that the database has to be open for atleast next 1 hr for getting the snapshot. I have not closed my database for the whole day.
    Now, I want to know what exactly I shd be looking at, or rather be doing to get my snapshots generate automatically.
    Please help me in this regard.
    Thanx in advance....
    Regards,
    ORA_SRI

    Hmm, you probably want to ask questions about ADDM in the [Database General Forum|http://forums.oracle.com/forums/forum.jspa?forumID=61]

  • I uploaded to Maverick and now my mail always cc's me on every email I send out. I have checked Preferences and the Composing Automatically CC button is unclicked. How can I stop this?

    I uploaded to Maverick and now my mail always cc's me on every email I send out. I have checked Preferences and the Composing Automatically CC button is unclicked. How can I stop this?

    Sounds like your phone has the jitters.
    This is sometimes caused when a DLL fle is missing when you restore, so the ipsw pacakge wasn't installed corectly.
    You could back up and restore, but if it doesn't help go to http://www.felixbruns.de/iPod/firmware/ and then download the same firmware your on.
    Open up iTunes and hold Shift+Restore and select that firmware, you can't use anoy ther firmwares though.
    Hope this helped

  • ADF UIX cancel/rollback button?

    Hi
    We're having a fair amount of trouble implementing a "cancel" button in our ADF UIX application (JDev 10.1.2). Apologies to those who read this same post on the ODTUG mailing list..... I'm hunting for even a hint of an answer before I approach Oracle Support.
    To set the scene, we have a parent VO "Departments" with child VOs "Dispatch" and "Agency". Dispatch also has a FK to Agency.
    We have a UIX view-screen that displays in a master-detail relationship Departments and Dispatch. From this screen the user can select the edit button, which navigates to an input-form screen to edit the currently selected Dispatch record.
    The Dispatch record has effective_from and effective_to dates. The underlying EO has a MethodValidator that ensures the from date <= the to date.
    On the edit screen we currently provide 2 buttons, Ok and Cancel. The Ok submitButton is bound to the commit binding, and navigates back to the view page via a struts link on completion.
    If the user selects the ok button and MethodValidator returns an error, the edit page's MessageBox displays the error and the user remains at the edit page until they resolve the issue.
    Our problems start with the cancel button.
    Originally we implemented the Cancel button as a simply "button" that navigated back to the view page. This worked well as the changes are never submitted, and on returning to the view page the record is presented in it's original state before being edited, thus the user's changes have been "cancelled".
    However if the user was editing an existing record, entered invalid dates that violated the MethodValidator, clicked ok and saw the MethodValidator error, then clicked cancel, on returning to the view page, any changes to the underlying record are visible including the invalid dates. I believe this occurs because the record has been submitted to the mid-tier by the ok button, and as such the changes now lies in the mid-tier.
    Given that a cancel "button" which simply navigates back to the view page is not a viable solution, we decided to investigate using a rollback button on our edit page, which then navigated back to the view page.
    There is a nasty side affect in using the rollback functionality, and has been a continuous frustration mentioned on OTN. When rollback is issued, it appears all iterators in the running application have their current row reset to the first element.
    This is a pain as in our example this results in not only the Dispatch iterator being reset to the first element, but also the parent Departments iterator, and presumably all other iterators in the application too. This would be an extreme annoyance to the user in every time they selected cancel, they would then need to navigate back to the correct Departments and Dispatch record if they wanted to make a different change.
    As such it is necessary to write some code to store the iterator positions before issuing the rollback, rolling-back, then restoring the iterator positions from the saved states.
    Luckily we found some code on OTN to do this:
    ADF - cancel button not working in input form(add new row)?
    This mechanism appeared to work, but, then, we did find one problem.
    I described at the beginning that our Dispatch VO is not only related to Departments but also Agency. To cater for this in our edit screen by including a LOV bound <messageList>, which displayed the relating Agencies for the user to select from.
    In using the pinched OTN rollback code, in the same scenario as previously, when the user edits a record, invalidates the MethodValidator after clicking ok, then clicks cancel, on returning to the view page, the field in Dispatch that represents the Agency is incorrectly showing a numeric result such as 0, 1, 2 etc. We realised that the value being shown is the previous edit screen's <messageList> internal index number representing the value selected in the list, and not the actual value itself.
    We're note sure why the OTN rollback code is causing this to occur. Though it restores the Agency iterator's position, it shouldn't result in the <messageList> index being written to the underlying Dispatch agency field, but rather the value the <messageList> index represents.
    It appears to me we're caught between a "rock and a hard-place" here. The simple solution of using a cancel "button" doesn't work when errors are raised. The complex case of using a "rollback" button doesn't work due to the problem with the <messageLists>.
    My research on OTN shows the "cancel vs rollback" button is a common frustration. Can somebody help me in providing a satisfactory "cancel" button that I can use throughout my app please?
    Many thanks in advance.
    Chris Muir

    The stack:
    Class                     Method
    UsrEcvAmpdsViewRowImpl    setAgency
    UsrEcvAmpdsViewRowImpl    setAttrInvokeAccessor
    ViewRowImpl               setAttribute
    DCDataControl             setAttributeInRow
    DCJboDataControl          setAttributeInRow
    JUCtrlValueBinding        setAttributeInRow
    JUCtrlValueBinding        setInputValue
    JUCtrlValueBinding        setInputValue
    InitModelListener         _setInputValue
    InitModelListener         _doModelUpdate
    InitModelListener         eventStarted
    AbstractPageBroker        _fireUIXRequestEvent
    AbstractPageBroker        handleRequest
    BaseUIPageBroker          handleRequest
    PageBrokerHandler         handleRequest
    UIXServlet                doGet
    HttpServlet               service
    HttpServlet               service
    ResourceFilterChain       doFilter
    JAZNFilter                doFilter
    ServletRequestDispatcher  invoke
    ServletRequestDispatcher  forwardInternal
    ServletRequestDispatcher  forward
    RequestProcessor          doForward
    RequestProcessor          processForwardConfig
    RequestProcessor          process
    ActionServlet             process
    ActionServlet             doGet
    HttpServlet               service
    HttpServlet               service
    ResourceFilterChain       doFilter
    JAZNFilter                doFilter
    ServletRequestDispatcher  invoke
    ServletRequestDispatcher  forwardInternal
    ServletRequestDispatcher  forward
    RequestProcessor          doForward
    RequestProcessor          processForwardConfig
    RequestProcessor          process
    ActionServlet             process
    ActionServlet             doGet
    HttpServlet               service
    HttpServlet               service
    ResourceFilterChain       doFilter
    JAZNFilter                doFilter
    EvermindFilterChain       doFilter
    ADFBindingFilter          doFilter
    ServletRequestDispatcher  invoke
    ServletRequestDispatcher  forwardInternal
    HttpRequestHandler        processRequest
    HttpRequestHandler        run
    HttpRequestHandler        run
    ReleasableResourcePooledExecutor$MyWorker run
    Thread  runAt a wild guess, InitModelListener is causing the issue, because it's the first place where we can see a setInputValue occuring?
    To make this official I've raised a TAR (4613003.992) with Oracle Support with a cut down version of our app to work through the issue.

  • I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.h

    I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.how to do that in xml file ?

    Thanks john for you are reply.
    I had tried what you sad.I open shared service in that foundation project i had export shared service.after that in import-export file.In that role.csv,user.csv,group.csv.Like this file have.When i open user file added some users after i trying save in excel it shown messgse
    I click yes and save the .csv file and import from share servie. i got error like this
    am i doing right way john.or explain clearly

  • No Output message to PO generated automatic from GR posted

    Hi MM Experts
    I have a problem on output message for PO generated automatic from GR posted. I already maintain output condition of the PO. It works fine when I create or change a PO manually.
    Back to my problem, I must go to tcode ME22 or ME22n first of the PO generated auto to get the output message. Please share your experiences on how to get the output message for PO generated auto from GR posted.
    Regards
    Hengki

    If you have deleted the config settings in the Fine Tune control of the message types than system should not trigger the change output but for existing PO it might so create the new PO and than try to change becuase may the PO is already exist and you have deleted the config that's the reason it still generating change output
    also try to remove the config for PO change relavant field in OMFS
    remove check mark of first column for EKKO and EKPO and try

  • Parent Table - Child Form(bounded task region)- Commit-Rollback Button's

    Hello,
    Here's my simple scenario:
    Jdev 11.1.1.2
    One Am(datacontrol).
    One vertical panel splitter
    On top A panel collection with a read-only table(employees VO), The table lists just a few of the attributes, so it's really just for browsing, and a toolbar with createinsert, commit and rollback button's.
    At bottom: A PanelTab with a bounded task flow - region. The child region(bounded task flow) contains an editable ADF form(same VO) will all attributes available for editing. The form(child region) also contains a 'submit' button (to post changes).
    When run the page commit and rollback button are disable. (ok)
    Navigation and sincronize between table and task flow works fine because i set partialtrigger. (ok)
    When i change some attribute in the form and then press summit button, I want the commit and rollback button's became active..
    . . any help would be much appreciated.
    Edited by: user7056373 on 08-ene-2010 3:23

    Hi Bart,
    if your bounded task flow is placed in .jspx using region it is possible to reach binding container of that task flow.
    You can use handies by Edwin Biemond:
    # // main jsf page  
    # DCBindingContainer dc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();  
    # // taskflow binding  
    # DCTaskFlowBinding tf = (DCTaskFlowBinding)dc.findExecutableBinding("dynamicRegion1"); 
    # // pagedef of a page fragment  
    # JUFormBinding form = (JUFormBinding) tf.findExecutableBinding("regions_employee_regionPageDef"); 
    # // handle to  binding container of the region. 
    # DCBindingContainer dcRegion   = form;  but ExecuteWithParam works for me in bounded task flow - I think you have mistake in your NDValue="#{pageFlowScope.pclNummer}". you should use $ instead #
    regards,
    Branislav

Maybe you are looking for

  • Network printing Printer Pauses /usr/libexec/cups/backend/lpd failed

    Morning, I wonder if anyone has encountered the following problem? NETWORK SET UP We have a network of 8 macs & a Fuji Xerox c2255 printer all connected to a gigabit switch. The Fuji Xerox has an fixed ip address 192.168.1.122 All devices have fixed

  • G5 won't recognize install disc after formatting

    Hi all, I recently found a G5 tower at my work that wasn't being used. It had a Debian on it so I formatted it with my OS 10.4 disc in order to install tiger but now it won't recognize any kind of startup disc. When I turn on the comp and hold option

  • POST HTTP/1.1 via GPRS

    Hi, I'm developing an MIDP 2.0 app to use on a Palm device, which use GPRS to connect to a server. I've got a problem using POST requests. By using HTTP1.1, packets are chunked. The problem is that at the server, by tracing incoming packets, I realiz

  • Is the new iPhoto '08 Library syncing in entirety every time?

    The new storage for iPhoto Library in iPhoto '08 is a package. It SEEMS like PHD is sensing any minute change inside (which update the package's modified date) and then copying/syncing the ENTIRE library. For some users, this can be 15GB of pain. Can

  • How do i determine system version on time machine backups

    I want to restore Leopard to 10.5.5 as I am having a lot of problems with Mail with 10.5.6. I did the Mail update but that didn't work and I had to reimport all my mailboxes and now I have a mess. I don't remember the date I upgraded to 10.5.6 so I w