Update help property if label exists

If you really need to copy existing label property to another property for example help text (that isn’t really best practice , I know 😦  ) this code can be used.

static void KindaBestPractiseThingy(Args _args)
TreeNode fields = TreeNode::findNode(@”\Data Dictionary\Tables\<TableName>\Fields”);
TreeNodeIterator fieldsIterator;
TreeNode field;
str label;

fieldsIterator = fields.AOTiterator();
field = fieldsIterator.next();
Label = field.AOTgetProperty(#PropertyLabel);
Field.AOTsetProperty(#PropertyHelpText, Label);
field = fieldsIterator.next();


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s