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. 【知识强化】第六章 应用层 6.3 文件传输协议FTP

    这节课我们来学习一下文件传输协议FTP. 我们知道一个文件的传输过程呢一定需要协议的规定,那在文件传送协议这一块呢有很多个协议.比较主要的两个一个是文件传送协议FTP,一个是简单文件传送协议TFTP. ...

  2. go语言从例子开始之Example6.if/else

    if 和 else 分支结构在 Go 中当然是直接了当的了. package main import "fmt" func main() { 这里是一个基本的例子. if 7%2 ...

  3. noip2018火柴棒等式

    以下题目摘自洛谷p1149 给你n根火柴棍,你可以拼出多少个形如“A+B=CA+B=C”的等式?等式中的AA.BB.CC是用火柴棍拼出的整数(若该数非零,则最高位不能是00).用火柴棍拼数字0-90− ...

  4. Android 混淆总结(直接copy)(转)

    转自:http://blog.csdn.net/u012188405/article/details/51985273 # Add project specific ProGuard rules he ...

  5. 74th Jupyter Notebook 插入图片的方法

    转载: https://account.cnblogs.com/signin?ReturnUrl=http%3A%2F%2Fhome.cnblogs.com%2Fu%2Ferdou%2F   插入本地 ...

  6. zabbix 基于sendmail发送邮件相关问题

    先看一下脚本 #!/bin/bash to=$ subject=$ body=$ @qq.com smtp=smtp.qq.com passwd=xxxxxxxxx echo `date " ...

  7. 写一个自定义类加载器demo

    public class MyTest16 extends ClassLoader { private String classLoaderName; private String fileExten ...

  8. Delphi ini文件操作 TIniFile、TMemIniFile

    1.使用TIniFile unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Co ...

  9. java.sql.SQLException: Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_0900_ai_ci,IMPLICIT) for operation '='

    查询视图时报错:java.sql.SQLException: Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_ ...

  10. Oracle with as语法

    with as优点 增加了sql的易读性,如果构造了多个子查询,结构会更清晰: 更重要的是:“一次分析,多次使用”,这也是为什么会提供性能的地方,达到了“少读”的目标 用法:给查询的语句起个别名 e. ...