Marketcircle    Forums  Hop To Forum Categories  Daylite  Hop To Forums  Share Zone    Extra Fields HUD
Page 1 2 
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Pro
Picture of Andrew Migliore
Posted
Daylite Central has a couple of useful examples of HUD although there are some bugs in them. Looking at the code I am curious why no one is using the loop construct. The Extra Fields HUD in particular could really use it...

Here is a snippet of it re-written to use the loop construct:

<$loop value 1 12 1 loop1$>
	<$identify extraFieldLabel=model.extraFieldsNames.extra<$value$>$>
	<$identify extraFieldDefaultLabel=Extra Field <$value$>$>
	<$identify extraFieldValue=model.extra<$value$>$>
	<$if extraFieldLabel != extraFieldDefaultLabel$> 
	<tr>
		<td>
			<span class="dl_business_normal">
				<a href="daylite://ShowObject/? \
Entity=<$model.entity.name$>&ID=<$model.primaryKeyValue$>" \
title="Edit <$extraFieldLabel$>"><img src="edit.tif" \
align="bottom" class="icon" /></a>
				  <$field extraFieldLabel$>
			</span>
		</td>
		<td>
			<span class="dl_business_normal">
				<strong><$model.extra<$value$>$></strong>
			</span>
		</td>
	</tr>
	<$endif$>
<$endloop loop1$>

This message has been edited. Last edited by: Andrew Migliore,


Andrew Migliore
Lurker Films
http://www.lurkerfilms.com
 
Posts: 124 | Location: Portland, OR | Registered: August 15, 2007Reply With QuoteEdit or Delete MessageReport This Post
JRP
Pro
Posted Hide Post
Andrew,

I, for one, have absolutely no idea what you're talking about. Could you give a brief explanation of the value of a loop construct, i.e., what it does smile
 
Posts: 141 | Registered: February 24, 2007Reply With QuoteEdit or Delete MessageReport This Post
Pro
Picture of Andrew Migliore
Posted Hide Post
Just programming talk. A more compact and efficient way to write HUDs. This is probably not the best forum for this info.

So here is a link to the rewritten Extra Fields HUD with icons and auto filtering. Click on the icon representing the date or field and it opens the object to edit.

Custom FIelds HUD


Andrew Migliore
Lurker Films
http://www.lurkerfilms.com
 
Posts: 124 | Location: Portland, OR | Registered: August 15, 2007Reply With QuoteEdit or Delete MessageReport This Post
JRP
Pro
Posted Hide Post
Thanks, Andrew. Good stuff.
 
Posts: 141 | Registered: February 24, 2007Reply With QuoteEdit or Delete MessageReport This Post
Apprentice
Posted Hide Post
Thanks Andrew, very nice piece of code that performs very well.
 
Posts: 20 | Location: Massachusetts, USA | Registered: June 22, 2006Reply With QuoteEdit or Delete MessageReport This Post
Journeyman
Posted Hide Post
Andrew: The HUD doesn't seem to work in 3.7.
 
Posts: 60 | Registered: November 14, 2007Reply With QuoteEdit or Delete MessageReport This Post
Pro
Picture of Andrew Migliore
Posted Hide Post
quote:
Originally posted by Atticus:
Andrew: The HUD doesn't seem to work in 3.7.


I am using 3.7 Build 1532 and it appears to work fine. Did you click on the "plus" sign in the upper right HUD area to activate the widget?


Andrew Migliore
Lurker Films
http://www.lurkerfilms.com
 
Posts: 124 | Location: Portland, OR | Registered: August 15, 2007Reply With QuoteEdit or Delete MessageReport This Post
Journeyman
Posted Hide Post
I'm using a demo version of 3.7 and have had problems with it crashing. We're trying to figure it out. Right now, the program seems to be working but the HUD doesn't work. I might have data in one extra field and a date in an extra date field. The date will show but not the text in one contact. With similar information in a separate contact, nothing shows. Not sure what to do. Maybe the database is corrupt. If there's a way to delete the database, maybe I can start over, reinstall DL and see what happens.
 
Posts: 60 | Registered: November 14, 2007Reply With QuoteEdit or Delete MessageReport This Post
Journeyman
Posted Hide Post
Here's what it looks like:

 
Posts: 60 | Registered: November 14, 2007Reply With QuoteEdit or Delete MessageReport This Post
JRP
Pro
Posted Hide Post
Atticus,

I'm on 3.7 and the HUD is working for me. Did you make sure to put HUD in the name of the note(s). If you don't, the HUD won't pull the note(s) up.
 
Posts: 141 | Registered: February 24, 2007Reply With QuoteEdit or Delete MessageReport This Post
Journeyman
Posted Hide Post
JRP: No, the Notes HUD works fine. I was trying to show how the Custom Fields HUD wasn't working. There's nothing in the Custom Fields box although there are a number of entries in the Extra Fields on the left side of the pic.
 
Posts: 60 | Registered: November 14, 2007Reply With QuoteEdit or Delete MessageReport This Post
JRP
Pro
Posted Hide Post
Sorry, thanks for the clarification.
 
Posts: 141 | Registered: February 24, 2007Reply With QuoteEdit or Delete MessageReport This Post
Veteran
Picture of Howard
Posted Hide Post
Atticus,

I found that if you leave the custom field's name as the default, then nothing will be shown. Try to edit the names of each custom field that you need to use to some other value and see what happens.


Regards,

Howard
 
Posts: 841 | Registered: June 18, 2006Reply With QuoteEdit or Delete MessageReport This Post
Journeyman
Posted Hide Post
Howard:

Bingo! That explains why I had a date showing in exactly one field; the field name had been changed.

Thanks so much!
 
Posts: 60 | Registered: November 14, 2007Reply With QuoteEdit or Delete MessageReport This Post
Veteran
Picture of Howard
Posted Hide Post
Atticus,

NP, MP, GTH. TTYS.
smile


Regards,

Howard
 
Posts: 841 | Registered: June 18, 2006Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community Page 1 2  
 

Marketcircle    Forums  Hop To Forum Categories  Daylite  Hop To Forums  Share Zone    Extra Fields HUD

© Copyright 2006 Marketcircle Inc. All rights reserved.