Can you change the data type of a customized defect field in Quality Center after it has been created? - hp-quality-center

We are using HP Quality Center and have created several custom defect fields. When they were initially created many of the fields to alpha numeric and now want them to be purely numeric.
Is it possible to change the data type of these fields after they have been created and populated? We can clear the values in these fields if needed to do this conversion if it's possible.
Anyone know a process to update these fields from within QC?

Yes you can.
You should transform values in these fields to correct format, or clear them before changing type.
If you don't values will be truncated.

Related

How to dynamically track the the values of form fields?

I want to track the field values after submitting a form in gtm. I tried creating dataLayer variable, like
"gtm.element.3.value". But here '3' which is the index value of an input field is static. I want it dynamic so that I don't have to create multiple variables. Do we have to create multiple dataLayer variables of each index value, like gtm.element.0.value, gtm.element.1.value, gtm.element.2.value, etc. ?
Basically I want to make this process dynamic instead of adding the index value statically. Is it possible in GTM?
That completely depends on the format in which your form values are pushed to the dataLayer. Normally, we would ask front-end to push meaningfully named values to the DL to then use in GTM.
From where you're at, you can just make one custom JS variable and parse your elements as you wish, adding the dynamicity you require. In production, however, it's not a good practice to hack things like that. If they add or remove a field in your form, the indexes will shift and your data will suddenly change without notice. This can easily lead to wrong conclusions on the data consumption side.

Display label based on, field on one data-source (singular) being within another data-source fields many

I am still learning, and looking for help on how to display a label based on one data-sources field value, being within another data-sources field value list.
I have one calculated table, displaying rows of documents within a folder, and wish to use a field representing the document number in that data-source, so that if it's ANYWHERE within another tables field it displays my label.
I've been trying to use projection as I think this is how to achieve it.
I can get it working based on both the current #datasouce.item.fieldnames but need it to base the calculation on all possible numbers in that tables field (Image below should make it easier to understand).
I expect that it has something to do with projections, but can't find anything within the learning templates or anywhere else to resolve the issue.
I think the following should work for you. For the 'Reserved' label have the following binding for the text property:
(#datasources.project_quotes.items..quotenumber).indexOf(#widget.datasource.item.Qnumber) !== -1 ? 'Reserved' : ''
I would suggest alternatively just to include a field in your calculated datasource and making the determination in your server script.

Symfony Form multiple range field

I need to make a search form where I need a range slider so a user could choose price_from and price_to. Something like this
What is the best way to implement it?
The only I have found is range type field
It is pretty close to what I need, but it has only one value while I need two values (price_from and price_to)
You are are correct to assume that you need two values (min and max). When I encountered a similar problem, I created two hidden fields for the same purpose.
To fill those hidden fields with values, I used a JS library that rendered the widget and stored the user's input in the hidden form fields:
https://refreshless.com/nouislider/

Change the y-Position of a Text field in Crystal Report.

I´m trying to create a Report with a lot of Fields.
I´ve some fields they could be empty. I´ve suppressed these fields with the formula.
The Problem is how can I change the y-Position of the next field.
Currently I have an empty field in my Report an that looks not so good.
I´ve seen it is possible in formula editor to change the x-Position of a field.
Can I do this with the y-Position too?
Regards
Thomas
Either create a formula where you use the different options, and based on if they have a value don't show them, or create a different section for the fields that could be blank, and suppress them when empty

Range on integer fields in Axapta/Dynamics Ax

Is there a way, in Axapta/Dynamics Ax, to create an Extended Data Type of type integer which only allows enering values in a specified range (i.e., if the extended data type is meant for storing years, I should be able to set a range like 1900-2100), or do I have to manage the range using X++ code?
And if I need to use X++ code to manage the range, which is the best way to do it?
I suggest you use the ''validateField'' of the corresponding table.
Search for the method in AOT\Data Dictionay\Tables to see many examples.
You can can't specify the range on the extended data type itself. If the type is used for a table field, you can add code to the insert and update methods of the table, in order to validate the value whenever the record is updated. This approach could however have a cost in terms of performance.
You can also choose to just add code the the validateWrite method of the table, if you are satisfied with the validation only taking place when the value is modified from the UI.

Resources