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

Question

Question

list type field has associated data from an external table?

SDK
asked on January 5, 2018 Show version history

there is some way of knowing by means of sdk if a list type field has associated data from an external table?

0 0

Answer

SELECTED ANSWER
replied on January 5, 2018

This is a property of the template not of the field. See "HasFormLogicRules" in the TemplateInfo in your SDK documentation.

1 0
replied on January 5, 2018

Thanks Miruna, i already searched for information about it and I achieved what I wanted to do.

 

public bool ValidDynamicField(String templateName, String fieldName)
        {

            bool isDynamic = false;

            TemplateInfo myLFTemp = Template.GetInfo(templateName, mySess);

            if (myLFTemp.HasFormLogicRules()) 
            {
                
                FormLogicRuleInfo[] FormLogicRules = myLFTemp.GetFormLogicRules();

                foreach (FormLogicRuleInfo dynamicField in FormLogicRules)
                {
                    FieldInfo tfield = Field.GetInfo(dynamicField.FieldId, mySess); 

                    if (tfield.Name == fieldName)
                    {
                        isDynamic = true;
                    }
                }
            }

            return isDynamic;
        }

 

2 0

Replies

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

Sign in to reply to this post.