Re: JavaScript transform switch statement during Data Import

2013-04-17 Thread paulblyth
Hi Gora, Please forgive the typo. This is merely a simplified example to illustrated the scenario (if/else and switch) we're trying to achieve; although the values have been changed the if/else and switch statements remain as is. The fact that the switch statement should work is the problem - it

Re: JavaScript transform switch statement during Data Import

2013-04-17 Thread Gora Mohanty
On 17 April 2013 17:10, paulblyth wrote: > That post lost a lot of formatting. Please find attached instead. > db-data-config.xml > I do not see how this could be working in either case. Your select statement is "SELECT COLOURS

Re: JavaScript transform switch statement during Data Import

2013-04-17 Thread paulblyth
That post lost a lot of formatting. Please find attached instead. db-data-config.xml -- View this message in context: http://lucene.472066.n3.nabble.com/JavaScript-transform-switch-statement-during-Data-Import-tp4056340p405

Re: JavaScript transform switch statement during Data Import

2013-04-17 Thread paulblyth
Sorry for not providing enough details initially. You're right, it's difficult for me to share the real code but let me try and give you an example. http://www.w3.org/2001/XInclude"/>

Re: JavaScript transform switch statement during Data Import

2013-04-16 Thread Chris Hostetter
: Hello - I'm trying to add a switch statement into a JavaScript function that : we use during an import; it's to replace an "if else" block that is becoming : increasingly large. : : Bizarrely, the switch block is ignore entirely, and it doesn't have any : effect whatsoever. you haven't really