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.

Step4: 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

  2. 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 a characteristic in enovia PLM的更多相关文章

  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 new color number to the color drop down in enovia PLM

    Ticket description:A55482L Ticket attachment: Open the attached page 2. Open the internationalizing ...

  3. enovia PLM : add new value to SPEO

    Solution: Modify LUX_SPEO attribute in PLM Modify D_SPEO attribute in SAP , Login sap system F3 Tcod ...

  4. enovia plm export to sap

    UPC creation UPC 结构 PLM 使用的UPC 是 14个数字组成的,兼容. 前两位为 0,后12位为有效数字,在SAP中0会被忽略,符合国际UPC通用 规则, 前一位为0,后13 位为 ...

  5. add characteristic to color

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

  6. 低功耗蓝牙4.0BLE编程-nrf51822开发(11)-蓝牙串口代码分析

    代码实例:点击打开链接 实现的功能是从uart口发送数据至另一个蓝牙串口,或是从蓝牙读取数据通过uart打印出数据. int main(void) { // Initialize leds_init( ...

  7. form 表单的name

    form 中 的name 很重要, 1. 可以用来查找对应的input 2.form 提交之后 会用来作为参数列表的名字 3.enovia plm 中,name 会和 table 的field 进行对 ...

  8. 批量授一种权限给用户程序 plm enovia

    set context user DanielDai;add program LUX_UserAssignment java execute immediate code 'import com.ma ...

  9. 前端性能优化:Add Expires headers

    前端性能优化:Add Expires headers Expires headers 是什么? Expires headers:直接翻译是过期头.Expires headers 告诉浏览器是否应该从服 ...

随机推荐

  1. 初探Remoting双向通信(二)

    原 初探Remoting双向通信(二) 2013年06月25日 11:46:24 喜欢特别冷的冬天下着雪 阅读数 2977 版权声明:本文为博主原创文章,未经博主允许不得转载. https://blo ...

  2. 我爱Linux

    这道题卡了好久,题是一张图片,打开看到看提示以为是用哪个Linux命令处理,直到后来知道后面是python序列化文件的数据,将FF D9后保存出来,将序列化文件读出来写脚本把它画出来 import p ...

  3. svn - Subversion 命令行客户端工具

    SYNOPSIS 总览 svn command [options] [args] OVERVIEW 概述 Subversion 是一个版本控制系统,允许保存旧版本的文件和目录 (通常是源代码),保存一 ...

  4. Vim: Overwrite read-only file without quiting vim

    当你忘记以sudo命令使用vim编辑一个只读文件时,可以执行以下vim命令强制覆写该文件: :w !sudo tee % > /dev/null 命令太长,可在vimrc文件中做命令映射(映射为 ...

  5. HDU-4044 树形背包dp好题

    不会做,题解是参考网上的.感觉这道题是到好题,使得我对树形背包dp更了解了. 有几个注意的点,直接给出代码,题解以及注意点都在注释里了. #include<bits/stdc++.h> u ...

  6. POJ-2888 Magic Bracelet(Burnside引理+矩阵优化+欧拉函数+逆元)

    Burnside引理经典好题呀! 题解参考 https://blog.csdn.net/maxwei_wzj/article/details/73024349#commentBox 这位大佬的. 这题 ...

  7. Async Clipboard AP

    转自奇舞周刊,个人学习记录,侵权删 编者按:本文作者李松峰,资深技术图书译者,翻译出版过40余部技术及交互设计专著,现任360奇舞团高级前端开发工程师,360前端技术委员会委员.W3C AC代表 如果 ...

  8. codeforces round 433 D. Jury Meeting

    题目大意: 输入n,m,k,分别代表城市的数量,城市编号1~n,航班的数量以及会议必须所有人员到会一起商议的天数,然后及时输入m行航班的信息,每一行输入d,f,t,c分别表示航班到站和始发的那一天(始 ...

  9. 接口使用Http发送post请求工具类

    HttpClientKit import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamR ...

  10. getElementsBy 系列方法相比querySelector系列的区别

    最近在做的项目中,使用querySelectorAll获取了同class名的元素后,绑定onmouseover事件和onmouseout后,多次在几个元素上移入移出操作时,控制台出现了报错的问题,最后 ...