# US 2013/0254654 A1 · Apparatus and method for data source control conversion

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0254654 A1
- Document ID: US20130254654A1
- Status: Published application
- Kind: A1
- Application number: 13/706,412
- Filed: 2012-12-06
- Published: 2013-09-26
- Earliest claimed: 2012-03-23
- Assignees: Hon Hai Precision Industry Co., Ltd.; Fu Tai Hua Industry (Shenzhen) Co., Ltd.
- Applicants: Fu Tai Hua Industry (Shenzhen) Co., Ltd.; Hon Hai Precision Industry Co., Ltd.
- Inventors: RONG-RONG PENG; YAO-HUA LIU; XIN LU; SHIH-FANG WONG
- Web page: https://patentgrep.com/patent/US20130254654A1

## CPC

- G06F 40/151: Transformation
- G06F 16/958: Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computerized method implemented by a computing device that converts two one-dimensional data source controls into a single two-dimensional data source control. A target webpage having at least two one-dimensional data source controls is loaded from a storage of the computing device. Reference information of a first control and a second control of the target webpage are acquired, and one-dimensional data source and columns of each of the first control and the second control are acquired according to the reference information. The first control and the second control are converted into the single two-dimensional data source control according to the one-dimensional data source and columns of each of the first control and the second control. The first control and the second control are deleted from the target webpage, and the two-dimensional data source control is displayed on the target webpage.

## Claims

### Claim 1

A computerized data source control conversion method using a computing device, the method comprising:
loading a target webpage having at least two one-dimensional data source controls from a storage of the computing device;
acquiring reference information of a first control and a second control of the target webpage, and acquiring one-dimensional data source and columns of each of the first control and the second control according to the reference information of the first control and of the second control, the first control and the second control being one-dimensional controls to be converted into a single two-dimensional data source control;
converting the first control and the second control into the single two-dimensional data source control according to the one-dimensional data source and columns of each of the first control and the second control; and
deleting the first control and the second control from the target webpage, and displaying the two-dimensional data source control on the target webpage.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
exporting the target webpage, and storing the target webpage in the storage when the two-dimensional data source control is displayed on the target webpage;

### Claim 3 (depends on 1)

The method according to claim 1, wherein the converting step comprises:
creating a data sheet having i rows and j columns, wherein i indicates that the first control comprises i columns configured for displaying elements of one-dimensional data source S {S1, S2, . . . , Si}, and j indicates that the second control comprises j columns configured for displaying elements of one-dimensional data source T {T1, T2, . . . , Tj} of the second control;
calculating a Cartesian product of the one-dimensional data source S of the first control and the one-dimensional data source T of the second control, to obtain a two-dimensional data source D {(S1, T1), (S1, T2) . . . (S1, Tj); (S2, T1), (S2, T2) . . . (S2, Tj); . . . ; (S1, T1), (S1, T2) . . . (Si, Tj)}; and
inputting each element (Si, Tj) of the two-dimensional data source D into a cell corresponding to the ith row and jth column of the data sheet, to generate the single two-dimensional data source control that is bound to the two-dimensional data source D.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the one-dimensional data source and columns of each of the first control and the second control are acquired by searching a source code file of the target webpage according to the acquired reference information.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the reference information includes a name and/or identification (ID) of the first control and the second control, which are inputted using an input/output device of the computing device.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the single two-dimensional data source control is displayed at a location of the first control or a location of the second control on the target webpage.

### Claim 7

A computing device, comprising:
a storage;
a processor;
one or more programs stored in the storage and executed by the processor, the one or more programs comprising:
a loading module that loads a target webpage having at least two one-dimensional data source controls from the storage;
an acquisition module that acquires reference information of a first control and a second control of the target webpage, and acquiring one-dimensional data source and columns of each of the first control and the second control according to the reference information of the first control and the second control, the first control and the second control being one-dimensional controls to be converted into a single two-dimensional data source control;
a conversion module that converts the first control and the second control into the two-dimensional data source control according to the one-dimensional data source and columns of each of the first control and the second control; and
a display module that deletes the first control and the second control from the target webpage, and displays the two-dimensional data source control on the target webpage.

### Claim 8 (depends on 7)

The computing device according to claim 7, wherein the one or more programs further comprise:
an exporting module that exports the target webpage, and storing the target webpage in the storage when the single two-dimensional data source control is displayed on the target webpage.

### Claim 9 (depends on 7)

The computing device according to claim 7, wherein the first control and the second control are converted into the two-dimensional data source control by:
creating a data sheet having i rows and j columns, wherein i indicates that the first control comprises i columns configured for displaying elements of one-dimensional data source S{S1, S2, . . . , Si}, and j indicates that the second control comprises j columns configured for displaying elements of one-dimensional data source T{T1, T2, . . . , Tj} of the second control;
calculating a Cartesian product of the one-dimensional data source S of the first control and the one-dimensional data source T of the second control, to obtain a two-dimensional data source D{(S1, T1), (S1, T2) . . . (S1, Tj); (S2, T1), (S2, T2) . . . (S2, Tj); . . . ; (S1, T1), (S1, T2) . . . (Si, Tj)}; and
inputting each element (Si, Tj) of the two-dimensional data source D into a cell corresponding to the ith row and jth column of the data sheet, to generate the single two-dimensional data source control that is bound to the two-dimensional data source D.

### Claim 10 (depends on 7)

The computing device according to claim 7, wherein the one-dimensional data source and columns of each of the first control and the second control are acquired by searching a source code file of the target webpage according to the acquired reference information.

### Claim 11 (depends on 7)

The computing device according to claim 7, wherein the reference information includes a name and/or identification (ID) of the first control and the second control, which are inputted using an input/output device of the computing device.

### Claim 12 (depends on 7)

The computing device according to claim 7, wherein the two-dimensional data source control is displayed at a location of the first control or a location of the second control on the target webpage.
