Use QueryResult.get("visites") and then call listValue() on the result.

On 4/8/13 1:05 PM, "mike donald" <[email protected]> wrote:

>hello,
>I am a beginner in jess, I'm stuck on my application since
>I have two deftemplates
>
>(deftemplate Individu
>         (slot age)
>        (slot sexe) 
>         (multislot visites (default (create$) ) )
>)
>
>(deftemplate Visite
>        (slot id_visite)
>        (slot nom)
>        (slot pr)
>)
>
>I have the following query:
>
>(defquery objetHistogramme
>       ?i <- (Individu {sexe != F } (age ?ag) (sexe ?sex) (visites
>$?visites))
>)
>
>In my java program, I call my query as follows:
>
>QueryResult result = engine.runQueryStar("objetHistogramme", new
>ValueVector());
>   while (result.next()) {
>                int x  = result.getInt("ag");    //age
>                
>                Object v = result.getObject("visites");     //
>Erroorrrrrrrrrr is it
>
> }
>
>I get an error when I want to retrieve the elements of multislot "visit"
>to
>the display.
>How to recover the multislot?
>
>
>Mike
>
>
>
>
>--
>View this message in context:
>http://jess.2305737.n4.nabble.com/Multislot-and-queries-tp4654137.html
>Sent from the Jess mailing list archive at Nabble.com.
>--------------------------------------------------------------------
>To unsubscribe, send the words 'unsubscribe jess-users [email protected]'
>in the BODY of a message to [email protected], NOT to the list
>(use your own address!) List problems? Notify [email protected].
>--------------------------------------------------------------------



--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [email protected]'
in the BODY of a message to [email protected], NOT to the list
(use your own address!) List problems? Notify [email protected].
--------------------------------------------------------------------

Reply via email to