Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Define a field to contain unique value in RTC

Hi,

Can I define a field in RTC which contains a unique value?

Like

i have a WI where i am capturing an employee ID 101 and want to make it unique. next time if someone else is trying to create a new WI and trying to put employee ID as 101,

then

  • the person either should not be able to save the record, or
  • Should have an "i" kind of a thing that says 101 already exists.

Can we do this?

0 votes



One answer

Permanent link
Hi,

a solution would have to consist of the following three parts:
1. Check attribute for validity
This can be done programmatically by scripting a Validator as per the wiki example on jazz.net
Your script would have to e.g. query a web service with Boolean return value for "ID exists / does not exist"

2. A work item save participant --> cp. RTC Extension Workshop
Upon work item save, the new attribute ID would have to be persisted somewhere (i.e. via a web service in a database) in a list of already used IDs.

3. The web service(s)
for reading / writing th list of already used IDs.

To answer your actual question: you can do this in principal, but it might be a bit of work.

Please comment / accept answer if this is helpful for you.
Best,

Arne

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jun 30 '14, 1:24 p.m.

Question was seen: 2,306 times

Last updated: Jun 30 '14, 2:42 p.m.

Confirmation Cancel Confirm