Troy2004
28th July 2004, 10:51
Hi,
I have searched the forum.
Since I do not have the source to change and add in check.input, I have
no other choice but to make field mandatory through table definition.
I want to do this but even after create runtime, the option don't get activated. I still can save if I leave the field tdsls040.creg empty.
Can someone out there give some hints if you already have done it before.
Thanks and regards,
SriksAdi
28th July 2004, 11:34
Hi,
After create runtime, log off Baan application and log in back.
Even if it doesn't work, convert tdsls040 and all the refered tables (tables used in tdsls040) to runtime dd.
regards
Sriks
mark_h
28th July 2004, 14:41
Couldn't you also just make this field mandatory on the form? No code changes or table changes would be necessary.
Mark
lbencic
28th July 2004, 15:35
If it's a table field, you can't use the form option for mandatory - the table setting takes over. The form option can be used for any non-table fields you have on the form.
Changing the table should work as described, and people do correctly change this to handle this problem. The wrapper tools like RMCgen (my company, read: Sale Pitch) and QKey (FullScope), the freeware 'rush' on these boards, are also used to solve these types of problems. These tools generate script that will wrap around the standard objects, no source required. You can add check input code without having the original source code. You can add to any section in the code, you do not change the original code in anyway. If you find you need to do that a lot, the wrapper tools are generally safer and more versitile than changing the table defs.
Troy2004
29th July 2004, 05:56
HI,
I already logout and login and convert to runtime.
But only did it for tdsls040.
Are you sure we need to do it for all reference tables??
Lisa, is RMCis software a freeware? Where can I get it?
Thanks and regards
mark_h
29th July 2004, 14:20
Yes - you need to do it for all reference tables. Rush is the only freeware. RMCgen and Qkey by fullscope need to be purchased. I am sure Lisa might be able to provide you with a demo version. If you do not mind the extra work I would say use the Rush version in the Code and Utilities forum. Otherwise I would recommend reviewing both RMCgen and Qkey. We have been using Qkey for about 5 years now - not sure if RMCgen was out then. I find the product very useful - we now have dozens of changes to standard sessions. Changes from adding additional checks to adding additional fields - all of which we did without modifying the standard session code or the standard table.
Mark
mostrightfuture
29th July 2004, 15:30
hi Mark,
Can you please give some more information, sample etc about Qkey.
thanks in advance.
Mahmood
mark_h
29th July 2004, 18:41
There is already a sample on this thread (http://www.baanboard.com/baanboard/showthread.php?t=1029) in the code and utilities forum. I did this early on just to give people an idea of what you could do. There are some limitations as pointed out in this thread.
Mark
jmathew
30th July 2004, 05:08
Hi Mark,
How can a field be made mandatory from the form? Could you please let me know.
SriksAdi
30th July 2004, 06:43
Hi,
While edifitng the form, in the session Maintain Form fields (ttadv3101s000) the field properties have an option called Mandatory Input. If this check box is selected on, then the field becomes mandatory on the form.
This applies only to form fields and not table fields. In case of table fields, the table definition has higher priority.
regards
Sriks