IDEAScripting Tips and Hints
Post for tips and hints on how to use IDEAScript.
How to disable warning messages
Forums
If you have ever created a script by copying code from the history or project overview you will know that if you run it and you haven't deleted your files you will get a warning asking you if you want to overwrite your file, so the code will stop each time and give you the warning. If you want to disable these warnings you can add this line to the top of your code:
IgnoreWarning(True)
Now using this will overwrite any files with the same name so use with caution.
- Read more about How to disable warning messages
- Log in or register to post comments
How to send a GMail through IDEAScript
Forums
I found this post on the IDEA forums on how to use IDEAScript to send a gmail message. Thought it might be of use to someone.
- Read more about How to send a GMail through IDEAScript
- 5 comments
- Log in or register to post comments
Field.Types
Forums
IDEA has 14 different field types. To access it in the script you would use the field.type function which would return an integer indicating which field type it is. I noticed something interesting about the field types, 4 of the types are for editable fields, so when you are creating the field you would use the editable field type but once they are created and you use IDEA to see what type of field it is IDEA views them as normal IDEA field types. Something to remember if you are using any editable types in your script.
Here is a breakdown of the field types.
- Read more about Field.Types
- 2 comments
- Log in or register to post comments
Internal Errors and using the DlgListBoxArray
Forums
I have been working on a script that allows for tagging, so I have dialogs that allow the user to select the field that contains the different information, first the user will get the file and then I populate the drop downs using the DlgListBoxArray.
DlgListBoxArray
Forums
The DlgListBoxArray is a really fun function but it is one that can cause lots of problems because of some undocumented issues.
- Read more about DlgListBoxArray
- Log in or register to post comments
Using the open database in your script
Forums
- Read more about Using the open database in your script
- Log in or register to post comments
Creating an Excel Pivot Table using IDEAScript
Forums
I had a member ask for some help in creating an Excel pivot table using IDEAScript.
How to use MS outlook in an IDEAScript
Forums
I recently gave an IDEAScripting course and one of the participants had a need to be able to send emails based on a IDEA database using IDEAScript. So I searched around the net and came up with the following that has worked on my home and work computers. I have read that in some instances outlook might be set-up to reject requests from other software to send emails, if that is the case then this script would be blocked. So in this example, I have five fields in an IDEA database, one of them is the email address and the others are information to insert into the message.&nbs
- Read more about How to use MS outlook in an IDEAScript
- 11 comments
- Log in or register to post comments
User Types
Forums
I was recently reviewing the IDEAScript training material for a class I am giving in a few weeks and came across the user type "variable". This is something I don't usually use but probably should. What it does is allow you to group different variable types into one grouping. Also within the grouping the variable types are not limited to the same type, so you can mix them up. I good example would be obtaining information from a database, you create a type that contains the different fields and define the variables so that it matches up with the information
- Read more about User Types
- Log in or register to post comments
Normalize Field Name
Forums
I just posted a snippet that will take a variable and change it into the format of an IDEA field name. As IDEA will automatically change a fieldname to uppercase and replace spaces and special characters with an underscore you need to do this in your script so that you have access to the proper field name, this snippet should help you out.
- Read more about Normalize Field Name
- Log in or register to post comments