150 likes | 253 Views
Grokking the Paradigm Changing Column Layouts. Dennis Dawson Principal Technical Writer EMC/Documentum. Here’s what I’m gonna talk about: Add columns to display Remove columns from display Rearrange columns Tips for when thangs ain’t don’t work right. Ten Minutes’ Worth of Stuff.
E N D
Grokking the ParadigmChanging Column Layouts Dennis Dawson Principal Technical Writer EMC/Documentum
Here’s what I’m gonna talk about: Add columns to display Remove columns from display Rearrange columns Tips for when thangs ain’t don’t work right Ten Minutes’ Worth of Stuff Grokking the Paradigm
Changing Default Columns • We can change the order and content of columns in any of our list controls by changing their XML configuration Grokking the Paradigm
Changing Default ColumnsUpdating myfiles_classic_component.xml • Copy myfiles_classic_component.xml to the /custom directory (which extends myobjects_list_component) • Copy the entire <columns> element from :/webcomponent/config/library/myobjects/myobjects_list_component.xml • Paste it into the <component> element of our custom version of myfiles_classic_component.xml Grokking the Paradigm
Adding a Default ColumnUpdating myfiles_classic_component.xml • Change visible to true to display a column <column> <attribute>r_creation_date</attribute> <label><nlsid>MSG_CREATION_DATE</nlsid></label> <!-- <visible>false</visible> DD 11_16_06 --> <visible>true</visible> </column> Grokking the Paradigm
Adding a Default ColumnRefreshing the Configuration Settings • To refresh the configuration settings, open http://localhost:8080/webtop/wdk/refresh.jsp • Verify in the browser column preferences • If column preferences have never been set, changes appear automatically • If column preferences have been set, they are stored as cookies at the browser; click Reset to Defaults to see changes Grokking the Paradigm
Adding a Default ColumnThe Result • The my_files page after update: Grokking the Paradigm
Removing a Default ColumnUpdating myfiles_classic_component.xml • To remove a column, set its visible attribute to false • Here, we’re removing the column for file format (content type) <column> <attribute>a_content_type</attribute> <label><nlsid>MSG_FORMAT</nlsid></label> <!-- Changed by Dennis Dawson 11-16-06 <visible>true</visible> --> <visible>false</visible> </column> Grokking the Paradigm
Removing a Default ColumnThe Result • Here’s the my_files page after update: Grokking the Paradigm
Rearranging ColumnsUpdating myfiles_classic_component.xml • Rearrange columns by rearranging their corresponding elements in the configuration file ... <column> <attribute>r_content_size</attribute> <label><nlsid>MSG_SIZE</nlsid></label> <visible>true</visible> </column> <column> <attribute>r_version_label</attribute> <label><nlsid>MSG_VERSION_LABEL</nlsid></label> <visible>true</visible> </column> ... Grokking the Paradigm
Rearranging ColumnsThe Results • When we refresh the configuration, version and size have swapped places: Grokking the Paradigm
When In Doubt, Strip the Baby • Parenting tip: When a baby won’t stop crying: • Strip it • Diaper it • Dress it • Swaddle it • Feed it • Burp it • Serenade it Grokking the Paradigm
When In Doubt, Strip Your Application • Programming tip: When your application won’t work: • Shut down your computer(s) • Turn on (cold boot) your computer(s) • Restart your server • Restart your browser • Delete your offline content • Clear your caches • Clear your cookies • Strip your application back to a working version • Add your changes back in one at a time until it breaks again (so you know why) or it works (just be glad) • Keep iterative backups Grokking the Paradigm
Multiplicitas Componatis Res Simplex • Taken as a whole, Webtop and WDK-based applications are intricate, multifaceted feats of programming • When you focus on any one element of the application, it’s easy to follow the logic and duplicate its behavior • Once you grok the paradigm, enhancing and customizing complex applications becomes a series of simple steps Grokking the Paradigm
Clarifications/comments?Please send them to:dawson_dennis@emc.comWDK Questions? Please visit:http://developer.emc.com/developer/