creating/modifing dict items (OpenInsight Specific)
At 22 AUG 2001 02:29:10PM b cameron wrote:
In theory should I have any concerns if I
1) used the table builder to create new dict item in a dict.
2) created a form to log dict table updates and during the save
of a record I read in the dict item from (1) and store in the
data portion of the bound table of this form
3) have a routine that takes an item from (2) and writes to
a dict table.
My concerns are that there are system records or tables that need
to know this information. (i.e. is the table builder doing anything
unique that a 'write' to a dict would not do?)
Thank you
At 22 AUG 2001 02:56PM Don Miller - C3 Inc. wrote:
In theory, you should be OK since DICT.MFS should recompile the dictionary element. I don't know whether errors in compilation can be caught this way, however. BTW, OI doesn't date/time stamp changes to F and S type dict items the way AREV does. That feature has always been handy for me to track changes but OI doesn't do it automatically. I'm sure somebody else can jump in if there are any other "gotcha's".
Cheers ..
Don Miller
C3 Inc.
At 22 AUG 2001 05:25PM b cameron wrote:
Don,
So on doing …
DITEM=XLATE('TEMPDITEMS',id,'',x)
OPEN "DICT.":table TO DFILE THEN
WRITE DITEM ON DFILE,id THENENDEND
would work?! Where/when does the DICT.MFS come in and do its compilation?
]]In theory, you should be OK since DICT.MFS should recompile the ]]dictionary element. I don't know whether errors in compilation can ]]be caught this way, however.
Errors in compilation not being caught does concern me. I have been told that "R"elationals would cause problems.
Thanks for the info.
At 23 AUG 2001 04:35AM Simon Wilmot wrote:
Andy,
For compilation errors you could use the TestFormula function.
eg
Declare Function TestFormula
If DItem=S' then
Formula=DItemResult=TestFormulaIf Result=' then
Error...As for indexing, I would always clear out any data in any index position. Ie Cols 6,21,22,23,24 (see Dict_Equates)
Simon
RebusHR
At 23 AUG 2001 04:44AM Simon Wilmot wrote:
Sorry, should read
Result=TestFormula(Formula)
and I don't know what happened to my indents !!
Simon
RebusHR