Issue: add new mandatory attribute named LUX_HazardousMaterial to protoype and product, and export the attribute to sap as D_HAZARDOUSMATERIAL

  1. add attribute mql

add attribute LUX_HazardousMaterial type string

default "?"

range = "Magnete"

range = "Battery"

range = "NotApplicable"

range = "?"

;

modify attribute LUX_HazardousMaterial

add property ItemName value D_HAZARDOUSMATERIAL

add property ItemType value Caratteristica

;

  1. because prototype type has no interfaces for the intention which uses interface for new attribute addition. so ,then, direct insertion of attribute into prototype is the only option.

Mql

modify type LUX_SPRT_Prototype add attribute LUX_HazardousMaterial;

  1. then we should display the new attribute in form page LUX_SPRT_PrototypInfoBase.

Mql:

modify form LUX_SPRT_PrototypeInfoBase

field name   LUX_HazardousMaterial

select attribute[LUX_HazardousMaterial]

label  'Luxottica.Attribute.LUX_HazardousMaterial'

setting               Editable true

setting      'Field Type' attribute

setting      'Hide Label' false

setting      'Input Type' textarea

setting      'Registered Suite' Luxottica

setting      Required false

order  77

;

Now the new attribute will be display in the front-end page in proper way.

  1. products have interfaces named LUX_SPD_Model and LUX_SPD_Model_5, we should add new attribute to the first interfaces, since the interface was referenced by all products.

Mql:

modify interface LUX_SPD_Model add attribute LUX_HazardousMaterial;

now the new attribute will be display in LUX_SPD_ModelInfoBase web form page.

  1. But it can’t be correctly export to sap yet. We need to add ClassConfigurationItemCharacteristic .

Mql

add bus LUX_ClassConfigurationItemCharacteristic HAZARDOUSMATERIAL 1

policy LUX_PolicyClassConfigurationItem

LUX_ItemKind MAN

LUX_FindNumber 0000

LUX_ItemScope M

LUX_RangeMethod STD

LUX_UIPosition 0

LUX_UISectionGroup STD

LUX_ItemAdminName LUX_HazardousMaterial

;

And connect it to corresponding Main Classification.

connect bus LUX_ClassConfigurationItemCharacteristic HAZARDOUSMATERIAL 1

relationship LUX_ClassItem from LUX_ClassMaster OCCHIALI 1

LUX_ItemKind MAN LUX_UIPosition 0 ;

Finally, modify the below properties file , to add the one-to-one relationship configuration item.

\\lwplmfed02\plm\webapp\3dspace\WEB-INF\classes\class_char_plm2sap.properties

All works in plm side finished completely, then add a new characteristic to sap, with ticode ct04

enovia PLM: add characteristic to both prototype and product的更多相关文章

  1. 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 ...

  2. Django model :add a non-nullable field 'SKU' to product without a default; we can't do that

    You are trying to add a non-nullable field 'SKU' to product without a default; we can't do that (the ...

  3. 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_ ...

  4. 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 ...

  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. enovia plm export to sap

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

  7. javascript constrator and prototype

    揭开js之constructor属性的神秘面纱 在js里面当new了一个对象时,这中间发生了什么? MDN - new运算符 当代码 new foo(...) 执行时: 一个新对象被创建.它继承自fo ...

  8. 函数柯里化常见应用---add(1,2) add(1)(2) add(1)(2)(3) add(1,2,3)(4)

    这是一道经典的题目,先上代码: 解法1: function add () { var args = Array.prototype.slice.call(arguments); var fn = fu ...

  9. 柯里化currying + 隐式调用 = 一个有名的add面试题

    柯里化 =================================== 维基百科解释: 柯里化,英语:Currying(果然是满满的英译中的既视感),是把接受多个参数的函数变换成接受一个单一参 ...

随机推荐

  1. python面试题之请谈谈.pyc文件和.py文件的不同之处

    虽然这两种文件均保存字节代码,但.pyc文件是Python文件的编译版本,它有平台无关的字节代码,因此我们可以在任何支持.pyc格式文件的平台上执行它.Python会自动生成它以优化性能(加载时间,而 ...

  2. HTTPS 301错误码 以及 SSL错误

    301 redirect: 301 代表永久性转移(Permanently Moved) 解决方法:修改请求 http 改为 https PHP通过cURL访问https时出现SSL certific ...

  3. oracle sys_refcursor用法和ref cursor区别

    --创建过程,参数为sys_refcursor,为out型 create or replace procedure aabbsys_refcursor(o out sys_refcursor) is ...

  4. 个人公众号服务端开发Demo

    公众号出来很久了,也可以个人申请.知道公众号的服务端开发其实很简单,接口调用封装,数据存取,不外如是. 人一旦懒了,真的是 “无可救药” 了...现简单描述晚到的公众号HelloWorld 思路 公众 ...

  5. 十五、API请求接口-远程服务器返回错误: (400) 错误的请求错误

    一.远程服务器返回错误: (400) 错误的请求错误 捕获异常查看具体错误 using Newtonsoft.Json; using System; using System.Collections. ...

  6. Codeforces 358D DP

    题意:有n只兔子需要喂养,每只兔子被喂养后的幸福感取决于与它相邻的兔子中已经被喂养的数量.现在问喂养这n只兔子可以获得的总幸福感最多是多少? 思路:初步分析题目发现,一只兔子被喂养获得的幸福感取决于其 ...

  7. 10.ThreadLocal

    /** * - void set(Object value)设置当前线程的线程局部变量的值. * - public Object get()该方法返回当前线程所对应的线程局部变量. * - publi ...

  8. java 调用wsdl的webservice接口 两种调用方式

    关于wsdl接口对于我来说是比较头疼的 基本没搞过.一脸懵 就在网上搜 看着写的都很好到我这就不好使了,非常蓝瘦.谨以此随笔纪念我这半个月踩过的坑... 背景:短短两周除了普通开发外我就接到了两个we ...

  9. Pythonf反射

    Python中,反射有4个方法.分别是:hasattr().getattr().setattr()和delattr(). hasattr() 定义 hasattr()函数用于判断对象是否包含对应的属性 ...

  10. 【JZOJ1913】【BZOJ2124】等差子序列

    description 给一个1到N的排列{Ai},询问是否存在1<=p1<p2<p3<p4<p5<-<pLen<=N (Len>=3), 使得A ...