cc3:  Creating Advisor Option to Enable Web Registration

 




The menu option "Enable WEB Registration" runs the template TPL_DIR:[GUI.SIS]UPDATE_DEMOGRAPHIC.TPL. When advisor chooses this option, they are taken straight to the page to update the info instead of the "view demographic" template.

The form SIS3_SCRIPTS:FAS_VERIFY_STDDATA.FRM now displays the student's current status and then give two options, "Yes" and "No"

Logicals are set as follows:
(LNM$SYSTEM_TABLE)

"CC$FAS3_LOGICALS" = "SET"
"CC$FAS3_LOGICALS" = "SET"
"CC$FAS_AID_REVIEW_ENABLED" = "FALSE"
"CC$FAS_ALLOW_DEMOGRAPHIC_UPDATE" = "TRUE"
"CC$FAS_COURSE_AVAIL_ENABLED" = "TRUE"
"CC$FAS_DEGREE_AUDIT_ENABLED" = "TRUE"
"CC$FAS_DISALLOW_WITHDRAWAL" = "TRUE"
"CC$FAS_GRADE_ENTRY_ENABLED" = "FALSE"
"CC$FAS_GRADE_REPORT_ENABLED" = "TRUE"
"CC$FAS_LOGICALS" = "SET"
"CC$FAS_MAX_CREDLOAD_1S" = "9"
"CC$FAS_MAX_CREDLOAD_2S" = "17"
"CC$FAS_MAX_CREDLOAD_3S" = "17"
"CC$FAS_MAX_CREDLOAD_4S" = "9"
"CC$FAS_REGISTRATION_ENABLED" = "FALSE"
"CC$FAS_ROSTER_ENABLED" = "TRUE"
"CC$FAS_SCHEDULE_ENABLED" = "TRUE"
"CC$FAS_TIMEOUT" = "20"
"CC$FAS_USE_OKFLAG" = "TRUE"
"CC$FAS_VIEW_DEMOGRAPHIC_ENABLED" = "TRUE"
"CC$FAS_VIEW_TRANSCRIPT_ENABLED" = "TRUE"


The fas_config file has:
$ DEFINE/SYSTEM CC$FAS_REGISTRATION_ENABLED FALSE
$ !DEFINE/SYSTEM CC$FAS_REGISTRATION_ENABLED TRUE
...
$ !
$ DEFINE/SYSTEM CC$FAS_USE_OKFLAG TRUE
$ !This logical superceded by registration_enabled logical.
$ !
...
$ ! Demographic Update
$ !
$ DEFINE/SYSTEM CC$FAS_ALLOW_DEMOGRAPHIC_UPDATE TRUE


 

Steps to add the new "webok" button in CCv3:

-------------------
1.  Add the menu option to the SIS drop-down menu.
        This is done by modifying CC3$ROOT:[DOCS.JSCRIPT]SIS_MENU.JS.
The modification was to add the following lines of code in the appropriate location:

*       TRANSLATE CC$WEBOK_ENABLED/COMPRESS:34/LEN:1
*       IF <...TRAN> EQ <T>
        addSubmenuItem("javascript:menuOption('SIS','Links', 'Enable WEB registration)","Enable WEB Registration","","");
*       ENDIF

-------------------
2.  Add the menu option to the FIS drop-down menu.
        This is done by modifying TPL_DIR:[GUI]MENU_BUILDER.TPL.  The modification was to add the following lines of code in the appropriate location:

*       TRANSLATE CC$%%mode$%%_WEBOK_ENABLED/COMPRESS:34/LEN:1
*       IF <...TRAN> EQ <T>
        addSubmenuItem("javascript:menuOption('SIS','WEBOK', 'Enable WEB Registration')","Enable WEB Registration","","");
*       ENDIF

-------------------
3.  Create the template
        This is done by creating the file TPL_DIR:[GUI.SIS]WEBOK.TPL.

$ edit TPL_DIR:[GUI.SIS]WEBOK.TPL

 

*! webOK
*!
*INCLUDE TPL_DIR:[%%Style$%%]HEADER
*!      Start Custom HTML Code
*          TRANSLATE CC$%%mode$%%_ALLOW_DEMOGRAPHIC_UPDATE/COMPRESS:34/LEN:1
*          IF <...TRAN> EQ <T>
             <input type=button value="Enable WEB registration " onclick="javas
*          ENDIF
         <center>
*          CADI QUERY/OUTPUT="cc3$scratch:dh%%tmp_output%%" STUDENT %%studentid
           <br>
*!          CADI QUERY/OUTPUT="cc3$scratch:dh%%tmp_output%%" STUDENT %%studenti
*!           <br>
         </center>
*!      End Custom HTML Code
*INCLUDE TPL_DIR:[%%Style$%%]FOOTER
[End of file]

-------------------
4.  Define the appropriate logicals in SIS and FAS Config files.
        In SIS_CONFIG.COM:
                $ DEFINE/SYSTEM CC$WEBOK_ENABLED                TRUE (not done)
        In FAS_CONFIG.COM:
                $ DEFINE/SYSTEM CC$FAS_WEBOK_ENABLED                TRUE