411
Views
2
Comments
cannot read property of undefined (reading 'value')

I have a button 'create requisition' in my homepage that on click goes to another page which is a form. It was working fine until after some modification in some other page, I don't know what happened but now just on clicking the ' create requisition' button I am getting the error 'cannot read property of undefined (reading 'value')' . The aggregate of the database entity looks fine as it was working earlier. 

One input field example is 'GetRefundById.List.Current.Refunds.PriceOfRefund ' for Price of Refund input.

I made a new screen totally using drag and drop of entity on the mainflow and connected only this detail screen to the homepage, still it shows the same problem.

I don't understand where the problem is, as there is no flow involved, just loading that certain screen is giving the error 'cannot read property of undefined (reading 'value') '.

If anyone has any solution to this, let me know.

Thanks in advance.

2021-08-12 05-19-40
Shubham Janbandhu

Hi Soujannya Roy,

are you using javascript for the screen at On Initialize or somewhere else.

Could you share some screen shots or oml file if possible.

Thanks,

Shubham 


UserImage.jpg
Saurabh Shivananda Prabhu Chimulkar

Hi Soujannya Roy,

From the error thrown it is evident that there is a some javascript that is running which is trying to access an element that is yet to be rendered on the screen or has property that is null/undefined.

Adding Javascript event listeners should be done once the Page DOM is loaded (On Ready event). Will suggest to debug the Javascript using Chrome Dev Tools to identify the root cause.

Below is a link to a video tutorial on how to go about debugging Javascript in Chrome

https://www.youtube.com/watch?v=H0XScE08hy8


Regards,

Saurabh

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.