Cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Dataset name to Item name upon creation.

Creator
Creator

I have a custom item type where I need to associate forms using a specific relation in order to contain the form in a Pseudo Folder. 

 

Upon creation of the form I would like to have the form named the same as the item_id + "Item requested" automagically. 

 

I want to remove the ability for the user to name the dataset altogether.

 

Any ideas?

 

Dataset saveas pattern doesn't seem applicable because that is only enforced during revise or save as. 

 

Naming Rules don't seem to be applicable because I don't think I can reference the item_id of the parent object in the naming rule. 

 

Thanks for your help!

6 REPLIES

Re: Setting Dataset name to Item name upon creation.

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
Are you creating a dataset of a form? They are two different object types. Datasets can be added to a Item Revision upon creation using IRDC. But your use-case is unclear.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Re: Setting Dataset name to Item name upon creation.

Creator
Creator

I apologize. I am creating a form. Using File->New-> Form. The form is being created in/on a Pseudo Folder, which is part of a item.

Re: Setting Dataset name to Item name upon creation.

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

I don't know of an automated method for creating forms on the Item. You'll probably need to look into ITK or SOA programming to achieve what you're discussing.


Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Re: Setting Dataset name to Item name upon creation.

Creator
Creator

I do not want the creation of the forms to be automated, but rather, the naming of said form to reflect the item's item_id plus an additional string. 

 

Of course the answer could still be the same. 

 

Thanks for your help!

Re: Setting Dataset name to Item name upon creation.

Pioneer
Pioneer

Hi,

I think you can add string , by using disply name option in business object constant (i.e inBMIDE) of form.

but i dont know how fech the item_id automatically.

 

Thank you.

Re: Setting Dataset name to Item name upon creation.

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi,

I would try to add a compound property to the custom form with ItemID and then add this compound property to the displayname of the custom form.

Something like this:

 

disp_name.png

 

 cae4_itemid is the compound property from form->item revision-> item id

BR,

xtof