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 opened a new issue #715: Uncaught TypeError: Cannot read property 'call' of undefined (base.js)

pashminakazi opened a new issue #715:
URL: https://github.com/apache/royale-asjs/issues/715


   ![image](https://user-images.githubusercontent.com/42200979/74325339-3d831000-4daa-11ea-837b-ad352ada90f5.png)
   ![image](https://user-images.githubusercontent.com/42200979/74325346-407e0080-4daa-11ea-9009-32380afb79f8.png)
   


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



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

Posted by GitBox <gi...@apache.org>.
pashminakazi edited a comment on issue #715:
URL: https://github.com/apache/royale-asjs/issues/715#issuecomment-644039777


   `<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


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



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

Posted by GitBox <gi...@apache.org>.
pashminakazi commented on issue #715:
URL: https://github.com/apache/royale-asjs/issues/715#issuecomment-644589214


   In **dbzSetupList**
   ```
   public function fn_FormatProductGrid( item:Object, column:AdvancedDataGridColumn):String {
       if (item[column.dataField] == null)
   	return item[column.dataField];
       else
           return dbzUtil.formatInputVal(item[column.dataField], arrProductFormat[1], arrProductFormat[0],arrProductFormat[2]); 
   }
   ```
   In `dbzFacilityMaster`
   ```
   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" replaced with labelFunction="CallingSetupFunction" as a royale workaround
   
   CallingSetupFunction Called
   ![image](https://user-images.githubusercontent.com/42200979/84744698-04171700-afcd-11ea-81ab-9a16b8360abb.png)
   ![image](https://user-images.githubusercontent.com/42200979/84744745-12653300-afcd-11ea-91dc-e43c4b1caf1a.png)
   
   CallingSetupFunction Called SetupList.fn_FormatProductGrid
   ![image](https://user-images.githubusercontent.com/42200979/84744811-24df6c80-afcd-11ea-864c-8e0824dacf5c.png)
   ![image](https://user-images.githubusercontent.com/42200979/84744928-4f312a00-afcd-11ea-84ca-82667d66748d.png)
   
   SetupList.fn_FormatProductGrid Called dbzUtil.formatInputVal
   
    dbzUtil.formatInputVal returns
   ![image](https://user-images.githubusercontent.com/42200979/84745056-74be3380-afcd-11ea-88d7-0dc27d0604ac.png)
   
   
   Product Code
   ![image](https://user-images.githubusercontent.com/42200979/84745264-c5359100-afcd-11ea-875b-ae037aa99de6.png)
   
   


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



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

Posted by GitBox <gi...@apache.org>.
aharui commented on issue #715:
URL: https://github.com/apache/royale-asjs/issues/715#issuecomment-644562754


   Is CallingSetupFunction called with the correct parameters?  Set a breakpoint and debug into it.  Make sure it returns the value from SetupList.fn_FormatProductGrid.
   
   If you want, post the code for CallingSetupFunction.


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



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

Posted by GitBox <gi...@apache.org>.
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



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

Posted by GitBox <gi...@apache.org>.
aharui commented on issue #715:
URL: https://github.com/apache/royale-asjs/issues/715#issuecomment-645152805


   CallingSetupFunction is a LabelFunction so it must return a String.  It can't be a `void`


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



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

Posted by GitBox <gi...@apache.org>.
pashminakazi commented on issue #715:
URL: https://github.com/apache/royale-asjs/issues/715#issuecomment-644039777


   <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


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



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

Posted by GitBox <gi...@apache.org>.
pashminakazi commented on issue #715:
URL: https://github.com/apache/royale-asjs/issues/715#issuecomment-645298682


   @aharui Thank u so much,Issue has been resolved by replacing **void** return type **String**


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



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

Posted by GitBox <gi...@apache.org>.
pashminakazi closed issue #715:
URL: https://github.com/apache/royale-asjs/issues/715


   


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



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

Posted by GitBox <gi...@apache.org>.
pashminakazi edited a comment on issue #715:
URL: https://github.com/apache/royale-asjs/issues/715#issuecomment-645298682


   @aharui Thank u so much,Issue has been resolved by replacing **void** return type by **String**


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