I loaded up the hand picked rule on my local using the latest 6.2 and CMS 
plugin from SVN, and I saw the "objectid is part of the primary key but not 
provided" error.

It seems to be related to the fact that ruleHandpicked_aObjectIds is an 
extended array.  Extended arrays are a great tool but they never seem to 
get the same love as other parts of FarCry.  Every time I have used one in 
my own projects I have regretted it.

That said I tried to track down the exact problem.  I couldn't find a fix, 
but in the BaseGateway.cfc it builds the array properties manually.  This 
works fine for regular arrays but for extended arrays there are properties 
missing (objectid, for example) which causes this error.

Hopefully Daemon can fix it, but realistically I would recommend that 
instead of relying on the handpicked rule I would suggest that you write 
discrete rules for each content type you have.  The handpicked rule can be 
handy since it is generic and works with multiple content types but it is 
limited, and prone to issues like this.

So, again I would recommend that you write a simple rule for each content 
type that outputs the data.  These rules are easy to write and should serve 
your needs.  I'm sure that's not what you want to hear, but I doubt you'll 
get a fix for the handpicked rule quickly and you can probably just write 
these rules quicker.

Sean

On Monday, April 15, 2013 4:32:36 PM UTC-4, Might Aswell wrote:
>
> Hi Sean,
>
> I seem to be having a lot of  'now you see me now you don't' issues.. The 
> latest is with dmImage. (Element OBJECTID is undefined in STOBJECT.. The 
> specific sequence of files included or processed is 
> E:\InetPub\farcry\core\tags\navajo\getNavigation.cfm, line: 27)
>
> I finally resolved all but one coapi schema conflict the last being 
> precision changes on nleft/nright in nested tree objects.
>
>
>
> On Monday, April 15, 2013 12:33:42 PM UTC-7, Sean Coyne wrote:
>>
>> do you still have several other issues with your FC 6.2.x install?  I ask 
>> because you seem to have quite a few problems with your setup and this 
>> particular problem may or may not be specific to the hand picked rule, it 
>> could be a symptom of another problem.
>>
>> On Monday, April 15, 2013 3:14:41 PM UTC-4, Might Aswell wrote:
>>>
>>> Anyone else have some ideas on how to resolve this, or where to look? A 
>>> significant amount of our pages rely on this rule and my content 
>>> contributors are unable to add objects to these pages.
>>>
>>> On Monday, April 8, 2013 11:31:28 AM UTC-7, Might Aswell wrote:
>>>>
>>>> It appears my HandPicked rule is not fixed. 
>>>>
>>>> Previously, I removed 
>>>> plugins/farcry/package/types/ruleHandpicked_aObjects.cfc as suggested by 
>>>> Phillip to get around the [objectid] is part of this table's primary key 
>>>> and must be included in stProperties issue.
>>>>
>>>> It seemed to be working, however, today, when i try to create a new (or 
>>>> edit an old) nothing seems to be saved to ruleHandpicked_aObjects
>>>>
>>>> I am not seeing any errors so I do not know how to troubleshoot this. 
>>>>
>>>> We use this rule extensively on our site so any additional help is 
>>>> appreciated.
>>>>
>>>> On Friday, April 5, 2013 8:01:29 PM UTC-7, Geoff Bowers wrote:
>>>>>
>>>>> Is there an outstanding issue at http://farcry.jira.com encapsulating 
>>>>> this issue?  I'd like to try and escalate a resolution for handpicked 
>>>>> rule 
>>>>> in the upcoming cms bundle for FarCry 7.
>>>>>
>>>>> GB
>>>>>
>>>>>
>>>>> On 5 April 2013 06:23, Might Aswell <[email protected]> wrote:
>>>>>
>>>>>> RESOLVED:
>>>>>>
>>>>>> So I finally was able to resolve this using Phillip's method of 
>>>>>> removing the plugins/farcry/package/types/**
>>>>>> ruleHandpicked_aObjects.cfc
>>>>>>
>>>>>> AND...
>>>>>>
>>>>>> Found a jquery issues in plugings/farcry/package/rules/**
>>>>>> ruleHandpicked.cfc
>>>>>>
>>>>>> Around line 177
>>>>>>
>>>>>> <skin:onReady>
>>>>>> $('###arguments.fieldname#-add-type').change(function() {
>>>>>> fcForm.openLibraryAdd('#stObject.typename#','#stObject.objectid#','#
>>>>>> arguments.stMetadata.name#','#arguments.fieldname#');
>>>>>> });
>>>>>> </skin:onReady>
>>>>>>
>>>>>>
>>>>>> add the j to the function
>>>>>>
>>>>>> $j('###arguments.fieldname#-add-type').change(function() { .......
>>>>>>  
>>>>>>
>>>>>> I did notice that bypassing the ruleHandpicked_aObjects.cfc means the 
>>>>>> rows are not populated like the previous entries..
>>>>>>
>>>>>> datetimes are incorrect, objectID, lastupdatedby, ownedby createdby, 
>>>>>> etc. are not populated.. 
>>>>>>
>>>>>>
>>>>>>  -- 
>>>>>> 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 because you are subscribed to the Google 
>>>>>> Groups "farcry-dev" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>> send an email to [email protected].
>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>  
>>>>>>  
>>>>>>
>>>>>
>>>>>

-- 
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 because you are subscribed to the Google Groups 
"farcry-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to