This content has been marked as final. Show 5 replies
Why this? This causes the record in the patients-block to be "changed"because i do not want the user to put the sysdate manually , i want the application do it for him ,
suppose that the date field is empty , the user could fill the "pat_id" field with a number , then navigate to "pat_name", then press the "insert" button , so the block is "changed" as well . "the same situation "
and i think that the required fields are enforced even if the block is empty .
- could you give me a code as an example for inserting patients data by clicking the button , considering showing a message if there are null fields when the user presses the button ?
because i do not want the user to put the sysdate manually , i want the application do it for himthen you should use the way which is intened for defaultirn fields. Put either $$DBDATE$$ in the default-value-property, or create a WHEN-CREATE-REOCRD-trigger and assign the date there.
and i think that the required fields are enforced even if the block is emptyNo, as long as you do not start editing a record its treated as new and no validations will occur.
could you give me a code as an example for inserting patients data by clicking the buttonI thought i already suggested some possible ways in an earlier post?
Put either $$DBDATE$$ in the default-value-property .thanks a lot for this new information , but i think you've meant the "initial value" property ? , because i searched for the
"default value" property , and i find nothing .
as long as you do not start editing a record its treated as new and no validations will occur.i've tried this , and sure you are right , but the problem still exist , because i've said before , the user can put a value
in the "pat_name" field for example , then he wants to navigate to the "inserted_patients" block , so , the "field must be entered is shown" , and he can not navigate .
so , i've two problems now ,
1- i want a message to be shown to the user , if he presses the "insert" button , and there are not null fields without a value , then the cursor goes to the first not null field which needs a value .
2- i want the user to navigate to the "inserted_patients" any time he wants .
i really appreciate your help andreas .
Edited by: semsem on Dec 12, 2012 3:30 PM