Framework:GetElementProperty: Difference between revisions

From CoPlanner 11
Jump to navigationJump to search
Created page with "==Function== GetElementProperty(<Dimension>,<ElementID>,<PropertyName>) {| cellspacing="1" cellpadding="3" width={{{breite|80%}}} border="1" |- | sty..."
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
==[[Framework:Functions|Function]]==
==[[Framework:Functions|Function]]==


GetElementProperty(<Dimension>,<ElementID>,<PropertyName>)
<span {{CoPFormel}}>GetElementProperty(<Dimension>,<ElementID>,<PropertyName>)</span>


 
{| class="wikitable" width="80%"
{| cellspacing="1" cellpadding="3" width={{{breite|80%}}}  border="1"
|-{{Tabellentitel}}
|-
| Parameter  
| style=background-color:#f6f6f6 |'''Parameter'''
| Description
| style=background-color:#f6f6f6 |'''Description'''
|-
|-
|Dimension
|Dimension
Line 18: Line 17:
|Name of the attribute to be read
|Name of the attribute to be read
|}
|}
This function belongs to [[:Category:Functions_-_client-side|client-side functions]].


==Result==
==Result==
Returns the value of the attribute.
Returns the value of the attribute.


==Example==
==Example==
GetElementProperty(Products,2,COPSYS_PID)<br>
<span {{CoPFormel}}>GetElementProperty(Products,2,COPSYS_PID)</span><br>
Result: 1
Result: 1
=Access to a table Lookup=
<span {{CoPFormel}}>'GetElementProperty(Lookup table, [Alias],Fieldname)'</span>
(Single quotation marks are necessary for the expression)
{| class="wikitable" width={{{breite|80%}}}
|- {{Tabellentitel}}
| Parameter
| Description
|-
|Lookup table
|Name of the Lookup table
|-
|[Alias]
|Alias of the field in the current table
|-
|Fieldname
|Name of the field at the lookup table which should be displayed
|}




__NOEDITSECTION__  
__NOEDITSECTION__  


[[Category:Functions|GetElementProperty]]
[[Category:Functions - client-side|GetElementProperty]]
[[Category:Functions - client-side|GetElementProperty]]
[[de:Framework:GetElementProperty]]
[[de:Framework:GetElementProperty]]

Latest revision as of 09:47, 7 May 2013

Function

GetElementProperty(<Dimension>,<ElementID>,<PropertyName>)

Parameter Description
Dimension Name of dimension
ElementID ID of the element
PropertyName Name of the attribute to be read

This function belongs to client-side functions.

Result

Returns the value of the attribute.

Example

GetElementProperty(Products,2,COPSYS_PID)
Result: 1

Access to a table Lookup

'GetElementProperty(Lookup table, [Alias],Fieldname)'

(Single quotation marks are necessary for the expression)


Parameter Description
Lookup table Name of the Lookup table
[Alias] Alias of the field in the current table
Fieldname Name of the field at the lookup table which should be displayed