Notifications
Announcements
No record found.
Hi
I have added a html editor and button on form extension. On button click I want to get the content of html editor.
HTMLEditor text = projtableform.design(0).controlname("desc") ;
text.valueStr() not returning any value.
How to do it? Thanks
Pradeep M
If you debug it, is the "text" variable not null before you try to call the .valueStr() method?
Does your form have a text field called "desc"? Is there some text in that field?
Yes the text variable is not null. And there is a html editor on the form with name desc. And in providing a value to it. But I'm not getting that value through code.
Perhaps you could try to cast it as HTMLEditor type:
HTMLEditor text = projtableform.design(0).controlname("desc") as HTMLEditor;
You could also use cross references to see how HTMLEditor is used in the standard application, just in case there's something special that you neee to do.
Did you look at standard email template form ? It uses HTML editor as well and may provide you some direction to achieve your task. Also refer below link . Its old but may help you
stackoverflow.com/.../using-sysinethtmleditor-in-ax-2009
Still not able to get the content from HTML editor control on button click. Any Suggestions ?
Sukrut
And yes I have seen the code for standard email template form. it has functionality to set the content to HTML editor but not read the content.
Hi Pradeep,
You need to use the parmHtmlContent() method, this method can set and get html content.
Hope this helps :)
Regards,
M
Thank You Mohammad Al-Saheb ..It worked :)
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 449 Super User 2025 Season 2
Martin Dráb 422 Most Valuable Professional
BillurSamdancioglu 239 Most Valuable Professional