Search found 11 matches

by adbarads
Wed Sep 26, 2018 4:06 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Edit Source Code of 'Page Parameters - Block: Parameters' Widget
Replies: 8
Views: 1178

Re: Edit Source Code of 'Page Parameters - Block: Parameters' Widget

hrmm.... this is not going to work with enumerations. I had a similar case with me. what I did was instead do this: instead of using the enum page parameter to fill the values in the drop down select menu. 1) I created a SQL query in the page script that did the exact same thing as the enum. 2) then...
by adbarads
Wed Sep 26, 2018 6:39 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Edit Source Code of 'Page Parameters - Block: Parameters' Widget
Replies: 8
Views: 1178

Re: Edit Source Code of 'Page Parameters - Block: Parameters' Widget

Hi Steff, So, jquery is just a javascript library that allows you to do javascript but easier. You technically do not need jquery at all and can do everything I suggested with pure javascript. Or import your own frontend library, since you're not as familiar with jquery. Here is an example of what I...
by adbarads
Wed Sep 26, 2018 6:19 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: How to use lucene query in live report (live doc)
Replies: 2
Views: 606

Re: How to use lucene query in live report (live doc)

thanks, this was exactly what I needed. full solution for anyone else that may need it: #set($workitems = $trackerService.queryWorkItems("project.id:some_proj_id AND type:testcase AND HAS_VALUE:custom_field","id")) can also do this for an array count: $trackerService.queryWorkIte...
by adbarads
Wed Sep 26, 2018 5:35 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Edit Source Code of 'Page Parameters - Block: Parameters' Widget
Replies: 8
Views: 1178

Re: Edit Source Code of 'Page Parameters - Block: Parameters' Widget

Hi SteffPoint, So, I can explain to you a work around, because that is what I had to do for my reports. 1) Create all the page parameter you need. 2) Proceed to add the page parameters widget block to your page 3) Then in a separate script block widget, use jquery to hide all the elements in the pag...
by adbarads
Tue Sep 25, 2018 3:33 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Edit Source Code of 'Page Parameters - Block: Parameters' Widget
Replies: 8
Views: 1178

Re: Edit Source Code of 'Page Parameters - Block: Parameters' Widget

are you sure this can even be done? I didn't think it was possible to edit/create your own page parameters block using the script block. I'm also curious as well, how to solve this issue. Say this is doable, how would you obtain the page parameters to be displayed onto your script block? and also ho...
by adbarads
Tue Sep 25, 2018 3:20 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: How to use lucene query in live report (live doc)
Replies: 2
Views: 606

How to use lucene query in live report (live doc)

So, I'm pretty familiar with using SQL in a live report. And putting the SQL query in a script block. then using $sqlService.executeQuery() I was curious if I can call a Lucene query instead, and have that returned like in an array or some other fashion like from a typical SQL query. I am looking to...
by adbarads
Fri Dec 22, 2017 6:28 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: SDK getCustomFieldTypes returns empty objects
Replies: 7
Views: 3072

Re: SDK getCustomFieldTypes returns empty objects

I am having the same issue. When the custom field I have is empty. When I do a getCustomField() it returns null. I don't know how to create the object and go ahead and use the setCustomField(). That method appears to take the key for the custom field and the object. But the object is not returned fr...
by adbarads
Tue Dec 19, 2017 4:48 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: How to do math with decimals in Polarion
Replies: 2
Views: 1514

How to do math with decimals in Polarion

I am having completing some basic match operations using the Velocity Templating Language in Polarion ALM. I was able to do the following with success: $math.toInteger($requirement.get(3)) $requirement.get(3) is a Long number value. Doing that converts it to the integer value. So seeing that I have ...
by adbarads
Tue Dec 19, 2017 3:46 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: How to do math with decimals in Polarion
Replies: 1
Views: 1093

How to do math with decimals in Polarion

Hi, I am creating a Wiki report in Polarion using the Velocity Templating Language. While doing some basic scripting, I am running into this issue: #set($verify_passed = (1/3) * (2/3)) This makes $verify_passed = 0 I am trying to find ways to deal with the decimals. It is treating everything as an i...
by adbarads
Wed Nov 29, 2017 12:59 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Polarion SDK API getWorkItem()
Replies: 1
Views: 1240

Re: Polarion SDK API getWorkItem()

I'll answer my own question, as it took my a while to find the answer

$trackerService.getWorkItem()
by adbarads
Mon Nov 20, 2017 5:02 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: Polarion SDK API getWorkItem()
Replies: 1
Views: 1240

Polarion SDK API getWorkItem()

I have a question about the Polarion SDK API I am in a Project -> Documents and Pages -> Testing. From there I created a new wiki article. In the editing of the article I did the following: 1) created a sql query using: #set ($sql_result = $sqlService.executeQuery("<sql query here>") The s...

Go to advanced search