Thank you for these helpful suggestions - and I believe that they will be 
useful for parsing records returned from a query.

My problem is that I want to be able to parse the input parameters to a 
function and make decisions based on the content of different fields.

For some reason I am unable to extract individual fields from my object - 
even though your Mozilla-based JavaScript engine does see it as an object. 
When I try Roger's suggetion I get:
Erroronparsingscriptatposition#0: ErroronexecutionofthescriptScript: 
addFact------^sun.org.mozilla.javascript.internal.EcmaError: TypeError: 
CannotfindfunctiongetPropertyinobject{
    rid: 123,
    val: {
        name: "Norman",
        phone: "Home"
    }
}.(<Unknownsource>#7)in<Unknownsource>atlinenumber7TypeError: 
CannotfindfunctiongetPropertyinobject{
    rid: 123,
    val: {
        name: "Norman",
        phone: "Home"
    }
}.(<Unknownsource>#7)
With a similar message if I try Alessandro's suggestion.  (Luckily for me, 
both of these answers are useful in other circumstances, though!)

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to