Enter a value using set value dynamic action

Hi,
I'm using Oracle 11g XE with apex 4.0.2.
I've been trying to use a dynamic action on a text field 'item_group'. Button doesn't have this facility. I created an advanced action using 'set value' with no condition the value being 'RAM.' The event is "change", selection type 'event source', set type is 'static assignment' and value is RAM. It is supposed to trigger when the create button is pressed but nothing happens and the field is still null. I've tried variations on this but nothing works. Can anyone help.
Thanks
Tim

are you looking dynamic sql ?
Refer this
http://docs.oracle.com/cd/B10500_01/appdev.920/a96590/adg09dyn.htm

Similar Messages

  • How to make dynamic actions using Set Value work in all browsers?

    I’m having a cross-browser incompatibility issue with dynamic actions using Set Value.  The dynamic action works like a charm on Chrome but has no effect on either IE or Firefox.  The code in oracle.apex.com and here are the credentials:
    Workspace: DDBA
    Username: [email protected]
    Password: redtruck12
    These code is on page 3 and here are the details:
    There are two report lists (Standard and Special) and some of the reports require additional information supplied in either select lists or text boxes.
    If the user selects a Standard report requiring a select list/text box, then the dynamic action sets the value of Special Reports to NULL (and vice-versa).
    The dynamic action is to prevent a simultaneous selection of both the Standard and Special reports.  To see how it works on Chrome, do this:
    Run Page 3
    Select the ‘Report for Search Criteria’ option from the Standard Report list.  A ‘Search Criteria’ text box appears
    Select the ‘Report by Release’ option from the Special Reports list.  A select list appears and the ‘Search Criteria’ text box disappears.
    If you do the same things on IE or Firefox, the text box does not disappear. 

    Hi,
    Things are going wrong with setting the item values to NULL. If you check your session state, you'll see that in chrome your items values indeed will be set to null, but in firefox they won't.
    Also I've noticed that you don't reset the other input fields, so their values persist in the session state. Since you submit your page every time you change one of the report select lists, this might lead to unexpected behaviour. Lastly, I've noticed you use a sql exists expression to manage the display/hide of your page items. A condition of type "Value of  expression 1 = expression 2" causes less overhead as you don't need to switch to the db sql engine for every item to validate.
    I'd suggest you rethink your specs and try to create:
    - One dynamic action (since a value of standard select excludes the value of special select, and vice versa)
    - Set the values for hidden items to null, also in session state
    - Use a refresh of region as extra event in your dynamic action, instead of submitting your page for every change.
    Regards,
    Vincent
    http://vincentdeelen.blogspot.com

  • BPC 7.0 MS Script-Logic problem: New values used, old values written?

    I am trying to using BPC Script logic to update my Sales cube, specifically Revenue=Units*Price and Price=Revenue/Units using the "Price" stored in a seperate Price cube.
    Inside default.lgl, I am *INCLUDE-ing my own script:
    *LOOKUP PRICES
    *DIM PREIS:ACCOUNT="Price"
    *ENDLOOKUP
    *WHEN ACCOUNT
    *IS "Units"
    *REC(FACTOR=LOOKUP(PREIS),ACCOUNT="Revenue")
    *IS "Revenue"
    *REC(EXPRESSION=%VALUE%/LOOKUP(PREIS),ACCOUNT="Units")
    *ENDWHEN
    *COMMIT
    Now, when I insert new "Units" values using the std. Excel template, strange things happen:
    - The Revenues seems to be computed and updated correctly in the cube (if I check them using excel templates, they show up).
    - The Units seem to have the values they had before... seems they get old values ?!
    E.g. if I have several write operations say, I write units=2,3,4 and price is constant 10,
    the values in the cube seem to be (table):
    value written, units in cube, revenue
    3 , 2 , 30
    4,  3 , 40
    The new value is somewhere in the MS Analysis cube, otherwise, how could later be the new value be shown, although the excel templates seem to show old values?
    Any explanation for that strange behaviour?

    I simplified and wrote the prices in the same cube as I send the data from with the excel template.
    I tried using:
    *WHEN ACCOUNT
    *IS "Units"
    [Account].[#Revenue]=[Account].[Units]*[Account].[Price]
    *ENDWHEN
    *COMMIT
    *WHEN ACCOUNT
    *IS "Revenue"
    [Account].[#Units]=[Account].[Revenue]/[Account].[Price]
    *ENDWHEN
    *COMMIT
    Now, if units are send from the excel template, revenue is calculated correctly.
    If I enter revenue instead, seems that the 1st block is executed as well (why????!!!/how to avoid - I use *WHEN - what else should I do? )  which would explain the behaviour I get the old values for Units and Account again...
    Related: How can I use "*WRITE_TO_FILE"? I tried both
    *WRITE_TO_FILE Mylog.txt
    *WRITE_TO_FILE "Mylog.txt"
    But I can't find these file after sending data through the excel template... Do I have to create the files manually first or give full Path Names?
    Thanks!

  • Setting up dynamic actions

    Hullo there,
    I'm still on my way with my Monopoly game.
    Now, I have a center panel displaying the squares 'properties' when a player lands on it. For example, when he lands on a Station, the center panel has a list with the price, the owner (if owned), etc. This is done via a SquareListener.
    So far, so good. BUT, I'd like now to give the player options in a popup menu.
    For example, if the square is owned by himself, he can't buy it, but can sell it or built it. On the other hand, he may buy each square which isn't already oned by somebody...
    This is where I'm stuck. My square listener isn't enough here. I'll have a lot of testing and checking to do for each square. So I thought there might be another solution for this.Maybe a list of actions. But what of type would be these ? Moreover, the actions cannot belong to the square, since they will be different for each player (see above).
    What am I to do there ?
    Sorry if it's a bit confuse, I'm confused and quite lost here, to say the truth.

    1) Is it the correct way to do it or should I create a
    separate Actions class ?Why are you re-creating the actions all the time?
    I would write it as:
    public class Square {
        Action buy;
        Action build;
        Action[] allActions;
        //Add some more attributes
        public Square()  {
            buyAction = new BuyAction();
            build = new BuildAction();
            allActions = new Action[] { buy, build };
        public Action[] getAction(Player player) {  //The method could return a JMenu
            for (int i=0; i<allActions.length; i++) {
                allActions.setEnabled(true);
    if (player.equals(owner)) {
    buy.setEnabled(false);
    return allActions;
    class BuyAction extends AbstractAction {
    //Add some code here
    //Add code for the other inner classes
    You could either write the actions as innerclasses, or as separate classes, and write a callback interface. Depends on your situation.
    2) I read somewhere some time ago (don't remember
    where nor when) that custom actions where memory
    consuming and one should prefer actionListeners. Is
    this true ? You don't have to bother about that in your case (just try to change your implementation so that you aren't re-creating all actions all the time. Actions is what you should normally use, since an action can be re-used. I.e. you can add/set the same action to a button and menu item etc. And when you disable the action, all buttons and menu items that has it will be disabled.
    /Kaj

  • Set a tabular field value using getElementById().value

    Hi
    I have tried everything and now I hope some of you can help me.!!!
    I have made a tabular report based on a query:
    and I want to copy the value of one field into another field on the same record when clicking on a edit-link field I have made.
    SELECT-statement:
    select rownum ,
    HTMLDB_ITEM.HIDDEN(10, a.itf_tab_col_id ) ||
    htmldb_item.POPUP_FROM_QUERY(11,TRANSFORM_VALUE,
    'SELECT itf_column_name disp,itf_column_name ret
    FROM om_itf_tab_col where itf_table_id=:P73_itf_table' ) TRANSFORM_VALUE,
    HTMLDB_ITEM.TEXT(12,nvl(MAP_ITF_TARGET_ID,-99)) MAP_ITF_TARGET_ID,
    HTMLDB_ITEM.TEXT(13, a.itf_table_id ) itf_table_id,
    HTMLDB_ITEM.TEXT(14, a.itf_column_name ) itf_column_name,
    a.itf_COL_DESCR itf_col_descr,
    HTMLDB_ITEM.TEXT(16,'' ) dummy
    FROM om_itf_tab_col a,
    om_map_itf_target c
    where a.itf_TAB_COL_ID=c.itf_TAB_COL_ID (+)
    I have made this Column-link on the column itf_table_id
    javascript:setValues('#ITF_COLUMN_NAME#','#ROWNUM#');
    function setValues(col, rownum){
    rownum='0002';
    document.getElementById('f16_'+rownum).value = col;
    If I change it like this, It copy the value to the correct field but always to rownumer 1.
    function setValues(col, rownum){
    rownum='0002';
    document.getElementById('f16').value = col;
    }

    Thank you very much for answering me !!!
    I got response but the value always show 'N' even i change it to 'Y'
    I changed the function like this:
    function displayValue(FieldVal)
    alert('Rownum ='+FieldVal+' value=' + document.wwv_flow.f30[FieldVal].value)
    and I get this result when I e.g. changes the value from N to Y on row 3:
    Rownum =3 Value=N
    what do I miss?
    Evelyn

  • Issue in getting current row value using getCurrent Value

    Issue:When I call ththe method executeSearchVO from controller class
    with Row row = personalActionSearchVO.first();
    I am getting the corresponding value.
    but my requirement is I have multiple record , If i press action on any of the record, I need to read SITName value for the particular record and need to pass it as parameter to other pager(i mean If i select any record, I need to get corresponding value in the attribute for the record.)
    if i comment personalActionSearchVO.first(); i am getting null pointer exception.
    Pl. helpme how to get current row instead of first row always.
    AMIMPL Clause
    public void executeSearchVO(String loginPersonId)
    XXHRPersonalActionSearchVOImpl personalActionSearchVO =getXXHRPersonalActionSearchVO1();
    personalActionSearchVO.initQuery(loginPersonId);
    // Row row = personalActionSearchVO.first();
    row = personalActionSearchVO.getFirstFilteredRow("action","1");
    Row masterRow = row;
    personalActionSearchVO.setCurrentRow(masterRow);
    OARow Row1 = (OARow)personalActionSearchVO.getCurrentRow();
    System.out.println("Org "+Row1.getAttribute("Organization"));
    calling this method from controller clause
    if("action".equals(pageContext.getParameter(EVENT_PARAM)) )
    System.out.println("Person Id "+ pageContext.getParameter("XXHRPersonId"));
    Serializable methodParams[] = {pageContext.getEmployeeId()+""};
    applicationModule.invokeMethod("executeSearchVO",methodParams);
    need it urgently. pl. help
    thanks
    siva

    Timo,
    I am new to Jdevloper. I will explain the issue in detail.
    Version: Oracle 9i Jdeveloper
    I have a query page with multiple records. when I perform action , I need to pass 2 parameters from query screen to my actual page.
    1 parameter is Login person Id,. Now the issue is with getting current value for 2nd paramenter. 2nd Parameter will be changed depends upon record i am choosing in my query page: column is : Information Name.
    when I use getcurrentrow , I am getting null pointer exception.
    My controller class when I click action button :
    if("action".equals(pageContext.getParameter(EVENT_PARAM)) )
    Serializable methodParams[] = {pageContext.getEmployeeId()+""};
    applicationModule.invokeMethod("executeSearchVO1",methodParams);
    {color:#993300}
    // Here I need to get InformationName value based on the record I am choosing{color}
    HashMap hashMap = new HashMap(2);
    hashMap.put("XXHRPersonId", pageContext.getParameter("XXHRPersonId"));
    // hashMap.put("InformationName", methodParams);
    pageContext.forwardImmediately(
    "OA.jsp?page=/xxhr/oracle/apps/xxhr/selfservice/personalaction/webui/XXHRPersonalActionPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    hashMap,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    my AMIMPL Clause :
    I am just pasting whatever I have tried. Pl. suggest me If my code is wrong.
    *{color:#993300}I need to get current row information value from the below method*
    *{color}*
    public void executeSearchVO1(String loginPersonId)
    XXHRPersonalActionSearchVOImpl personalActionSearchVO =getXXHRPersonalActionSearchVO1();
    personalActionSearchVO.initQuery(loginPersonId);
    System.out.println("Row count "+personalActionSearchVO.getRowCount());
    // Row row = personalActionSearchVO.first();
    Row row = personalActionSearchVO.getCurrentRow();
    System.out.println("Informaton Name "+row.getAttribute("InformationName");
    In this , If i initialzie with Row row = personalActionSearchVO.first();I am able to get value for my column Information Name.
    whereas, if I use directly Row row = personalActionSearchVO.getCurrentRow();, i am getting null pointer exception.
    Pl. let me know how to get current row value for Information Name.
    Looking for the reply at the earliest.
    Thanks
    siva

  • Export/Import the mapping value used in Value Mapping Function

    I used value mapping function, so I defined some mapping data at Integration Directory. now I need migration from development xi to production xi, so How to export the data I input at development xi and later import it? or anyone could provide other solution for replacing value mapping function?
    Hope from your helps
    Thanks
    Spring
    Message was edited by: Spring Tang
    Message was edited by: Spring Tang
    Message was edited by: Spring Tang

    Hi Spring Tang,
      You can export your mapping object in .mte format.
      For this press ctrl+shift and right click in the
      mapping editor. Then go to tools and export the same.
      Similarly you can import the mapping object.
      Hope this will solve your problem.
      Thanks and Regards
      Vishal Kumar

  • Select List not setting on Dynamic action

    I have a report with a SQL query with a condition based on a select list on the same page. So I have a select list - :P9_PARTID
    My query for my report is:
    select l.sitename, sum(qty) "No."
    from eng_stock s, eng_sites l
    where partid=:P9_PARTID and l.id=s.siteid and TRANSTYPE not in ('Purchase','Transfer From')
    group by l.sitename
    When a person makes a selection on the select list (:P9_PARTID), I the report updates without having to submit the page. great!
    However.. when the :P9_PARTID select list stays null?
    Thanks in advance!

    I'm having a little trouble with your grammar, but I think you're asking for this:
    select l.sitename, sum(qty) "No."
    from eng_stock s, eng_sites l
    where (partid=:P9_PARTID OR :P9_PARTID IS NULL)
    and l.id=s.siteid and TRANSTYPE not in ('Purchase','Transfer From')
    group by l.sitenameRegards,
    Scott
    blog: [url grassroots-oracle.com]grassroots-oracle.com
    twitter: [url twitter.com/swesley_perth]@swesley_perth
    -- please mark any useful posts as helpful or correct, in the end it helps us all

  • Dynamic action - default values

    Hi guys,
    Anybody knows if it is possible to set a dynamic action in order to default P0001-WERKS field in the Infotype 0001?
    Thank you very much!

    So you mean to say, Action 0000 Infotype and Org Assignment 0001 infotype will have different values depending on Action Type??
    This is not at all possibleeeeee!!
    The WERKS that you enter in IT0000 stores in IT0001 but not in IT0000
    Regards
    ...Sadhu

  • Changing A Value Using If Statement in SQL Query

    Hello, I have a very rudimentary question that I'm stuck on.  I have a query that returns one of 3 different integers.  I want to have each integer translate to a string value depending on the number returned.  Unfortunately this is the SCCM
    database which cannot be changed to provide an additional table with the values.
    I have something like this but I'm not getting what I want out of the date - depending on what I do I either get an error, or nothing.
    Declare @NewValue nvarchar
    Declare @Value nvarchar
    If @Value = 1 Set @Value = 'String1'
    If @Value = 2 Set @Value = 'String2'
    If @Value = 3 Set @Value = 'String3'
    Select PrimaryKey,IntegerValue FROM db_Table WHERE @Value=IntegerValue
    I know this is a simple thing but I'm new to SQL and not exactly sure what terms I should even be using to search for this.  Thanks for the help!

    select PrimaryKey, IntegerValue, case IntegerValue when 1 then 'String1'
    when 2 then 'String 2' when 3 then 'String3' else 'Unknown Integer Value' end as [Description]
    from db_Table
    Take a look at
    CASE expression in BOL. You may also find the following article helpful
    http://social.technet.microsoft.com/wiki/contents/articles/21327.t-sql-simplified-case-expression.aspx
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Running SSIS Package from SQL Job - with Set Values, a string containing";"

    Can anybody help with this problem please?
    I’m using “set value” in SQL agent to pass in an email address to my SSIS package, if I put in a value of:
    [email protected]
    It works fine, but if I attempt to input multiple email addresses it fails
    [email protected];[email protected]
    It doesn’t appear to like the “;”.
    Any ideas anyone???
    BoroFC

    Hi Jamie, many thanks for the response.
    If I look at my command line table when Email = [email protected], it looks like:
    /SET "\package.Variables[EmailAddress].Value";"[email protected]" /REPORTING E
    If I change the value to “[email protected];[email protected]”, it looks like:
    /SET "\package.Variables[EmailAddress].Value";"\""" [email protected];"" [email protected] ""\"" /REPORTING E
    But the weird thing is, if I close the job properties window and re-open it again, I lose this line from my set values screen all together!!!
    Help ???
    BoroFC

  • Set value (TRUE, FALSE) on a checkbox

    I want to set the value of a checkbox to FASLE when a second checkbox is checked (TRUE). Any idea?

    Hello here are two scripts which may help.
    With the first one, select a range of cells whose top-left one contain the master checkbox, the bottom-right one contain the slave checkbox.
    Running the script will set the slave box to the opposite of the master one.
    With the second one, select a range whose cells of left column contain master checkboxes and column to the right contain slave checkboxes.
    Running the script will set the slave boxes to the opposite of the corresponding master ones.
    --[SCRIPT setslavecheckbox]
    Enregistrer le script en tant que Script : setslavecheckbox.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 dont
    la cellule en haut à gauche contient la case à cocher maitre
    la cellule en bas à droite contient la case à cocher 'esclave'
    Aller au menu Scripts , choisir Numbers puis choisir setslavecheckbox
    Si la case maitre est cochée, la case esclave sera décochée.
    Si la case maitre est dé-cochée, la case esclave sera cochée.
    --=====
    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: setslavecheckbox.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 whose
    top left cell contain the master checkbox
    the bottom right cell contain the slave checkbox.
    Go to the Scripts Menu, choose Numbers, then choose "setslavecheckbox"
    If the master checkbox is checked, the slave one will be unchecked.
    If the slave checkbocx in unchecked, the slave one will be checked.
    --=====
    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/11/05
    --=====
    on run
    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
    set valeur_maitre to value of cell rowNum1 of column colNum1
    set valeur_esclave to value of cell rowNum2 of column colNum2
    end tell
    if valeur_maitre = valeur_esclave then my switchCheckBox(dName, sName, tName, rowNum2, colNum2)
    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 parle_anglais()
    return (do shell script "defaults read 'Apple Global Domain' AppleLocale") does not start with "fr_"
    end parle_anglais
    --=====
    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
    --=====
    my switchCheckBox(dName, sName, tName, rowNum, colNum)
    on switchCheckBox(d, s, t, r, c)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to tell cell r of column c
    set oldVal to value
    clear
    set value to (not oldVal)
    set format to checkbox
    end tell
    end switchCheckBox
    --=====
    --[/SCRIPT]
    --[SCRIPT setslavecheckboxes]
    Enregistrer le script en tant que Script : setslavecheckboxes.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 dont
    les cellules de la colonne de gauche contiennent les cases à cocher maitresses.
    les cellules de la colonne de droite contient les cases à cocher 'esclaves'
    Aller au menu Scripts , choisir Numbers puis choisir setslavecheckboxes
    Si la case maitre est cochée, la case esclave sera décochée.
    Si la case maitre est dé-cochée, la case esclave sera cochée.
    --=====
    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: setslavecheckboxes.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 whose
    cells of the left column contain master checkboxes
    cells of the right column contain the slave checkboxes.
    Go to the Scripts Menu, choose Numbers, then choose "setslavecheckboxes"
    If the master checkbox is checked, the slave one will be unchecked.
    If the slave checkbocx in unchecked, the slave one will be checked.
    --=====
    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/11/05
    --=====
    on run
    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
    set les_valeurs to value of cells colNum1 thru colNum2 of rows rowNum1 thru rowNum2
    end tell
    set i to 0
    repeat with valeursd_uneligne in les_valeurs
    set r to i + rowNum1
    if item 1 of valeursd_uneligne = item -1 of valeursd_uneligne then my switchCheckBox(dName, sName, tName, r, colNum2)
    set i to i + 1
    end repeat
    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 parle_anglais()
    return (do shell script "defaults read 'Apple Global Domain' AppleLocale") does not start with "fr_"
    end parle_anglais
    --=====
    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
    --=====
    my switchCheckBox(dName, sName, tName, rowNum, colNum)
    on switchCheckBox(d, s, t, r, c)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to tell cell r of column c
    set oldVal to value
    clear
    set value to (not oldVal)
    set format to checkbox
    end tell
    end switchCheckBox
    --=====
    --[/SCRIPT]
    To be honest, I don't understand the need for such tools.
    Why use two checkboxes when a single one would be sufficient?
    For instance, I saw tables with a checkbox which was checked when the described being was a male
    and an other checkbox which was checked when the described being was a female.
    As far as I know, when the first box is unchecked, the being is a female so the second box is useless.
    Yvan KOENIG (VALLAURIS, France) vendredi 5 novembre 2010 10:40:24

  • Dynamic action on text box change does not working

    i have a page with following components.
    a report that has and edit link.
    a text box to catch the primary key from report link when it is clicked
    a number of elements (text boxes, check boxes and LOVs) which are used as data entry form.
    Now my design is that user enter values save them and no sooner did they save, the report depicts new
    values. if user want to edit any record, they click on edit link and the data entry form elements
    should now bring all those values from DB on page. i m successful to pick primary key and bring
    it in a hidden text box and wrote a dynamic action on its change event that will bring values from
    DB and set all page elements. but but but.........the change event doesnt work. it only work
    when focus is lost from the text box...!! offcourse user wont want to click in that "hiddent" text
    box and then click some where else to bring values in page data entry form......
    help is humbly requested from forum or if any other solution approach is to be used easier than
    one i m using, would be appreciated.
    thanks in advance for reading my bore question :)

    bundles of thanks for reply. i m going to elaborate.
    1. My page no is 3.
    2. Hidden Item name is P3_EDIT_ACTIVITY_ID
    3. Data entry form, hidden item and the report are on the same page.
    4. on the edit link of report, i have used following settings.
        Target: Page in this application
         Page: 3
         and i set hidden item as follows......
         Item 1   P3_EDIT_ACTIVITY_ID         Value #ACTIVITY_ID#
       well, when i click the link on report it does bring Activity_Id in the hidden box (which is not yet hidden for debugging purpose)
    Next i wrote Dynamic action which fires on the change event of P3_EDIT_ACTIVITY_ID and run PL/SQL code with in it which is as follows
      declare
      Dept varchar(50);
    begin
       select my_dept into Dept from activity_main ACTIVITY_ID = :P3_EDIT_ACTIVITY_ID;
       :P3_Dept := :Dept;          (i did use :P3_Dept := Dept also but this wont work)
      insert into testdynamic (stamp) values (Dept);  (I did this to check whether correct value is brought from DB, yes it works correctly, correct Dept is being inserted in stamp column)
    end;
      i have created another true action to check when the dynamic action is fired. its very simple alert. and the problem is, it only fires when focus is lost from the P3_EDIT_ACTIVITY_ID. i mean, when u keep changing value inside the text box, nothing happens, when u go outside, the alert is fired and so the pl/sql procedure. but the line
        :P3_Dept := :Dept;       OR      :P3_Dept  := Dept;         arent working which is the actual requirement.
      I m not using set value here as i have to set a lot of values on page not one. further. plz let me get rid of this lost focus thing as i want the form to be populated with correct values related to P3_EDIT_ACTIVITY_ID as the user click on any edit_link in the report.
    Thanks for persistence. i hope i have provided all the details.
    looking forward.

  • Custom dynamic action not firing

    Using Apex 4.2.2 on 11g
    I have a standard report A1
    There is a column link on report A1 which refreshes chart C1 using a custom dynamic action.
    The column link on report A1  has the URL set to  javascript:$.event.trigger('RefreshTrend_2', [{key_2:'#COL01#' }]);
    and there is a dynamic action D1 RefreshTrend_2 which sets the value of the chart filter P17_KEY_2 to the value of the javascript variable key_2 and then refreshes chart C1
    The dynamic action is custom with a type DOMObject of document and no condition
    This works fine but when I add another report/chart (report A2, chart C2)  combination with a similar dynamic action (D2), D2 is a copy of D1 with the values for the variables and chart region changed.
    The A2/C2 functionality works fine on its own, D2 gets fired when I click the column link, but not when there are 2 dynamic actions of custom/document on the page.
    This column link on A2 only fires the dynamic action D2 if dynamic action D2 has a higher sequence than D1 (if i move it above D1 in the list it will fire, but then D1 does not fire for the column link on A1
    Am I missing something?
    Thanks
    Kathryn

    Here is my page source from the browser (i put in some blank lines here to separate the 3 dynamic actions)
    <script type="text/javascript">
    apex.da.initDaEventList = function(){
    apex.da.gEventList = [
    {"triggeringElement":"P17_IS_OK","triggeringElementType":"ITEM","triggeringConditionType":"NOT_NULL","bindType":"bind","bindEventType":"change",actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"BUTTON",javascriptFunction:apex.da.enable,"action":"NATIVE_ENABLE"},{"eventResult":false,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"BUTTON",javascriptFunction:apex.da.disable,"action":"NATIVE_DISABLE"}]},
    {"triggeringElement":"document","triggeringElementType":"DOM_OBJECT","bindType":"live","bindDelegateTo":document,"bindEventType":"RefreshTrend_2",actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"waitForResult":true,"affectedElementsType":"ITEM","affectedElements":"P17_KEY_2",javascriptFunction:apex.da.setValue,"ajaxIdentifier":"3BB4667C9E25BFB8DCF63639507A062A88F713A193C0D30DDF1CEA8D6875A7F9","attribute01":"JAVASCRIPT_EXPRESSION","attribute05":"this.data.key_2","attribute09":"N","action":"NATIVE_SET_VALUE"},{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"REGION","affectedRegionId":"R2959102626294614",javascriptFunction:apex.da.refresh,"action":"NATIVE_REFRESH"}]},
    {"triggeringElement":"document","triggeringElementType":"DOM_OBJECT","bindType":"live","bindDelegateTo":document,"bindEventType":"RefreshTrend_1",actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"waitForResult":true,"affectedElementsType":"ITEM","affectedElements":"P17_KEY_1",javascriptFunction:apex.da.setValue,"ajaxIdentifier":"51D6B9673F7096076392A95D9D00B417D49DEB96D878B419FC6D1E482D0AB2F0","attribute01":"JAVASCRIPT_EXPRESSION","attribute05":"this.data.key_1","attribute09":"N","action":"NATIVE_SET_VALUE"},{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,"affectedElementsType":"REGION","affectedRegionId":"R2925517394066336",javascriptFunction:apex.da.refresh,"action":"NATIVE_REFRESH"}]}];
    </script>
    Only the first "document" dynamic action will fire, even though I fire them by name using
    javascript:$.event.trigger('RefreshTrend_1', [{key_1:'#COL01#' }]); from the column link.
    Kathryn

  • Dynamic Action infinite loop

    Hi,
    I have a page with number of days, start date and end date.
    If I change the number of days, I want to set the end date based on start date + num days.
    I also want to go the other way so if they enter an end date, it will calculate the number of days.
    I have dynamic actions for these and they both work fine. The problem is I get a Stack Overflow error after about a second. I assume it is stuck constantly running the 2 dynamic actions one after another, each triggering each other.
    Has anyone else had this issue? And how did you solve it?
    Thanks
    Richard

    Richard,
    Where you have Ajax based dynamic actions ('Set Value' and 'Execute PL/SQL Code') that attempt to save some item's value in session state (via the 'Page Items to Submit' attribute), you will definitely hit issues if SSP is enable for those particular items. This also effects other places where item values can be set via AJAX (Interactive report regions and cascading LOVs), not just in dynamic actions.
    The reason this doesn't work is is because it is not possible to generate a valid checksum on the client, in order for the item to be submitted successfully. In fact, providing a mechanism to calculate a checksum on the client would obviously open up a whole new security vulnerability.
    You can workaround this by evaluating each page item that you wish to set via dynamic actions and seeing if you can switch off SSP (setting to 'Unrestricted') for just that specific item. You can still have SSP enabled for the application and page, and for other page items, importantly including whichever item stores the primary key or where you have some other vulnerable value stored in some page item.
    I have also filed a documentation bug to better explain this in the help text. Patrick also filed an enhancement request for the 'Advisor', so that it checks if SSP is enabled for any page item values that are set from one of these places and alerts the user accordingly.
    Hope this helps.
    Anthony.

Maybe you are looking for

  • US Ipads in the UK?

    Hello all - I want to buy an Ipad while back in the US. Can I still use it without any compatibility issues/wireless problems here in the UK? Does it affect anything in regards to ease of use, connectivity, etc?

  • Opening document in pages on ipad with icloud

    I get message saying "Open Document This document may look different on your iOS device than on your Mac.  Use Open Copy if you want to preserve the original."  Then has two options:  Open Copy or Open.  How should I proceed.  I thought I could just

  • Remove a stolen ipod identity from existing itunes account

    I had my ipod stolen and I just got a new one. How do I replace/remove the old ipod's identity to make room for this new one? Mac Mini   Mac OS X (10.4.8)   new nano

  • Premiere will not import any of the recommended Caption formats

    I have so far used qt.txt files to add open captions to my video projects. I would like to work with captions within Premiere Pro and have watched Adobe's video on how to do it. Recommended formats are .scc but several others are supposedly supported

  • Connection dropping. Need help please.

    I have tried everything that In have seen in the forum related to this problem. The only thing not done is un-clicking the option to connect to BT Openzone if in range which seems to be in Communication Settings. Is this on my Laptop or within the hu