Brent
|
| Posted: 04/29/2002, 2:47 PM |
|
I'm trying to find my way around CCS by converting one of my existing CC apps.
A manual would be nice explaining the differences between the two. For example,
How to pass/read parameters, old CC variables vs the new CCS variables etc..
1) re:Grid/Record form wizard. On the "Select the Link Field" page, how do I
select more than 1 field for the link field? Example: Company_Id, Empl_Id.
2) If I later want to change this link field after the code has been generated,
how do I get the record to look for a 3rd parameter, say "Dept_Id" and use that
to call up the record?
3) Code editor: Pressing F3 wraps back to the top of the file. This is real
annoying and if it can't find any more text, it should display a dialog saying so.
Wrapping back to the top of the file to redisplay code you're already looked at
will have the programmer going in circles. 
4) Code editor. Backspace key won't work if the shift key is pressed.
5) How do I access the UserID and UserRights session variables? What are they
called now? Is there a list if CCS variables available somewhere?
6) How do I make a grid column invisible?
Is it possble to hide record fields in code?
TIA
|
|
|
 |
Nicole
|
| Posted: 04/30/2002, 4:04 AM |
|
1,2. in wizard you can select one field only. But after form is created you can convert any other field to url: right click on it, select 'Change to' and select 'Link'. Then select 'Source/Parameter' in Properties window on Data tab. Open dialog and specify link page and output parameters.
5. look at common file and you'll see that you can access values of session variables UserID and UserRights from CCGetUserIF and CCGetGroupID functions. CC Studio also allows you create access user groups.
6. You can easy set empty value to field in grid form. To do it add custom code to field Before Show event, e.g.:
ASP
form_name.field_name.value = ""
PHP
$form_name->field_name->Value = "";
If you mean hide whole column I think it more complex as html code shouldn't be displayed as well.
As for your last sentence I'm not sure enough what you mean.
|
|
|
 |
Brent
|
| Posted: 04/30/2002, 1:18 PM |
|
>>1,2. in wizard you can select one field only. But after form is created you can convert any
>>other field to url: right click on it, select 'Change to' and select 'Link'. Then select
>>'Source/Parameter' in Properties window on Data tab. Open dialog and specify link page and
>>output parameters.
Ok, I see I can specify Link Parameters in the Href Source dialog to pass the
"hidden" Company_id and Employee_id fields from the grid to the form. Great!
My question remains, how do I get the Record form to realize the "Company_Id, Employee_id"
fields are the primary fields used to retrieve the record? In CC we could simple
check these fields saying they were "Key" fields. What is the equivalent in CCS?
>>As for your last sentence I'm not sure enough what you mean.
The CCS form and buttons have a Visible attribute.
Example:
$this->Insert->Visible = !$this->EditMode;
I was hoping this property was also available for record rows and grid columns
or controls in general. We could then easily hide controls that
we don't want the user to see, because of his security level is too low etc.
TIA
|
|
|
 |
Brent
|
| Posted: 04/30/2002, 1:59 PM |
|
>>My question remains, how do I get the Record form to realize the "Company_Id, Employee_id"
>>fields are the primary fields used to retrieve the record? In CC we could simple
>>check these fields saying they were "Key" fields. What is the equivalent in CCS?
Ok, I found the Where clause builder on the Data tab for the record form.
Sheesh. I need new glasses. ;)
|
|
|
 |
|