Search found 12 matches

by stasKanRich
Mon Jun 22, 2020 10:47 am
Forum: Tags
Topic: how to set the tag to an object in code ?
Replies: 3
Views: 10400

Re: how to set the tag to an object in code ?

So here is where i am at.... I feel like i am trying to milk a cow using a D9 bulldoser.....that i drive with my feet......in a pitch black cave.....while on fire... (maybe its just me) i got it to work i think... int numbs = ((Neo.ApplicationFramework.Controls.Controls.Button)valueField).DataBindin...
by stasKanRich
Mon Jun 22, 2020 8:59 am
Forum: Tags
Topic: how to set the tag to an object in code ?
Replies: 3
Views: 10400

Re: how to set the tag to an object in code ?

Hi, Thank you for the reply. I think you missed the question I was trying to ask. I dont know the tag name so i cant use globals, what i want is to find out what tag is associated or bounded to a specific object without hard coding it. i want to ask the object what tag it has and then replace it wit...
by stasKanRich
Fri Jun 19, 2020 9:46 am
Forum: Tags
Topic: how to set the tag to an object in code ?
Replies: 3
Views: 10400

how to set the tag to an object in code ?

Hi all, having an issue with finding a way to associate tags with objects in a script. getTagByName returns a GlobalDataItem representing the tag, thats the only way i found i can find tags without explicitly pointing them out in Globals.Tags... if i would want to use script to set the tag in the ob...
by stasKanRich
Fri Jun 19, 2020 8:43 am
Forum: Tags
Topic: passing tag to screens
Replies: 6
Views: 14397

Re: passing tag to screens

Hi, thanks for the idea. seems like it will work but it will stop any updates happening on the screen, i will habve to add manual hooks to all the objects i put on the screen. i was hoping i can change the pointer ref of the associated tags to the objects i use on the screen. I am having quite allot...
by stasKanRich
Wed Jun 17, 2020 8:08 am
Forum: Tags
Topic: passing tag to screens
Replies: 6
Views: 14397

Re: passing tag to screens

for example: if you have 20 rooms, each with the following controls/readings: AC, light, humidity,and lets say 10 more reading and controls. you wont want to put it all on one screen as it will be too much. and making 20 screens of the same thing is also not a solution, memory wise or work wise, esp...
by stasKanRich
Wed Jun 17, 2020 8:03 am
Forum: Tags
Topic: passing tag to screens
Replies: 6
Views: 14397

Re: passing tag to screens

Hi, Thank for the reply. I see what you are Saying, unfortunately I can not control the valves from the main screen, too many options per valve. I need to open a new popup "valve control" screen that will have all the valve options for each valve.. each valve has many actions that the user can choos...
by stasKanRich
Mon Jun 15, 2020 1:30 pm
Forum: Tags
Topic: passing tag to screens
Replies: 6
Views: 14397

passing tag to screens

Hi all, I need to create a screen to control a valve, i have many (30+) valves and they are all the same. is there an option to create once screen and pass tags to it from the button call? ie the valve control screen will have its own global variables or something that will be populated via the call...
by stasKanRich
Fri Jun 22, 2018 3:07 pm
Forum: Application Development
Topic: re-usability of buttons and verification screens question
Replies: 2
Views: 7061

Re: re-usability of buttons and verification screens questio

After forcing my way... I was able to get the Tag by "Running through the code with a chainsaw".. I get the field infos from the sender obj. Then I either look for data item or dynamic bindings in the sender (depending on obj type) I then use this data to to comb my way in Globals.Tags info fiends t...
by stasKanRich
Wed Jun 20, 2018 10:50 am
Forum: Tags
Topic: Value Change and Core.Api.DataSource.ValueChangedEventArgs
Replies: 1
Views: 9594

Value Change and Core.Api.DataSource.ValueChangedEventArgs

Hello, Looking to get the Value of the item before the change is made,ie: take this example: myObject has these values assigned to its value property and it is being changed by the user, old value = 123; new value = 432 ; ValueChangedEventArgs documentation said i can get the "old value" from e but ...
by stasKanRich
Mon Jun 18, 2018 2:26 pm
Forum: Application Development
Topic: How to limit the number of characters in a texbox
Replies: 3
Views: 7404

Re: How to limit the number of characters in a texbox

another idea. create a new tag to have the "corected version" so you will have two tags in your tags view: yourOriginalTag ( data from where ever) yourOriginalTag_corrected ( HMI tag will be changed by c#) int minNum = 12 ; int maxNum = 123 ; var origTag = Globals.Tags.yourOriginalTag ; var cappedTa...