Pass a parameter to custom component -  get null

Main MXML (part of code):
<s:Application
xmlns:ns1="*"
creationComplete="init();>
import MyComponent;
private function init():void {
var myArray:Array=["FFF","TTT","RRR"];
myComp.width=200;
myComp.height=200;
myComp.getArray = myArray;
myContainer.rawChildren.addChild(myComp);
<fx:Declarations>
<ns1:MyComponent id="myComp" x="0" y="0" />
</fx:Declarations>
custom component:
package
          public var getArray:Array;
public class MyComponent extends Sprite { trace (getArray);//trace null

What is myContainer?
I have a working version with my container as UICOmponent inside main.
public class MyComp extends Sprite
        private var _getArray:Array;
        public function MyComp()
        public function get getArray():Array
            return _getArray;
        public function set getArray(value:Array):void
            trace("setter ", value);
            _getArray = value;
<?xml version="1.0" encoding="utf-8"?>
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx"
               xmlns:ns1="*"
               minWidth="955" minHeight="600"
               creationComplete="init();">
    <fx:Script>
        <![CDATA[
            private function init():void {
                var myArray:Array=["FFF","TTT","RRR"];
                myComp.width=200;
                myComp.height=200;
                myComp.getArray = myArray;
                myContainer.addChild(myComp);
        ]]>
    </fx:Script>
    <fx:Declarations>
        <ns1:MyComp id="myComp"/>
    </fx:Declarations>
    <mx:UIComponent id="myContainer"/>
</s:Application>
Not sure this is what you after though but it traces:
setter  FFF,TTT,RRR
Why do you add to rawChildren?
C

Similar Messages

  • Passing arguments to a custom component in the constructor

    I would like to know if it is possible to pass arguments to a
    custom component in the constructor when I'm instantiating it
    within Actionscript. I've not seen anyone do this, so at the moment
    I have a couple of public properties defined on the custom
    component and then do the following:
    var myComponent:TestComponent = new TestComponent();
    myComponent.propertyOne = true;
    myComponent.propertyTwo = 12;
    etc.
    Whereas I'd like to do something like:
    var myComponent:TestComponent = new TestComponent( true, 12
    Any ideas if this is possible?

    Another approach as opposed to creating init function is to link symbol with autogenerated class (just assign it a class but do not create *.as file for it) and use it just as graphical view with no functionality (well only MovieClip's functionality).
    ViewClip.as
    public class ViewClip extends MovieClip {
        public var view:MovieClip;
        public function ViewClip(){
            this.view = instantiateView();
            this.addChild(view);
        protected function instantiateView():MovieClip {
            return new MovieClip();
    Circle.as
    public class Circle extends ViewClip {
        public function Circle(scaleX:Number, scaleY:Number) {
            super();
        override protected function instantiateView():MovieClip {
            return new ClassView();

  • Passing function to a custom component

    Hey so I have button that is in a custom component, say:
    <mx:HBox width="200" height="72" xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:Button width="72" height="72"  styleName="{buttonStyleName}"/>              
        <mx:Text text="{description}" width="100%" height="100%" textAlign="justify"/>
    </mx:HBox>
    And on another file i use it simply like this:
    <local:LabelComponent buttonStyleName="componentRssButton"  />                          
    However, I want the button on my custom component draggable, so I would like to pass a mouseMove handler but i could not find  a way to do that. Of course that easiest way is to have my whole custom component draggable like so:
    <local:LabelComponent mouseMove="componentRssButton"  />                
    but i want the button in the custom component the only one draggable.
    Thanks.

    it's wired to pass a function.
    EventListener should be the way to go.
    give your button an id, say btn1
    <mx:Button id='btn1' width="72" height="72"  styleName="{buttonStyleName}"/>
    and in your code
    <local:LabelComponent id='myComp' creationComplete='makeButtonDraggable()' buttonStyleName="componentRssButton"  />  
    <script>
    function makeButtonDraggable():vd
         myComp.btn1.addEventListener(mouseMove, componentRssButton);

  • Setting parameter of custom component

    Hi All,
    I assigned a custom component to a datagrid column with:
    dataGridColumn.itemRenderer = new ClassFactory(com.myNewComp);
    This component has a parameter.
    I try:
    dataGridColumn.itemRenderer['myParameter'] = 2;
    But not workng.
    How can I setup this parameter after is assigned to datagrid column?
    Thanks
    Johnny

    FYI,
    var _ItemRendere:ClassFactory;
    _ItemRendere = new ClassFactory();
    _ItemRendere.generator = com.myNewComp;
    _ItemRendere.properties = {myParameter:2};
    dataGridColumn.itemRenderer = _ItemRendere;
    Best,
    Johnny

  • Web link to pass the parameter to custom web app then update the field

    Hi,
    I have created the web link in service request object to refer Account Object. I want to let user able to select the account from web link then base on the current SR no and account that have created update the record in CRMOD. My question is how to pass the parameter out to my external web app so that they can update my SR correctly?
    Thank you

    Hi Messer,
    I have put in the syntax as below :-
    https://secure-ausomxega.crmondemand.com/OnDemand/user/AssocAccountPopup?mapBC=Service+Request&OACTRL=Account&ophi=PopupNewForm.Account+Id&pfid=PopupNewForm&OMTHD=AssocPopup&OMTGT=PopupSearchList&assocInit=Y&opht=4&OAOBJ=Service+Request&mapField=Account&ophd=PopupNewForm.Account&ophpd=3&disableclear=Y&ophr=AssocAccountPopup&assocval=&ParentType=Edit
    This pop up screen wil let the user to select the account then i will pass the account and the SR to external web app to update back the CRMOD. I am not too sure the above syntax is correct or maybe can you give some example.
    I am new in CRMOD, hope that you can advice on this.
    Thank you,
    SK

  • Pass EL parameter to custom JSF1.2 component

    I've developed simple component, which gets date string from parameter, parses it to Date class, and renders 3 html select tags. Everything goes well if paramters is like '2007-10-25', everything goes nasty when we try to pass parameter like '#{someManager.date}'. Is there any way to render value from #{someManager.date} into '2007-10-25' ? Or some way to handle EL in parameter field?

    I recommend taking a look at some of the components in your JSF implementation to see how they handle getters and setters for properties which accept EL expressions.

  • Custom Validator for a Custom Component

    I am having troubling passing values from my custom component
    to my custom validator (via a model). For some reason when the
    validate() function is called for the validator the value parameter
    passed to the validator is not showing the value from my custom
    component.
    I have attached some example code to illustrate.
    Here is my model:
    <mx:Model id="myModel">
    <root>
    <mod>
    <name>{myTextInput.text}</name>
    <date>{myDateField.selectedDate.getTime()}</date>
    <length>{myComp.getLength()}</length>
    </mod>
    </root>
    </mx:Model>
    When I update the value of myTextInput or myDateField the
    model (as sent to the validator) shows the correct value. When I
    change the value of myComp the change is not reflected.
    Is there a particular event (or something) being dispatched
    in the other components to cause the model to get the new value
    that I need to include in my custom component? I am pretty stuck
    and would appreciate any help.
    Many thanks

    Does myComp extend EventDispatcher (or any class which does)?
    You need to flag the getLength() function as bindable and to
    dispatch an event:
    [Bindable('getLengthChange")]
    public function getLength() : Number
    // does whatever it does
    When you update myComp have it dispatchEvent( new
    Event("getLengthChange") ) and I think it will work.

  • Getting Null Value

    Hi
    I have made on Bapi as webservice.. and i imported that webservice in model...
    The structure of the model is like this.....
    Request_Z_Bapi_Customer_GetDetail
    .......|
    .......|----- parameter
    ................|
    ................|-------customerNo
    ................|-------division
    ................|-------distributionchannel
    ................|-------saleOrg
    ................|-------passbuffer
    .......|-------Response
    ................|------Result
    .......................|-------peAddress
    ...............................|---city
    ...............................|---country
    ...............................|----name
    ...............................|----.....
    ...............................|----......
    <b>I have writtin the following code in my Custom Controller</b>
    Request_Z_BAPI_CUSTOMER_GETDETAIL_WS_customerGetDetail customer = new Request_Z_BAPI_CUSTOMER_GETDETAIL_WS_customerGetDetail();
        customer._setUser("abap");
        customer._setPassword("quinnox");
        wdContext.nodeRequest_Z_Bapi_Customer_GetDetail().bind(customer);
    <b>I have executed the fuction like this...............</b>
    public void executeCustomerDetails( )
        //@@begin executeCustomerDetails()
        try{
             wdContext.currentRequest_Z_Bapi_Customer_GetDetailElement().modelObject().execute();
             wdComponentAPI.getMessageManager().reportSuccess("Check "+wdContext.currentPeAddressElement().getFirstName());
        }catch(Exception e){
             wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);
    but when i am priniting the results i am getting the null values.........
    ex:
    wdComponentAPI.getMessageManager().reportSuccess("Check "+wdContext.currentPeAddressElement().getFirstName());
    here i am trying to get the FirstName but i am getting null value.....
    how to solve this problem....
    please help me
    Best Regards
    Ravi Shankar B

    Hi Ravi,
    First i would suggest you to test/execute the webservice to makesure that its working properly.
    If yes, pass all the madatory fields to the webservice input parameters. In your case customerID could be a madatory parameter to get the address.
    You can pass that parameter by customer.setCustomerNo().
    Regards, Anilkumar

  • Passing a parameter to a method in the dataTable's value attribute

    Hi,
    I'm brand new to JSF, so I might be overlooking something really simple. I'm trying to use a dataTable to display data from a database. It works fine until I try to pass a parameter to "#{customer.all}". My backer bean is ready (or so I believe) and is included after the jsp code snippet. What do I need to do to the jsp/jsf code in order to pass this parameter?
    jsp code:
    <html>
       <%@ taglib uri="http://java.sun.com/jsf/core"  prefix="f" %>
       <%@ taglib uri="http://java.sun.com/jsf/html"  prefix="h" %>
       <f:view>
          <head>
             <link href="styles.css" rel="stylesheet" type="text/css"/>
             <title>
                <h:outputText value="#{msgs.pageTitle}"/>
             </title>
          </head>
          <body>
             <h:form>
                <h:dataTable value="#{customer.all}" var="customer"
                   styleClass="customers"
                   headerClass="customersHeader" columnClasses="custid,name">
                   <h:column>
                      <f:facet name="header">
                         <h:outputText value="#{msgs.customerIdHeader}"/>
                      </f:facet>
                      <h:outputText value="#{customer.Cust_ID}"/>
                   </h:column>
                   <h:column>
                      <f:facet name="header">
                         <h:outputText value="#{msgs.nameHeader}"/>
                      </f:facet>
                      <h:outputText value="#{customer.Name}"/>
                   </h:column>
                   <h:column>
                      <f:facet name="header">
                         <h:outputText value="#{msgs.phoneHeader}"/>
                      </f:facet>
                      <h:outputText value="#{customer.Phone_Number}"/>
                   </h:column>
                </h:dataTable>
             </h:form>
          </body>
       </f:view>
    </html>backer bean:
    package com.corejsf;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.servlet.jsp.jstl.sql.Result;
    import javax.servlet.jsp.jstl.sql.ResultSupport;
    import javax.sql.DataSource;
    public class CustomerBean {
       private Connection conn;
       public void open() throws SQLException, NamingException {
          if (conn != null) return;
          Context ctx = new InitialContext();
          DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/mydb");
          conn = ds.getConnection();  
       public Result getAll(sName) throws SQLException, NamingException {
          try {
             open();
             Statement stmt = conn.createStatement();       
             ResultSet result = stmt.executeQuery("SELECT * FROM Customers where Name = '" + sName + "'");
             return ResultSupport.toResult(result);
          } finally {
             close();
       public void close() throws SQLException {
          if (conn == null) return;
          conn.close();
          conn = null;
    }Thanks,
    Dave

    Mogambo,
    Thanks for the response. Let me see if I understand. Let's say I have a login.jsp page, and after the user logs in I want to display all of his orders in a dataTable in summary.jsp. You're saying I should actually run the query in LoginBean.java after doing the submit, something like this right?
    login.jsp:
    <html>
       <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
       <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
       <f:view>
          <head>                 
             <title>A Simple JavaServer Faces Application</title>
          </head>
          <body>
             <h:form>
                <h3>Please enter your name and password.</h3>
                <table>
                   <tr>
                      <td>Name:</td>
                      <td>
                         <h:inputText value="#{login.name}"/>
                      </td>
                   </tr>            
                   <tr>
                      <td>Password:</td>
                      <td>
                         <h:inputSecret value="#{login.password}"/>
                      </td>
                   </tr>
                </table>
                <p>
                   <h:commandButton value="Login"
                      action="#{login.doLogin}"/>
                </p>
             </h:form>
          </body>
       </f:view>
    </html>
    LoginBean.java:
    public class LoginBean {
       private String name;
       private String password;
       private ResultSet results;
       // PROPERTY: name
       public String getName() { return name; }
       public void setName(String newValue) { name = newValue; }
       // PROPERTY: password
       public String getPassword() { return password; }
       public void setPassword(String newValue) { password = newValue; }
       // PROPERTY: results
       public ResultSet getResults() { return results; }
       public void setResults(String newValue) { results = newValue; }
       public String doLogin(){
           Integer liUserID = null;
           // authenticate user and return user's internal ID
           liUserID = authenticateUser(name, password);
           if ( liUserID == null){
                return "failure";
          else{
               results = getUserOrders(liUserID);
               return "success";
    faces-config.xml:
    <?xml version="1.0"?>
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
            http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
         version="1.2">
       <navigation-rule>
          <from-view-id>/login.jsp</from-view-id>
          <navigation-case>
             <from-outcome>login</from-outcome>
             <to-view-id>/summary.jsp</to-view-id>
          </navigation-case>
       </navigation-rule>
       <managed-bean>
          <managed-bean-name>login</managed-bean-name>
          <managed-bean-class>LoginBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
       </managed-bean>
    <navigation-rule>
        <from-view-id>/login.jsp</from-view-id>
        <navigation-case>
          <from-action>#{login.doLogin}</from-action>
          <from-outcome>success</from-outcome>
          <to-view-id>/summary.jsp</to-view-id>
        </navigation-case>
         <navigation-case>
          <from-action>#{login.doLogin}</from-action>
          <from-outcome>failure</from-outcome>
          <to-view-id>/login.jsp</to-view-id>
        </navigation-case>
      </navigation-rule>
    </faces-config>And then I assume that my summary.jsp would look like this, using login.results as my value for the dataTable?
    <html>
       <%@ taglib uri="http://java.sun.com/jsf/core"  prefix="f" %>
       <%@ taglib uri="http://java.sun.com/jsf/html"  prefix="h" %>
       <f:view>
          <head>
             <link href="styles.css" rel="stylesheet" type="text/css"/>
             <title>
                <h:outputText value="#{msgs.pageTitle}"/>
             </title>
          </head>
          <body>
             <h:form>
                <h:dataTable value="#{login.results}" var="order"
                   styleClass="orders"
                   headerClass="ordersHeader" columnClasses="orderid,name">
                   <h:column>
                      <f:facet name="header">
                         <h:outputText value="#{msgs.orderIDHeader}"/>
                      </f:facet>
                      <h:outputText value="#{order.Order_ID}"/>
                   </h:column>
                   <h:column>
                      <f:facet name="header">
                         <h:outputText value="#{msgs.nameHeader}"/>
                      </f:facet>
                      <h:outputText value="#{order.Name}"/>
                   </h:column>
                   <h:column>
                      <f:facet name="header">
                         <h:outputText value="#{msgs.phoneHeader}"/>
                      </f:facet>
                      <h:outputText value="#{order.Phone_Number}"/>
                   </h:column>
                </h:dataTable>
             </h:form>
          </body>
       </f:view>
    </html>Does this look reasonable?
    Thanks,
    Dave

  • Passing a parameter to a LookupDispatchAction

    Hi guys. Any idea how am I gonna do that?
    I be got a LookupDispatchAction that has 3-4 methods. The method I am trying to access needs to be passed a parameter. I can get the parameter like
    <html:link page="/updateTLDThrottle.do" paramId="tldName" paramName="item" paramProperty="key">
    delete</html:link>but I want to access a specific method on the updateTLDThrottle action. And I only know how to do that with submit buttons. Any ideas?
    Cheers

    anyone guys?

  • How to Pass parameter to Custom Scheduler dynamically

    hi ,
    I am new to OIM.
    Need your help in passing parameters dynamically to Custom Scheduler.
    I have created Custom Scheduler by extending Task Support.
    I have registered the plugin through API , using PlatformService.registerPlugin() method.
    As I need to send the parameter(s) to this CustomScheduler, I have defined them in Metadata (CustomScheduleTask.xml) file as below and got it imported into DB
    through weblogicImportMetadata.sh script by providing the path of the file.
    <scheduledTasks xmlns="http://xmlns.oracle.com/oim/scheduler">
    <task>
    <name>CustomScheduleTask</name>
    <class>org.schedule.custom.task.CustomScheduleTask</class>
    <description>Fetch details of the given user_id</description>
    <retry>5</retry>
    <parameters>
    <string-param required="true" helpText="Login Name">Login Name</string-param>
    </parameters>
    </task>
    </scheduledTasks>
    Iam able to import this plugin as well as register the plugin successfully. Now I have defined a job to which this Custom SchedulerTask is mapped.
    Now in order to run this job(schedule task) I need to provide Login name( or id) which needs to be send as a parameter for the scheduler to get executed.
    But while defining the job with this Schedule Task on OIM console, I was not able to define or pass parameter to this job. hence parameter is null in
    CustomSchedule 's execute method .
    Kindly help me how to pass parameter dynamically while running the scheduler from OIM console so that the execute method would be able to receive it.
    Thank you in Advance.
    Regards,
    Kumar

    Hi,
    When you have created the schedule job for your custom schedule task, you should see your Login Name textfield in the schedule task. If not, then there verify your schedule task xml.
    In your schedule class code, add:
    public void execute(HashMap arg0) {
              final String METHOD_NAME = "execute :: ";
              logger.debug(CLASS_NAME + METHOD_NAME + "Entering Method - execute");
              try {
                   String LoginName = arg0.get("Login Name");
    Regards,
    Sunny

  • How do I Pass a parameter to a SQL Component Task where the source SQL statement is also a variable

    Hi,
    I have been tasked with making a complex package more generic.
    To achieve this I need to pass a parameter to a SQL Component Task where the source SQL statement is also a variable.
    So to help articulate my question further I have create a package and database as follows; -
    USE [KWPlay]
    GO
    /****** Object: Table [dbo].[tblTest] Script Date: 05/14/2014 17:08:02 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[tblTest](
    [ID] [bigint] IDENTITY(1,1) NOT NULL,
    [Description] [nvarchar](50) NULL,
    CONSTRAINT [PK_tblTest] PRIMARY KEY CLUSTERED
    [ID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    I populated this table with a single record.
    I unit tested the SQL within SSMS as follows;
    SELECT * FROM dbo.tblTest
    Result; -
    ID           
    Description
    1             
    Happy
    DECLARE @myParam NVARCHAR(100)
    SET @myParam = 'Sad'
    UPDATE dbo.tblTest SET [Description] = @myParam FROM dbo.tblTest WHERE ID = 1
    SELECT * FROM dbo.tblTest
    Result; -
    ID   
    Description
    1    
    Sad
    Within the package I created two variables as follows; -
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = @myParam FROM dbo.tblTest WHERE ID = 1
    Name: strStatus
    Scope: Package
    Data Type: String
    Value: Happy
    I then created a single ‘Execute SQL Task’ component within the control flow as follows; -
    However when I run the above package I get the following error; -
    SSIS package "Package.dtsx" starting.
    Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "UPDATE dbo.tblTest SET [Description] = @myParam FR..." failed with the following error:
    "Parameter name is unrecognized.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Task failed: Execute SQL Task
    Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. 
    The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the
    errors.
    SSIS package "Package.dtsx" finished: Failure.
    I also tried; - 
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = ? FROM dbo.tblTest WHERE ID = 1
    However I received the error; - 
    SSIS package "Package.dtsx" starting.
    Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "UPDATE dbo.tblTest SET [Description] = ? FROM dbo...." failed with the following error: "Parameter name is unrecognized.". Possible failure reasons: Problems with
    the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Task failed: Execute SQL Task
    Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches
    the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
    SSIS package "Package.dtsx" finished: Failure.
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Tried; - 
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = ? FROM dbo.tblTest WHERE ID = 1
    and; - 
    Result; - 
    SSIS package "Package.dtsx" starting.
    SSIS package "Package.dtsx" finished: Success.
    Therefore the answer was to put the parameter number rather than the parameter name under the parameter mapping tab-> parameter name column. 
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

  • How to get jsp PageContext in custom component renderer

    Hi,
    How to find PageContext(javax.servlet.jsp.PageContext) form within the custom component renderer class?
    Please help?
    Thanx & Regards
    Milind

    Strictly you're looking which URL has invoked the new request? With other words, you want the referrer?
    If so, doString referrer = request.getHeader("referer"); // Yes, with the legendaric misspelling.Be careful with this, the client has full control over what he/she sends with the headers, so also the referrer. It might be null or changed while you didn't expect that. If you want to be safe, you may consider to send the current URL as a hidden parameter along with the request.

  • Navigating from Custom Component to Standard Compoent(IUICCON). Getting Exception "Define Component Usage 'Random Component Usage of Standard component'"

    Hi Everyone,
    We have a requirement to
    Navigate from Custom Component to the Standard Component(IUICCON – Contract
    management) on the basis of some conditions.
    We tried navigating with Manual
    as well Dynamic Navigation. The Navigation is happening properly and the Navigation is completed and we are on the Contract
    Management Screen(Standard component View).
    On the Contract Management
    screen (standard Component view), when we click on New Contract Button; it throws dump stating “Define
    Component Usage IUICOBJ”. After debugging we identified that the issue was with the Parent class/ component is getting changed, because of which the usage was not found.
    Appreciate your help.
    Thanks in Advance.
    Regards,
    Bhavikjp.

    Hi Bhavik,
    Check which is the active enhancement set at the runtime in the component_loading BADI.
    If it is anything other than your enhancement set,Set it to your enhancement set .
    Check if the parameter WCF_IGNORE_ENHANCEMT in Tcode SU01 is set to 'A' for the User.
    Regards JP.

  • When passing Node to parse() method get NULL pointer exception.

    All,
    I trying to pass a Node to parse method to get the NodeType object back and getting
    null pointer exception.
    Example
    xml
    <root>
    <Test>
    <someData>ABC</someData>
    </Test>
    </root>
    if pass the Test node to get Test object back I am getting null pointer exception.
    Thanks for all ur help
    Shoeb

    file 2
    ~~~~
    import javax.swing.*;
    public class ExtendedPage extends BasePage
    private JTextField objJTextField = null;
    private JButton objJButtonBrowse = null;
    Change the line in bold to
    private JTextField objJTextField;
    And everything works.

Maybe you are looking for