parepalli - Friday, June 21, 2013 3:03 AM:
Is there any way in which we can use a string defined in a method in AML in the same method.
Thanks in advance
newcomer - Friday, June 21, 2013 3:15 AM:
sure:
for c#:
string AML = "<AML>...</AML>";
Item result = innovator.applyAML(AML);
parepalli - Friday, June 21, 2013 3:38 AM:
Thanks for the quick response. I meant using the string defined to set property of an item in AML.
newcomer - Friday, June 21, 2013 4:10 AM:
The AML should look like this:
<AML><Item type="yourType" action="edit" >
<propertyName>String</propertyName>
</Item></AML>
For more information check out the programmers guide: http://www.arascorp.com/support/documentation/
parepalli - Friday, June 21, 2013 4:22 AM:
string name = this.getProperty("name","defaultValue");
<AML><Item type="yourType" action="edit" >
<propertyName>name</propertyName>
</Item></AML>
If I use like this, the AML is considering name as just name not the string associated with it. I meant to ask about this problem. Thank you very much for the response.
vasant - Friday, June 21, 2013 4:44 AM:
Hi Parepalli,
Use it like:
string name = this.getProperty("name","defaultValue");
string amlString="<AML><Item type='yourType' action='edit' where="id='"+yourItemId+"'" >"+
"<propertyName>"+name+"</propertyName>"+
"</Item></AML>";
Item res=inn.applyAML(amlString);
Thanks- Vasant
parepalli - Monday, June 24, 2013 4:46 AM:
@ newcomer and Vasanth
thank you so much. It's working