It is currently Wed Apr 23, 2014 3:04 am




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
 getProperty("name") for a component 
Author Message
General
General

Joined: Tue Feb 24, 2009 1:30 pm
Posts: 887
Location: Calgary
Post getProperty("name") for a component
Within a Script Module I would like to be able to retrieve the current value for a "named" property.

ie: The ability to do this
def some_module(device, prop):
window = getWindow("Window name")
_device = window.rootContainer.getComponent(device)
_property = _device.getProperty(prop)


Mon Dec 07, 2009 1:01 pm
Profile WWW
Moderator
Moderator

Joined: Sun Apr 02, 2006 2:46 pm
Posts: 4016
Location: Sacramento, CA
Post Re: getProperty("name") for a component  Topic is solved
You can, its called getPropertyValue(propName)

This is documented in the user manual - scroll down to the bottom of most components that support dynamic properties to find the scripting functions (for example, the Text Field)

_________________
Carl Gould
Software Development
Inductive Automation


Wed Dec 09, 2009 8:07 pm
Profile WWW
General
General

Joined: Tue Feb 24, 2009 1:30 pm
Posts: 887
Location: Calgary
Post Re: getProperty("name") for a component
Cool,

Thanks


Thu Dec 10, 2009 10:21 am
Profile WWW
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: