You need to sign in to do that
Don't have an account?

Pre-populate fields lightning components
Hi all,
Im currently facing an issue with the "e.force:createRecord" when trying to pre populate some fields from an object to another one. Im using the "defaultFieldValues" and almost every field is populated correctly (Lookup, text,etc) except Currency and Master-Detail.
For your understanding of the issue, when i query the data and show it on the console its shows completly fine ("234" currency field), but at the moment to pre populate it just dont, it keeps the field blank. Also ive tried to: ParseInt, Integer the value, and nothing.
Also, the fuctionallity on Classic mode it working fine, so its not a permision issue (Profile, FLS,etc).
Do you know why is this happenening? Happens to 2 different currency field and also to the master-detail (havent reasearch or even tried anything on this but if you can help also i will appreciate it).
Thanks!!
Im currently facing an issue with the "e.force:createRecord" when trying to pre populate some fields from an object to another one. Im using the "defaultFieldValues" and almost every field is populated correctly (Lookup, text,etc) except Currency and Master-Detail.
For your understanding of the issue, when i query the data and show it on the console its shows completly fine ("234" currency field), but at the moment to pre populate it just dont, it keeps the field blank. Also ive tried to: ParseInt, Integer the value, and nothing.
Also, the fuctionallity on Classic mode it working fine, so its not a permision issue (Profile, FLS,etc).
Do you know why is this happenening? Happens to 2 different currency field and also to the master-detail (havent reasearch or even tried anything on this but if you can help also i will appreciate it).
Thanks!!
As i mention before all other fields are populating just fine, so i belevie im seeting the values ok. Also querying them from my Apex class.
OfferController.js
"defaultFieldValues" and almost every field is populated correctly (Lookup, text,etc)
... with <force:inputfield> ? this component is only prepulated with the defaultFieldValues. That is IMPOSSIBLE from the controller and so, this component is almost not usable.
My detailed explanation here:
https://developer.salesforce.com/forums/?id=9060G000000Bj9tQAC
This list of drawbacks of <force:inputfield> is not explained in the documentation (excepted for some types of field (dependant picklist)).
There is no example of a lookup field in the Lightning Components Developer Guide.