You are viewing limited content. For full access, please sign in.

Question

Question

Laserfiche Connector Configuration for Multi-Value Fields

asked on June 20, 2016 Show version history

Hello,

 

Is it possible to configure Connector to pull  values from a grid and write them to a multi-value field in a LF template?  I am testing functionality and cannot figure out how to do this.  I am attempting to pull all values for Company ID, Account #, Job, etc. in the attached file.  Thank you in advance!

Terri

Connector Question.PNG
0 0

Answer

SELECTED ANSWER
replied on June 20, 2016 Show version history

Hi Terri,

1. You can configure a multi-value token for the controls you want, and then assign the multi-value token to the multi-value field. Currently, to configure a multi-value token does not allow on Wizard. There is a workaround method to configure it:

(a) Create a profile, choose action and define tokens for the controls you want. On wizard, it requires the unique name for tokens.

(b) After creating profile, on Laserfiche Connector configuration dialog, open the profile and specify the same name for the tokens. E.g. specify %(ProjectComponent) for two defined tokens. And then it will be a multi-value token.

            <StepDef type="ReadControl">
              <Attributes />
              <Elements>
                <Element name="%(ProjectComponent)">
                  <Attributes>
                    <Attribute name="Condition" value="/Root[1]/Pane[1]" />
                    <Attribute name="Javascript" value="return $.map($('#Project').find('option:selected'), function(i){return $(i).val();}).join(',');" />
                    <Attribute name="Property" value="Value" />
                  </Attributes>
                  <Children />
                </Element>
              </Elements>
            </StepDef>


            <StepDef type="ReadControl">
              <Attributes />
              <Elements>
                <Element name="%(ProjectComponent)">
                  <Attributes>
                    <Attribute name="Condition" value="/Root[1]/Pane[1]" />
                    <Attribute name="Javascript" value="return $.map($('#Component').find('option:selected'), function(i){return $(i).val();}).join(',');" />
                    <Attribute name="Property" value="Value" />
                  </Attributes>
                  <Children />
                </Element>
              </Elements>
            </StepDef>

2. If you only want to use each token for each control instead of multi-value token for the controls you want, you can  refer to Field value on help document to assign the tokens to multi-value fields. It applies most of Laserfiche Connector actions except "Scan documents or pages into Web Access" action. "Scan documents or pages into Web Access" action can support configure multi-value fields on wizard, it uses a | character to separate multiple values.

Thanks,

Qinmei

 

 

2 0

Replies

replied on June 22, 2016

Thank you Qinmei- This worked perfectly...

 

0 0
replied on June 23, 2016 Show version history

Is there a way to pass a default value if the field is blank?  I need the number of  line items to be the same even if one field was not required - so I would like the value "empty" if null.

0 0
replied on June 26, 2016

Hi Terri,

 

Do you mean that: You have a multi-value fields which you want to keep it same number of the value for the multi-value field even if the control(e.g. Account*) does not have value?

 

If you want to do like this, I think Laserfiche Server does not support that and Laserfiche Connector does not support pass a default value to the control.

 

Thanks,

Qinmei

0 0
replied on June 27, 2016 Show version history

Yes, I was hoping that in the xml I could do a condition that would pass a default value if the Connector's target was null or the actual value if it exists.

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.