I've been struggling with what I think is a very useful list template method of displaying fields with an OnClick event in a defined item that calls the A5.msgBox.show() function.
For illustration the method is set up like this: The CITY field has a defined template item called ShowCity. The OnClick event for the template item calls the A5.msgBoxShow() javascript event to display the contents of the city field in a popup window.
List Layout Template.jpg Item Definition.jpg
You can display the contents of a list field by clicking on it. The usefulness of this is for fields that contain more data than can be easily shown on the list itself, and unlike pop-up bubble help it doesn't disappear until you close the window. The problem I am having is where any text that follows a double-quote (") is not displayed.
In case this is not very clear, I have attached a basic test case. The component is simple a list control based on static data. The city field is deliberately narrow such that not all of the text can be viewed. I've added a pop-up bubble help in the list onItemDraw event so if you hover over the city field you can see which fields have double-quotes. Now if you click any city field, you get the pop-up window. It will display the data correctly unless a double-quote is encountered.
2. Bubble Help.jpg 3. Item Method Double Quotes.jpg
If anyone wants to take a stab at it, I could use the help. I don't know if there is a way to javascript escape the double-quotes but I haven't had much luck yet. Its a pretty cool method.
For illustration the method is set up like this: The CITY field has a defined template item called ShowCity. The OnClick event for the template item calls the A5.msgBoxShow() javascript event to display the contents of the city field in a popup window.
List Layout Template.jpg Item Definition.jpg
You can display the contents of a list field by clicking on it. The usefulness of this is for fields that contain more data than can be easily shown on the list itself, and unlike pop-up bubble help it doesn't disappear until you close the window. The problem I am having is where any text that follows a double-quote (") is not displayed.
In case this is not very clear, I have attached a basic test case. The component is simple a list control based on static data. The city field is deliberately narrow such that not all of the text can be viewed. I've added a pop-up bubble help in the list onItemDraw event so if you hover over the city field you can see which fields have double-quotes. Now if you click any city field, you get the pop-up window. It will display the data correctly unless a double-quote is encountered.
2. Bubble Help.jpg 3. Item Method Double Quotes.jpg
If anyone wants to take a stab at it, I could use the help. I don't know if there is a way to javascript escape the double-quotes but I haven't had much luck yet. Its a pretty cool method.
Comment