Metric rapid development platform: Mesh Parts Batch Update data

Source: Internet
Author: User
Tags comparison table

In the rapid development platform, how to bulk update the grid part data? Today we introduce the 2 ways of the platform:

650) this.width=650; "id=" aimg_1048 "src=" http://bbs.delit.cn/data/attachment/forum/201602/18/ 220407r5e2nngdeefn2eu0.png.thumb.jpg "width=" 399 "height=" 126 "alt=" 220407r5e2nngdeefn2eu0.png.thumb.jpg "/>

Method One:

Quickly build a batch update of your data using the Smart Wizards of the fast development platform itself.

Bulk Update data functions: setcolumnvalue (stringfiledname, Objectvalue, intscope)

Role

Gets the value of the field of the focus row.

Parameters


  • parameter one: FieldName
    string type, field name.

  • Parameter two: value
    An object type that updates the value.

  • Parameter three: scope
    an int type that updates the range.
    Update Range Value Comparison table:

0

Focus Line

1

All rows

2

Select BOC

3

New row

4

Modify rows

5

New and modified rows

6

Delete Row

7

Modified and deleted rows

8

Lines that are not changed

9

Tag line


return value

no return value.

Example


< Span> production planning Batch import. Setcolumnvalue ( " unit of measure " kilogram " ,1)

650) this.width=650; "id=" aimg_1047 "src=" http://bbs.delit.cn/data/attachment/forum/201602/18/ 215608exoxewsyb2elq1xq.png.thumb.jpg "alt=" 215608exoxewsyb2elq1xq.png.thumb.jpg "/>

Method Two:

Using the method of the DataTable class, loop the table each row and set the field values.

' defines a variable store that gets the DataTable for the current grid part. Production Plan Bulk Import is the current grid part name

Dim dt= Production Planning Batch import. DataTable

' For Each loop all rows in the current DT

for each Dr inch dt. Rows

' Set each row of data

dr[" encoded "]= " kg "

Next

Original address: http://bbs.delit.cn/thread-705-1-1.html
Reprint please specify the source:

Author: metric Technology http://www.delit.cn


Metric rapid development platform: Mesh Parts Batch Update data

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.