Correct. I setup Js alert windows to trap contents. I thought I could reference an element Id inside a row.... but could not. so I setup a new column and set width to 0 as first column of the grid and placed contents in it. the corrected code is as follows. the alert windows are commented out.
just for my information, is there a "good" place to store JS script functions that is universal? not sure I like functions defined in the widget? maybe a script module?
thanks,
Dean
S Dean ****
CEO
R & E Software Design LLC.
IBM Business Partner since 1988
For quick little one or two line scriptls, we generally recommend keeping them inside of the display file.
For more sophisticated things, you can store your code in the /www/your-instance/htdocs/profoundui/userdata/custom/js directory. If you are running a Profound Ui session (as opposed to Genie), it will automatically load any files in that directory that end in .js into your session. So you can create files there as needed to store your more sophisticated functions, and call them from your display files.
thanks. I finally figured that out with the js function alert.
I thought you could retrieve an element from a row. not just a column. I added a new column put my element in it and and set width to 0. all works now!
You can use the get() function if you want to retrieve an element by id. Subfile fields will have a dot followed by the row number inserted. So you'd have PDFCLICK.1, PDFCLICK.2, etc. So if you wanted to retrieve it by field id, you could do