IDEAScript Questions
If statement to apply a field equation
Forums
I wrote a function that iterates through a database and returns true if a string is found and false if it is not found.
I inserted the string into code as indicated below to apply an eqn to a field.
If StringExists("PayElements-SpecialPay","ELEMENT",rec.GetCharValue("ELEMENT_NAME")) field.Equation = "XXXXXX"Elsefield.Equation = "YYYYYY"End If
- Read more about If statement to apply a field equation
- 12 comments
- Log in or register to post comments
Variable replace field name
Forums
Hi,
I would like once the name of the field defined in the dialog box that is attached to a variable that will change the name of the field.
Thanks for the help
- Read more about Variable replace field name
- 3 comments
- Log in or register to post comments
Create selection box for Subs in Main
Forums
Hello guys, I´m struggeling with my current project.
I wrote serveral Subs in my script and have to activate or deactivate them by setting a comme symbol like this one " ' " informt of their reference in Main. Now I wonder, if it is possible to open an dialog box at the beginning of the macro, with check boxes an select the wanted/needed Subs, so i dont have so addapt the script every time or have alls Subs running at one time.
Thanks a lot for any help and suggestions
Maurice
- Read more about Create selection box for Subs in Main
- 2 comments
- Log in or register to post comments
Visual Connector and task.IncludeAllfields
Forums
Hi Brian,
It's been quite a while since I've had a question and I hope all has been well with you and yours over the last couple of crazy years.
I'm currently working on a script and I have a question on using visual connector.
My script is joining several files to a primary file using visual connector and it's working.
However, I am using task.IncludeAllfields which is giving me a lot of unnecessary columns in my output file.
- Read more about Visual Connector and task.IncludeAllfields
- 3 comments
- Log in or register to post comments
Change order of words in a field alphabetically
Forums
Hello, has anyone, please, been dealt with this issue? I am preparing a macro to be able to compare 2 databases which includes names of persons, and find the matches. There can be several gaps in the names and the individual words can be in different order in the databases. Therefore I need to create in each database a common field for the comparison – a name field with individual words sorted alphabetically.
Preparing one of the databases for comparison:
Default state:
Create new column that repeat values
Forums
Im trying to create a new column ("FILE ID") that contains a value from another one. I want this value to be repeated by "Codigo". Everytime "Codigo" changes, The "FILE ID" column must have the new FILE ID. This value can be repeated, and "Codigo" can be repeated too.
- Read more about Create new column that repeat values
- 2 comments
- Log in or register to post comments
Can you return an array in a function
Forums
Hi!
I am working on a function that would validate dates. I am aware of IsDate(), but it doesn't really suit my use case as it only accepts Date types and the two inbuilt conversion functions DateSerial and DateValue, will convert invalid dates into valid dates, by addding the excess months and days into years ( for example 01.13.2020 becomes 01.01.2021). Therefore i am writing my own implementation.
As part of this i have a funciton that strips the string into day, month and year and converts them to integers:
- Read more about Can you return an array in a function
- 7 comments
- Log in or register to post comments
question regarding the good practice guidelines
Forums
hi,
the guidelines found in the help tab of IDEA outlines the following guideline (among many):
- Read more about question regarding the good practice guidelines
- 3 comments
- Log in or register to post comments
Remove Field
Forums
Hello I would like to ask for a help to fix my program.
Only the function to remove fields is not working, it shows the error of not recognizing the name "Date3".
I have tested several ways but have not succeeded, always accuses the same error.
Thanks in advance
Elaine
- Read more about Remove Field
- 1 comment
- Log in or register to post comments
Dialog Box to rename a field
Forums
Hi everyone,
I hope you are doing great. I would like to ask for a help.
I need a script to update a historical information and for that I renamed a column using a dialog box, but it is not working.
- Read more about Dialog Box to rename a field
- 4 comments
- Log in or register to post comments