Parameter | Description |
---|---|
sValue | Value to set |
Procedure DDSetChangedValue String sValue
Call: | Send DDSetChangedValue sValue |
Sets the Field_Changed_State of the DDO and field that is associated with this data entry object (DEO). This is used by cWebColumn's RequestColumnLookup method. Because the Data Dictionary's (DD's) value is set, this DEO will also be updated with the value. This is really just a helper function that lets you set a DD field value without having to get the Server, Data_File, Data_Field, etc.
This is the recommended way of change the value of an data-bound web DEO during a web request. You should not use "WebSet psValue" or "WebSet pbChanged" to do this because those changes are not propagated to the DDO until the next server round trip (and maybe not even then). You should only "WebSet psValue" with non-data aware web DEO controls. If the DEO control has data-binding, use DDSetChangedValue.
For example:
// does a lookup style find for the passed column based on the value of the search text // This is used when you are doing lookup/searches Procedure RequestColumnLookup String sSearchText Send DDSetChangedValue sSearchText Send Request_Find GE If not Found Begin Send Request_Find LT End End_Procedure