org-scn-design-studio-community / sdkpackage

SDK Package of SCN Design Studio Community
Apache License 2.0
32 stars 29 forks source link

Design Studio SDK UI5 Table - Decimal formatting applied to all dynamically-loaded numerical data #160

Open ephraimrosenfeld opened 7 years ago

ephraimrosenfeld commented 7 years ago

Expected Behavior When using the Design Studio SDK UI5 Table component, discrete, integer values (e.g. '1' vs. '1.01') should not have decimal formatting.

Actual Behavior The UI5 Table component works fine for static data, such as data defined in the 'Properties' panel of the BYO Data Source component.

However, when data is added to the data-source dynamically, all numeric values, whether they are discrete integers or floating-point numbers, appear with decimal formatting (e.g. '#.00').

Steps to reproduce In the attached exported Design Studio application, TestNonDecimalsSDKUI5Table-20170327092945.zip, there are two tables, both feeding off of different BYO data sources. The first uses a static set of data defined in the 'Properties' panel of the data-source.

The second, has its data loaded dynamically in the onStartup() event of the application: DS_2.addRow("Grocery,Juice", "100,1"); Its integer data appears with decimal formatting, even when such formatting is inappropriate: ui5_table_decimalsfordynamicallygenerateddata