javascript - Sencha app build native overwriting our custom code -


We are working in this application for a lot of time. Sina Touch 2.

We usually test and debug the code using Chrome and Wave

The problem we are experiencing is that we have some custom search and group lists Our lists have been added to the ideas. When testing and debugging using Chrome, everything was done as expected, but then we used the command to integrate it with Cordova and package it to make Android and iOS applications. We have used the following command:

  sencha app build native   

For some reason, the code generated by this command overwrites our custom search And grouping javascript code.

Why this may be happening, we like to talk that this equipment is not working properly, but we are doing something wrong which is causing this.

We do not know what might be the reason for this. Can anyone put some light in it? Why are our custom groupers and filming functions overwritten while packaging?

BILO How do we define the group method in our shop but it is a quote. Again, when we try this in our debug environment, it works correctly. The problem is that when we package it using the command given above, the grouper function is replaced by the default sync Touch 2 grouping function which returns the first letter of the string.

  Ext.define ('App.store.definitions', Extend: 'Ext.data.Store', Required: ['Ext.data.Connection'], Config: { Field: ['id', 'name', 'description'], sorters: 'name', grouper: function (records) {// These translations are available in AREAS Works, which are called "A"? A ?? a ?? A ?? one ?? a ?? a ?? a ?? a ?? a ?? a ?? a ?? a ?? a ?? a ?? a ?? a ?? a ?? a? ? A ?? "var desired =" AAAIEEEEEEOUUUUUUUI "; // We first get the first letters of the first name = first firstchar = record.get ('name'). ToUpperCase () [0]; // Next we see that it is a special character by checking the position in the accent string var n = Accent. Indexoff (fisture); // If the character is in the accent (This means that it is a special character We have (n & lt; & gt; -1) {firstchar = desiredview.chartrate (n);}; // and now we were returning the value of the group ad group price refund initialization;}   

After implementing the generated code, after executing "sinka app build netik" Sues that the grouper function is

  grouper: function (record) {var firstchar = record.get ('name'); Return Furnitures; }   

I tested a native build on one of my apps with a grupper Done and it is not in place of my code. I think you need to specify group fan parameters inside the grouper object. See the following example:

  Ext.define ('app.store.definitions', {extension: 'Ext.data.Store', required: ['Ext.data.Connection'] , Config: {fields: ['id', 'name', 'description'], sorters: 'name', grouper: {groupFn: function (record) {// These translations are arrays var accents = "a ?? ?? ? à ?? à ?? à ?? Ã?  Ã?  Ã?  Ã? Ã? Ã?  Ã? Ã? Ã? Ã? Ã? Ã? Ã? ÂÃ⠀ Ã⠀ šÃ,Â? Firstly, we increase the first letter of the name Variantchar = record.get ('name'). ToUpperCase () [0]; // Next The times we see that this accent string is var = Accent. IndexAf (Firstcar); // If character is in character (it means that it is a special character) by checking the position is a special character, then we get normal character (n & lt; & gt; ; -1) {First time = the desired view.ChartAut (n);}; // Now we just return this value add to group value return fisture;}}    < / Html>

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -