I have some sample Grids and UXs that work with the "Alpha Sports" sample application to demonstrate the newer technique of passing Arguments via javascript function binding. It also includes an example of programmatically changing a lookup grid's static base filter when the grid is opened from a textbox lookup. The examples take parameter passing to several layers deep!
I'm sure there is room for plenty of improvement in these examples. Some of the things I'm hoping someone could contribute back here include:
1) Making the examples show they work in a tabbed UI where there are multiple instances of the parent grids passing arguments to child grids.
2) Showing an easier way for a grid to receive arguments when it is called as a Lookup Grid (see LkpName Grid component in attached). I think Alpha could help out here a lot. It would be nice if either the Dynamic Filter or Static Filter, when defining a "lookup", had a built-in method for specifying values from arguments. It seems it only likes session variables, field values and constants. My "LkpName" grid shows how to go beyond that and set a static filter based on arguments, but it would be nice if the builder could do that without having to go into coding.
I'm sorry I don't have step-by-step instructions on how the examples were created.
To run this:
1) create a new workspace/project folder "M36_BindArgToJS" and unzip the attached files into it.
2) copy the "Customer.*" and "Invoice_header.*" DBF files from Alpha's "Alpha Sports" demo workspace into the root of the project folder.
3) Open and run "M36_main".
M36_BindArgToJS.zip
Edit: cross link to original post. http://msgboard.alphasoftware.com/al...249#post669249
I'm sure there is room for plenty of improvement in these examples. Some of the things I'm hoping someone could contribute back here include:
1) Making the examples show they work in a tabbed UI where there are multiple instances of the parent grids passing arguments to child grids.
2) Showing an easier way for a grid to receive arguments when it is called as a Lookup Grid (see LkpName Grid component in attached). I think Alpha could help out here a lot. It would be nice if either the Dynamic Filter or Static Filter, when defining a "lookup", had a built-in method for specifying values from arguments. It seems it only likes session variables, field values and constants. My "LkpName" grid shows how to go beyond that and set a static filter based on arguments, but it would be nice if the builder could do that without having to go into coding.
I'm sorry I don't have step-by-step instructions on how the examples were created.
To run this:
1) create a new workspace/project folder "M36_BindArgToJS" and unzip the attached files into it.
2) copy the "Customer.*" and "Invoice_header.*" DBF files from Alpha's "Alpha Sports" demo workspace into the root of the project folder.
3) Open and run "M36_main".
M36_BindArgToJS.zip
Edit: cross link to original post. http://msgboard.alphasoftware.com/al...249#post669249