How to make the same code work in domain and non domain QAD environment

sandygenie

New Member
Hi ,

Has anyone come across this situation where the same program needs to work in domain and non-domain QAD version.
When its working in non-domain QAD version it should not consider the domain field name in the tables.
And when its working with domain QAD version it should consider the domain field name in the tables.

Is queries the only way to handle such a requirement?

can anyone help me a sample code as simple as reading a item master table(pt_mstr) on how to deal with this. No updates or creation of records required here.

Any help on this matter is appreciated.

Regards,
S
 
you cannot use the same compiled program for both environments
unless you write your program using dynamic queries
(MFGPRO vanilla programs are not dynamic, they must match DB scheme for which they were compiled for)
 
Hi,

Do you have a sample of the dynamic query or can you guide me on how to achieve this functionality using dynamic queries.

I tried handles and stuff.But i don't have any knowledge on it.

Regards,
S
 
there is a chapter on dynamic queries in the handbook... and on examples on help pages too...
 
Back
Top