Hello all:
I have CHARMAP working where it is *displaying* system delimiters in an entry window if necessary, but *storing* those values as something else in the record (per SENL newsletter 2:2…)
Problem is that when running RLIST or S/LIST, we get the characters that are *stored*, as opposed to the characters that we want *displayed*. Any suggestions?
TIA,
Mike O.
Mike,
I think I understand what you are saying. When I want to *store* values one way and *display* values another way, I use the conversion (iconv oconv) method.
Once the dictionary of the file is updated with the new conversion code, I know that RLIST will *display* the *stored* values correctly, and I would believe that SLIST would too.
Kinda like the way dates are stored. A *stored* date value of 12340 *displays* as 05/01/02.
Just create a stored proceedure to handle this. Check out the errr… ummm… ahhh ZIP_FORMAT, that is a good example.
Thanks for the response Richard, problem is that this situation is not specific to a single dictionary; these 'collision characters' could be entered anywhere. For example, someone might enter the letter in their data, which is system delimiter char(252) in OI. We use CHARMAP (see below) to store is as char(228) - but again, it outputs as char(228) in reports, which we don't want.
Mike
* CharMap=Get_Property("SYSTEM", "CHARMAP") Charmap252, 1=char(228) Charmap483, 1=char(252) Void=Set_Property("SYSTEM", "CHARMAP", CharMap) *
Mike,
Then maybe you should "convert" the input. Within every "lostfocus" event (poschanged in an edittable) you could do a convert statement.
CONVERT BAD_CHARACTERS TO GOOD_CHARACTERS IN REPLY
You could even use it as a "promoted" event.
Otherwise, I have no other ideas for you.
Mike
S/List is meant to use CHARMAP, so we'll check it here. If it isn't us it's an OIPI regression.
World Leaders in all things RevSoft
Sprezzatura, Mike,
My bet is it's S/List's fault. I haven't tried with S/List, but I dug out and ran an OI window and function I once made for testing CHARMAP in OIPI. The delimiter characters came out fine: ú
Sprezz and Oystein, thanks for your responses. We do not print using oipi directly, it all goes through s/list. Is there a way I can determine if it is an OIPI-specific problem?
Mike O
Initial testing here indicates that SList still respects CHARMAP. Is there any way that S/List might be called before you load CHARMAP?
Mike,
You said S/ENL 2.2. I think there was a mistake in the programming posted in 2.2. Check 2.3. Or search the discussion lists for e.g
CHARMAP and Sprezzatura and Oystein and error
- Oystein -
Hi Sprezz -
We call CHARMAP as part of our login process, so should be seeing it. Maybe an re-install of OIPI would help…?
Mike O.