This is c# code. You will have to compile it then edit some files to make it work. I recommend using the PML way for now (It's all inclusive and you can check/troubleshoot the form and code as you build it.
good day!
Yes, this is a c# code and you cannot run this on command line of PDMS Design or whatever module, try to copy the codes and open Report Designer(built-in in PDMS), modify the event, because some event control is not working, validate and Run. it works fine with me.
Fyi, this is another way of getting the value of attribute from datasource using c# code.
Ex:
//Getting the name of element - same output
string strName = Convert.ToString(GetCurrentColumnValue("FLNN"));
or
string strName = CurrentElement.Element.GetAsString(DbAttributeInstance.FLNN);
try below update:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Aveva.ApplicationFramework;
using Aveva.ApplicationFramework.Presentation;
using Aveva.Pdms.Shared;
using Aveva.Pdms.Database;
using Aveva.Pdms.Geometry;
using Aveva.Pdms.Utilities.CommandLine;