Notifications
Announcements
No record found.
Right now I'm sending data from a Form to a table using X ++ code, but I have a problem, for example with a string type field it would be something like * NameBox.valueStr (); * but the field I want to take the value would be in this case a Real type and I do not know how to take the value of a real type field, or if there is any way to change that valueStr to valueReal or Int, depending on the type of field that is used
valueStr() is a method, not an operator.
FormRealControl class has realValue() method, FormIntControl has value().
By the way, I don't use valueStr() with string fields either - I prefex text() method.
If you need a more dynamic structure, you can check the Global::formControlValue method
thanks bro, i'm new to ax and it cost me a bit.
Another thing, how would the syntax for a blank field be, to make a condition that the user must fill in the text field compulsorily?
If your question ("How to Change valueStr operator") has been answered, please don't forget to mark the verified answer (by Did this answer your question > Yes).
If you have another question, feel free to create a new thread (with an apropriate title a tags). By the way, tell us there if you're talking about an unbound control or a control bound to datasource field.
Another thing, how would the syntax for a blank field be, to make a condition that the user must fill in the text field compulsorily
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.
Martin Dráb 646 Most Valuable Professional
André Arnaud de Cal... 529 Super User 2025 Season 2
Sohaib Cheema 285 User Group Leader