Problem: add a new Char. name D_COI6 that the description is Injected coloration #7 (COI6) in the D_BUSINESS class in PLM and SAP.

Step1: to attain attribute name on business model.

The result of following command tell you all attributes of Color

Because some of attributes were not selected to be displayed on the Color Characteristic Tab page, then we can infer what name we should assign to new attribute.

New attribute name: ‘LUX_COI6’

Step 2: create a new attribute named “LUX_COI6” in Business Model

It is better for assigning value to fields to compare with another similar attribute.

Step 3: add some properties to new attribute.

Compare the properties between LUX_COI5 and LUX_COI6,

There are so many properties that LUX_COI6 doesn’t include.

So that we need to add the properties to the new attribute in my own.

So execute the following command to add properties to LUX_COI6

modify attribute LUX_COI6

property COAF

property ColorRicambi

property FindNumber value 2878

property ItemName value D_COI6

property ItemType value Caratteristica

property MMET

property QueryObject value ColorMaterialAndCycle

property RangeMethod value Dynamic

property application value LUXOTTICA_F1

property 'installed date' value 28-05-2008

property installer value CdmIsigraf

property 'original name' value LUX_COI3

property version value 1.0;

FindNumber and ItemName are vital, other fields are not very helpful.

FindNumber will be showed as F/N at front-end page.

: create a new interface named “LUX_COI6” in business model

Of course, comparing with similar interface will help you.

Add new attribute named “LUX_COI6”to the new interface

Add ‘LUX_ModelColor’ to the Allowed Types List of the interface.

Step5: create a new class Configuration Item

Then, how to define these field?

Look for other Configuration Items for reference.

  1. Analyze the page URL

To see the Inquery with Business Model

It says what mql command the Inquery employs.

The mql command we can know is :

temp query bus LUX_ClassConfigurationItem * * select id dump |

the command will query all objects of LUX_ClassConfigurationItem,

the amount of the result is too large, we need to filter useless objects out in accordance with our real situation.

So ,please use the following handled command:

Print the detail of one of objects

Then, as you can see from the above result , please refer to the result to set up a new Class Configuration Item.

Attention please: Admin name is the attribute name which you have already created in Business Model,

And the LUX_FindNumber is the same as FindNumber which is the property of attribute LUX_COI6 that you created before.

Then ,the new Configuration Item has been created

We can query the object in mql.

Step6: modify relationships of the new characteristic.

As you can see from the following result, the relationships of COI6 and COI5 are absolutely different.

Why? I don’t know

Delete all relationships of COI6,

Execute the sub command in three times

disconnect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ML_LUX_Description

from LUX_ClassConfigurationItemCharacteristic COI6 1

Add new relationships to COI6 in compliance with COI5

Execute the following command respectively

connect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ClassItem from LUX_ClassMaster Perno 1;

connect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ClassItem from LUX_ClassMaster Bussola 1;

connect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ClassItem from LUX_ClassMaster Snodo 1;

connect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ClassItem from LUX_ClassMaster Frontalino 1;

connect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ClassItem from LUX_ClassMaster Montatura Frontale 1;

connect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ClassItem from LUX_ClassMaster BUSINESS 1;

connect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ClassItem from LUX_ClassMaster Dado 1;

connect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ClassItem from LUX_ClassMaster Gancino Porta Alette 1;

connect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ClassItem from LUX_ClassMaster Rondella 1;

connect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ClassItem from LUX_ClassMaster Barra Frontale 1;

connect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ClassItem from LUX_ClassMaster Asta 1;

connect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ClassItem from LUX_ClassMaster OCCHIALI 1;

connect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ClassItem from LUX_ClassMaster Guarnizione Abbellitore 1;

connect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ClassItem from LUX_ClassMaster Vite 1;

connect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ClassItem from LUX_ClassMaster Montatura 3 Pezzi 1;

connect bus LUX_ClassConfigurationItemCharacteristic COI6 1 relationship LUX_ClassItem from LUX_ClassMaster Frame Set 1;

Step 7 :modify  LuxotticaStringResource.properties

vim /opt/plm/webapp/internal/WEB-INF/classes/LuxotticaStringResource.properties

vim /opt/plm/webapp/3dspace/WEB-INF/classes/LuxotticaStringResource.properties

Then

Restart tomcat

Step7: add a characteristic to Color

now , it is the time to add a characteristic to Color

Unfortunately, we can’t find out COI6 ,why?

Because the vault of object of LUX_ClassConfigurationItem isn’t  ‘LUX_MasterData1’

