on 03-05-2009 1:47 PM
Hi All!
I have a question about this function, the problem is that you can only apply this function when both queues are equal (same length)
I'm aware of that and for those cases i'm trying to do an "IF-S" to control that if the queues are not equal the Sort doesn't execute, but no matter what condition i try it seems like the java functions is trying to compile anyway, so i can't avoid that error
For example I'm sorting 2 values but sometimes for 3 values of a material only comes 2 descriptions on the other quote , (and that field is 0.1) so.. i'm not sure what to do for those cases since i would need to create 3 segments where the last one doesn' t have any value to map, and instead of that i'm getting an exception since the queues are not equal
- Does anyone knows how to fill contexts with blanks to do a correct SortBykey?
Thanks in advance!
Hi,
Use the node function mapWithDefault so that suppressed values are automatically treated as a blank.
Hope this helps,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The best solution is as suggested above to use standard function MapWithDefault.
Do your mapping something like this....
Source -> MapWithDefault -
> Target.
Regards,
Sarvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Alexis Alanis
What Mark suggested should solve your problem, it is simplest way.
Or since the occurence is 0:i, you can also use "exist" followed by if-else-than block.
Regards.
Liang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.