- Log in to post comments
The code you supplied above doesn't compile correctly in Studio, so it looks like you can't read directly to a property of an object directly. In your case, I would try something like this:
Set Name=##class(Example.Team1).%New()
read "Enter your name: ",nameinput
set Name.Name = nameinput
set status = Name.%Save()
There may be other ways of getting input into an object property, but this is one of the easiest.
- Log in to post comments
I'm not sure exactly what you're asking here; if there are more specific questions, please let us know.
Have you reviewed the Cache Programming Orientation Guide available in our documentation? It's quite useful, and the "Basic Ideas in Class Programming" section seems like it would cover what you're asking about:
http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY…
- Log in to post comments
Thanks John, we'll make sure that typo gets fixed.