12.07.2015 Views

Banner Web Tailor / User Guide / 8.3 - Parent Directory

Banner Web Tailor / User Guide / 8.3 - Parent Directory

Banner Web Tailor / User Guide / 8.3 - Parent Directory

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Printing text fields and processing dateinputTo print text fields and process date input in your own custom procedures, go to the <strong>Web</strong><strong>Tailor</strong> <strong>Web</strong> Rules page. Adjust the settings for Date Display Format Mask and DateInput Format Mask during unit testing to verify that your procedures are correctlyreferencing the current display and input formats.• To print text input fields, use the following PL/SQL code to print a text field calledSTART_DATE:twbkfrmt.P_FormDateText (‘START_DATE’,’’,”);This code produces both the text field and the description of the date input format.The HTML code for this output looks like the following:&nbsp;(MM/DD/YYYY)• To process the date field created, specify the START_DATE as an “in” parameter toyour procedure. Use the twbkwbis.F_IsDate function to determine if the date isvalid using the current date input format. After you determine that a date is valid,use the twbkwbis.F_FmtDate function to convert the VARCHAR2 input to Oracledata.procedure P_SaveDate (start_date IN VARCHAR2 DEFAULT null) isbeginIF (start_date IS NOT NULL) AND(twbkwbis.F_IsDate(start_date, twbklibs.date_input_fmt))THENUPDATE date_tableSET reg_start_date = twbkwbis.F_FmtDate (start_date);COMMIT;ELSEEND IF;. . .end P_SaveDate;• To display a date on the <strong>Web</strong>, use twbklibs.date_display_fmt to format yourdate instead of twbklibs.date_input_fmt:htp.p(to_char(reg_date, twbklibs.date_display_fmt));<strong>Web</strong> <strong>Tailor</strong> Utility Report pagesThese six reports let you review <strong>Web</strong> menus/procedures, menu items, information text,and role settings being delivered for specific <strong>Web</strong> products through a web browser insteadof SQL*Plus.5-20 <strong>Banner</strong> <strong>Web</strong> <strong>Tailor</strong> <strong>8.3</strong> January 2010<strong>User</strong> <strong>Guide</strong>Technical Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!