cancel
Showing results for 
Search instead for 
Did you mean: 

Can't attach to a data list

jriker1
Champ in-the-making
Champ in-the-making
Create a new data list and fill in the information.  This is in 3.3 last known updated version as of a day ago.  When I click the attach button a file selector launches and says loading… Never finishes.  CPU is cranking but doesn't come back. Get the below in the catalina.out folders:

20:51:28,813 User:jriker1 WARN  [org.alfresco.storeAndNodeIdTransactionalCache] Transactional update cache 'org.alfresco.storeAndNodeIdTransactionalCache' is full (10000).
20:52:26,273 User:jriker1 WARN  [org.alfresco.parentAssocsTransactionalCache] Transactional update cache 'org.alfresco.parentAssocsTransactionalCache' is full (80000).

Not sure if it's related but happens when the loading is pending.

Any clue?

Thanks.

JR
14 REPLIES 14

jriker1
Champ in-the-making
Champ in-the-making
Different tactic.  Has anyone been able to use these data lists successfully in 3.3dev and actually attach a file to an entry?

JR

mikeh
Star Contributor
Star Contributor
Works for me (just tested with FF3.6, Safari 4, Google Chrome & IE7)… have you got any more specifics about your environment, browser version, etc?

Thanks,
Mike

jriker1
Champ in-the-making
Champ in-the-making
I am running the system on OpenSuse 10.1.  I have tried in Windows 7 using IE8 and latest Firefox.  When I click to create a new item and click Select for Attachments the popup shows and just says Loading…  Where is it getting the file list from it's supposably building a list of?  Straight thru Alfresco or does it go thru the back end?  Curious if I have to have some share running or something.

ghernando
Champ in-the-making
Champ in-the-making
The new 3.3 Data List stuff looks interesting, but I had a number of problems with them.

1.  Initially confused on creating a new list that I had to select the "To Do List" type (which out-of-the-box) is the only item in the list.
     I hit submit and nothing happens.  I see that this is already reported as a bug.
2.  I saw the problem that was reported by jriker1.  It happened to me for both attachments and assignee.
     But it looks like it went away.  I had played around where I added a new list and a few test items.
     Now both are working OK.
3.  After adding a new items and then clicking in the Left nav on "recently modified", I see this error in red:
03110006 Wrapped Exception (with status template): 03110011 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/datalists/data.post.json.js': 03110010 TypeError: Cannot find function indexOf. (file:/C:/AlfrescoCommunity33/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/datalists/data.post.json.js#304)

jriker1
Champ in-the-making
Champ in-the-making
Something else to note also on the data list.  When I am looking at a data list and click on the pencil icon to edit the datalist, the edit screen pops up momentarily and then goes away.  Nothing logged.

Also for me the "Loading…" issue in the left pain has not gone away like it did for ghernando.  After a period of time catalina.log shows:

16:11:46,311 User:jriker1 WARN  [org.alfresco.storeAndNodeIdTransactionalCache] Transactional update cache 'org.alfresco.storeAndNodeIdTransactionalCache' is full (10000).
16:11:46,312 User:jriker1 WARN  [org.alfresco.storeAndNodeIdTransactionalCache] Transactional update cache 'org.alfresco.storeAndNodeIdTransactionalCache' is full (10000).

Certainly these log entries mean something to someone at Alfresco.  I know in my research I believe the TransationalCache is a variable in an XML file that is defaulted to 10000.  Sure changing this isn't the answer but should again mean something.  Also if this is anything, the up arrow doesn't seerm to function and the pulldown is blank.

Thanks.

JR

weisinger
Champ in-the-making
Champ in-the-making
I also see the third problem reported by ghernando above.
Maybe there's already a fix in the nightly build (I'm using a 3.3 community download from last week Friday), but I found that the following will fix it:

Lines 61 of alfresco\WEB-INF\classes\templates\webscripts\org\alfresco\slingshot\datalists\filters.lib.js
      switch (String(filter.filterId))
      {
         case "recentlyAdded":
         case "recentlyModified":
         case "recentlyCreatedByMe":
         case "recentlyModifiedByMe":
            var onlySelf = (filter.indexOf("ByMe")) > 0 ? true : false,
               dateField = (filter.indexOf("Created") > 0) ? "created" : "modified",
               ownerField = (dateField == "created") ? "creator" : "modifier";


Change filter.indexOf() -> String(filter.filterId).indexOf()
Like this:

            var onlySelf = (String(filter.filterId).indexOf("ByMe")) > 0 ? true : false,
               dateField = (String(filter.filterId).indexOf("Created") > 0) ? "created" : "modified",
               ownerField = (dateField == "created") ? "creator" : "modifier";

vasisualy
Champ on-the-rise
Champ on-the-rise
Hi.

I tried to change the lines you suggested.
No luck.

Than I get lines from the nightly build and it works fine:

         case "recentlyModifiedByMe":
            var onlySelf = (filter.filterId.indexOf("ByMe")) > 0 ? true : false,
               dateField = (filter.filterId.indexOf("Created") > 0) ? "created" : "modified",
               ownerField = (dateField == "created") ? "creator" : "modifier";

            // Default to 7 days - can be overridden using "days" argument

jriker1
Champ in-the-making
Champ in-the-making
So is the data list code still being worked on for 3.3?  I haven't seen any reference to it in the twitter entries however perhaps everyone doesn't tweet about all their changes.

mikeh
Star Contributor
Star Contributor
The tweets are automatic - driven from the SVN checkin noticies.

Data Lists is code-frozen for v3.3 now. I suspect there will be new features in v3.4. If you have any wish list/requirements yourself, please raise them in JIRA where we can analyse and track them properly.

Thanks,
Mike