Develop the ArcGIS online-based information system for Household Management Services

Source: Internet
Author: User

After three days of solving the problem, I finally got it done. Let's share it with you...

1. for an appealer, if you want to add and modify fields in SQL Server 2008, you can do the following: Start MSSQL Server 2008, choose menu tool> Options> designer> Table Designer and database designer on the left. Then, remove the check box before "Preventing table creation changes due to saving. Restart MSSQL Server 2008.

2. Add images or other components to the flex DataGrid. It is impossible to access the components in itemrenderer by ID. The Code is as follows:

<Mx: dataGrid id = "DG" x = "21" Y = "43" width = "740" Height = "444" dataprovider = "{arr1}" rowheight = "100" textalign = "center">
<Mx: columns>

<Mx: datagridcolumn datafield = "name" headertext = "company name"/>
<Mx: datagridcolumn datafield = "phone" headertext = "phone"/>
<Mx: datagridcolumn datafield = "starttime" headertext = "Reservation date"/>
<Mx: datagridcolumn datafield = "JG" headertext = "price (RMB)"/>

<Mx: datagridcolumn headertext = "price" id = "dg3" datafield = "IMG" editordatafield = "Source" editable = "false">
<Mx: itemrenderer>
<FX: component>
<Mx: image width = "50" Height = "50"/>
</FX: component>
</MX: itemrenderer>
</MX: datagridcolumn>

</MX: columns>
</MX: DataGrid>

You can use the red area to modify the attributes of the bound component,

3. You can assign values to an array set directly in the following way (IMG does not belong to an array set before). Note that the path must be "\"; otherwise, no data can be read ,.

Arr1.getitemat (I). IMG = "D: \ domestic service type image \ ph. jpg ";

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.