Polymer reset parameters format not working

落花浮王杯 提交于 2020-12-15 01:44:08

问题


I am new to Polymer 2.0. I need to update a field called Print Name to set the values I put in First Name + Last Name. Currently I get a version of it that is not working as I get bad request. 'System.FormatException: Input string was not in a correct format.'

_updateField(e) {
                e.preventDefault();
                this.set('_contract.signeeContact.printName', [this._contract.signeeContact.firstName, this._contract.signeeContact.lastName]);
                // printName: ["firstName", "LastName"] // this is not correct it should be
                // printName: ["firstName LastName"] // correct request should look like this
            }

the format is not correct. Can someone give me a hand with this? Thank you in advance.

来源:https://stackoverflow.com/questions/65254872/polymer-reset-parameters-format-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!