Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [UR] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=23)
-   -   Syntax error in Title Expression (https://www.kinook.com/Forum/showthread.php?t=5257)

FlagTech 03-15-2014 09:50 AM

Syntax error in Title Expression
 
A couple questions...

(1) Is it possible to use the Item Text attribute in a template's Title Expression? I'd like to use the 1st line of it...or, if there's any way to limit it to, say the first 50 characters.

(2) After playing with all this a bit, seems I can't get any Title Expression string to work except the default one which is based on attribute numbers:

trim(coalesce([991] || ', ' || [990],[991],[990],[16],[974],[967],'(New Contact)'))

For instance, I've tried these:

trim(coalesce([Item Text],[Lastname] || ', ' || [Firstname])
trim(coalesce([Lastname] || ', ' || [Firstname])

(As you can see, I've renamed a couple of the default Contact form attributes.)

Anyway, regardless of the values in those fields, the node text in the tree displays SYNTAX ERROR.

Any ideas on what I'm doing wrong?

Also, is it possible for me to determine the attribute number of an attribute (including my custom attrib's)? That would allow me to follow the pattern of the default Title Expression, to build my own using attribute numbers.


()

kinook 03-15-2014 10:50 AM

Quote:

Originally Posted by FlagTech (Post 20711)
A couple questions...

(1) Is it possible to use the Item Text attribute in a template's Title Expression? I'd like to use the 1st line of it...or, if there's any way to limit it to, say the first 50 characters.

No, that isn't supported.

Quote:

(2) After playing with all this a bit, seems I can't get any Title Expression string to work except the default one which is based on attribute numbers:

trim(coalesce([991] || ', ' || [990],[991],[990],[16],[974],[967],'(New Contact)'))

For instance, I've tried these:

trim(coalesce([Item Text],[Lastname] || ', ' || [Firstname])
trim(coalesce([Lastname] || ', ' || [Firstname])

(As you can see, I've renamed a couple of the default Contact form attributes.)

Anyway, regardless of the values in those fields, the node text in the tree displays SYNTAX ERROR.

Any ideas on what I'm doing wrong?
That will occur if a non-existent or unsupported (i.e., Item Text) attribute is specified.

Quote:

Also, is it possible for me to determine the attribute number of an attribute (including my custom attrib's)? That would allow me to follow the pattern of the default Title Expression, to build my own using attribute numbers.
Go to Tools | Attributes, right-click the column header, and check ID.

FlagTech 03-15-2014 12:16 PM

> Go to Tools | Attributes, right-click the column header, and check ID.

Cool!!


All times are GMT -5. The time now is 02:27 AM.


Copyright © 1999-2023 Kinook Software, Inc.