Refresh a specific cell in an af:table

Hi,
When some changes are made to a cell in a table, I would like to refresh some other cells (on other rows).
I currently only succeed in:
- refreshing the complete table (using a partial trigger). This is not a good option, because it takes too long and the input field focus is lost.
- refreshing other cells on the currently selected row. This is not a good option because some cells I would like to refresh are on other rows.
How can I do this?
Version is 11.1.1.4.0, but I'm willing to update to 11.2 if this is needed...

If you use an af:table this will not be easy as the components are stamped (meaning one component is used for one attribute of all rows). So to change the underlying data is the best option (as you may need to change fields not visible currently).
Javascript may be an option...
Timo

Similar Messages

  • How do I name a specific cell in Numbers 3.2.2?

    I am working with a multi-table spreadsheet and I want to create a table of variables that are used in a specific formula throughout the spreadsheet. For example, here is the formula I'm working on:
    =IF(C32≥321,"23",IF(C32≥281,"19",IF(C32≥241,"17",IF(C32≥201,"15",IF(C32≥161,"13" ,IF(C32≥121,"11",IF(C32≥80,"09","")))))))
    Yes, all you database builders out there, it's a wacky way to spreadsheetize an IF, THEN, OR  statement - fortunately, I'm only working with numbers. What I want to do is replace the cell values and the "then" result numbers with references from another table. I can't just link to the specific cell by clicking (resulting in something like "<table>::<cell>") because the formula builder spits it out claiming there are too many arguments. Here is an example of what I'm getting at if you replace the first number in each statement with a cell name like "R_1" and the calculated displayed value as "V_1":
    =IF(C32≥R_1,"V_1",IF(C32≥R_2,"V_2",IF(C32≥R_3,"V_#",IF(C32≥R_4,"V_4",IF(C32≥R_5, "V_5",IF(C32≥R_6,"V_6",IF(C32≥R_7,"V_7","")))))))
    Right now, I have to manually make changes to the formula in one cell then copy it across the other cells in the different tables. I'd much rather have the formula reference specific cells in a variable table so that I can update the values globally. In the "help" for Numbers, it states:
    "If the reference is to a cell in another table, the reference must contain the name of the table (unless the cell name is unique within all tables). For example:
    =Table 2::B2
    Note that the table name and cell reference are separated by a double colon (::). The name of the table is automatically included when you select a cell in another table while building a formula.
    If the reference is to a cell in a table in another sheet, the sheet name must also be included (unless the cell name is unique within all the sheets)." (emphasis mine)
    However, I can't find any documentation to instruct me on how to create a unique cell name. Any advice?

    Hi coop,
    coop1108 wrote:
    IF, THEN, OR 
    I think of the IF function as IF(this is true, THEN do this, ELSE do that)
    From the Function Browser: type = in any cell, then type 'if' (no quotes) in the search box.
    The IF function returns one of two values, depending on whether a specified expression evaluates to a boolean value of TRUE or FALSE.
    IF(if-expression, if-true, if-false)
    if-expression: A logical expression. if-expression can contain anything as long as the expression can be evaluated as a boolean value. If the expression evaluates to a number, 0 is considered to be FALSE, and any other number is considered to be TRUE.
    if-true: The value returned if if-expression is TRUE. if-true can containany value. If if-true is omitted (there’s a comma, but no value) and if-expressionevaluates to TRUE, IF will return 0.
    if-false: An optional argument specifying the value returned if if-expression is FALSE. if-false can contain any value. If if-false is omitted (there’s a comma, but no value) and if-expressionevaluates to FALSE, IF will return 0. If if-false is entirely omitted (there’s no comma after if-true) and if-expressionevaluates to FALSE, IF will return FALSE.
    Or more to the point,
    IF it is sunny, THEN have a picnic, ELSE stay in bed.
    Call back with further questions. Maybe a LOOKUP function will work for you.
    Regards,
    Ian.

  • How can I link specific cells in two different speadsheets so the data from a specific cell in spreadsheet A automatically updates in a specific cell in spreadsheet B. It works in Xcel- Any ideas?

    How can I link specific cells in two different tables so the data from a specific cell in table A automatically updates in a specific cell in table B? It works in Xcel- Any ideas?

    (1) your title ask the way to link different spreadsheets.
    In Numberland, a spreadsheet is an entire document.
    There is no way to link different documents.
    (2) in the message, you ask the way to link different tables.
    This feature is available and is described in iWork Formulas and Functions User Guide (which is available for free from the Help menu).
    Getting the info just requires a simple search in this available resource !
    Yvan KOENIG (VALLAURIS, France) 14 mai 2011 10:37:50

  • Refreshing specific cell in dataTable?

    Hi
    How do I get a dataTable to re-render a specific cell? As an example, consider Bean listed below. Initially, the dataTable displays the values as iterated over Bean.lines. Later in response to a user action (see Bean.updateLine), I'd like the appropriate cell in the dataTable to be refreshed (without of course having to press a 'Refresh' button).
    How do I achieve this with dataTable?
    public class Bean {
      private List<Line> lines = new ArrayList<Line>();
      public List<Line> getLines() {
        return lines;
      // called (in response to a user action for example) to refresh a specific line value
      public void updateLine() {
        lines.get(0).setVal("some new value");
      public class Line {
        private final String id;
        private String val;
        private Line(String id) {
          this.id = id;
        public String getId() {
          return id;
        // calling this must trigger the dataTable to refresh the appropriate cell (ideally)
        // or else the entire dataTable in the browser
        public void setVal(String val) {
          this.val = val;
        public void getVal() {
          return val;
      } // Line
            <h:dataTable value="#{bean.lines}" var="line">
              <h:column>
                <h:outputText value="#{line.id}"/>
              </h:column>
              <h:column>
                <h:outputText value="#{line.val}"/>
              </h:column>
            </h:dataTable>Help much appreciated
    Lance

    Thanks, AJAX is doing the trick nicely.
    For the benefit of a future question, I'm using onclick="doSomething()" on a component within the table (a selectBooleanCheckbox in my case).
    Main JavaScript / AJAX:
          <script type="text/javascript">
            function doSomething(elementId) {
              var rowNum = elementId.split(":")[2]; // position in table
              var someId = document.getElementById("form_id:table_id:" +
                                                  rowNum + ":textbox_id").innerHTML;
              var url = "handler?cmd=MY_SERVLET_CMD" + // handler points to HandlerServlet
                                "&some_id=" + encodeURIComponent(someId) +
                                "&row_num=" + encodeURIComponent(rowNum);
              if (typeof XMLHttpRequest != "undefined") {
                req = new XMLHttpRequest(); // AJAX
              } else if (window.ActiveXObject) {
                req = new ActiveXObject("Microsoft.XMLHTTP");
              } else {
                alert("Browser not supported!");
              req.open("GET", url, true); // true = asynchronous AJAX call
              req.onreadystatechange = doSomethingCallback; // only if asynchronous
              req.send(null);
          </script>Callback function (invoked on return from the servlet - see reference in doSomething above):
          <script type="text/javascript">
            function doSomethingCallback() {
              if (req.readyState == 4) { // checks are needed else we react before response is complete
                if (req.status == 200) { // see comment above
                  var prefix = "form_id:table_id:";
                  var suffix = ":checkbox_id"; // we want to update all check boxes - see below
                  var msg = req.responseXML.getElementsByTagName("message")[0];
                  var lineCount = msg.getElementsByTagName("line_count")[0].childNodes[0].nodeValue;
                  var rowNum = msg.getElementsByTagName("row_num")[0].childNodes[0].nodeValue;
                  var checkAll =
                    document.getElementById(prefix + rowNum + ":check_all_id"); // another check box that determines state of check boxes below
                  var lineCheckId = ""; // line checkbox element
                  for (var i = rowNum, n = parseInt(rowNum) +
                                                  parseInt(lineCount); i < n; i++) {
                    lineCheckId = prefix + i + suffix;
                    document.getElementById(lineCheckId).checked = checkAll.checked; // update the DOM
                } // status
              } // readyState
          </script>

  • Programmatically refresh components inside a specific row of an af:table

    How to programmatically refresh components inside a specific row of an af:table without refreshing the whole table ?_
    I have an af:table displaying a read-only view object. There is an edit button inside the table calling an af:popup, where the user can update some informations and click a submit button to validate his changes.
    The action property of this button is a method in a backing been where
    -     1 : A stored procedure is called to update several tables (related to my read-only VO).
    -     2 : The VO is re-queried (VO. refreshQueryKeepingCurrentRow() )
    -     3 : The whole table is refreshed (AdfFacesContext.getCurrentInstance().addPartialTarget(myTable) )
    Is it possible to programmatically refresh some components of the current row of the table without refreshing the whole table (point 3)?
    I’ve tried to play with the “partialTrigger” property of af:outputText (table:column:outputText), without success.
    Thanks
    Nicolas

    "+do you happen to want to refresh following an action on the row? Like a link/button click?+" : NO
    There is a table on my page. The user select a row and click on an edit button. This edit button call a popup where the user can modify some information (not directly on the viewObject. All fields in the popup are dummy fields bind to attributes in my backing bean) and then he click on a submit button.
    The submit button action execute a method "submitInformation" in a backing been.
    public String submitInformation(){
            Map<String, Object> params = new HashMap<String, Object>();
            params.put("pManNo", xManNo.getValue()); //xManNo is an attribute of the backing bean
            params.put("pDate", xPeriod.getValue()); //xPeriod is an attribute of the backing bean
            // Execute Operation
            OperationBinding oper = ADFUtils.findOperation("serviceSubmitInfo");
            oper.getParamsMap().putAll(params);
            String results = (String)oper.execute();
            // Close Popup & Refresh Row if OK
            if(!StringUtils.isStringEmpty(results) && results.equals("TRUE")){
                 closePopup("pt1:popAbs");
                 refreshMyCol();
    }The serviceSubmitInfo method is defined in my serviceImpl
        public String serviceSubmitInfo (String pManNo, String pPeriod, ......){
             String results =
                callStoredFunction("? :=myDatabaseFunction(?, ?, ?, ?)",
                                   new Object[] { pManNo, pPeriod, ...... });
              // Commit
              getDBTransaction().commit();
              // Refresh VO (re-query & set currentRow)
              getMyVO().refreshQueryKeepingCurrentRow();         
              return results; // TRUE if ok
        }I want the " refreshMyCol()" method to refresh only the current row and not the whole table...
    Regards
    Nicolas

  • How to set table cell renderer in a specific cell?

    how to set table cell renderer in a specific cell?
    i want set a cell to be a button in renderer!
    how to do?
    any link or document can read>?
    thx!

    Take a look at :
    http://www2.gol.com/users/tame/swing/examples/SwingExamples.html
    It is very interesting, and I think your answer is here.
    Denis

  • How to select a specific cell in a JTable?

    Hi there,
    in a JTable, I would like to select a specific cell (to highlight it) from a JButton.
    Here a sample code...
    Who could help me to fill it?
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TableSelection{
        public static void main (String args[]) {
          JFrame frame = new MyFrame();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.show();
    class MyFrame extends JFrame{
      public MyFrame(){
        setTitle("TableSelection");
        setSize(WIDTH,HEIGHT);
        DefaultTableModel myModel = new DefaultTableModel(2,2);
        JTable myTable = new JTable(myModel);
        myTable.setCellSelectionEnabled(true);
        JButton button00 = new JButton("select 0,0");
        button00.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent event){
         System.out.println("selection of cell (0,0)");
         //--- what code is required to select the cell(0,0)?
        JButton button11 = new JButton("select 1,1");
        button11.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent event){
         System.out.println("selection of cell (1,1)");
         //--- what code is required to select the cell(1,1)?
        Box myBox = new Box(BoxLayout.Y_AXIS);
        myBox.add(new JScrollPane(myTable));
        myBox.add(button00);
        myBox.add(button11);
        getContentPane().add(myBox, BorderLayout.CENTER);
      private static final int WIDTH=200;
      private static final int HEIGHT=200;
    }Thanks a lot for your help.
    Denis

    Use the addColumnSelectionInterval(int index1, int index2)method ~ http://java.sun.com/j2se/1.4/docs/api/javax/swing/JTable.html#addColumnSelectionInterval(int,%20int)
    and the addRowSelectionInterval(int index1, int index2) method ~ http://java.sun.com/j2se/1.4/docs/api/javax/swing/JTable.html#addRowSelectionInterval(int,%20int)
    Hope that helped.
    afotoglidis

  • How to print a specific cell in numbers

    how to print a specific cell in numbers?

    Copy the cell (contents), Paste onto a page of a separate document, or onto a separate sheet of your Numbers document, Print.
    Or insert a single cell table onto your Numbers document, type an = sign in the cell then click on the cell you want to print. Drag the new table to a second sheet, set up your page there, and print.
    See the Numbers '09 User Guide for other useful tools and techniques. Download the guide via the Help menu in Nuimbers.
    Regards,
    Barry

  • Get cell value from Woodstock table

    Hello,
    I am using a Woodstock Basic Table from the NB palette.
    One of the columns is editable and I need to get the updated values upon a button click event.
    How do I get the value of a specific cell from the table?
    Thanks

    Hi Rajashekar ,
    here is the code :
    // Get a handle to the table footer bean
    OATableBean tableBean = ...;
    OATableFooterBean tableFooterBean = tableBean.getFooter();
    if (tableFooterBean != null)
    // Get a handle to the total row bean
    OATotalRowBean totalRowBean = tableFooterBean.getTotal();
    --Keerthi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Modify the attributes of a single cell in a Mobile Table

    I am very new to JAVA and especially to NetBeans Mobility, and I am having trouble changing the attributes of one cell in a Table.
    Can someone tell me how to change 1) the font to bold for one cell, or 2) the font color for one cell, or 3) the background color for one cell, or 4) the border color or thickness for one cell or 5) all of the above? I am trying to set apart a specific cell for the user to identify.
    I have seen examples where the content of a cell has been changed, but not the attributes. Any help on this would be greatly appreciated.
    Updated on May 12, 2009:
    Can anyone help me with this? Even if it's to tell me that it's not possible. Or even if its to tell me someone else to enter this type of request. I have submitted a request for a new feature on the NetBeans site, but I'm not sure if that is even where that should go.
    Any assistance would be greatly appreciated.
    Edited by: meltimsav on May 12, 2009 6:29 PM

    Okay, so I assume that this is not possible at this time. I have entered a request for a change in the NetBeans Issue Tracking System. I have moved on and used the Canvas to do what I wanted to do.
    Thank you to all how at least pondered this issue.

  • Refreshing only the single row of  ADF Table

    Hi All,
    I have a webcenter application where the ADF Applications has been deployed.Now the Data is coming onto the ADF Tables from a webservice.In that particular table i need to refresh only the single row(whichever selected by the user to edit ) or even a particular field with the updated values as well as need to validate and to create a message box saying about the errors if the validation goes wrong.
    Please suggest!!

    Hi,
    if "updated value" mean that the value got changed on the middle tier (not the browser client) then the update requires the table to be partially refreshed. If the user edits a row and in this row has dependent fields, then this can be achieved by partially refreshing the column. Note that ADF Faces tables don't refresh just one cell
    Frank

  • HT3349 How do you select a sub-set of cells from the entire document so you can print only those specific cells?

    How do you select a sub-set of cells from the entire document so you can print only those specific cells?

    There is no analog to MS Excels print range.  So the next best thing is to plan your data so that you don't need to use print range.  The next best thing after that is to select the range of cells you want to print, then copy, the switch to the application Preview, and create a new document from the clipboard (select the menu item "File > New from Clibboard") then select all, copy then paste to the destination (maybe an email) .
    You can also paste that portion of the table into another table (or a new table) by pasting values only

  • Set color of specific cells in JTable.

    I have a JTable where I want to set the color for specific cells. Is this possible to do, and if so, how?

    Well, one way is to create a custom renderer that know the background color of each cell in the table. The Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#renderer]How to Use Table has an example you might be able to build on.
    Or, this posting may give you another approach. The key to both solutions is to somehow specify the color for every cell:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=610474

  • Import a CSV file into specific cells

    Hello,
    I have created a simple Numbers template and I want to import a csv file with its values entering specific cells in an automated way.
    I think the best way to automate this process would be an AppleScript that does the following:
    Selects the csv file;
    Parses the values inserting them into the the Numbers template i.e. value1 to cell B2, value2 to cell B3 etc.
    Unfortunately I know very little about AppleScript, does anyone have any experience in this area that they could pass on?
    My idea would be to place the csv values in an array, and loop through the array entering the values in B2, B3 etc.
    Many thanks in advance!
    Dougie

    Here is a script doing the full job in a single call.
    --{code}
    --[SCRIPT csv-to-selected-cell]
    Enregistrer le script en tant que Script : csv-to-selected-cell.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothèque:Scripts:Applications :Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner la première cellule du bloc où vous souhaitez insérer les valeurs extraites d'un fichier CSV.
    Aller au menu Scripts , choisir Numbers puis choisir “csv-to-selected-cell”
    Le script demande de naviquer jusqu’au fichier CSV.
    Il en lit le contenu,
    remplace les séparateurs (";" ou ",") par des TABs
    copie les données dans le presse-papiers
    colle dans la table.
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script: csv-to-selected-cell.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select the first cell of the block where values extracted from a CSV file must be inserted.
    Go to the Scripts Menu, choose Numbers, then choose “csv-to-selected-cell”
    The script urge you to navigate to the CSV file.
    It read its contents,
    replace the delimiters (";" or ",") by TAB  chars
    copy the datas in the clipboard
    paste in the table.
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2012/01/18
    --=====
    on run
              local dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2, lesValeurs
              my activateGUIscripting()
    Extract parameters describing the target cell *)
              set {dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
    Choose the source CSV file *)
      choose file of type {"csv"}
    Get the file’s contents *)
              set lesValeurs to read result
    Grab the delimiter in use *)
              if lesValeurs contains ";" then
              else
              end if
    Replace the delimiter in use by TAB *)
              my remplace(lesValeurs, result, tab)
    Move the 'normalized' datas to the clipboard *)
      set the clipboard to result
    Reset the target cell in case something changed *)
              tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
                        set selection range to range (name of cell colNum1 of row rowNum1)
              end tell
    Paste matching style *)
              my raccourci("Numbers", "v", "cas")
    end run
    --=====
    set { dName, sName, tName,  rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    on get_SelParams()
              local d_Name, s_Name, t_Name, row_Num1, col_Num1, row_Num2, col_Num2
              tell application "Numbers" to tell document 1
                        set d_Name to its name
                        set s_Name to ""
                        repeat with i from 1 to the count of sheets
                                  tell sheet i to set maybe to the count of (tables whose selection range is not missing value)
                                  if maybe is not 0 then
                                            set s_Name to name of sheet i
                                            exit repeat
                                  end if -- maybe is not 0
                        end repeat
                        if s_Name is "" then
                                  if my parleAnglais() then
                                            error "No sheet has a selected table embedding at least one selected cell !"
                                  else
                                            error "Aucune feuille ne contient une table ayant au moins une cellule sélectionnée !"
                                  end if
                        end if
                        tell sheet s_Name to tell (first table where selection range is not missing value)
                                  tell selection range
                                            set {top_left, bottom_right} to {name of first cell, name of last cell}
                                  end tell
                                  set t_Name to its name
                                  tell cell top_left to set {row_Num1, col_Num1} to {address of its row, address of its column}
                                  if top_left is bottom_right then
                                            set {row_Num2, col_Num2} to {row_Num1, col_Num1}
                                  else
                                            tell cell bottom_right to set {row_Num2, col_Num2} to {address of its row, address of its column}
                                  end if
                        end tell -- sheet…
                        return {d_Name, s_Name, t_Name, row_Num1, col_Num1, row_Num2, col_Num2}
              end tell -- Numbers
    end get_SelParams
    --=====
    on parleAnglais()
              local z
              try
                        tell application "Numbers" to set z to localized string "Cancel"
              on error
                        set z to "Cancel"
              end try
              return (z is not "Annuler")
    end parleAnglais
    --=====
    on decoupe(t, d)
              local oTIDs, l
              set oTIDs to AppleScript's text item delimiters
              set AppleScript's text item delimiters to d
              set l to text items of t
              set AppleScript's text item delimiters to oTIDs
              return l
    end decoupe
    --=====
    replaces every occurences of d1 by d2 in the text t
    on remplace(t, d1, d2)
              local oTIDs, l
              set oTIDs to AppleScript's text item delimiters
              set AppleScript's text item delimiters to d1
              set l to text items of t
              set AppleScript's text item delimiters to d2
              set t to "" & l
              set AppleScript's text item delimiters to oTIDs
              return t
    end remplace
    --=====
    on activateGUIscripting()
      (* to be sure than GUI scripting will be active *)
              tell application "System Events"
                        if not (UI elements enabled) then set (UI elements enabled) to true
              end tell
    end activateGUIscripting
    --=====
    ==== Uses GUIscripting ====
    This handler may be used to 'type' text, invisible characters if the third parameter is an empty string.
    It may be used to 'type' keyboard raccourcis if the third parameter describe the required modifier keys.
    I changed its name « shortcut » to « raccourci » to get rid of a name conflict in Smile.
    on raccourci(a, t, d)
              local k
      activate application a
              tell application "System Events" to tell application process a
                        set frontmost to true
                        try
                                  t * 1
                                  if d is "" then
      key code t
                                  else if d is "c" then
      key code t using {command down}
                                  else if d is "a" then
      key code t using {option down}
                                  else if d is "k" then
      key code t using {control down}
                                  else if d is "s" then
      key code t using {shift down}
                                  else if d is in {"ac", "ca"} then
      key code t using {command down, option down}
                                  else if d is in {"as", "sa"} then
      key code t using {shift down, option down}
                                  else if d is in {"sc", "cs"} then
      key code t using {command down, shift down}
                                  else if d is in {"kc", "ck"} then
      key code t using {command down, control down}
                                  else if d is in {"ks", "sk"} then
      key code t using {shift down, control down}
                                  else if (d contains "c") and (d contains "s") and d contains "k" then
      key code t using {command down, shift down, control down}
                                  else if (d contains "c") and (d contains "s") and d contains "a" then
      key code t using {command down, shift down, option down}
                                  end if
                        on error
                                  repeat with k in t
                                            if d is "" then
      keystroke (k as text)
                                            else if d is "c" then
      keystroke (k as text) using {command down}
                                            else if d is "a" then
      keystroke k using {option down}
                                            else if d is "k" then
      keystroke (k as text) using {control down}
                                            else if d is "s" then
      keystroke k using {shift down}
                                            else if d is in {"ac", "ca"} then
      keystroke (k as text) using {command down, option down}
                                            else if d is in {"as", "sa"} then
      keystroke (k as text) using {shift down, option down}
                                            else if d is in {"sc", "cs"} then
      keystroke (k as text) using {command down, shift down}
                                            else if d is in {"kc", "ck"} then
      keystroke (k as text) using {command down, control down}
                                            else if d is in {"ks", "sk"} then
      keystroke (k as text) using {shift down, control down}
                                            else if (d contains "c") and (d contains "s") and d contains "k" then
      keystroke (k as text) using {command down, shift down, control down}
                                            else if (d contains "c") and (d contains "s") and d contains "a" then
      keystroke (k as text) using {command down, shift down, option down}
                                            end if
                                  end repeat
                        end try
              end tell
    end raccourci
    --=====
    --[/SCRIPT]
    --{code}
    Yvan KOENIG (VALLAURIS, France) mercredi 18 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

  • Import from Excel-Mapping Specific cells

    I've used the SQL Import/Export tool to import simple Excel data in the past. These were often simple column to table imports...easy mappings. I currently have an Excel spreadsheet kept by our Sales people that needs to be imported. The data in these sheets
    are not grouped into simple columns. For example, data values are either horizontal or I need to import specific data FROM cell A4 TO table column 'CCode' and cell A6 to 'CCode'.
    The trouble I'm facing is that the import wizard wants to simply map column for column from Excel. Even when I go into, "Edit Mappings" I'm not really finding a way to map specific cell data to the SQL column. Any help would be greatly appreciated...
    Excel Example:
    SQL Table:

    I'm seeing that now. I'll admit the format of the spreadsheet will be changing after I get these imported and moving forward.  I should have mentioned this is on an older SQL 2005 server, and am playing around with an Integration Services Project...
    Essentially I need to pluck the data in cells A1, C2, A4, C4-E4 and insert those values into an existing SQL table. I've defined my Excel Source. Seeing as the source sheet is a mess and I need to select certain cells (not all are in a neat range like C4-E4...I
    have some single cell values I ALSO need to import like A1 & C2) I chose "SQL Command" as my data access mode.
    The one thing I can't figure out is how to write a select statement that allows me to select certain cells and a small range of cells. I can select a single value by using: SELECT * FROM [sheet1$A1:A1] OR I can choose a range with the following: SELECT *
    FROM [sheet1$C4:E4]...how would I format a select statement that will allow me to pick not only the individual cells but ALSO the ranges I need?
    I have tried SELECT...UNION...SELECT but am limited to two select statements and places everything into a single F1 column when I need it in a row view to map with the SQL columns...so each cell I pull has a separate F value so I can properly map the data
    to the correct SQL column like the following:
    F1    F2   F3   F4    F5  F6   F7
    A1   C2   A4    A6   C4   D4   E4    

Maybe you are looking for