Problem with self referencing cells

Hello there,
I'd like to have two columns that are NULL, unless the other column has a value entered into it.
This seems to create an infinite lookup loop of self referencing.
Can anyone suggest a work around?
Please see example
http://public.iwork.com/document/?a=p175104233&d=self_reference.numbers

If for instance you have
cell B2 = IF(C2="","","Not Null")
and
cell C2 = IF(B2="","", "Not Null")
then, yes, you have a circular reference
It sounds like what you want is if you enter (by hand, overwriting the formula that is there) a value in B2 then the formula in C2 will result in a value (not null). If you, instead, enter a value in C2 then the formula in B2 will result in a value.
Try this addition to the formula:
B2=IFERROR(IF(C2="","","not null"),"")
C2=IFERROR(IF(B2="","","not null"),"")
In other words, wrap it all up in an IFERROR
Message was edited by: Badunit

Similar Messages

  • EJB-QL with self referencing cmr-field in path identifier fails

    I have a simple application . Only one bean and one relationship. The relationship is a (0..1)-(0..1) for the same bean (self referencing).
    I have a finder method defined with ejb-ql that tries to access the field of one of the cmr fields of the relationship.
    class1Bean is the abstract schema for my bean, and subclass1 is the cmr-field name.
    SELECT OBJECT(obj) FROM class1Bean obj WHERE obj.subclass1.id LIKE ?1
    Here is the error message when trying to deploy:
    Bean: Class1
    Method: java.util.Collection findBySubclass1(java.lang.String)
    EJBQL: SELECT OBJECT(obj) FROM class1Bean obj WHERE obj.subclass1.id LIKE ?1
    Error: JDO75100: Fatal internal error: JDO75341: Missing field meta data for field 'subclass1' of 'Class1'
    This same code deploys fine on JBoss 4.0, and should be legal ejb-ql. Is this a known issue with Sun JSAS?

    Sounds like a problem with the bean metadata. Please check the entity mapping defined in sun-cmp-mappings.xml. Also make sure field sublass1 is defined as CMR everywhere.
    -- markus.

  • Problem using self-referencing type parameter

    I seem to be having trouble using a self-referencing type parameter (or what's the name for it ;)
    Please consider this code:
    class Test<T extends Test<T>> implements ITest<T> {
         public T foo() {
              // does not work?!
              //return this;
              @SuppressWarnings("unchecked")
              T result = (T) this;
              return result;
    interface ITest<T extends ITest<T>> {
         T foo();
    }I need ITest.foo() to return T so that it would return the correct type when used in subinterfaces. I can see that Test.foo() must return T, so that is why I declared "T extends Test<T>".
    Trouble is, why does "this", which also implements ITest<T>, not satisfy the requirement of returning T?

    This is a common question. The problem is a flawed assumption about the declaration of ITest.
    The assumption is that:
    interface ITest<T extends ITest<T>>means that any implementation of ITest must be parameterized by itself. This is not the case.
    Consider the following
    public class Test<T extends Test<T>> implements ITest<T> {
        public static void main(String[] args){
            Bar b = new Foo().foo();
        public T foo() {
            @SuppressWarnings("unchecked")
            T result = (T) this;
            return result;
    class Foo extends Test<Bar> {
    class Bar extends Test<Bar>{
    interface ITest<T extends ITest<T>> {
    }Compiles and then fails with a classcastexception.
    Look again at ITest. The generic declaration requires that implementations are parameterized by self-parameterized instances of Test. That's different than saying the implementation itself is self-parameterized. The distinction is subtle but in the end you cannot declare classes that force sublcasses to be self-parameterized.
    You can, however, declare methods that force their arguments to be self-parameterized.

  • Synchronize form with self-referencing VO in tree table. POJO Based Model

    Hello. I need your help
    ADF Code Corner sample #32 show how to build a tree table from a self referencing VO:
    [http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples]
    ADF Code Corner document Oracle JDeveloper OTN Harvest 09/2011 by Frank Nimphius show how to build an edit form for the table data and how to synchronize it with the selected row in the tree table:
    [http://www.oracle.com/technetwork/developer-tools/adf/learnmore/sept2011-otn-harvest-508189.pdf]
    This examples are helpful, but i have a problem, i have not a model based on a database, my application datamodel is based in POJO objects, there are no appModules or ViewObjects so I do not know how to reference the tree table target attribute with the edit form iterator.
    Can anyone help me?
    Maybe (i dont know how) i need make a VO and a AppModule that wraps the POJO model ?
    thank you very much

    Hi,
    this should work the same. You create a tree from a POJO Data Control based on your POJO Model. Expose another collection pointing to the same data set and drag it as the form. Use the setting on the tree configuration dialog to set the current row in the tree as the current in the form iterator.
    Frank

  • Problem with 'Word edit cell.vi' , Inputs transduced with the value of every row repeated

    Hello,
    Im using LV2013 with office 2013 report tool kit. I am trying to use Word edit cell to input values in table previously created in template .doc.
    Indeed, i trying the example Generate report from template and didnt works well. I search for solution and I see it was a problem with previous version but it seems not solve totally in this version for word office 2010. 
    http://digital.ni.com/public.nsf/allkb/4041ECB5D02BA57D862579A00002FE8D
    I checked this thread but i didnt get it to works. http://forums.ni.com/t5/LabVIEW/Problem-with-append-table-and-Word-2010/m-p/2190960#M702610
    Any way to solve it?.
    Thanks for help.
    Fred
    Attachments:
    error.png ‏32 KB
    Untitled 1.vi ‏19 KB
    exampleTemplate.doc ‏37 KB

    Hello, I solve it adding this to Word_insert_Table.
    http://forums.ni.com/t5/LabVIEW/Report-Generation-MS-Word-Table-Bug/td-p/1605170
    Thanks.
    Open [LabVIEW installation folder]\vi.lib\addons\_office\_wordsub.llb\Word_Insert_Table.vi
    There is a nested for loop that interprets the provided string array data and reformats it into a long ASCII string for the copy buffer. It should look like this:
    Change the nested loop to look like this:
    The changes I've made are twofold:
    1. Within the inner loop, replace the "\n" char with a Tab character
    2. Just after the inner loop, add a new "concatenate strings" function that adds "\n".

  • Probleme with Self defined info struc

    Hi All,
    We have Create some Self define Info structure Like ;--
    S061 Location and Planning --->S501
    if we campare standard info structure with self defined info structure ..screen layoutis  are not same ..
    1.Means *Characteristics Restriction * Functional Location hierarchy  it is not appearing in Self defined info structure
    2. S064 Object Statistics---> S505 in this case we don't have F4 option in Obejct Class field
    Any one can tell how can i solve this probleme.
    Thanks
    Vinit

    Hi All,
    We have Create some Self define Info structure Like ;--
    S061 Location and Planning --->S501
    if we campare standard info structure with self defined info structure ..screen layoutis  are not same ..
    1.Means *Characteristics Restriction * Functional Location hierarchy  it is not appearing in Self defined info structure
    2. S064 Object Statistics---> S505 in this case we don't have F4 option in Obejct Class field
    Any one can tell how can i solve this probleme.
    Thanks
    Vinit

  • Problem with select all cells in JTable

    Hi guys! I get some problem about selecting all cells in JTable. I tried to used two methods:
    1> table.selectAll()2> changeSelection(firstcell, lastcell,false,true)
    firstcell:[0,0], lastcell[rowcount-1,colcount-1]
    Result: only the first row selected when i use both methods.
    Note: i set up the selection model as following:
    this.dataSheet.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
                    this.dataSheet.setCellSelectionEnabled(true);
                    this.dataSheet.setRowSelectionAllowed(true);
                    this.dataSheet.setColumnSelectionAllowed(true);Thanks !

    What selection properity should be changed in order to enable selectAll() method work properly? Is there Any constraints? Here is the TableModel I am using. And i set up selection mode use the following code:
    table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    table.setCellSelectionEnabled(true);
    table.setRowSelectionAllowed(true);
    table.setColumnSelectionAllowed(true);
    import java.util.Vector;
    import javax.swing.table.*;
    import javax.swing.JTable;
    public class DataSheetModel extends AbstractTableModel{
              private Vector data = new Vector();//Store data
              private Vector columnNames = new Vector();//Store head
              public DataSheetModel(){}
              public DataSheetModel(Vector headVector, Vector dataVector){
                   if(headVector != null) this.columnNames = headVector;
                   if(dataVector != null) this.data = dataVector;
              public int getColumnCount(){
                   return columnNames.size()+1;
              public int getRowCount(){
                   return data.size()+1;
              public String getColumnName(int col){
                   if(col==0) return "";
                   else return (String)columnNames.get(col-1);
              public Object getValueAt(int row, int col){
                   if(col==0) {
                        if(row != data.size()) return String.valueOf(row);
                        else return "*";
                   else{
                        if(row != data.size()){
                             Vector rowVector = (Vector)data.elementAt(row);
                             return rowVector.elementAt(col-1);
                        }else return null;
              public void setValueAt(Object value, int row, int col){
                   if(row != this.data.size()){
                        Vector rowVector = (Vector)data.elementAt(row);
                        rowVector.set(col-1,value);
                        this.data.set(row,rowVector);
                        this.fireTableDataChanged();
                   }else{
                        Vector rowVector = new Vector();
                        for(int i=0; i<this.getColumnCount()-1; i++) rowVector.add(null);
                        rowVector.set(col-1,value);
                        this.data.add(rowVector);
                        this.fireTableDataChanged();
              public Class getColumnClass(int c){
                   return getValueAt(0,c).getClass();
              public boolean isCellEditable(int row, int col){
                   if(col == 0) return false;
                   else return true;
              public void setDataVector(Vector head, Vector data){
                   if(head != null) this.columnNames = head;
                   if(data != null) this.data = data;
    }

  • Problem with self-referral

    How can I write an formula for a cell which evaluates the content of that cell, then performs the rest of the equation if the cell is blank, but leaves the cell unchanged if it is not blank?

    This is for a chess tournament pairing algorithm.  Each row in the table represents a unique, numbered player.  The cell (actually, column of cells) is blank unless a checkbox above it is TRUE. Scores from the previous round are entered and then the table is sorted based on the running scores of the players (descending) before the checkbox is checked. The formula evaluates the following in nested IF statements:
    1. Is the checkbox TRUE? (So that no pairings are made before the previous round's scores are all entered)
    2. If there are an odd number of players AND this is the last player, enter "Bye".
    3. If there is no player name assigned to this row, enter "".
    4. If another cell in the column contains this row's player number, then LOOKUP and enter that other player's number.
    5. If the cell is not blank, do not change it. (So that the rest of the formula is skipped if there is already an assignment)
    6. If the row cell in the row above is blank, enter "". (So that pairings are made from the top-down)
    7. Assign a match based on further criteria.
    My problem so far is that the sorting falls apart if I cannot complete step #5, which gives an error for self-referral.
    =IF(NOT(checkbox),"",
        IF(AND(odd number of players,this islast row of players),"Bye",
            IF(ISBLANK(player name for this row),"",
                IF(NOT(ISERROR(MATCH(player number,column of assignments,0))),
                    LOOKUP(player number,column of assignments,column of player numbers),
    #5 would go here!!!!
                    IF(AND(ISBLANK(cell above this one),ROW()>6),"",
                        OFFSET($A8,
                            IF(ROW()+$K$2-5<=$E$2,$K$2,$K$2-$E$2),0)

  • Problem With Cross Referencing On Iphone

    I have 2 Christina Aguilera songs checked in my itunes account, but only one shows up on my phone under Christina Aguilera.  They are both on my phone, and if I look under the song titles, they show up, but if I look under artists, only one shows up.  Many other examples of the same.  P!nk songs do not show up under artist at all.  I even changed the name to Pink, and still nothing shows up under Pink.  This really is terrible.  The first time I noticed it I was looking for a song from Pink's greatest hits, and I actually said to myself, "Oh, I guess I never uploaded the CD to itunes."  So I stuck the CD in my computer and it said, "These songs already exist..."  I mentioned it to a genius one time (when I was there for a completely different issue and did not really want to spend that much more time there).  I said, "Oh, by the way, if you look under Artist on my phone, nothing shows up under Pink, or P!nk."  She said, "Well that is probably because you do not have any Pink songs on your phone."  I showed her the entire album and she was like, oh whatever.  At the time I thought, well maybe since the exclamation point is there and all, so I let it go.  But just now I was looking for a Christina song, and only one showed up.  But if I look under the song title, it is there.  The problem is that a lot of times I can't remember what a particular song TITLE is, but I know I want to hear a song from an ARTIST.  If these 2 are not cross-referenced properly, who knows how many others are like that. 
    Does anyone have any suggestions?

    I should have mentioned that I did delete the Exchange email address, and then recreated it.
    There was no change. I am still not able to send, receive, or delete emails from that account on the iPhone.
    I'm wondering if the Exchange email service provider has tried to limit access from mobile devices??
    I'll follow-up with another post tomorrow when I hear back from them. Any other ideas?

  • Win2K problem with self-signed certificate ?

    Hi all,
    We've got a self-signed application that works perfectly well under NT4. Once Webstarted under Win2K, it is correctly downloaded but does not display the warning dialog regarding the certificate installation (like it does in NT4). When the application starts, there's no activity expect the webstart splash.
    Does anyone know the problem ?
    Thanks
    Vince

    I had a similar problem (and solution) on NT 4.0: the splash
    screen would come up, but that was it. Uninstalled, reinstalled,
    emptied out cache and .javaws directories all to no avail.
    When I checked the .cfg file, there were duplicated entries for
    the jre. I ended up deleting these, and replacing them with the
    path to the jre I used for development, and knew was good. It
    worked fine. I think I had a dodgy jre installation that JWS had
    found and was trying to use as its default.
    Good luck.
    John

  • Fustrating problem with self-made 5-state button

    Hey guys, just wondering if you could help me, i don't have
    much knowledge with actionscript and i created my own 5 state
    button using a movie clip and a little bit of actionscript by
    following a tutorial online. (
    http://www.sanctifiedstudios.com/advanced-five-state-buttons/)
    Basically, when rolled over, the button slides out, and when
    rolled off, the button slides back in. The problem is, while the
    button is rolling back in, if you flick your mouse onto the button
    again quickly, instead of restarting the roll-out animation, the
    button just flickers quickly between the in position and the out
    position.
    You can see it for yourself here: www.everlightmusic.com <
    hover your mouse over the buttons on the right, move your mouse
    off, and then while its rolling back in, quickly move your mouse
    back onto it.
    The actionscript for the buttons is this:
    quote:
    this.onRollOver = function(){
    this.gotoAndPlay(20);
    this.onRollOut = function(){
    this.gotoAndPlay(30);
    this.onPress = function(){
    this.gotoAndStop(29);
    this.onRelease = function(){
    this.gotoAndStop(29);
    this.onReleaseOutside = function(){
    this.gotoAndPlay(40);
    this.onRelease = function(){
    _parent.gotoAndPlay(31)
    And here is a screenshot of the movie clip timeline:
    Click
    Any help with this would be greatly appreciated :)

    yeah this is typical when using a timeline based button
    action. two things you could do:
    1) control the state change by using a variable to indicate
    when the motion is complete (or not) like 'isOpen' - you'd need to
    do this for each button in combination with a condition in the
    handler that 'reads' the var and determines the course of action -
    of course the next problem is that if you 'rollout' while the
    motion is happening and the handler fires previous to the setting
    of the var to it's 'new' state it won't close because the condition
    would only be fired once - the only way around that would be to
    include a loop that runs until the condition is satisfied.
    2) much better than the above method (which would get messy
    fast) is to simply use the 'tween' class to create you motions, you
    can then 'open' or 'close' from what ever the current position of
    the clip is at the moment the handler is fired. you've got your
    code on the timeline of the 'button' MC (good job) so you could
    change it to something like this:

  • Problem with Self defined info structure.

    Hi All,
    We have Create some Self define Info structure Like ;--
    S061 Location  and Planning               --->S501
    S062 object class and manufacturer --->S502
    S063 Danage analysis                        --->S503
    S065 Object Statistics                         --->S504
    But probleme is when we excute S501 self defined info structure heading comes as
    Standard Analysis for Info Sstructure S501: Selection where as in Standard it is coming as Location Analysis: Selection
    Any one can tell how can i solve this probleme.
    Thanks
    Vinit

    steps to create own infostructure by copying standard infostructure.
    steps.... 1) First Create your own info structure using menu path SPRO> Logistics general > LIS > Logistics data warehouse > Data basis > information structure > maintain self defined ino structure Here create a New stucture called S901 (Follow Custom defined structure naming conventions) for application 07, by copying S115 .
    Once inside this Choose the Charateristic button below and CHOOSE SELECTION LIST.
    This will popup a list of fields that can be added to the structure for analysis per field catalogue.
    Navigate to the notification Object field catalog to select the Order number.
    Select other field as appropriate from other field catalog and copy them.Then select or de-select the "Key figures" thats relevant for your needs Check ,generate and activate the same structure and save.
    2) Create Update rules for updating this info structure by copying the rules of S115.
    SPRO> Logistics general > LIS > Logistics data warehouse > Data basis >Updating > Specific definition using update Rules > Maintain update rules.
    Enter the newly created Structure name and choose teh Update group 26 (use drop down) and enter the S115 and 26 as teh group and rules to copy from.
    Delete the rules thats not relevant for your needs and then check, and Choose "generate: and then activate the "UPDATING" and save.
    3) Activate the Update type for the new structure. SPRO> Logistics general > LIS > Logistics data warehouse > Data basis >Updating > Update Control > Activate Update.
    Choose PM and double click on the new structure that you had just created and chosoe Period and Type of updating (2: Similar to other standard info structures). and save.
    This should start updating New orders that you are creating from Now on.
    However if you would like to pre-populate existing data in this structure for analysis, then you would have to run through the generation program in background for this specific structure.
    SPRO> Logistics general > LIS > Logistics data warehouse > Data basis >tools > setup of statistical data >Application specific setup of statistical data > perform setup - PM.
    Here make sure to do the PMIS statistical setup (This might be redundant, if you havent changed any value category that updates PMCO table) and Set Up: Plant Maintenance IS(Make sure to choose your specific structure).
    You should be able to check the table entries to confirm that the program has updated the table (Name of the info structure).
    The defaulted version could be different from the standard version (000).You could copy the data from one verion to another version using the first step in this block.
    Once the genration is complete you should be ready to use this structure using MCIS transaction (PMIS > Standard analysis > User defined analysis).
    This will list out all the user defined structures and you can pick and execute the one that you had just created.
    Regards
    Dhiren
    Edited by: Dhiren Kumar Sahoo on Feb 2, 2010 3:55 PM

  • Problems with JTable custom cell renderers

    Hi All,
    I'm having a bit of a problem writing a custom renderer for a JTable.
    What seems to be happening is that the changes I apply in the renderer to the component are applied to ALL cells.
    All I want to do is have a different background color for certain cells....
    Ive derived from DefaultTableCellRenderer, so Im using its getTableCellRendererComponent to do most of the work.
    So, Ive got something like this:
    private class DirtyCacheRenderer extends DefaultTableCellRenderer
        public Component getTableCellRendererComponent(JTable table, Object value,
                              boolean isSelected, boolean hasFocus, int row, int column)
          // Modifies 'this'
          super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
          // If the row/column is 'dirty' (I.e - if I want 2 color it diferently)
          if(((EditableTableModel)table.getModel()).isDirty(row,column))
            // The column is dirty. Set the color accordingly:
            super.setBackground(DIRTY_COLOR);
          return this;
      }The effect is that as soon as ONE cell gets its color set above, all of the cells do!
    Please help, its driving me mad!!!
    D

    I tried this and it worked. Tell me if it is OK for you.
    import javax.swing.table.TableCellRenderer;
    import java.awt.Color;
    import java.awt.Component;
    import javax.swing.JTable;
    import javax.swing.JLabel;
    public class testRenderer implements TableCellRenderer {
    JLabel cell = new JLabel();
    Color dirty = new Color(100,100,100);
    Color clear = new Color(0,0,0);
    public testRenderer() {
    cell.setOpaque(true);
    public Component getTableCellRendererComponent(JTable table,Object value,
    boolean isSelected,boolean hasFocus, int row, int column) {
    cell.setText(value.toString());
    // The column is dirty. Set the color
    if (row == column)     {
    cell.setBackground(dirty);
    } else {
    cell.setBackground(table.getBackground());
    return cell;
    }

  • Problems with classes referencing each other...

    I've got a problem....i have a program with two classes, and each class needs access to methods stored in the other class.
    I've tried to create a reference (Classname name=new Classname();), but upon execution, i get a Exception in thread "main" java.lang.StackOverflowError, and a long list of locations, all pointing to the references i created at the top of each class.
    What's wrong, and how do I fix this?

    You have infinite recursion. A method or constructor is calling itself, or is calling another method or constructor that eventually ends up calling the first one.
    If you can't find it, post code. Use [code] and [/code] tags, which you can get with the code button, to make the code readable.

  • URL rewriter problem with self.location

    The url rewriter does not seem to rewrite the url when the following syntax is used with javascript:
    onClick=self.location='url'
    Both onClick and self.location are part of the rewrite rules on the gateway.
    Any ideas?
    Regards,
    Twan Janssen

    Make sure you have provided these two rules for rewriting to happen correctly
    in 6.2
    <Attribute name="href"/>"
    <Attribute name="oNClick" type="DJS"/>
    or in 6.0 and 6.1
    <Attribute name="href"/>"
    <JSToken>oNClick</SToken>

Maybe you are looking for

  • Can't install adobe reader on u drive in window 7

    When I try to install the latest Reader, I get the error message that the U drive is assigned to a user.  The only option Adobe help offers is to rename my U drive, which is not an option.  That is a network drive in our office.  Can I select the dri

  • Video Blaster Webcam 3USB under XP

    I have found my old webcam and is now trying to get it to work with MSN Messenger 7.5. I have installed Video Blaster Webcam Drivers Version .06 but I cannot get it to work. How do I uninstall everything just installed for the webcam and how do I get

  • Unable to create working USB live medium

    I seem to have a quite common problem, at least I found a few very similar topics on the forum. However, I didn't find any that offered a solution I could use. My secondary harddisk with arch broke so I replaced it. Now I want to reinstall arch but b

  • Horizontal vs. Vertical Scrolling

    I just picked up a new iMac and it came with OS 10.9 and a Magic Mouse.  I've used a Logitech 8-Button USB mouse so I could have one button double-click, another CMD-W etc...  It was great while I had Snow Leopard. Now with Mavericks I can see the be

  • IPhone 4 and Exchange Sever 2010 Problems

    All, I'm running an iPhone 4, iPad, and Macbook Pro (10.6.4) to grab mail from our recently upgraded Exchange 2010 Mail Server. The server was moved from Exchange 2003 just this past weekend. Up until this weekend, I was able to access the exchange s