1. Create a Silverlight project
2. Design the page as below in the MainPage.xaml

3. The TextBox1 name is txtFieldName
4. The TextBox2 name is txtFieldValue
5. The Button name is btnUpdateData
6. In the MainPage.xaml.cs file add the below code into the btnUpdateData_Click.

7. Build and add the XAP as a web resource.
8. You can call this XAP web resource in any entity.
9. To test
a. Specify the schema name of the field in txtFieldName
b. Click the button
c. The txtFieldValue will display the value in the respective field.
10. When a particular field value is null you will get errors. Use exception handling to handle such errors.
11. Use this methodology to get the values from other fields.
This is just a simple example, with no error handling. Kindly enhance the code for better error handling.
No comments:
Post a Comment