Updating Batch comments

  • 60 Views
  • Last Post 05 November 2018
PhinkTad posted this 30 October 2018

 Is it possible to update the batch comment or any other registration parameter by clicking a checkbox inside a document ?

I have a rule in a checkbox field 

if(Context.Field("UpdateComment").Text == "Yes")

{

Context.Document.Batch.Comment = "some comment";

}

 I get the error that the comment is read-only as shown in the attached screenshot .

Attached Files

Order By: Standard | Newest | Votes
Melisa Uy posted this 01 November 2018

hey!

 

you just need to update the field's readonly property. see attached :)

Attached Files

PhinkTad posted this 01 November 2018

Hi Melisa,

I already have the read-only option of the field unchecked.

I'm not modifying the value of the field. I'm trying to modify the comment of the batch.
Seems like I can only modify Batch comment through a workflow stage.

 

  • Liked by
  • Melisa Uy
Melisa Uy posted this 05 November 2018

oh sorry I read it wrongly.

 

Ok I havent tried this one, but lemme check.

I think we also need to do this for our next project

Close