Hi everyone, 
I'm developing a GPM instance and I got a question that I couldn't solve yet: I 
added a "preupdate"  extension point (in java) in a sheet type. What I want 
with this extension point is to read some field values from the sheet which is 
being updated and put these values in the fields of another different sheet. 
The problem is that I couldn't get access to write in the other sheet: I can 
read field values from all the sheets but I can only write in the sheet which 
is being updated. I tried with this:
ServiceLocator lServiceLocator =  
pContext.get(ExtensionPointParameters.SERVICE_LOCATOR);SheetService 
lSheetService = lServiceLocator.getSheetService();CacheableSheet 
lCacheableSheet = lSheetService.getCacheableSheet(roleToken, 
sheetId);FieldValueData lNoteAuthor =  new FieldValueData("TS_Completed", 
"Write this");            lCacheableSheet.setValue(lNoteAuthor);

sheetId is the ID from the different sheet and "TS_Completed" is the name of 
the String field where I wanted to write.I wonder if it will have to do with 
the Context..I'm using the 2.0.2 version of GPM.

Many thanks in advance,
Best regards.

Xabi GarcĂ­a




                                          
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users

Reply via email to