//Global redirect used in multiple spots in this button bar //After tasks are created display the project var text RedirectCurrentProject = URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Project Number]; //Add Discussion Post Button var text URLONE=URLRoot() & "db/" & [_DBID_DISCUSSION_POSTS] & "?a=API_GenAddRecordForm&_fid_11=" & URLEncode ([Project Number])& "&z=" & Rurl(); var text BUTTONONE="Add Discussion Post"; //------------------------------------------------------------------------------------------- //Add Meeting Minute Button var text URLTWO=URLRoot() & "db/" & [_DBID_MEETING_MINUTES] & "?a=API_GenAddRecordForm&_fid_16=" & URLEncode ([Project Number])& "&z=" & Rurl(); var text BUTTONTWO="Add Meeting Minute"; //-------------------------------------------------------------------------------------------- //Add Opportunity Button var text URLTHREE=URLRoot() & "db/" & [_DBID_OPPORTUNITIES] & "?a=API_GenAddRecordForm&_fid_11=" & URLEncode ([Project Number])& "&z=" & Rurl(); var text BUTTONTHREE="Add Opportunity"; //-------------------------------------------------------------------------------------------- //Add Task Button var text URLFOUR=URLRoot() & "db/" & [_DBID_TASKS] & "?a=API_GenAddRecordForm&_fid_21=" & URLEncode ([Project Number])& "&z=" & Rurl(); var text BUTTONFOUR="Add Task"; //--------------------------------------------------------------------------------------------- //Email Internal Project Members Button var text URLFIVE = "MailTo:" & [Internal Email List] &"?subject=" & URLEncode([Name]); var text BUTTONFIVE="Email Internal Project Members"; //---------------------------------------------------------------------------------------------- //Email Internal and External Project Members Button var text URLSIX = "MailTo:" & [Combined Text External  Email List] &"?cc=" & [Internal Email List] &"&subject=" & URLEncode([Name]); var text BUTTONSIX="Email External and Internal Project Members"; //---------------------------------------------------------------------------------------------- //Request Kickoff Meeting Button //Create task to assign Schedule Kickoff Meeting to MaryEllen var text URLSEVENA = URLRoot() & "db/" & [_DBID_TASKS] & "?a=API_AddRecord" & "&apptoken=c5gchf9bhwx6umbd2ii5zdqtb5x8" & "&_fid_6=" & URLEncode("Schedule Kickoff Meeting") & "&_fid_8=" & URLEncode(Today()) & "&_fid_9=" & WeekdayAdd(Today(),1) & "&_fid_21=" & [Project Number] & "&_fid 36=" & URLEncode("A matching task has been assigned to Talia. Confirm with her once the task is setup") & "&_fid_52=" & URLEncode(ToUser("mmattera@elitestudioe.com")); //Create task to assign Schedule Kickoff Meeting to Talia var text URLSEVENB = URLRoot() & "db/" & [_DBID_TASKS] & "?a=API_AddRecord" & "&apptoken=c5gchf9bhwx6umbd2ii5zdqtb5x8" & "&_fid_6=" & URLEncode("Schedule Kickoff Meeting") & "&_fid_8=" & URLEncode(Today()) & "&_fid_9=" & WeekdayAdd(Today(),1) & "&_fid_21=" & [Project Number] & "&_fid 36=" & URLEncode("A matching task has been assigned to MaryEllen. Confirm with her once the task is setup") & "&_fid_52=" & URLEncode(ToUser("nrosenthal@elitestudioe.com")); //After tasks are created display the project var text URLSEVENREDIRECT = URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Project Number]; //Combine the URL into one string var text URLSEVEN = $URLSEVENA & "&rdr=" & URLEncode($URLSEVENB) & URLEncode("&rdr=" & URLEncode($URLSEVENREDIRECT)); var text BUTTONSEVEN="Request Kickoff Meeting"; //---------------------------------------------------------------------------------------- //Add Daily Report Button var text UrlDailyReport = URLRoot() & "db/" & [_DBID_DAILY_REPORTS] & "?a=API_GenAddRecordForm&_fid_9=" & URLEncode ([Project Number])& "&z=" & Rurl(); var text ButtonDailyReport = "Add Daily Report"; //---------------------------------------------------------------------------------------- //Add Service Call Button var text UrlServiceCall = URLRoot() & "db/" & [_DBID_SERVICE_CALLS] & "?a=API_GenAddRecordForm&_fid_13=" & URLEncode ([Project Number])& "&z=" & Rurl(); var text ButtonServiceCall= "Add Service Call"; //---------------------------------------------------------------------------------------- //Add Punch List Item Button var text UrlPunchListItem = URLRoot() & "db/" & [_DBID_PUNCH_LISTS] & "?a=API_GenAddRecordForm&_fid_13=" & URLEncode ([Project Number])& "&z=" & Rurl(); var text ButtonPunchListItem= "Add Punch List Item"; //---------------------------------------------------------------------------------------- //Add Construction Schedule Item Button var text UrlConstructionScheduleItem = URLRoot() & "db/" & [_DBID_CONSTRUCTION_SCHEDULES] & "?a=API_GenAddRecordForm&_fid_16=" & URLEncode ([Project Number])& "&z=" & Rurl(); var text ButtonConstructionScheduleItem= "Add Construction Schedule Item"; //---------------------------------------------------------------------------------------- //Create Button to Request Interior Design Services //Create a variable to store the details (Used for Interior Design Services and Foodservice Design Services) var text Details = "Request: ****REQUEST WHAT YOU NEED HERE****

