`
loky
  • 浏览: 180971 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

important attributes in different controllers

阅读更多
Controller Attributes
  Each controller is a separate ABAP program,having not only predefined and user-defined methods,but also attributes,which are at least visible for each method of the controller.

Standard Attributes
   After having defined a controller,at least two attributes are predefined.These attributes have a visibility,which is restricted to the controller methods.The standard attributes are:

WD_THIS
   WD_THIS is a self reference to the controller interface.This attribute must be distinguished from the standard ABAP self reference ME,which should not be used in the source code of any controller.WD_THIS is a reference to the current controller's interface,IF_<controller name>,and represents all the functionality implemented in the generated class.This also gives you access to standard Web Dynpro functionality,such as validation.

WD_CONTEXT
   WD_CONTEXT is the reference to the controller's context root node,and thus to the entire context.Any access to the controller's context starts with this reference.
 
WD_CONTEXT and WD_THIS
    a. Present in any Web Dynpro controller(except interface and interface view controller)
    b.WD_THIS: Self reference of the local interface - type depends on the controller type.
    c. WD_CONTEXT: Reference to the context of the associated controller.

   If the Component controller is declared as a used controller on the Properties tab of any other controller,an addtitional attribute is automatically created for the controller that declared the usage:

* WD_COMP_CONTROLLER
    wd_comp_controller is the reference to the component controller.Using this reference, all methods and all public attributes of the component controller can be accessed(wd_comp_controller-><meth>,where <meth> is a placeholder for the methods name).
    a.Reference to the component controller with access to all ordinary methods and public attributes
    b. Attribute will be assigned if the component controller is defined as a used controller in the Properties tab of this controller.

*** For all other controllers,even if declared as used   controllers,such a reference is not available.However this does not mean,that user-defined methods and public attributes are not available,but that the reference must be evalutated first.To have the reference to the <ctrl>controller defined as a used controller,the following statement must be used:
    DATA: lo_ctrl type ref to ig_<ctrl>.
lo_ctrl = wd_this->get_<ctrl>_ctr().

User-Defined Attributes
    On the Attributes tab,additional attributes can be defined for the related controller.If the Public flag is set,these attributes are also visible for other controllers of the same Web Dynpro component.Attributes can not be exposed to the components interface.
    In order to access public controller attributes in one of the controller's methods, the self-reference variable WD_THIS has to be used.Accessing public attributes defined in other controllers of the same component is implemented similarly to accessing methods defined in other controllers.
分享到:
评论

相关推荐

    复杂环境下的人脸识别Deep Learning Face Attributes in the Wild

    Predicting face attributes in the wild is challenging due to complex face variations. We propose a novel deep learning framework for attribute prediction in the wild. It cascades two CNNs, LNet and ...

    Applied .NET Attributes

    Because attributes are used to modify the runtime behavior of code in the .NET Framework, their use is extremely important and will become even more important over time. This insightful guide covers ...

    A Preprocessing Scheme for High-Cardinality Categorical Attributes

    "A Preprocessing Scheme for High-Cardinality Categorical Attributes"这个主题探讨的就是如何有效地处理这类问题。 一、高基数类别变量的挑战 1. 维度灾难:高基数会导致数据的维度增加,这可能会引起过拟合,...

    Attributes结构

    Attributes结构在Java编程中是一个非常重要的概念,尤其对于理解类文件的元数据有着关键的作用。在Java类文件中,每个字段、方法或者类定义都可以有零个或多个属性(Attributes)。这些属性提供了额外的信息,例如...

    ArcGIS for Flex开发中Graphic的attributes解析

    for (var key:String in attrs) { var item:GridItemKV = new GridItemKV(key, attrs[key]); list.addItem(item); } ``` 4. **与DataGrid绑定**:最后,我们将解析后的ArrayList对象设置为DataGrid的数据提供者,...

    commons-attributes-2.2.zip

    commons-attributes-2.2.zipcommons-attributes-2.2.zipcommons-attributes-2.2.zipcommons-attributes-2.2.zipcommons-attributes-2.2.zipcommons-attributes-2.2.zip

    一个对XmlDocument的DocumentElement 以及其属性Attributes进行访问的类库函数

    foreach (XmlAttribute attr in attributes) { Console.WriteLine("Attribute Name: {0}, Value: {1}", attr.Name, attr.Value); } ``` XmlBuilder类库函数可能提供了如下的功能: 1. **属性访问**:封装了对...

    Spotting Outliers in Large Distributed Datasets using

    outliers is a very important concept in Knowledge data discovery. Outlier detection has been studied in the context of a large number of research areas like large distributed systems, data mining, ...

    swift-TextAttributes一个更简单的方法来组合属性字符串

    let attributes = TextAttributes() .font(.systemFont(ofSize: 16)) .foregroundColor(.black) .backgroundColor(.white) .underlineStyle(.single) let attributedString = attributes.string("Hello, World!...

    JavaEE源代码 commons-attributes-api

    JavaEE源代码 commons-attributes-apiJavaEE源代码 commons-attributes-apiJavaEE源代码 commons-attributes-apiJavaEE源代码 commons-attributes-apiJavaEE源代码 commons-attributes-apiJavaEE源代码 commons-...

    NX二次开发UF-ATTR-get-user-attributes-in-file 函数介绍

    NX二次开发UF_ATTR_get_user_attributes_in_file 函数介绍,Ufun提供了一系列丰富的 API 函数,可以帮助用户实现自动化、定制化和扩展 NX 软件的功能。无论您是从事机械设计、制造、模具设计、逆向工程、CAE 分析等...

    Extended Attributes and Transparent Encryption in Hadoop1.zip

    总结,"Extended Attributes and Transparent Encryption in Hadoop"这个主题揭示了Hadoop如何通过扩展属性增强文件系统的灵活性,以及如何通过透明加密提供高级别的数据安全性。对于大数据处理和存储的组织而言,...

    CSharp - Module 14_Attributes

    在深入探讨C#中的属性(Attributes)之前,我们先来明确一下这个概念的基本定义与功能。属性是C#中一种非常强大的元数据附加机制,它允许开发者为代码元素(如类、方法、属性等)添加额外的信息或元数据。这种机制在...

    org-gephi-data-attributes-api

    org-gephi-data-attributes-api可视化软件gephi的插件,nbm格式,

    commons-attributes-compiler-2.2.zip

    commons-attributes-compiler-2.2.zipcommons-attributes-compiler-2.2.zipcommons-attributes-compiler-2.2.zipcommons-attributes-compiler-2.2.zipcommons-attributes-compiler-2.2.zip

    commons-attributes-api.jar,commons-attributes-compiler.jar

    commons-attributes-api.jar,commons-attributes-compiler.jar,commons-beanutils.jar,commons-codec.jar,commons-collections.jar,commons-dbcp.jar,commons-digester.jar,commons-discovery.jar,commons-...

    ABCs2018_paper_156_rcnn-master_

    Feature selection is an important technique to improve neural network performances due to the redundant attributes and the massive amount in original data sets. In this paper a CNN with two ...

    Attributes VisualC++

    【Attributes在Visual C++中的应用】 Attributes在编程领域中,特别是在Microsoft的Visual C++环境中,是一种强大的元数据机制。它们允许程序员向代码添加特定的声明,这些声明在编译时和运行时为编译器、运行时...

    menu_attributes.py

    tkinter的menu attributes示例代码,结合https://blog.csdn.net/weixin_43708622/article/details/107053182一起学习

    commons-attributes-api.jar

    commons-attributes-api.jar

Global site tag (gtag.js) - Google Analytics