And the owner of LUX_ClassConfigurationItem isn’t  creator

Execute the command below to modify the vault.

modify bus LUX_ClassConfigurationItemCharacteristic COI6 1 vault LUX_MasterData1

Then reloadcache, redirect to the page again.

add characteristic to color的更多相关文章

  1. enovia PLM: add characteristic to both prototype and product

    Issue: add new mandatory attribute named LUX_HazardousMaterial to protoype and product, and export t ...

  2. add a characteristic in enovia PLM

    Problem: add a new Char. name D_COI6 that the description is Injected coloration #7 (COI6) in the D_ ...

  3. [wordpress]后台自定义菜单字段和使用wordpress color picker

    Wordpress Version 4.4.2 参考链接 插件使用wordpress color picker:Add A New Color Picker To WordPress 后台菜单自定义字 ...

  4. CSS COLOR

    CSS COLOR Color Review We've completed our extensive tour of the colors in CSS! Let's review the key ...

  5. 【基于WinForm+Access局域网共享数据库的项目总结】之篇二:WinForm开发扇形图统计和Excel数据导出

    篇一:WinForm开发总体概述与技术实现 篇二:WinForm开发扇形图统计和Excel数据导出 篇三:Access远程连接数据库和窗体打包部署 [小记]:最近基于WinForm+Access数据库 ...

  6. View and Data API Tips: Constrain Viewer Within a div Container

    By Daniel Du When working with View and Data API, you probably want to contain viewer into a <div ...

  7. WPF 自定义标题栏 自定义菜单栏

    自定义标题栏 自定义列表,可以直接修改WPF中的ListBox模板,也用这样类似的效果.但是ListBox是不能设置默认选中状态的. 而我们需要一些复杂的UI效果,还是直接自定义控件来的快 GitHu ...

  8. Hibernate中Criteria的完整用法

    1,CriteriaHibernate 设计了 CriteriaSpecification 作为 Criteria 的父接口,下面提供了 Criteria和DetachedCriteria .2,De ...

  9. iOS homekit使用说明

    本文由CocoaChina翻译组成员iBenjamin_Go和浅夏@旧时光翻译自苹果开发文档:HomeKit Developer Guide,敬请勘误. 本文档内容包括 第一部分:简介 第二部分:启用 ...

随机推荐

  1. UVA 12446 How Many... in 3D! ( 递推 + 树状数组 )

    C. How Many... in 3D! Time Limit: 1000ms Memory Limit: 131072KB 64-bit integer IO format: %lld      ...

  2. fusionCharts图表在客户端导出图片

    前提:要具备三个文件:FusionCharts.js / FusionChartsExportComponent.js / FCExporter.swf 1.引用 js 文件 <script t ...

  3. Groovy学习:第二章 Groovy语言的关键特征

    1. 断言Assertion断言:用于判断预期的条件是否为真.例子:def list = [1,2,'x']assert list.size()==32. AST转换期使用的注释AST转换的注释:Gr ...

  4. Linux安装配置nfs实现共享远程目录

    1. 服务端安装nfs yum -y install nfs-utils rpcbind 2.编辑/etc/exports /etc/exports文件内容格式: <输出目录> [客户端1 ...

  5. Guacamole 远程桌面

    本文将Apache的guacamole服务的部署和应用,http://guacamole.apache.org/doc/gug/  该链接下有全部相关知识的英文文档,如果水平ok,可以去这里仔细查看. ...

  6. 一、Json

    一.Json遍历模糊查询 你没admin 所以这句话报错. //1.写法 dynamic query = from user in jsonObject where (user.ToString(). ...

  7. windows下如何使用Git上传代码

    首先,在使用Git的同时,我们需要拥有码云账号,在官网注册即可(官网:https://gitee.com/). 注册结束后创建一个代码仓库,最好和要上传的文件夹名字一样: 1.首先在电脑上安装wind ...

  8. Chocolatey Window系统下的软件管理工具

    前言: 使用linux都喜欢使用yum ;apt-get来安装包,非常方便,那么windows也可以使用这样的方式. Chocolatey软件是Windows下的软件安装工具: 使用方法类似linux ...

  9. mysql安装与修改密码

    数据库基本概念:数据的仓库 数据库服务器-->数据库-->表-->记录-->属性(列,字段) unix下数据库服务安装: apt-get install -y mysql-se ...

  10. php递归无限分类、根据子类获取所有顶类

    //递归无限分类树 public static function diGui($data, $pid) { $arr = collect([]); if (empty($data)) { return ...