" & "Scope of Work: " & [Scope of Work] & "

" & "Timeline: " & [Timeline]; //Create task to assign Schedule Kickoff Meeting to Talia var text UrlRequestInteriorDesign = URLRoot() & "db/" & [_DBID_TASKS] & "?a=API_GenAddRecordForm" & "&_fid_6=" & URLEncode("Schedule Interior Design Work") & "&_fid_7=" & URLEncode($Details) & "&_fid_8=" & URLEncode(Today()) & "&_fid_9=" & WeekdayAdd(Today(),1) & "&_fid_21=" & [Project Number] & "&_fid 36=" & URLEncode("A request has been made to schedule Interior design work.") & "&_fid_52=" & URLEncode(ToUser("nrosenthal@elitestudioe.com")) & "&rdr=" & URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Project Number]; var text ButtonRequestInteriorDesign= "Request Interior Design Services"; //---------------------------------------------------------------------------------------- //Create Button to Request Foodservice Design Services //Create task to assign Schedule Kickoff Meeting to MaryEllen var text UrlRequestFoodserviceDesign = URLRoot() & "db/" & [_DBID_TASKS] & "?a=API_GenAddRecordForm" & "&_fid_6=" & URLEncode("Schedule Foodservice Design Work") & "&_fid_7=" & URLEncode($Details) & "&_fid_8=" & URLEncode(Today()) & "&_fid_9=" & WeekdayAdd(Today(),1) & "&_fid_21=" & [Project Number] & "&_fid 36=" & URLEncode("A request has been made to schedule Foodservice design work.") & "&_fid_52=" & URLEncode(ToUser("mmattera@elitestudioe.com")) & "&rdr=" & URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Project Number]; var text ButtonRequestFoodserviceDesign= "Request Foodservice Design Services"; //---------------------------------------------------------------------------------------- //Create Button Bar "
" & $BUTTONONE & $BUTTONTWO & $BUTTONTHREE & $BUTTONFOUR & "
" & $ButtonDailyReport & $ButtonServiceCall & $ButtonPunchListItem & $ButtonConstructionScheduleItem & "
" & $BUTTONSEVEN & $ButtonRequestInteriorDesign & $ButtonRequestFoodserviceDesign & "
" & $BUTTONFIVE & $BUTTONSIX & "
"