Toystore: Custom TextField Renderer - can this be applied to list values?

If you use a list value with a Binding Container and the Struts Validator it behaves similar to the discussion in the toystore notes (the original value is lost - resets to the model value). Can your same idea in toystore be used to fix it for list items, and if so, how? (I'm trying by applying a PickList renderer on numbers but not getting anything working).
Thanks for help!!

Hi,
If SharePoint were to enforce uniqueness on a column in a list where users are only allowed to see and edit list items that have created, then you could have a scenario where -
a. user1 tries to add a new item to the list which violates the uniqueness constraint
b. SharePoint reports an error
c. user1 gets to know that there is another item containing the same value in this list
d. this violates the security settings that you configured (each user should be allowed to only see the items that they have created). Now if you change the permissions settings to allow users to SEE all items, but only
edit items that they have created, this error disappears (obviously).
Now getting to the workaround you mentioned (creating a unique constraint on the SQL Server table). This is not going to be possible for numerous reasons -
a. Modifying (or for that matter, even performing SELECT operations on) the SQL Server tables is an unsupported operation and it will definetely break other things in SharePoint, not
to mention that you will lose all support options from Microsoft. However if you don't care about this, then it will still not be technically possible because...
1. SharePoint does not create a new SQL Server table for every list/library. 
2. If you did get around to enforcing a unique constraint in the one single table that SharePoint uses for all lists, then you will be enforcing this constraint on each and every list in all the sites and in all the site
collections that are assigned to that content database.
Please "Mark as Answer" if a post has answered your question or "Vote as Helpful" if it was helpful in some way. Here's
why

Similar Messages

  • Is there a limit to custom views that can be created on a list?

    As the title says, is there a limit to the number of custom views that can be created on a SharePoint list?  I did a few online searches and someone mentioned 50, but one of my list already has more then 50 custom views so I'd like to know what the
    true limit is.
    Anyone know?

    The only hard limit is to the number of views that can be shown in the drop down on the UI which is 50 (first 50 actually). I would agree with the assessment made here that the actual limit might be hypothetical but it all comes down to the performance in
    rendering and retrieving these views.
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/8a0f9d4a-626a-4a54-916a-a1e347835c5e/what-is-the-limit-if-there-is-one-on-the-amount-of-views-that-can-be-on-a-single-sharepoint-list?forum=sharepointgeneralprevious
    I would suggest re looking at your approach to address the requirement by creating these many views and whether something else (dynamic pages, metadata navigation, term navigation, content search web parts etc.) can address the actual requirement
    and in process actually improve page performance.
    Thanks, Ransher Singh, MCP, MCTS | Click Vote As Helpful if you think that post is helpful in responding your question click Mark As Answer, if you think that this is your answer for your question.

  • How can this happen? Quantity Field values are showing doubles in ODS

    Hello BW Gurus,
    I have a staging ODS, on top of it a reporting ODS and a cube. I have loaded the data from flatfile to the staging ODS which looks perfectly fine but coming to the Reporting ODS and the cube, the values in quantity field are doubled. If it was just cube where the values were doubled then I might have thought it could be due to double time loading or may be because of duplicate records. But I can see the Quantity values doubled in reporting ODS (which has Overwrite option).
    Does anyone has any clues? when we had this issue couple of days back - I have deleted the request from Reporting ODS and Cube and re-loaded it which looked perfectly fine.
    But today our issue is back - is it not strange?
    help me if you have any thoughts and thanks so much,
    Swathi.

    Hello Dinesh and Vikash,
    My issue has taken a twist and here is the new problem:
    on Friday the report was fine
    on Saturday the report was fine
    on Sunday we had problems with Reporting ODS as it was  showing all double values. (I cleaned the reporting ODS and Cube and reloaded the data) after that the report worked fine.
    on Monday the report was fine
    on Tuesday again we got duplicate values (for few plants) now in staging ODS as well, which has completely with 'overwrite' option with one to one mapping with no routines.
    I loaded the same file in DEV. and this was working fine?
    I debugged the code that was fine too.
    I think this is a strange Issue.
    Please let me know your ideas,
    Thanks so much,
    Swathi

  • TableSorter + custom cell renderer: how to get DISPLAYED value?

    Hi!
    I have a JTable with a custom cell renderer. This renderer translates numerical codes, which are stored in the table model, into textual names. E.g. the table model stores country codes, the renderer displays the name of the country.
    Now, having a reference on the JTable, how can I get the DISPLAYED value, i.e. the country name? Is there some method like ....getRenderer().getText()?
    Thanx,
    Thilo

    Well, a renderer can be anything. It may be rendering an image not text so you can't assume a method like getText(). However, since you know the component being used to render the cell you should be able to do something like:
    TableCellRenderer renderer = table.getCellRenderer(row, column);
    Component component = table.prepareRenderer(renderer, row, column);
    Now you can cast the component and use get text.
    Another option would be to store a custom class on the table cell. This class would contain both the code and value. The toString() method would return the value. Whenever you want the code you would use the table.getValueAt(...) method and then use the classes getCode() method. Using this approach you would not need a custom renderer. This thread shows how you can use this approach using a JComboBox, but the concept is the same for JTable as well:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=417832

  • I am unable to apply my downloaded update. When I try to apply it and restart firefox, it still says 'apply downloaded update now...'. Why can't I apply this update and what do I do about it?

    I am unable to apply my downloaded update. When I try to apply it and restart firefox, it still says 'apply downloaded update now...'. Why can't I apply this update and what do I do about it?

    Checked out that link and everything seems to be in order on this machine at this time.
    I only have CC installed on this one machine, not even my secondary machine like is permitted. it seems odd that I'm asked to re-accept the Licence Agreement as often as I am. If I had to guess, it's almost every week, if not multiple times some weeks, that all the software will decide I should have to view the licence agreement.
    Edit: I've never had any noticeable "errors" activating or anything like that. I just get asked to do it quite frequently.
    This activation screen isn't too annoying (it involves clicking one single button), but like I stated earlier, if I'm trying to launch the software by double-clicking on a PSD, AI, PPROJ, AEP, etc... that file will fail to open.
    I feel like that's probably not really a bug, but it is frustrating, since I did launch the application with the intent to edit that specific file I tried to open.
    Again, something that you guys may consider working on.
    Another annoyance is that: agreeing to the licence agreement is a per-application task, so if I see that Licence Agreement dialogue window by opening Photoshop (for example), I know that every other piece of software I have in the suite (Illustrator, Premiere, After Effects, Audition) will be showing me that screen on it's next launch. Probably deliberate for legal purposes that I can't just agree once for the whole suite, but heck, it would save me a lot of minor headaches if it was a unified agreement.

  • UCCX 9.0-Customer wants only ziptone in headset for new call to agent, no ringing on Phone. Can this be done?

    UCCX 9.0- My customer wants only ziptone in headset for new call to agent, no ringing on Phone.
    Can this be done? I can't seem to find a way to do this natively.

    Yes, I looked into that option. They don't want that because some agents have been known to walk away from their desk without going not ready.
    Thanks for the quick response!
    Dave

  • Apply Redaction warning. Can this be disabled in Acrobat Pro 9?????

    Using Acrobat Pro 9
    "You are about to permanently redact all content that has been marked for redaction......". Can I disable "Apply Redaction" warning????? Have tried using the method described for Acrobat X which suggests:
    Edit - Preferences - Documents: Enable "Adjust filename when saving applied redaction marks". Using the Suffix: _Redacted but warning still pops up every time you click the Apply Redactions button.

    This is the bare minimum script to be placed in a folder-level JavaScript file is:
    app.addToolButton({
        cName: "ApplyRedactionsSilently",
        cLabel: "Apply Redactions",
        cExec: "ToolbarButton_applyRedactions(this);",
        cEnable: "event.rc = app.doc;"
    var ToolbarButton_applyRedactions = app.trustedFunction(function(doc) {
        // Apply any redations that have been added
        app.beginPriv();
        doc.applyRedactions({cProgText: "Please wait while redacting..."});
        app.endPriv();
    Note that this doesn't include the code to automatically save, which can be dangerous since applying redactions cannot be undone.
    For more info on folder-level JavaScripts, see: http://acrobatusers.com/tutorials/folder_level_scripts
    For more information on the applyRedactions method, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.445.html

  • I am a current customer of ATT,  I would like to unlock my old iphone 3 g. Can this phone be unlocked

    am a current customer of ATT,  I would like to unlock my old iphone 3 g. Can this phone be unlocked? I am not sure of its current operating system.

    Ask AT&T. They are the only ones who can authorize unlocking it.

  • I'm trying to crop individual frames. Can this be done without the crop being applied to the entire clip? Using imovie 11

    I'm trying to crop individual frames. Can this be done without the crop being applied to the entire clip? Using imovie 11

    use the cmd-B(lade) command to split your single clip into individual ones

  • Re colouring lables... can this apply to the folder icon itself

    re coloring lables... can this somehow change the folder icon itself or only the lettering underneath?

    That only changes the text label color. You can change icons yourself if you want...

  • How to implement custom field renderer?

    I'm trying to create a custom field renderer that will render certain database fields as checkboxes in HTML. I'm using the Data Web Beans/JSP approach. In my view object I have added a "Boolean" property to the attributes that represent boolean type fields (e.g., field Warranty to indicate if an asset is under warranty). I have created a CheckBoxField() class similar to the TextField() class, and call it if the attribute is a boolean, but I can't figure out how to set the custom field renderer. When the program runs, it still uses the TextField renderer. The JDeveloper online documentation doesn't say anything about it. Is there a sample program or some other documentation that implements a custom field renderer?

    Hi,
    this document in addition
    http://www.oracle.com/technology/products/jdev/howtos/10g/jaassec/index.htm
    has a list of LoginModules, one that authenticates against physical database users
    Frank

  • Need for a Datagrid with variableRowHeight="true" and custom Item Renderer to display exact rows

    Hi again, developers:
    I'm in a search of a datagrid  with certain characteristics:
         - variableRowHeight = "true"
         - only one column
         - each row must have a custom item renderer with possibly different heights, and a fixed width
         - the datagrid must show always every item in the data provider with no vertical scroll bars, what means that the datagrid height must have always the exact height sum of all the item renderers it is displaying.
         - and no extra empty rows must appear in the last positions of the datagrid
    The last two requirements are something difficult to achieve... for some reason, empty rows appear at the last positions of the datagrid. I post what i've managed to get:
    <mx:Script>
         <![CDATA[
         private function resize():void
                    if (dg.dataProvider)
                        var h:Number = dg.measureHeightOfItems( -1, dg.dataProvider.length);
                        dg.height = h;
         ]]>
    </mx:Script>
    <mx:DataGrid id="dg" width="530" horizontalCenter="0" verticalScrollPolicy="off"
            dataProvider="{dp}"
            wordWrap="true" variableRowHeight="true" showHeaders="false" dataChange="resize()" height="{dg.measureHeightOfItems(-1,dg.dataProvider.length)}" click="Alert.show(dg.rowCount.toString());">
            <mx:columns>
                <mx:DataGridColumn headerText="ID" width="50">
                    <mx:itemRenderer>
                        <mx:Component>
                            <mx:TextArea height="{Math.random()*100}" wordWrap="true" backgroundColor="{Math.random() * 16777216}" paddingTop="0" paddingBottom="0"/>
                        </mx:Component>
                    </mx:itemRenderer>
                </mx:DataGridColumn>
            </mx:columns>
        </mx:DataGrid>

    Thanks Harui, but it doesn't help. If the border is set it will help, but the very big problem is the empty rows that appear at the end of the datagrid... I can't find a way of measuring correctly the height of the itemRenderers!
    I'll update this thread if I manage to do it.

  • Row Selection problem in custom cell renderer

    Hi,
    I have created a custom cell renderer to set color in my table based on some value and the screen also shows colors when i set this cell renderer.
    But, I am not able to see the row selection ie. with blue background when I select any row in the table is nor appearing. Can you tell me how to solve this problem.
    Regards,
    R.Vishnu Varadhan.

    Check out this [url http://forum.java.sun.com/thread.jsp?forum=57&thread=507001]thread for a similiar example.

  • Custom Group Renderer

    Hi all,
    My situation is that I need to be able to, when uploading a document to KM and according to the value that takes a custom property, show only a specific group of properties on the screen.
    I'm trying to solve this by developing a custom group renderer. Within the renderer I can get the value of a property, then according to this value I would want to load the specific structured group using its name and render it inside my current structured group renderer.
    The problem is that I've haven't been able to create/load the structured group, how is this done?
    Also I could try to do it with a custom property renderer that modifies the contents of its containing structured group. Is this possible?/how could I do this?
    From what I've seen the KM creates all the Structured Groups when CM loads and pass only the minimal parameters to the group/property renderers limiting what can be done from a dynamic loading of properties point of view. What should I do to be able to extend the logic, not only the way that static properties are painted/rendered?
    I'd like to know what you think.
    Thanks in advanced,
    Andrés
    This topic is derived from this one because nodoby could help me there. Custom Group Renderer

    Hi Patricio,
    Thanks for your answer. Could you please help me with some doubts that I have?
    1. In the ResourceType creation it asks for a Resource Type ID, I don't know what to put in there, at help.sap.com it shows it in a URLish form. What should I put here?
    2. Also, in Custom Properties is it a comma separated values of the Ids of the properties?
    3. How do I pass the ResourceType to the new command that I will create? What is the format of the "parameters" parameter.
    If you could provide some references/procedures that I can look into I'd appreciate it.
    Thanks in advanced,
    André

  • Using JScrollpane via Custom Cell Renderer.Please Help

    Chaps,
    I have a question regarding scrolling of a JList.
    I have written a class (FTRDList) that has an Custom Cell Renderer.
    I want the list to be scrollable.
    This class is being called by many other classes.
    Now,as the FTRDList class is being called by many classes,i need
    to have all these classes to have the flwg statement
    add(new JScrollPane(FTRDList)),BorderLayout.CENTER);
    This can be a lot of work to chaneg all classes
    Rather,is it possible to have the JScrollPane built in the
    FTRDList class once and for all and let all classes call
    it by
    add(FTRDList,BorderLayout.CENTER);
    Please can anyone tell me how to make the FTRDList class Scrollable?
    Or is this not possible at all?
    Attached is the class:
    public class FTRDList extends JList {
        /* Inner class for Custom Cell Renderer */
        class MyCellRenderer extends JLabel implements ListCellRenderer {
        public Component getListCellRendererComponent(JList list,
                                                      Object value,            // value to display
                                                      int index,               // cell index
                                                      boolean isSelected,      // is the cell selected
                                                      boolean cellHasFocus) {  // the list and the cell have the focus
                setText(value.toString());
                if (isSelected) {
                setBackground(isSelected ? Color.red : Color.yellow);
             setForeground(isSelected ? Color.white : Color.black);
                setEnabled(list.isEnabled());
                setOpaque(isSelected);
                return this;
        public FTRDList() {
            super();
            setSelectedIndex(0);
            /** Invoke the cell Renderer */
            setCellRenderer(new MyCellRenderer());
            setOpaque(false);    

    I HAVE ALSO POSTED THIS IN THE JAVA PROGRAMMING FORUM PLEASE DONT GET OFFENDED AS I AM EXPECTING AN URGENT RESPONSEWell, someone has probably already answered this question in the Java forum, so I won't waste my time and answer it again here.

Maybe you are looking for

  • Video Purchased is greyed out on iPhone 3GS

    Greetings and Salutations,   I recently purchased the Blueray Combo pack of Pirates of Caribbean "On Stranger Tides".  I installed the Digital Version to iTunes successfully and was able to select it to be transfered to my iPhone.  It transfered just

  • Uninstall then Reinstall

    I have a question. I got this error while trying to update both InDesign and Photoshop Installation failed. Error Code: U44M1P7 When I looked in troubleshoot it said to uninstall and then reinstall the affected programs. Ok, easy enough. But before I

  • Dynamic Changes in Table control

    Hi is that possible to change the table control dynamically

  • Flash Builder Burrito 'unable to resolve ... for transcoding' error css file

    Hi, I am trying to dip my toes into the waters of mobile development with the preview release of flash builder burrito. I am doing so by trying to port over an application I have built in Flash Builder 4 for the web, by bringing it into a mobile app

  • A blackappworld can resolve a lots of your problem look here!!

    Unlike the red power button on your phone which merely reloads your device, QuickPull will actually refresh the device, freeing up memory and increasing performance! QuickPull Free has more than 1,000,000 users to date. Schedule to run a QuickPull at