Just to feedback bSyncStatus being set to false did the trick :-).

Nice tip actually as I know the Editors here have been complaining about 
automatic approvals elsewhere so I'll need to look into this one futher.

Thanks again Blair for your time. It's appreciated.

James


On Monday, February 27, 2012 12:33:14 PM UTC, James Buckingham wrote:
>
> Cool, thanks again Blair. 
>
> I'll give it a shoot and see what happens.
>
> Cheers,
> James
>
> On Monday, February 27, 2012 11:14:09 AM UTC, Blair McK wrote:
>>
>> It's an attribute of the property - you would add it to your UUID and 
>> array properties as required. I think dmHTML in core uses it. I don't know 
>> if status is synced by default though.
>>
>> Blair
>>
>>
>> On Mon, Feb 27, 2012 at 8:56 PM, James Buckingham <[email protected]>wrote:
>>
>>> Hi Blair,
>>>
>>> I've ended up overwriting the setData and doing a check to see if the 
>>> Course is the one calling the Fees. Feels like a bit of a hack compared to 
>>> what you're suggesting though so I'd like to look at that one.
>>>
>>> So do I put that in the cfcomponent or define it as a new property, and 
>>> does that get applied to the Course?
>>>
>>> What I don't want to do is switch off all approval processes, just the 
>>> ones relating to Fees.
>>>
>>> Cheers again,
>>> James
>>>
>>>
>>> On Sunday, February 26, 2012 11:14:29 PM UTC, Blair McK wrote:
>>>>
>>>> You can set a formtool attribute bSyncStatus. I believe it's off by 
>>>> default, and is enabled for some HTML properties.
>>>>
>>>> Blair
>>>>
>>>> On Sat, Feb 25, 2012 at 2:46 AM, James Buckingham 
>>>> <[email protected]>wrote:
>>>>
>>>>> Hi group,
>>>>>
>>>>> I've got a Content Type of "Course" and this has a relationship with 
>>>>> another of type "Fees".
>>>>>
>>>>> In the Course I've added an onApprove() event which I'm using to 
>>>>> update some of the data in the related Fees however I've noticed a 
>>>>> strange 
>>>>> bug that when it is approved any associated Fees that are currently in 
>>>>> draft are also being switched to approved as well.
>>>>>
>>>>> No matter what I code into either the Course or Fee nothing seems to 
>>>>> stop this action. Even an onStatusChange() in the Fees and trying to 
>>>>> revert 
>>>>> the change makes no difference.
>>>>>
>>>>> I did notice on this wiki page that there is a thing called "Default 
>>>>> Hook Cascade". 
>>>>> https://farcry.jira.com/wiki/**display/FCDEV60/Event+Hooks<https://farcry.jira.com/wiki/display/FCDEV60/Event+Hooks>
>>>>>
>>>>> Is this what's happening here and is there anyway I can turn this off? 
>>>>>
>>>>> Cheers,
>>>>> James
>>>>>
>>>>> -- 
>>>>> You received this message cos you are subscribed to "farcry-dev" 
>>>>> Google group.
>>>>> To post, email: [email protected]
>>>>> To unsubscribe, email: 
>>>>> farcry-dev+unsubscribe@**googlegroups.com<farcry-dev%[email protected]>
>>>>> For more options: 
>>>>> http://groups.google.com/**group/farcry-dev<http://groups.google.com/group/farcry-dev>
>>>>> ------------------------------**--
>>>>> Follow us on Twitter: http://twitter.com/farcry
>>>>
>>>>
>>>>  -- 
>>> You received this message cos you are subscribed to "farcry-dev" Google 
>>> group.
>>> To post, email: [email protected]
>>> To unsubscribe, email: [email protected]
>>> For more options: http://groups.google.com/group/farcry-dev
>>> --------------------------------
>>> Follow us on Twitter: http://twitter.com/farcry
>>>
>>
>>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to