cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Attributes - Discrete set values using Resource Bundle?

MikeLockwood
22-Sapphire I

Attributes - Discrete set values using Resource Bundle?

I just put in this tech support call:

We are using the attribute "Project Charge Number" assigned to multiple types with the Discrete Set constraint. Users select a number and all work done is charged to it. This is for accounting purposes for hours worked by various groups / departments. We currently use the same set of charge numbers for two different types of Change Request and also two types of work request (we're using a sub type of Change Request as Work Request). The valid list of Project Charge Numbers updates frequently. We have to independently update the list for each type. Question: Is there some way to have a single list applied? It appears that the ideal solution would be to use a resource bundle, and to have the values displayed in a Discrete Set be the current values of the Resource Bundle. Is this possible? Has anyone done this? Any other suggestions?

3 REPLIES 3

Hi Mike

One of the viable ways is to override the ootb data utility that renders the
create/update UI and create a custom data utility for rendering a drop down
list based out of a flat file. When you add a charge number, you need to
update the flat file that contains the charge numbers.



Or when rendering the attribute on create/update, one can add a drop down
list of charge numbers for that specific attribute. Again we can maintain
the charge numbers in a flat file.



If any of the above is to your interest, please let me know.



Thank you and have a great time.

Best Regards

Swamy Senthil

Principal Solutions Architect

973 216 0456(M); 973 324 2729(W); 866 908 6561(F)

Work Email: swamy.senthil@swasen.com

LinkedIn Profile:
AL_ANDERSON
5-Regular Member
(To:MikeLockwood)

You can define the IBA on a parent node in the type structure editor that
uses all of your Change Request Types as child nodes.

If all of your types are types of Change Request, then all the children
should inherit the IBA and constraints of the parent, so you only have to
manage the discrete value string set at the top level for all of the lower
levels.

I haven't tried it, but I think it should work unless you use that same
attribute on not only types of Change Requests, but also on ECNs, or other
top-level objects that cannot have a common top level node in the type
manager.

Al Anderson
Solar Turbines Incorporated






Mike Lockwood <mike.lockwood@alconlabs.com>
06/30/2010 11:20 AM
Please respond to
Mike Lockwood <mike.lockwood@alconlabs.com>


To
-
cc

Subject
[solutions] - Attributes - Discrete set values using Resource Bundle?




Caterpillar: Confidential Green Retain Until: 07/30/2010



I just put in this tech support call:
We are using the attribute "Project Charge Number" assigned to multiple
types with the Discrete Set constraint. Users select a number and all
work done is charged to it. This is for accounting purposes for hours
worked by various groups / departments. We currently use the same set of
charge numbers for two different types of Change Request and also two
types of work request (we're using a sub type of Change Request as Work
Request). The valid list of Project Charge Numbers updates frequently. We
have to independently update the list for each type. Question: Is there
some way to have a single list applied? It appears that the ideal
solution would be to use a resource bundle, and to have the values
displayed in a Discrete Set be the current values of the Resource Bundle.
Is this possible? Has anyone done this? Any other suggestions?

Site Links: View post online View mailing list online Send new post
via email Unsubscribe from this mailling list Manage your subscription
Use of this email content is governed by the terms of service at:

Hi Swamy,

we also have the requirement to update the discrete value set of an IBA of one of our WTDocument subtypes regularly. This should happen in some kind of overnight batchjob without having to use the "Type and Attribute Manager" user interface.

I thought of using a loadfile but it seems not to be possible to edit an existing discrete value set this way. I also was not able to find any Java API or I*E Task functionality to achieve this.

Can you provide me with more details on your solution using the flat file with predefined values? I guess this way I would not have to update the discrete value set.

Your help would be very much appreciated.

Best regards

Paul

Announcements


Top Tags