1 Reply Latest reply on Feb 10, 2011 1:46 AM by rohsin47

    approval container customization issue

    rohsin47 Level 1

      Hi,

       

      while creating custom approval container as descibed in "customize workspaceUI" doc, i m getting the below error.

       

      ReferenceError: Error #1056: Cannot create property taskform on lc.procmgmt.ui.task.TaskRouteCommandBarModel.
      at MethodInfo-10361()
      at mx.binding.utils::BindingUtils$/bindProperty()
      at FormAreaModel/configureLoadForm
      at custApprovalContainer/returnWorkspaceSession()

      at custApprovalContainer/__lcconnector_setWorkspaceData()

      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at lc.procmgmt.ui.task.form::TaskSWFForm/fetchDataHandler()

       

       

      The reason and how do  i correct this?

        • 1. Re: approval container customization issue
          rohsin47 Level 1

          got it..

           

          no wories.

           

          but i thnk, it would be better if a clear distinction is shown between two parmeters in BindingUtils.bindProperty() .

           

          this is what given.

           

          BindingUtils.bindProperty(taskRouteCommandBarModel, "taskForm", this, "taskForm");

           

          so here one need to note that 2nd and 4th are differnet parameters, not the same, 2nd is taskRouteCommandBarModel object; property - taskForm and 4th is property u have defined in your custom class to which u r going to bound 2nd parameter.

           

          now what i did is i thought them to be same and defined as same . so actually what i did that i have defined var as taskform:taskForm and so in the method and then i got stuck with the above error.

           

          after a litle bit reading in actionscript ref., i got it.