In the onLoad event call our ‘carregarCliente’ method by entering the following command line: In the first bracket inform the row of the matrix, on the second we inform the column. This dataset is a PHP matrix where we have two positions in brackets. The second parameter we reported a String with the sql SELECT statement to retrieve the values. you can give any name for this dataset, in this example we will name it customer. This macro have 2 parameters, the first is a dataset that retrieve the values. Here we are using the macros sc_lookup () with this macro can retrieve database records running a SELECT on any table in the database. Will create a PHP method called showCustomer, include the code below:Ĭompanyname, ContactName, stateid, city, address, CreditLimit
In this application we have to create fields to show the values of the customer from the Customers table. we will show customers data in the form application of order.įirst we will create a form based application in the first table, orders table. We will use tables that represent orders and customers, where each order has its customers. In this tutorial we will show how to show and manipulate data of two different tables in the same application with macros. Showing fields of two tables in the same application.