Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello all,
I have split my development & production environment. When I copy a QV app from DEV to PROD then the binary load should know which data model (development or production) to use (see attachment for folder structure):
DocumentPath() like '*\Formeel*' then
Binary [..\..\..\5_datamodel\sales\formeel\dm_sales.qvw];
else
Binary [..\..\..\5_datamodel\sales\informeel\dm_sales.qvw];
end if
Needless to say this doesn't work else I would not post this . Who can help me?
Thanks in advance,
Marcel
Not sure if I understand your limitation. I don't think the included script file needs to be in the same directory.
You just need to create a script file with the binary statement once for DEV, once for PROD, and have the UI QVW use a relative path to that qvs.
Can´t do that
Binary command MUST be the very first command
Binary must be the first executable statement in the script, so I don't think that is possible. Perhaps someone has a smart workaround?
Maybe a solution based on Massimo's will work out:
I was hoping that I could determine a part of the file to load.
binary '[..\' & if(documentpath() like '*production*', 'production', 'development') & '\datamodel.qvw';
But this doesn't work either...
Hi Swuehl,
Restriction here I believe is that it needs to be in the same directory, which is not the case unfortunately...
Regards,
Marcel
Not sure if I understand your limitation. I don't think the included script file needs to be in the same directory.
You just need to create a script file with the binary statement once for DEV, once for PROD, and have the UI QVW use a relative path to that qvs.
Binary load should be first executable statement .Only one binary load should be used in one application .
Okay!! Yes, that’s a proper work-around!
Thanks (can’t believe the answer is so easy…)
Regards,
Marcel
May be try with Environment variable,