I am looking to set a value in a column with the value from another attribute such that when attibute As value is requirements. The value popuated in a different column will be a string value such as Rqt_Value."absolute number". The output would look like Requirement Number | Description | Value | | | Information | Rqt_Value.0011 | | Requirement | | | Other I Rqt_Value.0023 | | Requirement |
Value is a drop down list
DavidGoodwin - Wed Jun 03 14:10:03 EDT 2015 |
Re: Setting an attribute from another attributes value If you really mean "Column" then you want a layout-dxl column. that perhaps may look like this:
-Louie Notes:
|
Re: Setting an attribute from another attributes value llandale - Wed Jun 03 16:10:22 EDT 2015 If you really mean "Column" then you want a layout-dxl column. that perhaps may look like this:
-Louie Notes:
I did not explain very well what I am trying to do. The "requirement column" would be an attribute DXL script that would check to see if the " Value" atribute is equal to requirement. If so the attribute for Requirement number would be a string prefix combined with the absolute number, Otherwise the column would be empty. What I am thinging is that I create a DXL script in the Requirement Number column. So what I am doing is checking the value of one attribute to set the value of a different attribute. |
Re: Setting an attribute from another attributes value DavidGoodwin - Wed Jun 03 16:44:25 EDT 2015 I did not explain very well what I am trying to do. The "requirement column" would be an attribute DXL script that would check to see if the " Value" atribute is equal to requirement. If so the attribute for Requirement number would be a string prefix combined with the absolute number, Otherwise the column would be empty. What I am thinging is that I create a DXL script in the Requirement Number column. So what I am doing is checking the value of one attribute to set the value of a different attribute. I would consider it bad practice to set the value of another attribute from a DXL attribute. It is really hard to check, if the user is really allowed to set the attribute value, e.g. in shared edit mode, read only mode or inside a baseline. Is there a special reason, why you would not simply create a DXL attribute for the requirement number? Regards, Mathias |
Re: Setting an attribute from another attributes value DavidGoodwin - Wed Jun 03 16:44:25 EDT 2015 I did not explain very well what I am trying to do. The "requirement column" would be an attribute DXL script that would check to see if the " Value" atribute is equal to requirement. If so the attribute for Requirement number would be a string prefix combined with the absolute number, Otherwise the column would be empty. What I am thinging is that I create a DXL script in the Requirement Number column. So what I am doing is checking the value of one attribute to set the value of a different attribute. While AttributeDXL normally does this:
MM is correctly objecting to this:
That's like chewing gum and drinking milk. Anyway, if I understand you then you want attribute "Requirement Number" to be attribute-DXL:
You can find a pad function hereabouts. 4 digits isn't enough; go with 5. -Louie |
Re: Setting an attribute from another attributes value DavidGoodwin - Wed Jun 03 16:44:25 EDT 2015 I did not explain very well what I am trying to do. The "requirement column" would be an attribute DXL script that would check to see if the " Value" atribute is equal to requirement. If so the attribute for Requirement number would be a string prefix combined with the absolute number, Otherwise the column would be empty. What I am thinging is that I create a DXL script in the Requirement Number column. So what I am doing is checking the value of one attribute to set the value of a different attribute. >>I did not explain very well what I am trying to do. You are not wrong there! Are you simply looking for an ID column (based on absolute number plus a prefix) which only becomes populated for objects whose value for another enumerated attribute is set to 'Requirement'? (a very common and simple DXL script) e.g.
if(obj."Object Type" "" == "Requirement")
if(obj."Object Type" "" == "Requirement")
These are layout DXLs rather than attribute DXLs
|