2005 Oct 05 4:43 AM
How to differitiate the Mandatory Fields in Module pool programming ?
Either of the foll ways are much appreciated .
1 . Highlight the color of the Mandory filds .
2 . During saving ...Instead of giving the status,
'plz provide Mandatory fileds ' ,i need to tell what are the madatory fields.
3. Positioning the cursor to the mandotory field if it's not filled .( one after the other )
Regards ,
J
Message was edited by: P079223
2005 Oct 05 4:59 AM
Can you not make the field mandatory by selecting the appropriate attribute of that field? Set the attribute, that will make them required.
Srinivas
2005 Oct 05 5:06 AM
1. U can make the field as mandatory.
2. You can display the message with fields, pass the fields as parameters for the message.
To position the cursor on the required fields use
<i>SET CURSOR</i>
Anitha
2005 Oct 05 6:08 AM
Yes . Very well we can make the field Mandatory.That's not a problem .
How to use the set curcor field . Cud u explain me ?
foe ex , i hav 10 fields ,out of which 5 fields are mandatory .
While clicking the SAVE button , by leaving the madatory field blank ,
Where i hav to set the Cursor ?
rgds,
J
2005 Oct 05 6:27 AM
Hello,
To indicate mandatory fields you can populate a '?' in those fields which you want to mark as mandatory.
For example if field1 and field2 are mandatory fields out of 5 fields then field1 and field2 will have a '?' in those fields.
If you set the attributes in the properties window for those fields you can see the '?'.
Then if those fields are empty then you have a to give an error message saying 'Field1 and field2 should not be empty'. You can code this in PBO.
Regards,
Message was edited by: Naren Somen
Message was edited by: Naren Somen
2005 Oct 05 6:36 AM
Hi Somen ,
Yes. We can achieve by using Msg class and we can check programmatically .
Wht i am concering is ,is it possible to control from Screen ?
Evn for the standard Programs ,say for example PZ13 transaction ..
If u leave the mandatory fileds ...and save
Foll is the status msg i got.
"Make an Entry in all req fields"
I hope u understood wht am coming to say.
Regrds,
J