Activity 03: Hiding Group Box (gender) by checkbox (other state):
Steps and hints:
1. Create records
2. pages,
3. components- search record as our physical record
4.
When you going to write code in your project,
USE UR RECORD And FIELD names, otherwise it’ll execute.
Flow
of Objects:

This
is that page after designed our requirement:

For that we
have to write the code in other state
check box record field prop..(field change).
Code:
If Z_ACT12_DWK1.YESNO_DROPDOWN.Value = "Y" Then
Z_ACT12_DWK.GENDER1.Visible = False;
Else
Z_ACT12_DWK.GENDER1.Visible = True;
End-If;
Hint:
double click other state check box - use tab- uncheck allowed def..process..
double click gender group box- use tab- mark hide all fields when group box
hidden..
With this Project we’re doing some extra activity:
Calculating
Age based on Birth date (if Age is <18 minor check box should be checked):

Code:
For this we have to write the code in Date of birth- Field
change.
Z_ACT12_DWK1.AGE.Value = (%Date
- Z_ACT12_DEP_TBL.BIRTHDATE.Value) / 365;
&AGE =
Z_ACT12_DWK1.AGE.Value;
If &AGE <= 18 Then
Z_ACT12_DWK1.YESNO_DROPDOWN.Value =
"Y";
Else
Z_ACT12_DWK1.YESNO_DROPDOWN.Value =
"N";
End-If;
**********************************************************
Try
and Do this in practice with this above hints …
0 comments:
Post a Comment
Phaniraavi@gmail.com