function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
GV1GV1 

Tricky Problem

I have to populate the "Change" field for the last completed process as well as the first uncompleted process.

 

This should happen as soon as the completed field is set to Yes progressively.

How can I do it.

 

Note: In my VF page only the "Enabled" records can be changed/toggled between ''yes/'no'.

 

Is it possible to do it without coding?

 

Example Situation 

Process Name   |   Sort_order__c   |   Completed   |    Change   |   

     Plan                 |             1                 |           Yes         |    Disable   |

    Design             |             2                 |           Yes        |      Enable   |

    Execute            |             3                 |            No         |      Enable   |

       Test               |             4                 |             No        |     Disable   |

        Validate       |              5                |             No        |      Disable  |

 

 

Example Situation 

Process Name   |   Sort_order__c   |   Completed   |    Change   |   

     Plan                 |             1                 |           Yes         |    Disable   |

    Design             |             2                 |            Yes         |    Disable   |

    Execute            |             3                 |           Yes        |      Enable   |

       Test               |             4                 |            No         |      Enable   |

        Validate       |              5                |             No        |      Disable  |

 

 

Example Situation 

Process Name   |   Sort_order__c   |   Completed   |    Change   |   

     Plan                 |             1                 |           Yes         |    Disable   |

    Design             |             2                 |          Yes         |    Disable   |

    Execute            |             3                 |          Yes         |    Disable   |

       Test               |             4                 |           Yes        |      Enable   |

        Validate       |              5                |            No         |      Enable   |

 

 

 

 

 

Thanks in advance

 

skodisanaskodisana
Hi,
Try formula field to populate Change field based on Completed Status.

IF(Completed='Yes',Enable,Disable)
GV1GV1

Thats incorrect. it wont set the preceeding rows value back to disabled

 

I dont think there is a way to do it using formula.