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(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(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%7Ca98830c96afb47d7016408d7637ab091%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637087250906390820&sdata=SH3Zuu8vQg3eBIgRbdWh5Yme%2BvGu%2BmOwfoa4%2Fapj2nc%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(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
