ktosiek
Posts: 3
|
| Posted: 03/26/2013, 1:33 PM |
|
hello, I'm sorry, but I speak little English ...
How do I open a page containing details of a record on a new page, as in the example "Employee Directory". I know how to make a link, but I do not know how to set up to display the content in a new page (with details). Please help

_________________
ktosiek |
 |
 |
cvboucher
Posts: 191
|
| Posted: 03/27/2013, 1:22 AM |
|
Click on the link in CCS and then click on the ... button in the Href Source property. On the parameters tab add a parameter with a source type of DataSource Column and select the column to pass in the Parameter Source. Normally you would select the primary key column when linking to a page with a Record form.
Craig
|
 |
 |
ktosiek
Posts: 3
|
| Posted: 03/27/2013, 1:13 PM |
|
hi Craig,
I have just set up a link. I do not know how to set up the grid, record, etc. on a new page to display a record of passed parameter.
_________________
ktosiek |
 |
 |
cvboucher
Posts: 191
|
| Posted: 03/27/2013, 2:42 PM |
|
If you use the Record builder to create the add/edit form on the strona.cpp page, it will put a where condition on the record based on the primary key. It will use the field name as the parameter name so you may want to change the Parameter name from p to ID_PRACOWNIK_old. Or you can modify the where condition on the record form to use p as the parameter name. Either way whould work.
Craig
|
 |
 |
ktosiek
Posts: 3
|
| Posted: 03/28/2013, 8:15 AM |
|
Add / edit form is working!, but how can I display the contents of a record in the Grid form? On the Grid Form I care about the most. I'm trying to do this for a long time, but I think it is not that simple.
_________________
ktosiek |
 |
 |
Lucius
Posts: 220
|
| Posted: 03/28/2013, 12:32 PM |
|
Use Grid builder to build grids for tables, if you need to restrict it to display only 1 record at time, add some SQL parameter, that will always need to be set to a value (id of the record ideally), that you would like to have controlling the Grid display.
If you want to display both Grid and Record (add/edit) on the same page use "Grid & Record builder" - this will create them both at once.
|
 |
 |
|