on ‎2025 Mar 24 3:00 PM
Can we make attachments(Files Section) mandatory on the detail screen?
Just to ensure a file is attached. Can we do it with Entity Edits?
Request clarification before answering.
Yes,
You can do this with an edit with a QBQuery based expression.
NOTE: This Entity Edit may have a significant impact on Posting Performance
1. Create a QBQuery (QBQueryID = 'EE_Test' for this example) with Query Context of Expression with the following SQL (assuming that you want to check for attachments on the Broker record
select count(e.entityattno) as num from entityatt e
inner join broker b on b.brokerno=e.entvalue and e.entname='BROKER'
and b.brokerno=${brokerno)
2, Create an Entity Edit for the Broker Entity with the following expression (using the QBQueryId of the Query above)
att=query('EE_Test',1,BrokerNo)
if(att > 0 )
return true
else return false
3. This Entity Edit will prevent a Broker record from being saved if there are no attachments for this broker.
Hope this helps!
Phillip Butts
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can try something like if(formId == 'BrokerDFI') <-BrokerDFI is the form name and is case sensitive
"do Entity edit stuff"
else return false
| User | Count |
|---|---|
| 8 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.