ifxpath in a block

24 views
Skip to first unread message

Elena

unread,
Apr 13, 2010, 8:46:54 AM4/13/10
to InterSystems: Zen Community
it seems that I should be able to use ifxpath in a block, but when I
do it doesn't have any effect, though, no errors.
I have only 1 <item> inside the block. This <item> also uses ifxpath,
and successfully. When I do it on <block> level the syntax is the
same, but it doesn't work. Any suggestions?
Cache for Windows (x86-32) 2010.1

Jonathan Levinson

unread,
Apr 13, 2010, 9:31:35 AM4/13/10
to intersys...@googlegroups.com
I've double-checked the code for <block>. It does call the "ifxpath" processor.

Please contact ISC support and have them duplicate the problem.

Best Regards,
Jonathan Levinson

--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to InterSys...@googlegroups.com
To unsubscribe from this group, send email to InterSystems-Z...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/InterSystems-ZEN?hl=en
Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions

To unsubscribe, reply using "remove me" as the subject.

Jonathan Levinson

unread,
Apr 13, 2010, 9:41:42 AM4/13/10
to intersys...@googlegroups.com
I tested with ZENApp.MyReport and the following worked fine:

<block ifxpath="SalesRep[name=&quot;Jack&quot;]">
<item value="I thought Jack was in London"/>
</block>

Best Regards,
Jonathan Levinson


-----Original Message-----
From: intersys...@googlegroups.com [mailto:intersys...@googlegroups.com] On Behalf Of Elena
Sent: Tuesday, April 13, 2010 8:47 AM
To: InterSystems: Zen Community
Subject: [InterSystems-Zen] ifxpath in a block

--

Jose Sueiras

unread,
Apr 13, 2010, 10:44:12 AM4/13/10
to intersys...@googlegroups.com

Hello all,

In the past the possibility of extending the MVC framework to manage lists of objects or relationships has been discussed, and in my point of view there will be value in that.

Just as a discovery exercise I extended some of the zen components in order to give support to those capabilities, creating a CollectionTablePane that can be feed from a data controller and a ListDataController that can handle models which includes a collection of objects.

On the table pane I have just reuse the filter option of the table pane as a form to actually fill the table.

The implementation is surely far from optimum but I just wanted to throw some ideas on this topic , so maybe our development can pick up the challenge..

I have attached the custom components and the example that is a variation of the existing one in the samples namespace.

Regards,

Jose


ZENMVCCollection.xml

Jose Sueiras

unread,
Apr 13, 2010, 10:54:44 AM4/13/10
to intersys...@googlegroups.com
I have just realized I forgot to take some alerts ...
Please used this attachment instead

Regards


Hello all,

Regards,

Jose


ZENMVCCollection.xml

Elena

unread,
Apr 14, 2010, 11:45:33 AM4/14/10
to InterSystems: Zen Community
Jonathan, thanks for your help, it worked.

On Apr 13, 9:41 am, Jonathan Levinson


<Jonathan.Levin...@intersystems.com> wrote:
> I tested with ZENApp.MyReport and the following worked fine:
>
> <block ifxpath="SalesRep[name=&quot;Jack&quot;]">
> <item value="I thought Jack was in London"/>
> </block>
>
> Best Regards,
> Jonathan Levinson
>
>
>
> -----Original Message-----
> From: intersys...@googlegroups.com [mailto:intersys...@googlegroups.com] On Behalf Of Elena
> Sent: Tuesday, April 13, 2010 8:47 AM
> To: InterSystems: Zen Community
> Subject: [InterSystems-Zen] ifxpath in a block
>
> it seems that I should be able to use ifxpath in a block, but when I
> do it doesn't have any effect, though, no errors.
> I have only 1 <item> inside the block. This <item> also uses ifxpath,
> and successfully. When I do it on <block> level the syntax is the
> same, but it doesn't work. Any suggestions?
> Cache for Windows (x86-32) 2010.1
>
> --
> You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
> To post to this group, send email to InterSys...@googlegroups.com
> To unsubscribe from this group, send email to InterSystems-Z...@googlegroups.com

> For more options, visit this group athttp://groups.google.com/group/InterSystems-ZEN?hl=en
> Zen Community Terms and Conditions:http://groups.google.com/group/InterSystems-ZEN/web/community-terms-a...
>
> To unsubscribe, reply using "remove me" as the subject.- Hide quoted text -
>
> - Show quoted text -

Dawn Wolthuis

unread,
Apr 19, 2010, 3:39:24 PM4/19/10
to intersys...@googlegroups.com
I'm trying to do a little catch-up on this list. I downloaded this example and tried to compile it. When trying to compile

