Datagrid - doubleclick row - change value in cell

Hi,
I have a datagrid populated via HTTPservice where one column
entitled Selected initially contains the value of 'yes' for all
rows.
I want the user to be able to double-click on the row to
toggle the value between Yes and No.
I can trap the doubleclick successfully, however I can't find
how to take the information from the doubleclick event to determine
the row and then update the correct cell.
Any assistance greatly appreciated - even a link to an
example of something similar would be great.
Thanks

Hi
private function clickHandler(e:ListEvent):void
if(e.columnIndex == 0)
(e.currentTarget as DataGrid).selectedItem.lesson =
e.itemRenderer.data.lesson=="yes"?"no":"yes";
(e.currentTarget as
DataGrid).dataProvider.itemUpdated(e.itemRenderer.data);
(do not forget to mark it as answered )

Similar Messages

  • After the download of the new version of numbers the cells with formulars are not updated automatically after changing values in cells in the formular. In the previous version this was done automatically. How to make it work again?

    Downloaded new version of Numbers last night. Formulars in excisting spreadsheets are not working anymore.
    Pls. Help.

    You need to give a lot more information if you are to grt help. What are the formulas and how are you using them?

  • WPF Data gird double value in cell round up automatically

    Hi All,
      I have one datagrid where one of the columns contains double values. I placed limitations on length and decimal part. Decimal part is always comes with 2 digits. Now during editing the cell that holds double value in DataGrid , if I enter value of
    99.99 then it is becoming 100. At this moment the cell is still under edit mode.
     If the columns hold decimal type values then this automatic round up is not happening. But due to some constraints , at this moment we can't change the columns type from  double to decimal. So I just want to disable the auto round up with double
    values in DataGrid. I searched in MSDN forums but did not find any , tried adding StringFormat for columns. But it did not help.
    I tested by keeping the double value outside of the DataGrid ( in editbox ) , I don't see any automatic round up. So I suspect there could be something with DataGrid that is resulting automatic round up.
    Is there any way to disable this automatic round op on double values in DataGrid? I welcome your comment.
    Thanks,
    Brahmaji.

    Well, 99.99 as you mentioned in your original post is not the same value as 9999999999999999. You cannot store the value 9999999999999999 in a double field.
    You could change the type to decimal to be able to store values with a higher precision:
    public class Movie
    public string Title { get; set; }
    public int Year { get; set; }
    public string Director { get; set; }
    public bool Hit { get; set; }
    public decimal Price { get; set; }
    new Movie()
    Title = "The Lawnmower Man",
    Year = 1992,
    Director = "Brett Leonard",
    Hit = true,
    Price = 22.23M
    If you want to prevent the value of the source property from getting set when an invalid double value is entered you could implement your own ValidationRule:
    namespace SampleGrid
    class MyValidationRule : System.Windows.Controls.ValidationRule
    public override System.Windows.Controls.ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo)
    string s = value.ToString();
    double d;
    if(double.TryParse(s, out d))
    return new System.Windows.Controls.ValidationResult(false, "invalid value");
    return System.Windows.Controls.ValidationResult.ValidResult;
    <DataGridTemplateColumn Header="Price">
    <DataGridTemplateColumn.CellTemplate>
    <DataTemplate>
    <TextBlock Text="{Binding Price, StringFormat=##.00}"/>
    </DataTemplate>
    </DataGridTemplateColumn.CellTemplate>
    <DataGridTemplateColumn.CellEditingTemplate>
    <DataTemplate xmlns:local="clr-namespace:SampleGrid">
    <TextBox>
    <TextBox.Text>
    <Binding Path="Price" StringFormat="##.00">
    <Binding.ValidationRules>
    <local:MyValidationRule ValidationStep="RawProposedValue"/>
    </Binding.ValidationRules>
    </Binding>
    </TextBox.Text>
    </TextBox>
    </DataTemplate>
    </DataGridTemplateColumn.CellEditingTemplate>
    </DataGridTemplateColumn>
    <!--<DataGridTextColumn Header="Price"
    Binding="{Binding Price, StringFormat=##.00}" />-->
    Then the value won't get rounded. Of course you can still not set the double source property to 9999999999999999 though.
    There is no property that you can set on the DataGrid to prevent the value from getting rounded.
    Hope that helps. 
    Please remember to helpful posts as answer to close the thread and then start a new thread if you have a new question.

  • Et_validate doesn't fire if user changes value and presses update button

    I am maintaining a flag for "dirty" records in a potentially large number of rows in a matrix. To set this flag I check for the et_Validate event and ItemChanged = true. This works fine if the user changes a value and then presses tab to leave the field.
    My problem is that et_Validate does not fire if the user changes a field's value and then presses the update button.
    It's like the screenpainter where if you change a field's value and then select a different field before pressing tab your change isn't saved.
    I suppose I could always send a tab keypress or automatically update the current row but I'm wondering how others handle this.
    I am currently using SBO2005A SP1 PL11.

    Additional info:
    If I change a matrix cell and click on the update/ok button then the ItemEvent.row = -1 and the active item is still the matrix. If I force a "click" in a field on the first row then the et_validate fires otherwise it does not.
    Does anyone have any other ideas on forcing et_Validate to fire when the user clicks on a button?

  • Getting change values from a collection

    Title says it all. I have a collection connected to a
    datagrid and have a simple form that allows me to add/modify/delete
    entries from the collection. Now I want to send the changes to the
    collection back to the server. How do I read/parse the collection
    for these changes? Examples would be helpful. Below is what I have
    so far to examine the collection (found elsewhere) how do I extract
    the name/value pairs that have changed?
    public function
    collectionEventHandler(event:CollectionEvent):void {
    switch(event.kind) {
    case CollectionEventKind.ADD:
    addLog("Item "+ event.location + " added");
    break;
    case CollectionEventKind.REMOVE:
    addLog("Item "+ event.location + " removed");
    break;
    case CollectionEventKind.REPLACE:
    addLog("Item "+ event.location + " Replaced");
    break;
    case CollectionEventKind.UPDATE:
    addLog("Item updated");
    break;
    }

    ArrayCollection supports the length property, so you can
    simply iterate over it with a for loop and use the bracket notation
    to return each item. Build the structure you want to sent, then
    away you go.
    If you are wanting to only select changed values, you will
    have to track this yourself.
    Tracy

  • Smartview 11.1.2.5- Cannot change value in Text-List Dropdowns- Excel Crashes

    Using latest/greatest Smartview with 64-bit Office and Windows 7.  I have a native essbase app utilizing text-lists. I am trying to update text-value through smartview. Smartview automatically produces a drop down to select a value from the linked text-list. However- as soon as a different value is entered or selcted in this cell with the drop-down list- Excel crashs. I have reproduced this consistently everytime. I have no way to change values for text-measure accounts linked to text-lists. I feel this is and incompatabiliyt issue with office 64-bit.  

    SmartView using the forms. It appears this issue has been logged as issue number 6566082 as seen here: http://docs.oracle.com/cd/E17236_01/epm.1112/readme/sv_1112200_readme.html
    But I can't seem to find out where I can get information on the status of this issue and whether it's been patched in future versions.

  • Find row number of first cell in a relative range that is less than $B$3

    Thanks for any help. I've spent hours searching, trying, and reading iWork Help
    Example:   $B$3 = 3
    Column C
    1:  9
    2:  2
    3:  9
    4:  2
    5:  3
    6:  9
    7:  9
    Find the first occurrence that is less than $B$3 (=3) in the range C3:C6. Return the row # (relative to the range, or actual row number, I don't care)
    Fill Down the formula, so the next cell looks at the range C4:C7
    In this case, I want it to return Row 4 (not 5 or 2)
    Tried this with MATCH (last argument -1 or 1) which almost works, but if it finds an exact match, it returns that row (5) instead of the first one (4)

    The single formula in D2, filled down that column, returns the row number of every row where the value in column C is less than or equal to the value in $B$3.
    The second formula, which I placed in B4, but which can go wherever it's needed, searches a limited range of column D for the minimum value in that range.
    In the example, based on your initial question, the range is three cells.  In B4, it's D2:D4; in B5 it's D3:D5, etc., with Numbers automatically adjusting the cell references as the formula is filled down the column. In each case, the formula returns the minimum value it finds in the three cell range, which is the row number on which the value in column C first meets the condition (less than or equal to $B$3) within that three cell range.
    In the second example, the formula retrieves the same value (the row number) as above, but instead of displaying it, uses it as the row-offset value in an OFFSET statement to return the Date from the row where the row number was collected.
    NOTE: Looking back at it, I see that in my rush to other duties I made an error in this formula, setting the row offset too high. Revise the formula as shown below to get the date from the correct row:
    Existing: =IF(MAX(D2:D4)=0,"",OFFSET($A$1,MIN(D2:D4),0))
    Revised: =IF(MAX(D2:D4)=0,"",OFFSET($A$1,MIN(D2:D4)-1,0))
    You wrote:
    If I'm following the logic, it would require one column (like D in this example) for every set of rows searched (in my example, B5:B15  filled down, so the next search is B6:B16 and so on).
    No. Provided the values of X and Y are constant for each set of searches, you'll need an auxiliary column for each column of values to be searched. One auxiliary column is used to mark the rows in which the value in B meets the condition ">x", the second to mark the rows where the value in C meets the condition "<y".
    The search formula (above) searches a subset of its column and returns the lowest row number where the condition for that column is met,and either displays that number or uses it to return and display a date.
    Regards,
    Barry

  • Changing values in checkboxes via Applescript: A better? solution

    I was trying to un-check all the marked checkboxes in a table using Applescript. Failed. Came in here and found a solution. It involved running a CLEAR on the cell. It worked, but it also cleared things I didn't want cleared (the background). So I found an alternative method:
    tell cell ThisRow of column ThisColumn
    set TrueFalse to Value
    if TrueFalse then
    set format to number
    set value to false
    set format to checkbox
    end if
    end tell
    Just thought I'd share.

    As the first message in this thread was linked to AppleScript, here is a script designed to uncheck the two columns of checkboxes.
    --[SCRIPT uncheckcheckedboxes]
    Enregistrer le script en tant que Script : uncheckcheckedboxes.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library: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 case à cocher qui doit être traitée.
    aller au menu Scripts , choisir Numbers puis choisir uncheckcheckedboxes
    Le script décoche toules les cases cochées dans la colonne pointée et dans la seconde colonne à sa droite.
    --=====
    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: uncheckcheckedboxes.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 checkbox which must be treated.
    go to the Scripts Menu, choose Numbers, then choose "uncheckcheckedboxes"
    The script uncheck every checked cells in the pointed column and in the second column to the right.
    --=====
    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)
    2010/10/10
    --=====
    on run
    Grab the parameters defining the first checkbox cell *)
    set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    if colNum2 = colNum1 then set colNum2 to colNum1 + 1
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    Extract the values of cells of three columns :
    first checkboxes one, intermediate one and second checkboxes one. *)
    set touteslesvaleurs to value of cells colNum1 thru (colNum2) of rows rowNum1 thru -1
    set r to rowNum1
    repeat with une_reference in touteslesvaleurs
    If a box is checked, uncheck it.
    If itsn't or if the cell doesn't contain a checkbox, skip it *)
    set trois_valeurs to contents of une_reference
    if item 1 of trois_valeurs is true then
    tell cell r of column colNum1
    set format to text
    set value to false
    set format to checkbox
    end tell
    end if
    if item 3 of trois_valeurs is true then
    tell cell r of column (colNum2)
    set format to text
    set value to false
    set format to checkbox
    end tell
    end if
    set r to r + 1
    end repeat
    end tell
    end run
    --=====
    set {rowNum1, colNum1, rowNum2, colNum2} to my getCellsAddresses(dname,s_name,t_name,arange)
    on getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    local two_Names, row_Num1, col_Num1, row_Num2, col_Num2
    tell application "Numbers"
    set d_Name to name of document d_Name (* useful if we passed a number *)
    tell document d_Name
    set s_Name to name of sheet s_Name (* useful if we passed a number *)
    tell sheet s_Name
    set t_Name to name of table t_Name (* useful if we passed a number *)
    end tell -- sheet
    end tell -- document
    end tell -- Numbers
    if r_Name contains ":" then
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, item 1 of two_Names)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(d_Name, s_Name, t_Name, item 2 of two_Names)
    end if
    else
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, r_Name)
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    end if -- r_Name contains…
    return {row_Num1, col_Num1, row_Num2, col_Num2}
    end getCellsAddresses
    --=====
    set { dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    return {d_Name, s_Name, t_Name, r_Name} & my getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    end getSelParams
    --=====
    set {rowNumber, columnNumber} to my decipher(docName,sheetName,tableName,cellRef)
    apply to named row or named column !
    on decipher(d, s, t, n)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to ¬
    return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    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
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) dimanche 10 octobre 2010 16:33:28

  • How to change width of cell in Excel using LabVIEW 5.1

    Enable program to change width of cell in Excel 97 file using LabVIEW 5.1.

    You must have an automation reference to the workbook or the worksheet. Using Application Control pallette find the Property and Invode nodes and wire up the following, cascading the output of each node into the reference of the next:
    Start with worksheet reference
    Invoke Range
    Property Entirecolumn
    Property Columnwidth
    Change Columnwidth to write and wire in the numeric value in pixels.
    Michael
    [email protected]
    http://www.abcdefirm.com
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

  • Save SELECT_LIST_FROM_QUERY changed value

    Hello.
    We have a tabular form with APEX_ITEM.SELECT_LIST_FROM_QUERY LOV as item in query.
    List shows in forms as expected.
    Column attribute is set to Display as Text (based on LOV, does not save state).
    Now users want to save LOV value when they change it.
    What value must be set in column attribute, so the changed value can be saved.
    We tried all the other settings, but then the LOV isn't displayed correctly or it doesn't work.
    Maybe APEX_ITEM.SELECT_LIST_FROM_QUERY LOV changed value can't be saved in tabular form?
    Any idea?
    Thanks.
    Regards,
    Dejan

    Hello.
    For one column in my tabular form i need "select list".
    I can create my own LOV and set column to "select list (named LOV)".
    But my LOV must have where sentence which uses another column value (from the same row).
    And that value can be different in every row - that means that LOV will be different in every row.
    But i can't (or don't know) how to write where with another column value in it - for LOV.
    Thanks.
    Regards,
    Dejan

  • Datagrid scrolls on change or click event - why?

    Hi,
    How do I stop my datagrid scrolling one line when I click on the top row?
    This happens with change, itemClick, and itemDoubleClick.
    It does not scroll on rows other than the top row.
    private function columnClick(e.ListEvent):void
    if e.columnIndex==0)
    DataGrid id= "dg" change="columnClick(event)"
    Any help would be much appeciated.
    Ian.

    You can only accept invitations and send invitations from the Calendar app, with an MS Exchange account on the iPhone.

  • How to find row changes in table

    How can we find row changes in table and i want o find out any significant change in the row information in 11g db.

    hi thanks for ur help
    but i had one more problem
    already i tried this one
    at particular time i am getting that record
    ........................ col1 col2 col3 col4 col5
    3/17/2012 11:55 AM 10 20 30 40 50
    3/17/2012 12:00 PM 0 0 0 0 0
    3/17/2012 12:05 PM 12 22 32 42 52
    see here at 12:00 PM i got the null or zero values.so instead of null values i need consecutive record means below row like 12:05 row values i need
    output is:
    .......................... col1 col2 col3 col4 col5
    3/17/2012 11:55 AM 10 20 30 40 50
    3/17/2012 12:00 PM 12 22 32 42 52
    3/17/2012 12:05 PM 12 22 32 42 52
    its very urgent plz help to me.
    Edited by: 913672 on Mar 17, 2012 6:35 AM
    Edited by: 913672 on Mar 17, 2012 6:36 AM
    Edited by: 913672 on Mar 17, 2012 6:36 AM

  • Convert positive to negative value in cells?

    Hi,
    Can't seem to find this anywhere and Mr Google is starting to refer me to Excel pages, so thought I'd try here - pretty simple, I just want to convert a set of positive values to negative. Is that possible?
    Thanks,
    osu

    If your values are stored in cells of column B, in an other column, say, column C
    in cell C2, enter the formula :
    =ABS(B2)
    then apply Fill Down
    If you don't want to use an auxiliary column, use an AppleScript like this one.
    --[SCRIPT cellstoabs]
    Enregistrer le script en tant que Script : cellstoabs.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner un bloc de cellules.
    Aller au menu Scripts , choisir Numbers puis choisir cellstoabs
    Le script remplace sur place les valeurs négatives par leur valeur absolue.
    --=====
    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: cellstoabs.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 a range of cells.
    Go to the Scripts Menu, choose Numbers, then choose "cellstoabs"
    The script replace the negative values by there ABSolute value.
    --=====
    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)
    2010/10/21
    --=====
    property liste_valeurs : {}
    --=====
    on run
    local dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2, liste_valeurs, c, cc, r, une_valeur
    set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    if rowNum2 = rowNum1 then set rowNum2 to count of rows
    set my liste_valeurs to value of cells rowNum1 thru rowNum2 of columns colNum1 thru colNum2
    repeat with c from colNum1 to colNum2
    tell column c
    set cc to c + 1 - colNum1
    repeat with r from rowNum1 to rowNum2
    set une_valeur to item (r + 1 - rowNum1) of item cc of my liste_valeurs
    if une_valeur < 0 then set value of cell r to -une_valeur
    end repeat
    end tell
    end repeat
    end tell
    set my liste_valeurs to {}
    end run
    --=====
    set {rowNum1, colNum1, rowNum2, colNum2} to my getCellsAddresses(dname,s_name,t_name,arange)
    on getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    local two_Names, row_Num1, col_Num1, row_Num2, col_Num2
    tell application "Numbers"
    set d_Name to name of document d_Name (* useful if we passed a number *)
    tell document d_Name
    set s_Name to name of sheet s_Name (* useful if we passed a number *)
    tell sheet s_Name
    set t_Name to name of table t_Name (* useful if we passed a number *)
    end tell -- sheet
    end tell -- document
    end tell -- Numbers
    if r_Name contains ":" then
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, item 1 of two_Names)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(d_Name, s_Name, t_Name, item 2 of two_Names)
    end if
    else
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, r_Name)
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    end if -- r_Name contains…
    return {row_Num1, col_Num1, row_Num2, col_Num2}
    end getCellsAddresses
    --=====
    set { dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    return {d_Name, s_Name, t_Name, r_Name} & my getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    end getSelParams
    --=====
    set {rowNumber, columnNumber} to my decipher(docName,sheetName,tableName,cellRef)
    apply to named row or named column !
    on decipher(d, s, t, n)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to ¬
    return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    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
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) jeudi 21 octobre 2010 09:38:59

  • KP26 Change Values - Add Values demanding an integer?

    I am not an FICO consultant so please be patient with me if I am missing the obvious but I can't see why KP26 is working the way it is. When I go into 'Change Values' and use 'add value', I get the error message "Enter the number in a valid format (0 decimal places)" if I use a non integer value (e.g. 1.25). Furthermore when I do put in an interger the price is update by that amount; e.g. if I put in 1, my price (fixed) becomes 11.50 from a starting value of 10.50, but it also appears in the Plan Activity, Capacity & Variable Price columns?
    When I use the Revaluate option, the it works as expected and only the price (fixed) column is updated.
    I am using planning layout 1-201.
    Any help much appreciated.
    Regards.

    Patrick,
    When you are selecting the items to change are you selecting the entire line or just the specific fields you want to change?  I suspect you are selecting the entire line.  If that's the case, the system is trying to add the amount to all key fields selected, which includes the equivalence field.  The equivalence field can only hold integers, so you get the error message.
    If you want to add an amount just to your prices, then select the column or individual cell and then add the change amount to that field only.
    Thanks,

  • Detect Entire row change status

    Hi All,
    I have a use case in which I have editable table(Table has 4 columns) where user can change some rows. I want to detect all the rows modified by the user and want to save the old rows from data base in another table before committing new values(modified values).
    I have seen some samples where we can detect a particular attribute has changed or not but I don't know how to implement entire row change. Please help me regarding this issue.
    I am using ADF Rich Components , ADF BC , JDev 11.1.1.5 and Oracle data base
    Thanks,
    Rajesh.

    Frank Nimphius-Oracle look to be the wrong thread you answered
    You can overwrite the prepareForDML() method of the EO in question as this gets called foe every row you changed. There you have access to the old values by eo.getPostedAttribute(index) and can insert the row into another table.
    Timo
    Message was edited by: TimoHahn
    @Frank ah, you already fixed it :)

Maybe you are looking for