Data fetcher make up of SQL expression and for user to import his design logic into BC Excel Server. It refers to a
set of sequential query rules that is able to fetch qualified data or records from variously joined data tables. Also,
it would return the results to the corresponded table cells according to default or customized filling criteria.
There are two kind of the data fetcher system in Excel Server: Data Fetcher and Data Writer. Data Fetcher is refer to draw
the data from other report to current report. Data Write is to write back and update the data to the relevant report while
the current data from current report is updated.
Writer with the
case of a part of the sales system.
In chapter 6, the Customer Register From and Sales Order Form has been build and the customer’s information have been
acquired already. Therefore, it is possible to get the customer’s information from Customer Register From to fill in the customer
information
(customer code and contactor) of Sales Order Form.
The expression is:
While the customer’s name in Out of Sales Order Form is the same as the company name in Customer Register From, then get to
information of customer code and contactor of Customer
Register From to fill up the filed of customer reference and contactor of Sales
Order Form

Start to Define Data Fetcher in Sales Order Form

Data Fetcher Window
Step Three: Enter the data fetcher name ‘GetCustomerCodeNContactor’ and tick the fired occasion and click ‘Data Source’ to
import the source form.

Expression of Data Fetcher
Step Four: Select the
source form CustomerRegistraterForm_Main and click ‘OK’

Source Select
Step Five: Press the ‘Filter
Conditions’ button to enter the activated condition of the expression.

Step Six: Enter the
expression
‘CustomerRegistrationForm_Main.Company
= thisReport.Sheet1: Customer’

Expression of Condition
Step Seven: Select ‘Fill Methods’. The
fill methods is about which target field will be filled and what will be filled
in these field

Step Eight: Double click
the Loading Data toward the target field ‘CustomerCode’


Fill Expression to the
Target Field ‘Customer Code’
to
the target field ‘Contact’

Fill Expression to the Target Field ‘Contact’
Step One: Login ‘My
Workbench’ and fill and new ‘Customer Register Form’


Fill the new report

Step Four: Fill ‘Cesoft’ into the
Customer field in sales order report and check what happened next

Filling
new sales order report

In Chapter Six, the ‘Customer Registration Form’ and ‘‘Sales Order Form’ has been built to deal with the customer order.
There is a simple requirement in Storage System: while the customer has ordered some products, the products have to
be shipped from storage. Hence, the number of the product in storage must be decrease. The case in this chapter is to
design the template to display the number of product in storage in real time. The ‘Out of Storage Form’ and ‘Product Register Form’
will be produced in this
chapter to deal with the requirement.
Design:
The field ‘LastRenewDate’,
‘CurrentQuantity’, ‘CurrentAmount’ is the key filed in Product Register
Form.
|
Field Name |
Meanings |
Functions |
|
LastRenewDate |
The latest updated date of the product in storage |
To update the date while the status(increase or decrease) of the
product is changed in storage |
|
CurrentQuantity |
The latest number of the product in storage |
To update the number of the product while the status (increase or
decrease) of the product is changed in storage |
|
CurrentAmount |
The latest amount (sum money) of the product in storage |
To update the amount of the product while the status (increase or
decrease) of the product is changed in storage |
Preparation
Draw ‘Out of Storage
Form’ and ‘Product Register Form’ (see Figure 7.1 and Figure 7.2) and
define their data types (see Figure 7.3 and 7.4).
In this chapter, we will just focus on implementing the designing of the update of storage while the number of the product is changed. The
rest functions such as
displaying the inventory history in Products Register Form will be ignored.

Out of Storage Form

Data
Type of Out of Storage_Main Form

Data
Type of Out of Storage_Detail Form

Product
Register Form

Data
Type of Product Register _Main Form

Data
Type of Product Register _Detail Form
Step One: Open the template of ‘Out of
Storage Form’ and build new Data Writer with ‘Update’

Step Two: Write down the
Select ‘Save’ on the data write expression window.


Step Four: Import the
Product Register Form then click ‘ok’

Step Five: Select
‘Falter condition’

Step Six: Enter the expression
‘ProductRegister_Main.Code = thisReport.Sheet1:CodeDetail
And thisReport.Sheet1:Signature <>'’’ and click ‘ok’

Step Seven: Press ‘Set
to Fields’ button


Step Eight: Double click
the Loading data of ‘signature date’


Step Ten: Double click
the Loading data of ‘CurrentQuantity’

Enter the expression
‘ProductRegister_Main.CurrentQuantity - thisReport.Sheet1: Number’
Then click ‘ok’


‘ProductRegister_Main.CurrentAmount -
thisReport.Sheet1: TotalIncludeDiscount’
Then click ‘ok’


after setting up the data write with the fired condition of ‘save’, we should also build the other one with the
condition of ‘delete or
undo’ (see Figure
storage while the sales
order has been removed.

Figure

Figure
Step One: Open a report of Product Register
Form. In the example, you will fine the product ‘
update to quantity in 100 and amount
in 0 on
the changing of the product ‘


Step Three: Fill the report.
Code->PRDT00007, Products->1, Number->80, Total(Include
Discount)->20, then save the report.



CHAPTER 1---CHAPTER 2---CHAPTER 3---CHAPTER 4---CHAPTER 5---CHAPTER 6---CHAPTER 7---CHAPTER 8---CHAPTER