You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/05/04 11:47:50 UTC

[GitHub] [royale-asjs] pashminakazi commented on issue #715: Uncaught TypeError: Cannot read property 'call' of undefined (base.js)

pashminakazi commented on issue #715:
URL: https://github.com/apache/royale-asjs/issues/715#issuecomment-623416597


   i have created a local function :
   ```
   public function CallingSetupFunction(item:Object, column:AdvancedDataGridColumn):void {
   			    SetupList.fn_FormatProductGrid(item,column);
   			}
   ```
   <mx:AdvancedDataGridColumn dataField="setupDetailColumn3" headerText="Product Code" width="165" labelFunction="CallingSetupFunction"/>
   labelFunction="SetupList.fn_FormatProductGrid" is replaced with  labelFunction="CallingSetupFunction" 
   setuplist.fn_FormatProductGrid is called from local function but it doesn't work as it should work as a labelfunction
   
   and if i call SetupList.fn_FormatProductGrid directly from labelfunction then this exception occurs
   ![image](https://user-images.githubusercontent.com/42200979/80962614-c4cea580-8e26-11ea-9228-d4a13e85e09b.png)
   
   ![image](https://user-images.githubusercontent.com/42200979/80962625-cac48680-8e26-11ea-8b64-fbcf8af7a6d9.png)
   
   ![image](https://user-images.githubusercontent.com/42200979/80962634-d021d100-8e26-11ea-9c80-8957c5eb940e.png)
   
   
   Why this.Setuplist is undefined when i am calling this.SetupList.fn_FormatProductGrid as labelfunction ?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org