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

Use list in the other @AuraEanbled Method
Hi,
i am generating a list of Id in one method and i want to use that list in the other method to fetch data.
My program was working but all of sudden i am getting message as Attempt to de-reference a null object.
I found that the list is not asseccible in other methods.
i am generating a list of Id in one method and i want to use that list in the other method to fetch data.
My program was working but all of sudden i am getting message as Attempt to de-reference a null object.
I found that the list is not asseccible in other methods.
I've gone through your code and you cannot retain the state of aura component methods,that why you didn't receiving the list of (repCodeN),
Hence you can just set your (repCodeN) List to the aura attribute on setCallback method in jsHelper,and then when the (YmList) method is calling
pass the (repConN) List to the method.
1.
Lightning apex -->
2.JS Helper---->
3.Then get that component value (i.e.attributeNameForStoreRepConN)
4.Pass to the method to Ymlist.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com
No idea what is wrong.