I guess I do have one other slightly random question... trying to think how that could be happening at the amf level. I notice this is in module code. Is there any chance that the same VO class is present in another module with a slightly different definition (e.g. Number typing of that same field)? It's a long shot, but it would be good to rule out something unusual like that.
On Sat, Nov 9, 2019 at 6:11 AM Greg Dove <[email protected]> wrote: > > I can't really be too sure about how things are working without seeing the > code, but I am assuming the following: a DDL (also called 'ad_SanType' in > the dbzAdjustmentTypeSetup View Class) is setting the 'ad_SanType' value on > an instance of the VO, and that the instance of the VO is used in a > remoting call to send to java side. > The '0.0' makes me wonder if a formatter is being used somewhere. > > Anyway I will look at the AMF testing for int/Number very shortly. > > > > On Sat, Nov 9, 2019 at 5:59 AM Alex Harui <[email protected]> wrote: > >> Good that you noticed it is a string. For some reason I thought I saw >> int. Anyway, so far, I haven’t seen any place in the app that changes that >> value, so I guess she’s claiming that an empty string is getting serialized >> as “0.0”. >> >> >> >> I will try to see if that value is being set to something other than >> empty string at serialization time. >> >> >> >> -Alex >> >> >> >> *From: *Greg Dove <[email protected]> >> *Date: *Friday, November 8, 2019 at 7:48 AM >> *To: *Alex Harui <[email protected]> >> *Cc: *Apache Royale Development <[email protected]>, " >> [email protected]" <[email protected]> >> *Subject: *Re: dropdownlist selectedItem.id to VO property >> >> >> >> I am afk atm but can check that for sure in a few hours time. However, >> looking at that VO js output code... 'ad_SanType' appears to be a String >> typed field on the VO? In fact all of them are String types. Is that >> correct? If yes, is it getting assigned '0.0' (string) as its value >> somewhere? >> >> On Fri, 8 Nov 2019, 21:41 Alex Harui, <[email protected]> wrote: >> >> @Greg Dove Is there a test that an int with the value 0 is properly >> serialized by AMF as 0 and not 0.0? >> >> -Alex >> >> On 11/7/19, 11:21 PM, "Alina Kazi" <[email protected]> wrote: >> >> Hi Alex, >> >> Launch : >> Module : Inventory (Inventory from select in Menu) >> Go to Adjustment Types (from Setups in Menu) >> Click save button on Adjustment Types setup to test the scenario and >> system will call validateForm server side method. Value of 'ad_SanType' >> will be 0.0 and it should be "0" >> On server side we have put breakpoint on validateForm. You will see >> the change value on server side(java). >> >> Files : >> >> D:\DBIZSOL\Main\Royale\src\com\dbz\modules\INV\dbzAdjustmentTypeSetup.mxml >> D:\DBIZCOMLIB\src\com\dbz\VO\INV\dbzAdjustmentTypeSetupVO.as >> >> Regards, >> Alina Kazi >> >> -----Original Message----- >> From: Alex Harui [mailto:[email protected]] >> Sent: Thursday, November 7, 2019 2:09 PM >> To: [email protected]; [email protected] >> Subject: Re: dropdownlist selectedItem.id to VO property >> >> What file contains the: >> >> org.apache.royale.utils.Language.as >> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Forg.apache.royale.utils.Language.as&data=02%7C01%7Caharui%40adobe.com%7C3eb62c5525094e8ec86508d764631e9e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637088249186590873&sdata=DUJ4rjz23k1D5NfkKRz52DNWeziBSRlTNbxha4%2BYl7o%3D&reserved=0> >> (this.dbzAdjustmentTypeSetup_valueObj, >> com.dbz.VO.INV.dbzAdjustmentTypeSetupVO) >> >> and what does that source code look like? >> >> -Alex >> >> On 11/7/19, 4:04 AM, "Alina Kazi" <[email protected]> wrote: >> >> Hi, >> >> >> >> We have a custom vo dbzAdjustmentTypeSetupVO >> >> >> >> When we send it to java side from royale side system change its >> value on >> line : >> >> org.apache.royale.utils.Language.as >> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Forg.apache.royale.utils.Language.as&data=02%7C01%7Caharui%40adobe.com%7C3eb62c5525094e8ec86508d764631e9e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637088249186600874&sdata=9KFgi4idiagPU8MmpdSqo9pQ7C7tjdCOzFuGhFY5E2s%3D&reserved=0> >> (this.dbzAdjustmentTypeSetup_valueObj, >> com.dbz.VO.INV.dbzAdjustmentTypeSetupVO) >> >> dbzAdjustmentTypeSetupVO file is >> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2Fwonx1&data=02%7C01%7Caharui%40adobe.com%7Ce877a2f0308643d67a0f08d7641c38c1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637087944683475841&sdata=ilPgLulQq6MZGdTg5XN%2F3upVTUZ8EZOxvE73Q3NNt04%3D&reserved=0 >> <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2Fwonx1&data=02%7C01%7Caharui%40adobe.com%7C3eb62c5525094e8ec86508d764631e9e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637088249186600874&sdata=Iq2FAaoOrdZVsEBVjB25hO8U58fygSaEzaYMmA1poC4%3D&reserved=0> >> >> its property ad_SanType is 0 and it becomes 0.0 after the >> execution of line >> org.apache.royale.utils.Language.as >> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Forg.apache.royale.utils.Language.as&data=02%7C01%7Caharui%40adobe.com%7C3eb62c5525094e8ec86508d764631e9e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637088249186610864&sdata=b6h1Qzn0KEJtarVycM1qYHKX9hDTRKcFNKUVlDMshJg%3D&reserved=0> >> (this.dbzAdjustmentTypeSetup_valueObj, >> com.dbz.VO.INV.dbzAdjustmentTypeSetupVO) >> >> >> >> 'ad_SanType': { type: 'spark.components.DropDownList', access: >> 'readwrite', >> declaredBy: 'dbzAdjustmentTypeSetup'} >> >> 'ad_SanType' is a dropdownlist though all our properties in >> dbzAdjustmentTypeSetupVO were of string type. >> >> >> >> -Alina >> >> >> >> >> >> >> >> >>
