make a link in column Data table YUI - yui

I have a web page that contains a data table I want to make the first column cells redirect the user to another pages depend on its value so I want first to get the value from a cell second to make a link from this cell to another page depend on that value.
any advises.

You need to write a custom cell formatter. Check the documentation for whichever version of YUI you are using:
YUI 2: http://developer.yahoo.com/yui/datatable/#format
YUI 3: http://yuilibrary.com/yui/docs/datatable/#formatters

Related

In Excel, is it possible to create a hyperlink by combining two cells?

Example:
Cell 1: http.standardlink/
Cell 2: [idnumber]
Result: http.standarlink/[idnumber]
Can I make the result a clickable hyperlink, so that I can quickly create a bunch of buttons to links made up of cell 1 and ID numbers?
I know you can manually make each one a clickable link, but I'm looking for a solution where I can simply put in the ID in one cell, and get a clickable link in the next.
I've previously been able to create the text version of a link by combining the values of a cell, but the actual link would have to be copied and pasted into your browser to access.
Yes, you can make. Use HYPERLINK formula with concatenated cells (&) as an argument: =HYPERLINK($A$2&B2)
Result:

Render custom content in sheet cell (PrimeFaces Extensions)

I have another question regardless PF Extensions. Is it possible for example in one particular column to display custom (generic) column type. For example datePicker, Textarea, DecimalNumber, just Text or DropDown Menu. So for every single row it can be different content in this column. Is this idea possible or not really? Many thanks!
This issue has been raised before and its not so simple with the HandsonTable. Its doable just not simple.
See: https://github.com/primefaces-extensions/primefaces-extensions/issues/136

Default look of editable table cells in JavaFX

I would like to have first column in my table editable. That works fine. However table looks normal and only when I click on the editable cell, it looks like input box. I would like to have this look of inputbox as default on every editable column in my table, so user knows right away which cell he is able to modify and which one he cannot. I figured I will have to modify caspian.css, but I couldn't find anything there. Is there easier, programmatic way to do this?
Thanks
You need to set the cellFactory of your column, inside it you can specify what you want by default on your cell by setting is graphics
explanation
and here

How to specify the width of site column in a list?

I have developed a list in SharePoint. While entering new item in it, like name, if I keep on typing it gets spread over a line making the width of cloumn spread over page. I want to limit the width of site column so as the column's value spreads over multiple lines instead of spreading over one. How can I do this setting?
This is not a setting you can configure in SharePoint. You will need to write some custom code using css and possibly javascript that will set the width of the column. You can make a change like this in SharePoint Designer.
You must use min-width (CSS) in your block.
You have to create custom XSLT for this. There you have loop all the column and need to specify the overflow:auto, hidden,.. CSS property. So it automatically get effect based on your internal name of the field.
So whereever you have the field it automatically get affected. If it for one single view you can use JavaScript to achieve this but this is not right way to do.
The data you are entering can be displayed in many ways. Today in a table format, tomorrow in a dropdown etc. You should distinguish between:
limiting the amount of data that can be entered in a site column (can be done in SharePoint alone, when you design your list)
limiting the wrapping of the words in a table cell today or trimming the values in a dropdown tomorrow (can be done using HTML/CSS "nowrap" if you display the list values in a browser app, or differently if you show the values in a WinForms app)

Format lookup column to display Name (FileLeafRef)

I have a custom publishing page layout I have created. The content type behind the page layout has a lookup column pointing to a document library where I store images. Basically, the pages I am creating from the layout are 'articles' and I have an associated image with each.
As you can probably guess by now, I want to display the lookup image on the page. However, I cannot for the life of me figure out how to do this. I have been inserting columns into the page layout via controls, but I'm not sure how to format it to look at the source document behind the lookup column. I am wondering if it is possible somehow through controls, and if not this way, if it can be done through modifying the XSL of a webpart. My last option which I don't want to use but I know it would work is a workflow (on new item creation, copy Name (FileLeafRef) into a hidden single line text field I coult utilize).
Does anyone know how to format a lookup column to display Name (FileLeafRef)?
Help is greatly appreciated!
-Josh

Resources