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

rabiyajamal45
Posts: 1
Joined: Thu Feb 08, 2018 8:21 am

Re: How can i convert String into Code?

Postby rabiyajamal45 » Thu Feb 08, 2018 10:24 am

Hey ah5ki5 , are you solve your issue. If yes then describe here. I'm also looking for the same.


Return to “Polarion SVN Web Client”

Who is online

Users browsing this forum: No registered users and 4 guests