Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PROP:AcceptAll.

Status
Not open for further replies.

muncter

Technical User
May 18, 2011
11
AU
Hi all,

I have a similar problem to rleiman (thread 192-1252644)when I embedded this code in the "When selected" event for the entry field -
"IF NOT 0{prop:AcceptAll}
if ?AST:Dishonoured{PROP:Checked} = True
MOD:priority = 'M'
MOD:process = 'Posted TAFE Certificate'
MOD:Date = today()
add(model)
end
end"

This code "IF NOT 0{prop:AcceptAll}" stopped when the OK button was pressed, but doesn't add data when PROP:Checked is checked, only when it is unchecked.

I am using vers 5.5 enterprise & windows 7.
 
Hi All,

I fixed it by changing "if ?AST:Dishonoured{PROP:Checked} = True"

to

"if ?AST:Dishonoured{PROP:Checked} = 0"

Thanks,
Brian.
 
Hi Brian,

Why do you need to check for AST:Dishonoured{PROP:Checked} - can't you just check for the the TRUE value of AST:Dishonoured i.e.

Assuming AST:Dishonoured is a STRING(1) meant to contain a 'Y' if true and 'N' if false, you could check

IF AST:Dishonoured = 'Y'
...
END

OR

Assuming AST:Dishonoured is a BYTE meant to contain a 1 if true and 0 if false, you could check

IF AST:Dishonoured
...
END

Regards
 
Hi Brian,

Forgot to add ::

Calling SELECT with no parameter triggers a PROP:AcceptAll mode which generate a EVENT:Accepted for all the controls i.e. other events like EVENT:Selected might not fire in a AcceptAll operation.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top