Custom.listdataController

in 2009.1.446, I get these compiler errors. Any ideas? 

Compiling class ZEN.Custom.ListdataController
Compiling routine ZEN.Custom.ListdataController.1
ZEN.Custom.ListdataController.1.INT(746) ERROR #1016: Invalid function name : '$PROPERTY(model,propertyName)' : Offset:21 [zCopyListToModel+1^ZEN.Custom.ListdataController.1]
 TEXT: set list = $PROPERTY(model,propertyName)
ZEN.Custom.ListdataController.1.INT(747) ERROR #1016: Invalid function name : '$CLASSNAME(model)' : Offset:27 [zCopyListToModel+2^ZEN.Custom.ListdataController.1]
 TEXT: set className = $CLASSNAME(model)
ZEN.Custom.ListdataController.1.INT(784) ERROR #1016: Invalid function name : '$CLASSMETHOD(type,"%New")' : Offset:28 [zCopyListToModel+39^ZEN.Custom.ListdataController.1]
 TEXT: set obj = $CLASSMETHOD(type,"%New")
Compiling routine ZEN.Custom.ListdataController.2
Detected 3 errors during compilation in 1.088s.


Thanks.  --dawn
--
Dawn M. Wolthuis

Take and give some delight today

Vlado

unread,
Apr 19, 2010, 11:19:24 PM4/19/10
to InterSystems: Zen Community
Dawn,
The example is written for Cache 2010.
The ISC makes some changes:
Previous Function New (Replacement) Function
$ZOBJCLASSMETHOD $CLASSMETHOD
$ZOBJMETHOD $METHOD
$ZOBJPROPERTY $PROPERTY
$ZOBJCLASS $CLASSNAME


On Apr 19, 12:39 pm, Dawn Wolthuis <dw...@tincat-group.com> wrote:
> I'm trying to do a little catch-up on this list. I downloaded this example
> and tried to compile it. When trying to compile
>
> Custom.listdataController
>
> in 2009.1.446, I get these compiler errors. Any ideas?
>
> Compiling class ZEN.Custom.ListdataController
> Compiling routine ZEN.Custom.ListdataController.1
> ZEN.Custom.ListdataController.1.INT(746) ERROR #1016: Invalid function name
> : '$PROPERTY(model,propertyName)' : Offset:21
> [zCopyListToModel+1^ZEN.Custom.ListdataController.1]
>  TEXT: set list = $PROPERTY(model,propertyName)
> ZEN.Custom.ListdataController.1.INT(747) ERROR #1016: Invalid function name
> : '$CLASSNAME(model)' : Offset:27
> [zCopyListToModel+2^ZEN.Custom.ListdataController.1]
>  TEXT: set className = $CLASSNAME(model)
> ZEN.Custom.ListdataController.1.INT(784) ERROR #1016: Invalid function name
> : '$CLASSMETHOD(type,"%New")' : Offset:28
> [zCopyListToModel+39^ZEN.Custom.ListdataController.1]
>  TEXT: set obj = $CLASSMETHOD(type,"%New")
> Compiling routine ZEN.Custom.ListdataController.2
> Detected 3 errors during compilation in 1.088s.
>
> Thanks.  --dawn
>
> On Tue, Apr 13, 2010 at 9:54 AM, Jose Sueiras <Jose.Suei...@intersystems.com
> >http://groups.google.com/group/InterSystems-ZEN/web/community-terms-a...
>
> > To unsubscribe, reply using "remove me" as the subject.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "InterSystems: Zen Community" group.
> > To post to this group, send email to InterSys...@googlegroups.com
> > To unsubscribe from this group, send email to
> > InterSystems-Z...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/InterSystems-ZEN?hl=en
> > Zen Community Terms and Conditions:
> >http://groups.google.com/group/InterSystems-ZEN/web/community-terms-a...
>
> --
> Dawn M. Wolthuis
>
> Take and give some delight today
>
> --
> You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
> To post to this group, send email to InterSys...@googlegroups.com
> To unsubscribe from this group, send email to InterSystems-Z...@googlegroups.com
> For more options, visit this group athttp://groups.google.com/group/InterSystems-ZEN?hl=en
> Zen Community Terms and Conditions:http://groups.google.com/group/InterSystems-ZEN/web/community-terms-a...

Jose Sueiras

unread,
Apr 20, 2010, 5:43:33 AM4/20/10
to intersys...@googlegroups.com

I think is a version issue, this functions are available in 2010, previously they were name $ZPROPERTY , etc..

 

Cheers

 


Reply all
Reply to author
Forward
0 new messages