New to Zen

159 views
Skip to first unread message

ChrisB

unread,
Oct 13, 2012, 6:20:48 AM10/13/12
to intersys...@googlegroups.com
Hi - Further to our migration to Cache from Pick, I have now just started using Zen and am trying to setup a Zen Page for one of our existing files (following the MV tutorial) and when trying to View the Web Page I get this error highlighted below. Any help on what this means and how to resolve it  would be appreciated. It appears in the documentation which I am unable to follow.
Thanks Chris
 
ERROR #5540: SQLCODE: -12 Message: A term expected, beginning with either of: identifier, constant, aggregate, $$, (, :, +, -, %ALPHAUP, %EXACT, %MVR %SQLSTRING, %SQLUPPER, %STRING, %TRUNCATE, or %UPPER^ SELECT TOP ? ID , Code , DESC

SOURCE ELEMENT: %ZEN.Component.tablePane (personTable)

oppod...@googlemail.com

unread,
Oct 13, 2012, 6:58:07 AM10/13/12
to intersys...@googlegroups.com
Try to Test the query in managementportal. Shouldn't be a Zen related problem.
Is there a column named desc? Have you tried "desc" ?

htg

unread,
Oct 13, 2012, 10:14:59 AM10/13/12
to InterSystems: Zen Community
DESC is an SQL reserved verb.
to use it a column name write it quoted "DESC"

ChrisB

unread,
Oct 15, 2012, 5:57:47 AM10/15/12
to intersys...@googlegroups.com
Hi and thanks for the help. Changed the class property name of Desc to AccDesc and it all worked ok,

peter cooper

unread,
Oct 15, 2012, 8:06:49 AM10/15/12
to intersys...@googlegroups.com

Hi Chris

 

The SQL that is driving the tablepane is incorrect somehow

Would need to see yr full code to help

 

Peter

--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to InterSys...@googlegroups.com
To unsubscribe from this group, send email to InterSystems-Z...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/InterSystems-ZEN?hl=en
Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions

ChrisB

unread,
Oct 15, 2012, 8:14:57 AM10/15/12
to intersys...@googlegroups.com
Hi Peter,
 
Thanks but have resolved the problem. One of the class properties I was using was named Desc but have since renamed it and all works,
 
Chris

peter cooper

unread,
Oct 15, 2012, 8:51:45 AM10/15/12
to intersys...@googlegroups.com

Hee Hee

 

My naming convention has all properties beginning with a “p” (for poperty) so I would call it “pDesc” or “pTable” this way it avoids any SQL reserved word clashes

 

BTW you can always change the SQL name of a property with the “SQLNAME” property parameter

So you can say

Property DESC as %String (SQLNAME=”somthingelse”);

 

But then you have the issue that you have to remember two different names according to if you are using the object or SQL projections – I prefer my way :}

Reply all
Reply to author
Forward
0 new messages