Skip to main content

IDEAScript Questions

Help importing multiple PDF files without naming them applying a tfm template and then appending them

Hey! I have many pdf files named differently. I’d like to find a way to loop through all of them without having to name each of them individually (there are too many of them) and then append them all. I already saw Bryan’s post about how to sort of do this but I’d have to name each file and since I have like fifty of them, I’d like to find a quicker way to do it without naming each of them.

Thanks!

"Unpivoting" Data

I have imported into IDEA an excel file with about 100 columns. The first row in each column is a reporting entity, then the remaining rows are all the allowable values for that reporting entity. When importing this file into IDEA, all reporting entities become field names and the allowable values are all the values in that field.

convert unix time string

Hi,

I have created an IDEAScript that searches through an external folder for certain parts of filenames.
The names of the log messages are always in format

info1_info2_info3.log

In other words, i created a IDEAScript Macro that splits the filnames by separator _ to determine the values and write them to a CSV file.

One of the areas e.g. info1 contains allways a UNIX timestamp in seconds starting from 01/01/1970 00:00:00.

Get numeric value from other database instead of Join

Hi,
Can you help me with a script to obtain a value from other table, or populate a temporal array obtaing values fromo other table using a common code_type field on both tables as criteria to search value range

I have a Account Receivable, and need to obtain a percent value from other table (table B) using the client_type and age_range (lets say 90 days) from table A, so I need to search wath %value has the table B comparing  the client_type.
Example
Table A
Type : 3, age: 500 days

Array

Hi Brian

I wish you the vest best for the future. I was just wondering if there is any update in relation to the query (using an array to identify the length of time that products sold had been held in stock using the LIFO method) That I had raised with you back in February.

Thanks

Karl

Inputbox string - remove special characters

Hi Brian,

I'm back again :-)

I'm running a script and I would like user to be able to enter a case reference which is stored as a string.

Much later in the script this will be used to create an output filename.

The following lines allow me to get the input, tidy it a little, and then pass it to create the filename.

caseref = InputBox("Enter your case reference", "Case Reference", " ", 815,475)

caseref = UCase(LTrim(Left(caseref, 20)))

dbName = pfolder &"\Calculations for" +caseref +".IMD"

All of this works without any problem.

Help with dates within an idea script

Hi Brian,

I'm hoping you can help with the following please.

I'm building a macro to calculate interest on customs debts. The applicable annual rate is the one on force at the date of import, and currently I am using a very long compif statement to assign the appropriate rate.

Each time there is a rate change, I add the date of change and the rate to the front of the compif statement (e.g. this month the rate changed to 6.25% so I added IMPORT_DATE >= ""20240701"", 0.0625).