You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How make a field uneditable/readonly on click of a button

in Sales 2 comments

Summary: We have a required where if party data is published through button, relationship data should be uneditable or make it readonly on click.


Content (required): Account Relationships.


Version (include the version you are using, if applicable): 23D


Code Snippet (add any code snippets that support your topic, if applicable): Added code on AfterTransactionPosted, but not working.

if(PublishRemarks_c == 'Published to Registry')

{

def accCollection = Accounts_Accounts_CO_Rel_Tgt;

while(accCollection.hasNext())

{

 def accCollectionRow = accCollection.next();

 def accRelCollection = accCollectionRow?.AccountRelationshipsCollection_c

 while(accRelCollection.hasNext())

 {

  def accRelCollectionRow = accRelCollection.next();

  if(accRelCollectionRow.RelationEndDate_c != null)

  {

   return false;

  }

  if(accRelCollectionRow.RelationType_c != null)

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!