Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c838a79
commit ab56faf
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<AML> | ||
<Item type="Method" action="add" id="DF3EE005E1CF4AB9BDF4AA7FF3328BE5"> | ||
<comments>client method for testing "Run Client Method" action in method editor</comments> | ||
<id keyed_name="test client method action" type="Method">DF3EE005E1CF4AB9BDF4AA7FF3328BE5</id> | ||
<method_code> | ||
var corpTZ = this.newItem("Variable","get"); | ||
corpTZ.setProperty("name","CorporateTimeZone"); | ||
corpTZ = corpTZ.apply(); | ||
|
||
if (corpTZ.isError()) | ||
return alert(corpTZ.getErrorString()); | ||
|
||
return corpTZ.getProperty("value","no time zone set"); | ||
</method_code> | ||
<method_type>JavaScript</method_type> | ||
<name>test client method action</name> | ||
</Item> | ||
<Item type="Variable" action="add"> | ||
<name>CorporateTimeZone</name> | ||
<value>Eastern Standard Time</value> | ||
</Item> | ||
</AML> |