Focal Point
[SOLVED] maintain update grid with dropdown choices?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/744102214

April 05, 2010, 12:52 PM
jjoyce
[SOLVED] maintain update grid with dropdown choices?
I've been experimenting with using an update grid on my form because I'd like the user to be able to update multiple rows at a time, but I'd also like to restict what input can be used in specific collumns. So for instance, I have 4 collumns that would be updated:
Description - free text but a required field
Comment - free text but not required
Status - combobox choice of OK, WARNING, DOWN, UNKNOWN
Active - 0 or 1, ideally I'd like to use a checkbox

Is there any way for me to imbed form controls within an update grid or an html table on my form so that the controls can be used to update multiple records at once, rather than the user just typing free text?

This message has been edited. Last edited by: jjoyce,


WebFOCUS 7.7.2
Win2003
Excel, HTML, PDF
April 05, 2010, 03:21 PM
Dave Ayers
Check out this FP post and the link:

http://forums.informationbuild...=879102113#879102113


Regards,
Dave

http://www.daveayers.com

WebFocus/Maintain 7.6.4-8
on Win2000 and 2003 Server
April 06, 2010, 08:31 AM
Maintain Wizard
As Dave points out, you can enhance the Grid with a drop down box. If you would like I can send you the presentation that you were pointed to. The code to add a check box looks like:

Form1.Grid1.GetCell(0,0);
Form1.Grid1.CellSetCellType(2);
Form1.Grid1.CellSetCellTypeEx(4096);
Form1.Grid1.SetCell(0,0);

You should be able to encorporate it just like the drop down boxes.

Please note that in release 7.7 we are introducing a JavaScript version of the grid, and that will allow you to use HTML code to add items like lists and checkboxes to the gird cells.

If you would like me to send you the presentation, e-mail me at Mark_Derwin@ibi.com and let me know if you have any questions.

Mark
April 06, 2010, 09:10 AM
jjoyce
Great! I had become convinced it wasn't possible but it seems like it would be a common enough solution. I was able to get the presentation from the link so hopefully I should be all set.

I'd mark this "solved" but I really don't know how to change the title...

thanks!
Jen


WebFOCUS 7.7.2
Win2003
Excel, HTML, PDF
April 06, 2010, 10:22 AM
GamP
Jen, you just need to go to your very first post in this thread and edit it. That will give you the option to also change the title.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988