• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5797: Can some cells be made read-only ?

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension EditRowPlugin Low No Action Required   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail


This is a GREAT plugin. I plan to use it in place of EditTablePlugin. But there is ONE thing which prevents me from doing so. In the EditTablePlugin, with headerislabel set to on, I could prevent people from editing ANY cell by just making the cell contents bold (by enclosing the contents in *). But the EditRowPlugin considers only the first row as the label (when headerislabel is set to on). If a formula (like %CALC{"$SUM( $ABOVE() )"}%) or a variable (like %MYVARIABLE%) is used, the plugin displays the result in the edit window. When the table is saved, the formula is lost. This was the problem in EditTable plugin too. I had circumvented it by making the cell bold in EditTablePlugin, thus preventing it to be edited by others. Is there any solution to this in EditRowPlugin ?

With my limited knowledge, I can suggest two enhancements:

1. Make the plugin display the formulas (instead of results) in the edit window.

1. Provide a way to make a cell read-only

-- TWiki:Main/ChengappaCB - 20 Jul 2008

Did you try using %EDITCELL{label,1,}% ?

-- TWiki:Main.FranzJosefGigler - 20 Jul 2008

Thanks a lot FranzJosefGigler. Perfect solution. This will make the cell 'read-only'. Just a question though: Do I need to specify a number after 'label' ? I tried

%EDITCELL{label}%
and it worked. Is that ok ?

-- TWiki:Main.ChengappaCB - 26 Aug 2008

I'm not exactly sure about the meaning of the number for labels, but if it works it should be okay. smile

-- TWiki:Main.FranzJosefGigler - 26 Aug 2008

I have set the 'Current State' of this bug as 'No action required', as it was really not a bug and I have the solution to my problem now. smile

-- TWiki:Main.ChengappaCB - 27 Aug 2008

ItemTemplate
Summary Can some cells be made read-only ?
ReportedBy TWiki:Main.ChengappaCB
Codebase 4.1.2
SVN Range

AppliesTo Extension
Component EditRowPlugin
Priority Low
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r5 - 2008-08-27 - ChengappaCB
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback