Submitted by viking on 2017/07/29 20:58
In Ecco there is Auto-assignment and scripting (e.g. Lua).
In IQ there is rules/equations (and VBscript).
 
How do I write a rule that adds a letter (symbol) at the beginning of every newly created item?
 
For example, if I add a new item "Call mom", I want IQ to change the item text to "X Call mom".
 
In particular, I want X = Wingdings Char Code 108 (ASCII) (This would put a large bullet in front of every item like in Ecco)
 
 

Comments

Hi,
 
You could use an auto assign on the grid source field, but I recommend not. Mixing content with presentation is rarely a good idea.
 
Why not use outline labels, for that. Plus it can be turned off at any moment
 
Pierre_Admin
IQ Designer
 

viking

2017/07/30 03:39

In reply to by Pierre_Admin

[quote=Pierre_Admin]
You could use an auto assign on the grid source field,
 [/quote]
How would I do that?

Pierre_Admin

2017/07/30 12:59

In reply to by viking

 
I'll update the page with more samples. You can use the following as format
  1. •   :  shows a simple bullet on all items
  2. -<img>bullet</img>: a more fancy bullet (you can change the bullet.gif file to look more like Ecco's if you want
 
Pierre_Admin
IQ Designer
 

viking

2017/07/30 19:43

In reply to by Pierre_Admin

My question was actually how to use Auto assign. Putting that aside for the moment;

1. I was able to add a small bullet as format by typing Alt-0149 (Arial) or by copy/pasting it from Word.
However, it is not possible to use Wingdings Alt-0109 as I cannot select the font in the "Manage Outline Labels" dialogue. Is there some way to select the font here?
It also doesn't work to copy/paste Wingdings Alt-0109 from Word. Instead of a bullet I get another symbol (hollow square). Any way around that?
 
 
2.  I don't understand how to add the bullet.gif as format? Where is the image located and how do I enter it as a format?
I found the icon folder in IQ but it only has bullet.ico. I tried to use <img>bullet</img>, but it didn't work. (The label becomes  <iimg bullet> or similar)
 
 

Pierre_Admin

2017/07/30 19:47

In reply to by viking

[quote=viking]
I tried to use <img>bullet</img>, but it didn't work. (The label becomes  <iimg bullet> or similar)
 [/quote]
I'll write up a page on using icons tomorrow. In the meantime, notice the "-" before the <img> tag in my previous post. I'll fix it in v100a, but right now, it is required for proper parsing
  1. -<img>bullet</img>: a more fancy bullet (you can change the bullet.gif file to look more like Ecco's if you want
Icons are of course saved in the installation folder \ icons. Restart IQ after changes to the icon list
 
HTH !
 
Pierre_Admin
IQ Designer
 

Pierre_Admin

2017/07/30 21:18

In reply to by viking

I'll add a context menu in that edit box, but for now, you can enter the font tag
<font Wingdings>l</font> for example shows a round style bullet:
 
Pierre_Admin
IQ Designer
 

viking

2017/07/31 00:14

In reply to by Pierre_Admin

1. I still couldn't get the icon labels to work. I will wait until there is a write-up about it.
 
2. I also couldn't get the wingdings font  to work properly. Here is what is looks like in a new default file:
 
 
3. BTW, it seems that the Outline labels are stored in the IQ file?  Do they need to be recreated for each file or can they be saved and loaded in a new file?
For that matter, where are other settings stored? Can they be saved and loaded in a new file?

Pierre_Admin

2017/07/31 07:18

In reply to by viking

I don't think you're running v100... please confirm
 
It is also a good idea to provide system information in your signature, like some others do
 
Pierre_Admin
IQ Designer
 

viking

2017/07/31 18:00

In reply to by Pierre_Admin

Sorry, I didn't realize that this was a new feature (I used the prev. version). I upgraded to v100:
 
1. I still couldn't get the image labels to work. Here is what I get when I use -<img>bullet</img>

2. OK. Font labels works now
 
 
3. BTW, it seems that the Outline labels are stored in the IQ file?  Do they need to be recreated for each file or can they be saved and loaded in a new file?
For that matter, where are other settings stored? Can they be saved and loaded in a new file?
 
4. Using the Font labels, the item text looks like this:
 
I wonder if it somehow is possible to format the text like in Ecco instead:
 
p.s. How can I add a signature to my forum profile?
 
IQ v0.9.100 portable
Windows 7 64-bit
 

Pierre_Admin

2017/07/31 18:32

In reply to by viking

  1. Perhaps you don't have the bullet.gif file in the icons folder. It should be there, it is part of the standard portable package. Try something else perhaps
  2. Good. v101 will ease that setup
  3. v101 will add Export / Import of outline labels definition (yes, stored in the file)
  4. No
  5. See "My account" on the main menu
 
Pierre_Admin
IQ Designer
 

viking

2017/07/31 19:48

In reply to by Pierre_Admin

1. There is no bullet.gif in the icons folder, but bullet.ico. That didn't work. I also tried clip.gif, but that also didn't work.
 
 
6. In Ecco the icon changes depending on certain condition. For example, if the item is a subitem (and the parent shown elsewhere), the bullet becomes a folder. Like this (see "Need to register Ecco"):
 
Can this be done with IQ? That is why I originally wanted to use Auto Assignment to add the symbol; I could change the icon depending on the conditions.
Maybe this would be a feature request otherwise; It is convenient to "mark" items this way (I use item fonts, colors etc for other things)

Pierre_Admin

2017/07/31 20:23

In reply to by viking

Hi viking,
 
First a friendly warning... if you persist in exactly reproducing your beloved Ecco in InfoQube, you will most likely fail again...
 
While similar, Ecco and IQ are different and you must open your mind and habits to have the community help you in solving the same problems, and hopefully many more with IQ.
 
That said, as to this specific case, there certainly are ways to have a field (shown as a column and in the Properties pane) that will collect all sorts of item properties, and show these as text , text / background color or as icons.
Armando here is our world champion when it comes to this kind of visual automation. I know he's busy these days but if you make specific and clear requests as to what you'd like to see (without too much requirements as to the how you'd see it), he or someone else will chip in eventually.
 
p.s. icon names are case sensitive, which explains why clip and bullet did not work. Try Clip and Bullet instead. That's on the todo's list to fix.  
 
HTH !
 
 
Pierre_Admin
IQ Designer
 

viking

2017/08/01 00:16

In reply to by Pierre_Admin

[quote=Pierre_Admin]
That said, as to this specific case, there certainly are ways to have a field (shown as a column and in the Properties pane) that will collect all sorts of item properties, and show these as text , text / background color or as icons.
[/quote]
Which field type could I use to hold icons/images?

Tom

2017/08/01 07:25

In reply to by viking

[quote=viking]Which field type could I use to hold icons/images?[/quote]I dont use icons, but have you read this page:
-- link to nonexistent node ID 738 --

viking

2017/08/02 00:46

In reply to by Tom

Thanks Tom,
I have tried this <img>Bullet</img> (and this <img>Bullet.ico</img>) in a text field and in item text, but it didn't work (the field was just blank). I also tried other icons with the same result.