on 12-30-2014 12:43 PM
I have a child datawindow in a trailer band of a nested datawindow. I use modify to attempt to change the display formats at run time, but, while this doesn't produce errors, neither does it change the format of the displayed data. Should this work?
This is a sample modify string
paid.format="######0.00;(######0.00);######0.00" unpaid.format="######0.00;(######0.00);######0.00"
We are running PB12.5.2 Classic on Windows 8.1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Happy New Year everybody!
I've tried this using the dot notation and looking at the format once assigned to confirm that it's changed. Still no effect on the output report. Just to confirm that I'm manipulating the correct datawindow, I hacked the original and the changes were reflected in the report, so that's not it.
I think that I've run out of options
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So the current arrangement is that I modify the format string. I check whether there is an editmask.mask value other than '?' or '!' and if so then I set the useformat flag to Yes. There is similar code for datawindows and child datawindows. Changing the font on the child works fine. Changing the fonts works in all of these. Changing formats returns no errors, but has no visible effects in the child DWs.
There is some office folklore to the effect there are problems with modifying child DWs, but I can't find anything about this on the net.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David;
Are you sure that the MODIFY () method was working in the first place .. does your PowerScript check the return code from this command?
Regards ... Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I still get the same errors i.e. syntax error at the '=' sign. Since this datawindow is purely reporting I removed the editmasks and I now find that some of my columns are being updated. So... it seems that I'd shot myself in the foot with the editmasks, but there's something more obscure still wrong. I'll revisit our code.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.