Phil - Wednesday, May 19, 2010 11:08 AM:
Hello again, so I have been busy making reverse relationship Grids lately. My question is: Is there any way to handle an "OnClick" for a Grid cell/row?
I'm not talking about the built-in relationship Grids....I'm talking about the actual Grids that can be accessed from Administration->Grids. The only event handlers I see for Grid Events are OnCopy and OnPaste.
I would like the user to be able to click on a cell and have that transport them to the item they clicked on (assuming I pass the ID field to the grid).
Thanks for the help!
Phil - Monday, June 7, 2010 5:09 PM:
Come on now anyone? I know someone here has had to program the built-in grids to do something. I really don't want to have to resort to making my own .NET form and having that be the view for the tab, just so I can let them click on the reverse related items.
PeterSchroer - Monday, June 7, 2010 5:34 PM:
Hey Phil,
I've got a couple ideas for you. I build alot of custom grids for Relationship Tabs, and there are 2 approaches. the Configurable-Grid that you found at Administraiton -> Grids and placing the Grid Control into an HTML page that is placed on the face of the Tab. C-Grid has a ton of power for building complex XML document editing and viewing scenarios, but it lacks some of the simple navigation controls. I've added them myself by editing the ConfigurableGird.html file, adding another button on the tool bar and adding th eOnClick event for the grid itself. We're planning a "Configurable Toolbar" itemtype that will allow you to create customized toolbard patterns as an Admin (not programmer), and the first place this will be used in on the C-Grid. But that's not available today. So here's the 2 choices: (1) edit the ConfigurableGrid.html and add the toolbar button for Open and the click or double-click events yourself. i did this circa v8.2 for a customer, and the technique will still work today. About 1 days work. (2) instead of a C-Grid on the relationship, use a Form, and in that form, place an HTML field with the Grid Control, toolbar, and any JS you need for running queries and taking actions. About 2 days work the first time, but you have complete control over the behaviors of the UI. I currently use #2 all the time. Checkout the Community Solution called Mulit-level BOM Tools for a solution that uses this pattern. If you have any questions, let me know.
In either case, the on-line help inside of Innovator has the complete API for all the controls (toolbar, grid, workflow, structure, etc). and there are some very cool UI's you can build if you are able to do some simple HTML/JS programming.
--peter
Phil - Tuesday, June 8, 2010 2:24 PM:
It looks like example 7.20 out of the programmers guide for 9.1 goes through the process of creating a grid to show relationsihps...so I might be able to use this a starting point. The next challenge will be to figure out the right AML query that will retrieve my reverse relationship information for me. But hopefully this will at least get me started down the right path.