Updating Batch comments

  • 30 Views
  • Last Post 2 weeks ago
PhinkTad posted this 3 weeks ago

 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 2 weeks ago

hey!

 

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

Attached Files

PhinkTad posted this 2 weeks ago

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 2 weeks ago

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