AjaxObserveField problems

2013-03-29 Thread Pascal Robert
I'm having a problem with a AjaxObserveField. I'm using it with a WOPopUpButton so that if the selected value of the pop up is not empty, the pop up won't show, and it will display some attributes of the selection. Structure: wo:AjaxUpdateContainer id=supplier_info wo:if

Weird problem with D2W rules

2013-03-29 Thread Freddie Tilley
Hi, I'm having a strange issue with a D2w rule. the left hand side is as follows: (task = 'edit' and entity.name = 'AMEvent' and object.eventType = '1') with a right hand side key of displayPropertyKeys The thing is is that the object.eventType will get called on objects that aren't even

Re: Weird problem with D2W rules

2013-03-29 Thread David Holt
Are you using the delayed assignment? Sent from my iPad On 2013-03-29, at 12:40 PM, Freddie Tilley freddie.til...@amboss-software.com wrote: Hi, I'm having a strange issue with a D2w rule. the left hand side is as follows: (task = 'edit' and entity.name = 'AMEvent' and

Re: Weird problem with D2W rules

2013-03-29 Thread Freddie Tilley
I'm using a com.webobjects.directtoweb.Assignment, using a ERDDelayedAssignment produces the same results. And also have a rule for the other possible type of event (task = 'edit' and entity.name = 'AMEvent' and object.eventType = '2') It seems like the lhs always get's evaluated in its

Re: AjaxObserveField problems

2013-03-29 Thread Matthew Ness
Hi Pascal, What happens when you sit the /wo:if and wo:else flush against each other (something I always do), and have the entire html block sit inside the AUC? On 30/03/2013, at 5:33 AM, Pascal Robert wrote: I'm having a problem with a AjaxObserveField. I'm using it with a WOPopUpButton

Re: Weird problem with D2W rules

2013-03-29 Thread Ramsey Gurley
On Mar 29, 2013, at 12:40 PM, Freddie Tilley wrote: Hi, I'm having a strange issue with a D2w rule. the left hand side is as follows: (task = 'edit' and entity.name = 'AMEvent' and object.eventType = '1') with a right hand side key of displayPropertyKeys I just added

D2W Rule Question

2013-03-29 Thread Johnny Miller
Hi, Suppose I have a tab inspect page (although in my case it's a tab query page - but I don't think it makes a difference) is it possible to assign a different componentName for the same property key depending on which tab is selected? Something like currentTab.name or currentSection.name?

Re: D2W Rule Question

2013-03-29 Thread Ramsey Gurley
Tried tabKey, tabCount, or tabIndex? If you're calling setCurrentTab on ERD2WPage, those should be in your d2wContext. Ramsey On Mar 29, 2013, at 2:17 PM, Johnny Miller wrote: Hi, Suppose I have a tab inspect page (although in my case it's a tab query page - but I don't think it makes a

Re: Weird problem with D2W rules

2013-03-29 Thread Freddie Tilley
On 29 mrt. 2013, at 22:10, Ramsey Gurley rgur...@smarthealth.com wrote: On Mar 29, 2013, at 12:40 PM, Freddie Tilley wrote: Hi, I'm having a strange issue with a D2w rule. the left hand side is as follows: (task = 'edit' and entity.name = 'AMEvent' and object.eventType = '1')

Re: D2W Rule Question

2013-03-29 Thread Johnny Miller
You are a genius Ramsey! On Mar 29, 2013, at 11:27 AM, Ramsey Gurley rgur...@smarthealth.com wrote: Tried tabKey, tabCount, or tabIndex? If you're calling setCurrentTab on ERD2WPage, those should be in your d2wContext. Ramsey On Mar 29, 2013, at 2:17 PM, Johnny Miller wrote: Hi,

Re: Weird problem with D2W rules

2013-03-29 Thread Ramsey Gurley
On Mar 29, 2013, at 2:27 PM, Freddie Tilley wrote: at er.modern.directtoweb.components.header.ERMD2WSimpleHeader.headerString(ERMD2WSimpleHeader.java:25) My wonder says that line is: return stringValueForBinding(Keys.displayNameForPageConfiguration); What is your rule for

Re: AjaxObserveField problems

2013-03-29 Thread Bastian Triller
My guess is, that the condition evaluates to true after takeValuesFromRequest. The observe field disappears and no action there to be called. Am 29.03.2013 19:33 schrieb Pascal Robert prob...@macti.ca: I'm having a problem with a AjaxObserveField. I'm using it with a WOPopUpButton so that if