I've created a html page that has two text boxes allowing users to enter partial values and retrieve account numbers or account IDs. The code works fine when the boxes are populated; however, it forces users to know at least part of the account numbers. The ideal situation would be for the report to still work when the textboxes are empty. I'm using the code below to generate the report. Appreciate any suggestions. Thanks
Luiz
-SET &LOOKLEN1 = &LOOKVAL1.LENGTH ;
-SET &LOOKLEN2 = &LOOKVAL2.LENGTH ;
-SET &LOOKVAL1 = UPCASE(&LOOKLEN1, &LOOKVAL1, &LOOKVAL1);
-SET &LOOKVAL2 = UPCASE(&LOOKLEN2, &LOOKVAL2, &LOOKVAL2);
-SET &FIELD_MSCUSTID = IF &SHOW_LOOKVAL1 EQ 'SHOW' THEN 'BY ' | '''' | Master_Customer_ID | '''' ELSE '';
-SET &FIELD_CUSTACCID = IF &SHOW_LOOKVAL2 EQ 'SHOW' THEN 'BY ' | '''' | Customer_Account_ID | '''' ELSE '';
TABLE FILE CASH_IDR
SUM
Payment_Amount
BY Billing_Source_System_Code
BY BU_EVP_Code
&FIELD_MSCUSTID
&FIELD_CUSTACCID
ACROSS Posted_Year_and_Month AS 'Month'
WHERE ( Billing_Source_System_Code EQ &BILLSSCD.(OR(FIND Billing_Source_System_Code IN ARCASH_BILLSSY)).);
WHERE ( BU_EVP_Code EQ &BUEVP.(OR(FIND BU_EVP_Code IN ARCASH_BUEVPM)).);
WHERE (Master_Customer_ID CONTAINS '&LOOKVAL1' );
WHERE (Customer_Account_ID CONTAINS '&LOOKVAL2');
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT &WFFMT.(,
,).Select display output.
ON TABLE SET HTMLCSS ON
-INCLUDE ar_stylesheet_corp
END