IDEAScript Questions
"Unpivoting" Data
Forums
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.
- Read more about "Unpivoting" Data
- 1 comment
- Log in or register to post comments
convert unix time string
Forums
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.
- Read more about convert unix time string
- 3 comments
- Log in or register to post comments
Get numeric value from other database instead of Join
Forums
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
Forums
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
- Read more about Array
- 1 comment
- Log in or register to post comments
Inputbox string - remove special characters
Forums
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.
- Read more about Inputbox string - remove special characters
- 3 comments
- Log in or register to post comments
Help with dates within an idea script
Forums
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).
- Read more about Help with dates within an idea script
- 10 comments
- Log in or register to post comments
Optional parameters in functions
Forums
Is it possible to use optional parameters in functions?
"optional" is a known command, if you type it in idea script.
- Read more about Optional parameters in functions
- 2 comments
- Log in or register to post comments
Idea Progress Bar
Forums
I have a custom script I wrote that does a series of DB lookups where I am issuing a search command to a record set to find a value. It works perfectly. The only drawback is it may look as if the program is frozen. Is there a way to build a progress bar into it while it is running.
Thanks,
Randy
- Read more about Idea Progress Bar
- 2 comments
- Log in or register to post comments
How to transpose data to change row into column using IDEAScript
Forums
Hello, i want to ask on how to code using IDEAScript to transpose data from row to column. here is the scenario :
I got an excel source data and the first row can't be used as field name while each row that has data is divided with blank row one after another. the writing format is like form with first column contains form labels and second is the answer. i put the screenshots of the expected result if i transpose the data below. i also put the test file below.
Is there a way to script this kind of data transpose in IDEA?
Thank you.
Smart Analyzer Settings
Forums
I have smart Analyzer project for Payroll. I break it up into 8 databases that represent unique population for payroll. I apply unique setting from a parameter file. I have to tag 8 database and set the parm file against 8 databases and 7 different tests.
Is there any way to streamline this process. I do have the tag file saved and the parameter file saved but have to use them as indicated above.
Thanks,
Randy
- Read more about Smart Analyzer Settings
- 2 comments
- Log in or register to post comments