How can i convert String into Code?

Former SVN Browser
ah5ki5
Posts: 1
Joined: Tue Feb 16, 2016 11:52 am

How can i convert String into Code?

Postby ah5ki5 » Tue Feb 16, 2016 12:06 pm

I write methods in java for example

public Object load6(){
String calendar="";
String leerzeichen=" ";
calendar = calendar +"#set($monatEnd= 30)";
return calendar;
}


and than i load this java file to polarion.
I call the method
$resource.load6()

the problem: i get the return value in String and not in a code.

if i do the same with this code and this is function:
public Object load5(){
String calendar="";
String leerzeichen=" ";
calendar = calendar + "project.id:"+projectName+" AND type:resource AND status:active";
return calendar;
}
i call the method:
#set($tagjan = $resource.load4("MFA2HybridPT"))
#set($resource= $trackerService.queryWorkItems($tagjan,id))

#foreach($x in $resource)
<option>$x.getTitle()</option>
#end
this code is function.

But I want to convert the whole code string to code. For example "#set(..)" --> polarion code
In summary, all the strings are to be recognized in Polarion as code.
is there any results in polarion?

Thank you

Return to “Polarion SVN Web Client”

Who is online

Users browsing this forum: No registered users and 2 guests