IDEAScript Questions
How to back to main menu
Forums
I have three dialog ( include main menu (displayit)).
I try to close second dialog and close third dialog at the same time. than back to first dialog.
But I failed...
however i can close third dialog and close second dialog at the same time by do some trick with the button (in second dialog) which open the third dialog.
Please tell me how can i do.
Thanks
Dorian
- Read more about How to back to main menu
- 1 comment
- Log in or register to post comments
calculate a working day between two dates
Forums
Hi!
I would like to ask for a help. I need a to calculate a working day between two dates. Is there a function or a combination functions that can do this?
Thanks a lot.
- Read more about calculate a working day between two dates
- 6 comments
- Log in or register to post comments
IDEAScript editor randomly destroying my variables
Forums
Hi all
I've got a weird issue with the IDEAScript editor when working on my script to do ODBC imports.
Using the below example of my function to import a general ledger, if I run the script it works 100% perfectly, giving me exactly the data I need. But if instead I open in IDEAScript editor then my query(0) line gets wiped out entirely and replaced with an exact copy of the line above it (ie: table = "PostGL")
array to hold multiple fields
Forums
Hi all
I've had a look at the script here to get an idea of how to hold multiple fields in an array
https://ideascripting.com/snippet/array-hold-all-field-information
Tried adapting it to my own script, attached (quite new to this so sorry if my script is hideous)
note I've trimmed out some of the stuff from my script like menus/functions that aren't applicable to this question
- Read more about array to hold multiple fields
- 3 comments
- Log in or register to post comments
Check if excel workbook is open
Forums
Hi Brian,
I hope you are well.
I'm running a macro that creates an excel output file.
If the macro has been run previously, and the user has that excel output file open, the macro will crash when it tries to export.
To avoid this, I would like to use my script to check if any previously exported excel file is open.
- Read more about Check if excel workbook is open
- 1 comment
- Log in or register to post comments
Filling in missing records
Forums
Hi everybody,
I have table A with columns "CustomerNo.", "Period" and "Amount" that has ~ 5M records.I need to calculate a rolling total over a period of 12 months before "Period".
Problem is that I don't have one record per Customer per Period, but I am missing months for most customers.
Is there a smart way of joining the data in IDEA to create the missing records and let me calculate the Rolling Total (https://www.ideascripting.com/forum/running-total)
- Read more about Filling in missing records
- 1 comment
- Log in or register to post comments
tagging a file as "GeneralLedgerDetails"-file
Forums
Hi together,
I have the following problem:
In Germany we use IDEA11 with the SmatrAnalyzer. Included is the main module "Auswahl und Durchführung von Prüfungsschritten" where You have several audit routines, which are tagged with special IDEA-Tables (especially "Standardjournal" = GeneralLedgerDetails).
Is there a possibility to tag a new table via IDEA Script as file that has all fields, necessary for a "GeneralLedgerDetails"-file?
Thanks
Martin
- Read more about tagging a file as "GeneralLedgerDetails"-file
- 1 comment
- Log in or register to post comments
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