PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Visible or invisible control/block
  • State of a group of controls
  • State of a column in a Table control
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The Property Report can be used:
  • in a report.
  • in a window.
  • in a page.
WEBDEV - Server code In an reportALFREDB, the Report property allows to know and modify the display report:
  • of a control,
  • of a report block.
Remark: In an report, the Report property only allows you to manage the visibility of a field or a block (a field or a block cannot be Grayed).. In this case, this property is available for backward compatibility with WINDEV 5.5 and WEBDEV 1.5. To manage the visibility of a control or block in a report, we recommend that you use Visible.
WEBDEV - Server codeWEBDEV - Browser code In anpage, the Property Report allows you to know and modify the report display:
  • of a control.
  • of a group of controls.
Versions 22 and later
WEBDEV - Browser code This property is now available in browser code.
New in version 22
WEBDEV - Browser code This property is now available in browser code.
WEBDEV - Browser code This property is now available in browser code.
Example
WEBDEV - Server codePHPAjax
// The STC_Static1 control becomes active
STC_Static1.State = Active
WEBDEV - Server codePHPAjax
// The EDT_Edit1 control becomes active
EDT_Edit1.State = Active
// Modify the content of the Combo Box if it is active
IF COMBO_Combo1.State = Active THEN
COMBO_Combo1 = "<Enter HERE>"
ReturnToCapture(COMBO_Combo1)
END
Syntax
WEBDEV - Server code

Finding out the state of an element in a report Hide the details

<Current state> = <Element name>.Report
<Current state>: Integer constant
Current state of the object.
ActiveThe control or block is visible.
InvisibleInvisible field or block (it is recommended to use Property Visible).
<Element name>: Character string (with or without quotes)
Name of report control or block.
WEBDEV - Server code

Modifying the state of an element in a report Hide the details

<Element name>.Report = <New state>
<Element name>: Character string (with or without quotes)
Name of report control or block.
<New state>: Integer constant
New state of the object.
ActiveThe control or block is visible.
InvisibleInvisible field or block (it is recommended to use Property Visible).
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

Finding out the state of a control in a page Hide the details

<Current state> = <Control name>.Report
<Current state>: Integer constant
Current state of the object.
Active or VisibleThe control is active and editable.
GrayedControl grayed.
InactiveThe edit control is visible and read-only (applies to the edit controls only).
InvisibleInvisible (it is recommended to use Property Visible).
WEBDEV - Browser code This constant is not available. Use the Visible property.
Remark: in List Box and Combo Box controls, 'Inactive' is equivalent to 'Grayed'.
<Control name>: Character string (without quotes)
Name of control or group of controls.
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

Modifying the state of a control in a page Hide the details

<Control name>.Report = <New state>
<Control name>: Character string (without quotes)
Name of control or group of controls.
<New state>: Integer constant
New state of the object.
Active or VisibleThe control is active and editable.
GrayedThe control is grayed
InactiveThe edit control is visible and read-only (applies to the edit controls only).
InvisibleField Invisible (it is recommended to use Property Visible).
WEBDEV - Browser code This constant is not available. Use the Visible property.
Remarks:
  • In List Box and Combo Box controls, 'Inactive' is equivalent to 'Grayed'.
  • The change of state may result in slightly different effects depending on the browser used. For example, the grayed state will be more noticeable in Internet Explorer and Chrome than in Firefox.
Remarks

Visible or invisible control/block

In a report, the only possible state for a control or a block is visible or invisible. To manage the visibility of a field, it is recommended to use the Property Visible. This property optimizes the management of control visibility.

State of a group of controls

  • Finding out the state of a group of controls: the state corresponds to the state of the first control in the group.
  • Modifying the state of a group of controls: all the controls of the group are modified and correspond to the new state.
WEBDEV - Server codePHPAjax

State of a column in a Table control

If Property State is applied to a column, the whole column changes report (not just one cell in the column)..
Caution: the State property only allows to restrict the report of the column defined in the description window . For example, if the column is read-only, no column cell can become editable.

Limits

WEBDEV - Server code Property State has no effect on the states.
WEBDEV - Browser code Property State has no effect on the following:
  • Table,
  • TreeView Table,
  • Looper
  • Linear Looper
  • Table column.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment