Failed to convert string to Tag in C# (ix developer) -


ix developer software uses c# scripting , trying pass tag name string in order fetch value on button click event. while compiling gets compiled 0 error when click on button @ runtime throws

object reference not set instance of object

please me , doing wrong.

this code , log file please , link referring

namespace neo.applicationframework.generated  {      using system.windows.forms;      using system;      using system.drawing;      using neo.applicationframework.tools;      using neo.applicationframework.common.graphics.logic;      using neo.applicationframework.controls;      using neo.applicationframework.interfaces;           using neo.applicationframework.tools.opcclient;     using system.reflection;            public partial class screen1      {                void button1_click(system.object sender, system.eventargs e)        {             getglobaldataitem("value1").value = 20;                }                private globaldataitem getglobaldataitem(string propertyname)        {           propertyinfo tagproperty = typeof(neo.applicationframework.generated.tags).getproperty(propertyname);           if(tagproperty == null)              return null;           else              return tagproperty.getvalue(globals.tags, null) globaldataitem;                 }      }  }

[header microsoft windows nt 6.1.7601 service pack 1]  2016-01-16 10:06:42,374 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: platformfactorytoolcf  2016-01-16 10:06:42,402 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: featuresecuritytoolcf  2016-01-16 10:06:42,405 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: storagetoolcf  2016-01-16 10:06:42,461 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: sqlcedatabasetool  2016-01-16 10:06:42,495 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: sqlitedatabasetool  2016-01-16 10:06:42,497 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: splashservicetool  2016-01-16 10:06:42,497 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: databasetoolcf  2016-01-16 10:06:42,498 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: multilanguagetoolcf  2016-01-16 10:06:42,498 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: messageboxtoolcf  2016-01-16 10:06:42,500 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: opcclienttoolcf  2016-01-16 10:06:42,501 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: systemtagtoolcf  2016-01-16 10:06:42,504 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: storageclienttoolcf  2016-01-16 10:06:42,504 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: nonvolatiletoolcf  2016-01-16 10:06:42,505 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: projecttool  2016-01-16 10:06:42,506 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: alarmtool  2016-01-16 10:06:42,506 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: audittrailtoolcf  2016-01-16 10:06:42,517 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: backlighttool  2016-01-16 10:06:42,519 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: brandtool  2016-01-16 10:06:42,520 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: cacheddataitemtoolcf  2016-01-16 10:06:42,521 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: datetimeedittoolcf  2016-01-16 10:06:42,522 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: debugloggertool  2016-01-16 10:06:42,523 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: devicemanagertoolcf  2016-01-16 10:06:42,523 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: driverpropertiestoolcf  2016-01-16 10:06:42,524 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: emailsendertool  2016-01-16 10:06:42,525 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: licensetoolcf  2016-01-16 10:06:42,525 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: nativetoolcf  2016-01-16 10:06:42,525 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: networktoolcf  2016-01-16 10:06:42,526 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: printertoolcf  2016-01-16 10:06:42,527 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: projectinformationtoolcf  2016-01-16 10:06:42,527 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: recipetoolcf  2016-01-16 10:06:42,528 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: renderablecontroltool  2016-01-16 10:06:42,529 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: commandlinetool  2016-01-16 10:06:42,530 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: messagefiltertool  2016-01-16 10:06:42,532 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: notifierservice  2016-01-16 10:06:42,532 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: printscreentoolcf  2016-01-16 10:06:42,533 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: timertoolcf  2016-01-16 10:06:42,534 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: run  2016-01-16 10:06:42,534 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: simulationtool  2016-01-16 10:06:42,535 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: screenmanager  2016-01-16 10:06:42,537 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: securitymanagertoolcf  2016-01-16 10:06:42,537 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: objectserializationtoolcf  2016-01-16 10:06:42,538 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: smssendertool  2016-01-16 10:06:42,538 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: storagecachetool  2016-01-16 10:06:42,538 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: structuredtypestoolcf  2016-01-16 10:06:42,540 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: symbolservice  2016-01-16 10:06:42,542 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: systeminformationtoolcf  2016-01-16 10:06:42,542 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: keypanelconfigtoolcf  2016-01-16 10:06:42,542 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: scopetoolcf  2016-01-16 10:06:42,543 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: timeinformationtoolcf  2016-01-16 10:06:42,543 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: trenddatatoolcf  2016-01-16 10:06:42,543 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: webserverconfigtoolcf  2016-01-16 10:06:42,785 [1] info  behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex [(null)] - system.dllnotfoundexception: unable load dll 'behwapi.dll': specified module not found. (exception hresult: 0x8007007e)     @ behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex.behwapi_isoptimus()     @ behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex.isoptimus()  2016-01-16 10:06:42,789 [1] info  neo.applicationframework.common.runtime.globalsbase [(null)] - version: 2.20.2296.0  2016-01-16 10:06:42,796 [1] info  behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex [(null)] - system.dllnotfoundexception: unable load dll 'behwapi.dll': specified module not found. (exception hresult: 0x8007007e)     @ behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex.behwapi_isoptimus()     @ behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex.isoptimus()  2016-01-16 10:06:42,805 [1] info  core.engine.toolmanager.private.toolmgrcf [(null)] - initializing toolmanager  2016-01-16 10:06:42,882 [1] info  behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex [(null)] - system.dllnotfoundexception: unable load dll 'behwapi.dll': specified module not found. (exception hresult: 0x8007007e)     @ behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex.behwapi_isoptimus()     @ behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex.isoptimus()  2016-01-16 10:06:43,422 [1] info  neo.applicationframework.storage.providers.commondatabase.commondatabasebase [(null)] - database: integrity check started.  2016-01-16 10:06:43,426 [1] info  neo.applicationframework.storage.providers.commondatabase.commondatabasebase [(null)] - database: integrity check finished without errors.  2016-01-16 10:06:43,430 [1] info  neo.applicationframework.storage.providers.commondatabase.commondatabasebase [(null)] - database: database created.  2016-01-16 10:06:43,578 [1] info  neo.applicationframework.storage.providers.commondatabase.commondatabasebase [(null)] - database: cleanup started.  2016-01-16 10:06:43,632 [1] info  neo.applicationframework.storage.providers.commondatabase.commondatabasebase [(null)] - database: cleanup recovered 12480 bytes.  2016-01-16 10:06:43,764 [7] info  neo.applicationframework.storage.providers.commondatabase.commondatabasebase [(null)] - nonvolatiledatabase: integrity check started.  2016-01-16 10:06:43,768 [7] info  neo.applicationframework.storage.providers.commondatabase.commondatabasebase [(null)] - nonvolatiledatabase: integrity check finished without errors.  2016-01-16 10:06:43,769 [7] info  neo.applicationframework.storage.providers.commondatabase.commondatabasebase [(null)] - nonvolatiledatabase: database created.  2016-01-16 10:06:45,238 [1] info  neo.applicationframework.tools.reporting.reports [(null)] - loading support reporting type of flexcel.xlsadapter.xlsfile.  2016-01-16 10:06:47,412 [1] error neo.applicationframework.tools.backlight.backlightcontroller [(null)] - failed find registrykey hkey_current_user\controlpanel\backlight  2016-01-16 10:06:47,412 [1] error neo.applicationframework.tools.backlight.backlightcontroller [(null)] - failed find registrykey hkey_current_user\controlpanel\backlight  2016-01-16 10:06:47,413 [1] error neo.applicationframework.tools.backlight.backlightcontroller [(null)] - failed find registrykey hkey_current_user\controlpanel\backlight  2016-01-16 10:06:47,413 [1] error neo.applicationframework.tools.backlight.backlightcontroller [(null)] - failed find registrykey hkey_current_user\controlpanel\backlight  2016-01-16 10:06:47,414 [1] error neo.applicationframework.tools.backlight.backlightcontroller [(null)] - failed find registrykey hkey_current_user\controlpanel\backlight  [header microsoft windows nt 6.1.7601 service pack 1]  2016-01-16 10:49:27,323 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: platformfactorytoolcf  2016-01-16 10:49:27,332 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: featuresecuritytoolcf  2016-01-16 10:49:27,333 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: storagetoolcf  2016-01-16 10:49:27,354 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: sqlcedatabasetool  2016-01-16 10:49:27,370 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: sqlitedatabasetool  2016-01-16 10:49:27,371 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: splashservicetool  2016-01-16 10:49:27,371 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: databasetoolcf  2016-01-16 10:49:27,371 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: multilanguagetoolcf  2016-01-16 10:49:27,371 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: messageboxtoolcf  2016-01-16 10:49:27,372 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: opcclienttoolcf  2016-01-16 10:49:27,372 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: systemtagtoolcf  2016-01-16 10:49:27,373 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: storageclienttoolcf  2016-01-16 10:49:27,373 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: nonvolatiletoolcf  2016-01-16 10:49:27,374 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: projecttool  2016-01-16 10:49:27,374 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: alarmtool  2016-01-16 10:49:27,375 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: audittrailtoolcf  2016-01-16 10:49:27,378 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: backlighttool  2016-01-16 10:49:27,379 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: brandtool  2016-01-16 10:49:27,379 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: cacheddataitemtoolcf  2016-01-16 10:49:27,380 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: datetimeedittoolcf  2016-01-16 10:49:27,380 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: debugloggertool  2016-01-16 10:49:27,380 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: devicemanagertoolcf  2016-01-16 10:49:27,380 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: driverpropertiestoolcf  2016-01-16 10:49:27,380 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: emailsendertool  2016-01-16 10:49:27,381 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: licensetoolcf  2016-01-16 10:49:27,381 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: nativetoolcf  2016-01-16 10:49:27,381 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: networktoolcf  2016-01-16 10:49:27,382 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: printertoolcf  2016-01-16 10:49:27,382 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: projectinformationtoolcf  2016-01-16 10:49:27,382 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: recipetoolcf  2016-01-16 10:49:27,383 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: renderablecontroltool  2016-01-16 10:49:27,383 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: commandlinetool  2016-01-16 10:49:27,383 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: messagefiltertool  2016-01-16 10:49:27,385 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: notifierservice  2016-01-16 10:49:27,385 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: printscreentoolcf  2016-01-16 10:49:27,385 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: timertoolcf  2016-01-16 10:49:27,386 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: run  2016-01-16 10:49:27,386 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: simulationtool  2016-01-16 10:49:27,386 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: screenmanager  2016-01-16 10:49:27,387 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: securitymanagertoolcf  2016-01-16 10:49:27,387 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: objectserializationtoolcf  2016-01-16 10:49:27,387 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: smssendertool  2016-01-16 10:49:27,388 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: storagecachetool  2016-01-16 10:49:27,388 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: structuredtypestoolcf  2016-01-16 10:49:27,389 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: symbolservice  2016-01-16 10:49:27,389 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: systeminformationtoolcf  2016-01-16 10:49:27,389 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: keypanelconfigtoolcf  2016-01-16 10:49:27,390 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: scopetoolcf  2016-01-16 10:49:27,390 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: timeinformationtoolcf  2016-01-16 10:49:27,390 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: trenddatatoolcf  2016-01-16 10:49:27,390 [1] info  core.engine.toolmanager.private.tools [(null)] - loaded tool: webserverconfigtoolcf  2016-01-16 10:49:27,635 [1] info  behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex [(null)] - system.dllnotfoundexception: unable load dll 'behwapi.dll': specified module not found. (exception hresult: 0x8007007e)     @ behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex.behwapi_isoptimus()     @ behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex.isoptimus()  2016-01-16 10:49:27,637 [1] info  neo.applicationframework.common.runtime.globalsbase [(null)] - version: 2.20.2296.0  2016-01-16 10:49:27,643 [1] info  behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex [(null)] - system.dllnotfoundexception: unable load dll 'behwapi.dll': specified module not found. (exception hresult: 0x8007007e)     @ behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex.behwapi_isoptimus()     @ behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex.isoptimus()  2016-01-16 10:49:27,650 [1] info  core.engine.toolmanager.private.toolmgrcf [(null)] - initializing toolmanager  2016-01-16 10:49:27,678 [1] info  behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex [(null)] - system.dllnotfoundexception: unable load dll 'behwapi.dll': specified module not found. (exception hresult: 0x8007007e)     @ behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex.behwapi_isoptimus()     @ behwapiprovider.legacytobeincorporatedwithinibehwapiinthelongrun.behwapiex.isoptimus()  2016-01-16 10:49:27,856 [1] info  neo.applicationframework.storage.providers.commondatabase.commondatabasebase [(null)] - database: integrity check started.  2016-01-16 10:49:27,857 [1] info  neo.applicationframework.storage.providers.commondatabase.commondatabasebase [(null)] - database: integrity check finished without errors.  2016-01-16 10:49:27,858 [1] info  neo.applicationframework.storage.providers.commondatabase.commondatabasebase [(null)] - database: database created.  2016-01-16 10:49:27,910 [1] info  neo.applicationframework.storage.providers.commondatabase.commondatabasebase [(null)] - database: cleanup started.  2016-01-16 10:49:27,922 [1] info  neo.applicationframework.storage.providers.commondatabase.commondatabasebase [(null)] - database: cleanup recovered 12480 bytes.  2016-01-16 10:49:27,955 [7] info  neo.applicationframework.storage.providers.commondatabase.commondatabasebase [(null)] - nonvolatiledatabase: integrity check started.  2016-01-16 10:49:27,955 [7] info  neo.applicationframework.storage.providers.commondatabase.commondatabasebase [(null)] - nonvolatiledatabase: integrity check finished without errors.  2016-01-16 10:49:27,956 [7] info  neo.applicationframework.storage.providers.commondatabase.commondatabasebase [(null)] - nonvolatiledatabase: database created.  2016-01-16 10:49:28,218 [1] info  neo.applicationframework.tools.reporting.reports [(null)] - loading support reporting type of flexcel.xlsadapter.xlsfile.  2016-01-16 10:49:30,324 [1] fatal neo.applicationframework.common.runtime.globalsbase [(null)] - unhandled exception causing shutdown.  system.nullreferenceexception: object reference not set instance of object.     @ neo.applicationframework.generated.screen1.button1_click(object sender, eventargs e) in c:\users\admin\desktop\report_template\screen1.script.cs:line 19     @ neo.applicationframework.controls.script.buttoncfadapter.fireclick()     @ neo.applicationframework.controls.script.buttoncfadapter.y(object a_0, eventargs a_1)     @ neo.applicationframework.controls.controls.baseobject.fireclick()     @ neo.applicationframework.controls.controls.baseobject.onclick(mouseeventargs e)     @ neo.applicationframework.controls.controls.form.onmouseup(mouseeventargs e)     @ system.windows.forms.control.wmmouseup(message& m, mousebuttons button, int32 clicks)     @ system.windows.forms.control.wndproc(message& m)     @ system.windows.forms.scrollablecontrol.wndproc(message& m)     @ system.windows.forms.form.wndproc(message& m)     @ system.windows.forms.control.controlnativewindow.onmessage(message& m)     @ system.windows.forms.control.controlnativewindow.wndproc(message& m)     @ system.windows.forms.nativewindow.debuggablecallback(intptr hwnd, int32 msg, intptr wparam, intptr lparam)     @ system.windows.forms.unsafenativemethods.dispatchmessagew(msg& msg)     @ system.windows.forms.application.componentmanager.system.windows.forms.unsafenativemethods.imsocomponentmanager.fpushmessageloop(intptr dwcomponentid, int32 reason, int32 pvloopdata)     @ system.windows.forms.application.threadcontext.runmessageloopinner(int32 reason, applicationcontext context)     @ system.windows.forms.application.threadcontext.runmessageloop(int32 reason, applicationcontext context)     @ system.windows.forms.application.run(form mainform)     @ neo.applicationframework.common.utilities.neoapplication.run(type screentype)     @ neo.applicationframework.common.runtime.globalsbase.go(string executingassemblyname, string executablepath, string[] args, string[] designerstocreate, string[] preloadscreenlist, func`1 startupobjectprovider)  2016-01-16 10:49:31,623 [1] fatal neo.applicationframework.common.runtime.globalsbase [(null)] - unhandled exception causing shutdown.  system.nullreferenceexception: object reference not set instance of object.     @ neo.applicationframework.generated.screen1.button1_click(object sender, eventargs e) in c:\users\admin\desktop\report_template\screen1.script.cs:line 19     @ neo.applicationframework.controls.script.buttoncfadapter.fireclick()     @ neo.applicationframework.controls.script.buttoncfadapter.y(object a_0, eventargs a_1)     @ neo.applicationframework.controls.controls.baseobject.fireclick()     @ neo.applicationframework.controls.controls.baseobject.onclick(mouseeventargs e)     @ neo.applicationframework.controls.controls.form.onmouseup(mouseeventargs e)     @ system.windows.forms.control.wmmouseup(message& m, mousebuttons button, int32 clicks)     @ system.windows.forms.control.wndproc(message& m)     @ system.windows.forms.scrollablecontrol.wndproc(message& m)     @ system.windows.forms.form.wndproc(message& m)     @ system.windows.forms.control.controlnativewindow.onmessage(message& m)     @ system.windows.forms.control.controlnativewindow.wndproc(message& m)     @ system.windows.forms.nativewindow.debuggablecallback(intptr hwnd, int32 msg, intptr wparam, intptr lparam)     @ system.windows.forms.unsafenativemethods.dispatchmessagew(msg& msg)     @ system.windows.forms.application.componentmanager.system.windows.forms.unsafenativemethods.imsocomponentmanager.fpushmessageloop(intptr dwcomponentid, int32 reason, int32 pvloopdata)     @ system.windows.forms.application.threadcontext.runmessageloopinner(int32 reason, applicationcontext context)     @ system.windows.forms.application.threadcontext.runmessageloop(int32 reason, applicationcontext context)     @ system.windows.forms.application.run(form mainform)     @ neo.applicationframework.common.utilities.neoapplication.run(type screentype)     @ neo.applicationframework.common.runtime.globalsbase.go(string executingassemblyname, string executablepath, string[] args, string[] designerstocreate, string[] preloadscreenlist, func`1 startupobjectprovider)     @ neo.applicationframework.generated.globals.main(string[] args) in c:\users\admin\desktop\report_template\buildfiles\report_template.cs:line 217

a bit old question happened stumble on, here's other's might come across this.

i'm not sure version of ix developer op has used, @ least in 2.20 tags stored public fields, not properties. op's code work switching property searching field search:

private globaldataitem getglobaldataitem(string fieldname)   {      fieldinfo tagfield = typeof(neo.applicationframework.generated.tags).getfield(fieldname);      if(tagfield == null)         return null;      else         return tagfield .getvalue(globals.tags) globaldataitem;            } 

however in ix developer 2.20 tags no longer globaldataitems stored lightweighttags , cannot tell type tag before project built. tags-class (or rather globalcontroller, it's parent class does) stores tags in lists easy through linq:

public variantvalue gettagvalue(string tagname)     {         globaldataitem normaltag = (globaldataitem)globals.tags.globaldataitems.firstordefault(p => p.name == tagname);         if (normaltag != null)         {             return normaltag.value;         }          lightweighttag lighttag = (lightweighttag)globals.tags.lightweighttags.firstordefault(p => p.name == tagname);         if (lighttag  != null)         {             return lighttag.value;         }          return null;     } 

you can find stuff out installing visual studio express , opening project via ix developer's debug. there can find e.g. globaldataitem class , every other class beijer hasn't bothered documentation for.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -