I'm assuming ItemHasHTML is hardcoded. If I create a field 'ItemHasURL' & give it the same properties it does not function the same way.
--
Jan Rifkinson
Ridgefield CT USA
Comments
Hi Jan,
You can create a DB generated field that will function the same as ItemHasHTML but for the URL field:
Create a new yes/no field
Name it ItemHasURL
In the options panel, enter: <source>SELECT ¯Items.ID AS ItemID, [ItemHasURL] AS [Value], [¯qURL.ID]>0 AS ItemHasURL FROM ¯Items LEFT JOIN ¯qURL ON ¯Items.ID = ¯qURL.ItemID WHERE (((¯qURL.ID) Is Not Null));</source>
Click Save
[edit] The Options textbox should wordwrap, but it doesn't (it used to...). I'll fix this in the next release
[quote=Pierre_Admin]You can create a DB generated field that will function the same as ItemHasHTML but for the URL field:
Create a new yes/no field
Name it ItemHasURL
In the options panel, enter: <source>SELECT ¯Items.ID AS ItemID, [ItemHasURL] AS [Value], [¯qURL.ID]>0 AS ItemHasURL FROM ¯Items LEFT JOIN ¯qURL ON ¯Items.ID = ¯qURL.ItemID WHERE (((¯qURL.ID) Is Not Null));</source>
Click Save[/quote]could you add this field to default new file?
Comments
<source>SELECT ¯Items.ID AS ItemID, [ItemHasURL] AS [Value], [¯qURL.ID]>0 AS ItemHasURL FROM ¯Items LEFT JOIN ¯qURL ON ¯Items.ID = ¯qURL.ItemID WHERE (((¯qURL.ID) Is Not Null));</source>
<source>SELECT ¯Items.ID AS ItemID, [ItemHasURL] AS [Value], [¯qURL.ID]>0 AS ItemHasURL FROM ¯Items LEFT JOIN ¯qURL ON ¯Items.ID = ¯qURL.ItemID WHERE (((¯qURL.ID) Is Not Null));</source>