PDA

View Full Version : Custom UI Component as Grid Custom Cell Display?



HankFay
2019-01-26, 17:14
Hi,

so my wish is to use some HTML to create a snazzy custom grid cell display.

My train of thinking is:

1) as usual, create the custom cell display in code as a container, with layout = "Form"

2) Have the container add the component gadget with addRow()

3) the component gadget would point to a page in the page library

4) the page in the page library would be a webview with the HTML

And Bob's your uncle, even if your uncle is not Prime Minister.

Should this work in Webview/Table/Phone?

Is there a more straightforward way to use HTML in the custom cell display?

I haven't tried this yet, but if the way should be clear, I'll spend the time to give it a shot.

Hank

barrymavin
2019-01-27, 21:01
Hi Hank,

a "WebView" can contain HTML web content. It's up to your ingenuity how that looks and performs.

If you look in the example_smartgrid sample app I have embedded an image, a long varchar (memo), a google chart, and a form in the grid cells.

1864

HankFay
2019-01-28, 13:25
Hi Barry,

am I correct in thinking that using a webview in a grid column custom cell display would require components, which are on the roadmap?

thanks,

Hank

barrymavin
2019-01-28, 19:40
Hi Hank,

No you can create a container, add a WebView to it and render a dynamic (.rsp .jssp) or static html in it right now.

HankFay
2019-01-29, 11:17
Ah, exactly what I needed to know: that a webview can be added to a container.

thanks,

Hank