bigtoe
Posts: 115
|
| Posted: 10/02/2004, 4:21 AM |
|
I created a form with CCS.
When the web page loads, it displays 2 buttons:
Add, Cancel
When the web page loads with a record selected
from the grid, it displays 3 buttons:
Submit, Delete, Cancel
This is all good.
I would like to add a button called "Progress"
such that:
a. It belongs to the second set of buttons -
Progress, Submit, Delete, Cancel
b. It is not visible when the page loads.
(You still see only 2 buttons - Add, Cancel)
c. It is visible when the page loads with
a record selected from the grid. (You now see
Progress, Submit, Delete, Cancel)
d. The normal validation is applicable as
it applies to the Submit button.
How do I create this kind of "Progress" button?
|
 |
 |
bigtoe
Posts: 115
|
| Posted: 10/03/2004, 1:14 AM |
|
Ok, I did a copy and paste of the Submit button in the form.
The newly pasted button is now named "Progress".
But this "Progress" button is not visible in edit mode or otherwise.
How can I make this button visible only in edit mode?
I understand that I should avoid setting the visibility in php.
|
 |
 |
peterr
Posts: 5971
|
| Posted: 10/03/2004, 3:37 AM |
|
Try adding a new Button from the "Forms" tab in Toolbox, then set "Operation=Update" in properties.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
bigtoe
Posts: 115
|
| Posted: 10/03/2004, 4:09 AM |
|
Ok, I did that but when the form is in Edit mode it still shows Submit, Delete and Cancel.
I would like to see Progress, Submit, Delete and Cancel when the form is in Edit mode.
In any case, the Progress button is just not visible in any mode.
|
 |
 |
Karsten
Posts: 57
|
| Posted: 10/03/2004, 9:48 AM |
|
hi bigtoe
what should your "progress" button later do if you klick on it?
you can just add a button on the form with no operation mode, so it shows all the time no matter what mode the form is in.
i ask you what the progressbutton is for(what you will have later happen if it is clicked), because if i know this i think i can help you serious.
Karsten from Germany
_________________
If one gives up, he told himself he failed. |
 |
 |
klwillis
Posts: 428
|
| Posted: 10/03/2004, 11:11 AM |
|
You can do what Karsten suggested and then add similar code
within the 'Before Show' event for your progress button:
$DataForm->Progress_Button->Visible = $DataForm->Update_Button->Visible;
_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"
Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006 |
 |
 |
bigtoe
Posts: 115
|
| Posted: 10/03/2004, 12:05 PM |
|
I did both:
Added a button with no operation mode.
Yet the button is not visible at all in any mode ??
For this button under Events, Server-Before Show-Custom Code
Added $DataForm->Progress_Button->Visible = $DataForm->Update_Button->Visible;
Still the button is not visible at all in any mode ??
|
 |
 |
bigtoe
Posts: 115
|
| Posted: 10/03/2004, 12:12 PM |
|
FYI, if I can get this Progress button to become visible.
In Edit mode, I would like to grab the data in the form (applying the existing validation) and send it to the progress_form.php
The progress_form.php uses this data to do a database lookup and provide detailed progress about this data.
The detailed progress is essentially several other columns from the same table row.
|
 |
 |
bigtoe
Posts: 115
|
| Posted: 10/03/2004, 12:28 PM |
|
I don't know if it matters, between the header and the footer of this web page I have:
One Search form - to search with given criteria
One Grid - to display the results of the search
One Add/Edit form - to edit one record from the results of the search or add a new record
I need to get the Progress button to be visible when the Add/Edit form is in edit mode.
The Progress button is just not visible - this is where I am stuck.
|
 |
 |
bigtoe
Posts: 115
|
| Posted: 10/03/2004, 5:04 PM |
|
I was able to make the Progress button visible.
But I had to take it out of the Add/Edit form.
The Progress button is located after the < /form > tag of the Add/Edit section.
The visibility of the Progress button is also conditional, as suggested by klwillis:
$DataForm->Progress_Button->Visible = $DataForm->Update_Button->Visible;
For this Progress button, I have set the Enable Validation to Yes.
But it does not seem to be doing the validation.
3 fields in the Add/Edit form section are required but if I leave them empty, the Progress button does not prompt me for data.
How can I enforce this validation for this Progress button?
|
 |
 |
klwillis
Posts: 428
|
| Posted: 10/04/2004, 9:14 AM |
|
Place the progress button before the '</form>' tag, otherwise,
event code (which is related to the form) will never know about
your button.
Hopefully, that does the trick. 
Quote bigtoe:
I was able to make the Progress button visible.
But I had to take it out of the Add/Edit form.
The Progress button is located after the < /form > tag of the Add/Edit section.
The visibility of the Progress button is also conditional, as suggested by klwillis:
$DataForm->Progress_Button->Visible = $DataForm->Update_Button->Visible;
For this Progress button, I have set the Enable Validation to Yes.
But it does not seem to be doing the validation.
3 fields in the Add/Edit form section are required but if I leave them empty, the Progress button does not prompt me for data.
How can I enforce this validation for this Progress button?
_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"
Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006 |
 |
 |
bigtoe
Posts: 115
|
| Posted: 10/04/2004, 11:36 AM |
|
Quote klwillis:
Place the progress button before the '</form>' tag, otherwise,
event code (which is related to the form) will never know about
your button.
Hopefully, that does the trick.
I did exactly that all along.
But then the Progress button is just not visible.
To get visibility, I had to remove it from the '</form>' tag section.
|
 |
 |
klwillis
Posts: 428
|
| Posted: 10/05/2004, 2:47 PM |
|
That is odd - but it sounds like the HTML source needs fixing.
Perhaps tech. support can help you with that one, and let the
rest of us know what you did to resolve the problem. 
_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"
Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006 |
 |
 |
bigtoe
Posts: 115
|
| Posted: 10/05/2004, 3:15 PM |
|
klwillis,
Thanks for the tip.
Having the Progress button outside of the form section actually works for me.
From a perception and a functional standpoint.
If the Progress button is in the form section, this means that data in the form may have be edited - but not (yet) saved!
The user may forget to click on the "Update" button.
So getting progress information on unsaved data would result in problems - visual and functional.
With the Progress button outside of the form, data from the relevant fields (in the form) is copied into the corresponding Labels.
(These Labels are "boxed" into a rectangle with the Progress button using a table.)
The copying of data happens only "On Load".
So the edited data in the form is not reflected in the Labels.
Only saved data is reflected in the Labels.
This gives the user the opportunity to "Update" the edited data or not.
With an "Update" operation the respective Labels would be updated.
So the Progress button will be associated with the proper (saved) data.
|
 |
 |
|