Message arguments.

View: New views
4 Messages — Rating Filter:   Alert me  

Message arguments.

by critter-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

modelglue

I am attempting to pass an argument into modelglue.generic list

<event-handlers>
<event-handler name="page.index">
<broadcasts>
<message name="NeedToSetStaticViewstateValue">
<argument name="name" value="ContentID" />
<argument name="value" value="1" />
</message>
<message name="modelglue.GenericList">
<argument name="Object" value="Content" />
<argument name="queryName" value="qIntro" />
<argument name="criteria" value="ContentID" />
</message>
</broadcasts>
<results>
<result do="view.template" />
</results>
<views>
<include name="body" template="dspIndex.cfm" />
</views>
</event-handler>

The one record is only being shown if I pass ContentID in through the
URL.

Any suggestions?


Critter

--^----------------------------------------------------------------
This email was sent to: lists@...

EASY UNSUBSCRIBE click here: http://topica.com/u/?b1drHn.b8CODV.bGlzdHNA
Or send an email to: modelglue-unsubscribe@...

For Topica's complete suite of email marketing solutions visit:
http://www.topica.com/?p=TEXFOOTER
--^----------------------------------------------------------------



Re: Message arguments.

by critter-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

[quote day="Wednesday, July 18, 2007" time="12:34:09 PM" who="Critter"]

C> I am attempting to pass an argument into modelglue.generic list

Ignore me... Doug helped sort me out..

Crit

--^----------------------------------------------------------------
This email was sent to: lists@...

EASY UNSUBSCRIBE click here: http://topica.com/u/?b1drHn.b8CODV.bGlzdHNA
Or send an email to: modelglue-unsubscribe@...

For Topica's complete suite of email marketing solutions visit:
http://www.topica.com/?p=TEXFOOTER
--^----------------------------------------------------------------



Re: Message arguments.

by Doug Hughes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Are you setting the event value? 

You need to find a way to make sure you're actually setting the value.....

Doug

On 7/18/07, Critter <crit@...> wrote:
modelglue

I am attempting to pass an argument into modelglue.generic list

<event-handlers>
<event-handler name="page.index">
<broadcasts>
<message name="NeedToSetStaticViewstateValue">
<argument name="name" value="ContentID" />
<argument name="value" value="1" />
</message>
<message name="modelglue.GenericList">
<argument name="Object" value="Content" />
<argument name="queryName" value="qIntro" />
<argument name="criteria" value="ContentID" />
</message>
</broadcasts>
<results>
<result do="view.template" />
</results>
<views>
<include name="body" template="dspIndex.cfm" />
</views>
</event-handler>

The one record is only being shown if I pass ContentID in through the
URL.

Any suggestions?

Re: Message arguments.

by Doug Hughes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Lol - I was wondering why you were asking me this question after I answered it.  I didn't realize this was the mailing list.  Doh!

On 7/18/07, Critter <crit@...> wrote:
[quote day="Wednesday, July 18, 2007" time="12:34:09 PM" who="Critter"]
LightInTheBox - Buy quality products at wholesale price