-
Re: Allow blanks in Validation Objects
Bob,
I have a fair number of fields in my Ajax WebApp which need to be "Y" or left blank. I don't want to use "Y" or "N" because that means lots of data entry which on an iPad, hand-held, is a pain.
I'm afraid I lack the skills to dig-down into this stuff. The def is 157 fields in length so it's a fair size and your advice as to how to allow blank fields would be much appreciated. Hopefully, in the next version the 'allow blank fields' option will be re-introduced.
Kind regards,
Sandy.
A simple 'drop-down' seemed the best way to do this and needed little screen space so I have used the following code in the .asp:
<td class="Data"><select name="Echo3__Unit_perma" title="Unit perma." /></select> </td>
The data dictionary looks like this:
Use DataDict.pkg
Open Echo3
Object Yes is a ValidationTable
//Set Allow_Blank_State to True // I have tried this before, inside and after the procedure without good result.
Procedure Fill_List
Forward Send Fill_List
Send Add_Table_Value "Y"
Send Add_Table_Value "-" // if I use blank or space I get problems on saving
End_Procedure
End_Object
Class cEcho3DataDictionary is a DataDictionary
Procedure Construct_Object
Forward Send Construct_Object
Set Main_file to Echo3.File_Number
Set Foreign_Field_Option DD_KEYFIELD DD_NOPUT to True
Set Foreign_Field_Option DD_KEYFIELD DD_FINDREQ to True
Set Foreign_Field_Option DD_INDEXFIELD DD_NOPUT to True
Set Foreign_Field_Option DD_DEFAULT DD_DISPLAYONLY to True
Set Field_Option Field Echo3.Town DD_CAPSLOCK to True
Set Field_Option Field Echo3.Postcode DD_CAPSLOCK to True
Set Field_Option Field Echo3.Site_Town DD_CAPSLOCK to True
Set Field_Option Field Echo3.Site_Postcode DD_CAPSLOCK to True
Set Field_Value_Table Field Echo3.Unit_Perma to Yes // this is the only line relevant to the test field
End_Procedure
Procedure Field_Defaults
Forward Send Field_Defaults
End_Procedure
End_Class
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules