on 05-04-2016 7:58 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you use a ToASCII pass now or Per's tip with the handling as one attribute through the source?
I even remember that thread. I need to steal some ideas from there (like dropping tables through the pass, because ToDatabase just updates existing tables meaning adding the new entries, but doesn't empty the table first).
You got it working from From or To?
Here's the script I just worked out if it's helpful:
// Main function: sample
function sample(Par){
//Example calling DSE internal function
//uStop("Terminated by user");
val = Par.split ('!!');
uWarning ("First value: " + val[0]);
uWarning ("Second value: " + val[1]);
return val[0] + " is " + val[1];
}
Matt
I'm using the To ASCII pass solution like I did last time. I'm doing the exact same thing this time, creating a report so that old solution works perfectly.
I did not use the combining via SQL as Per suggested in my original thread but I might have too. All depends on what the new boss here wants. I miss Per.
Brandon,
I'm not having any trouble doing this in a From or To database pass.
In general you need to pass the two values in the same line with some sort of delimiter - Error_Message!!TaskStatus
Then in your script process it as
val = Par.split ("!!");
Then you can reference the parts as an array of val.
I only tested the populating of the attribute, I did not try the script part. However I seem to recall an issue with scripts and From Database passes. I'll take a more detailed look.
Matt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Brandon,
can you elaborate on the "doesn't work" part? Do you get errors? Nothing?
Regards,
Steffi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Right now I get nothing. I've tried:
Error_Message!!Task_Status
Error_Message"!!"Task_Status
"Error_Message"!!"Task_Status"
The first two pas nothing into the script and the third one passes in the actual wording:
Error_Message"!!"Task_Status
I used: uWarning("Value of Par: " + Par) to show me the above line.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.