Advanced Post-Search Relations Help

  • 40 Views
  • Last Post yesterday
ElliotG posted this 2 weeks ago

Hi Everyone,

I want to add a piece of code in the advanced post-search relations that does the following.

If the field in the RG IsNull, fill in the information with the instance above it.  This is what I have so far but I am afraid I'm not coding it correctly/understanding the field.

if Regular.PageGroup1.Fields.Consumption.CurrentInstance.StartDate.IsNull then

{

Regular.PageGroup1.Fields.Consumption.CurrentInstance.StartDate.Value = Regular.PageGroup1.Fields.Consumption.Instance(1).StartDate.Value;

 

}

I'm getting an error "Left operand of '=' must be changeable"

Any help would be awesome!! thanks!!


Order By: Standard | Newest | Votes
hawkeye69 posted this 2 weeks ago

Alright, so I think you are in FlexiLayout Studio, yes? As a general guideline these kinds of operations are better suited for Project Setup, not FLS. You would perform this operation in the project, after recognition has executed. As I hint, I think you would want to add a Workflow script stage using an advanced workflow. You can perform editing logic there, especially if you end up doing something like adding an instance to a repeating group. I hope this gets you started in the right direction.

Adrian

ElliotG posted this yesterday

Thanks Adrian,

Yes I was working in FLS.  You are correct this would work better in the Doc Def.  I have been able to add a lot scripts to help with normalization, autopopulate fields based on other fields, etc, but have not been able to do so with tables (RG's).  Is there is an example script somewhere (using C#)?.  I've been looking around here:

https://help.abbyy.com/en-us/flexicapture/12/developer/irulecontext
https://help.abbyy.com/en-us/flexicapture/12/developer/idataset

But haven't been able to execute properly yet.

Thanks!
Elliot

Close