psValue - cWebBaseDEO

The value that is displayed in the control

Type: Property (Web Property)

Access: Read/Write

Data Type: String

Parameters: None

 { WebProperty=Client }
 Property String psValue

Web Property Read Access: WebGet psValue to StringVariable
Web Property Write Access: WebSet psValue to StringVariable/Value

Read Access: Get psValue to StringVariable
Write Access: Set psValue to StringVariable/Value


WebGet psValue to retrieve the value that is displayed in the control. If the control has a data binding Entry_Item, then this is the value that is stored in the database column.


This sample shows how to rertieve the current value of a cWebForm to a variable when a button or menu item is clicked.

Procedure OnClick
    String sCustomerName

    Forward Send OnClick 

    WebGet psValue of oCustomerNameForm to sCustomerName


Using DDSetChangedValue 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.

cWebCombo Class

The value displayed in the cWebCombo control is the combo description that corresponds to the current value. For more information, review the cWebCombo class topic.

About Web Properties
Each web property maintains two values: The regular property value is set during object creation and should not be changed during the lifetime of that object. To access that value, use the standard property Get and Set syntax.
The web property value is the local value stored at each client. This is synchronized to the client's local value whenever a server call is being processed. To access the web property value, use the WebGet and WebSet syntax above instead of the standard Get and Set syntax.
See Also

ConvertToClient | ConvertFromClient