Skip to main content
Solved

Using the GUI_LINE_TABLE parameter type in FMX


lifalin2016
Contributor
Forum|alt.badge.img+29

Hi,

I'm trying to build a custom (Python) transformer with a user defined "replacement" table.

The GUI_LINE_TABLE parameter type are defined as such (using semi-colon to separate pairs, and colon to separate values):

PARAMETER_NAME: REPL_LIST
PARAMETER_TYPE: GUI_LINE_TABLE COL_DELIM::%ROW_DELIM:;%NO_LABEL%NO_MOVE%"Erstat dette"%"STRING_ENCODED_OR_ATTR:REQUESTOR REQUESTOR"%"Med dette"%"STRING_ENCODED_OR_ATTR:SUPPLIER SUPPLIER"
PARAMETER_PROMPT: Enter values:
PARAMETER_DEFAULT: 

If I set it up with this content:

I get the following output:

%U:<space>%U;%L2:%L1;test:.<comma><semicolon>:<u00e6><u00f8><u00e5><u00c6><u00d8><u00c5><solidus><backslash>

Is there a comprehensive list anywhere describing all the possible "FME encodings" like "<space>" ?

Cheers

Best answer by takashi

Hi @lifalin2016, I don't know where a comprehensive list of FME encodings is, but Python FME Objects API provides a method to decode an FME encoded text string.

See the decodeFromFMEParsableText method of the fmeobjects.FMESession class.

e.g.

import fmeobjects
fmeSession = fmeobjects.FMESession()
fmeLogger = fmeobjects.FMELogFile()
encoded = '%U:<space>%U;%L2:%L1;test:.<comma><semicolon>:<u00e6><u00f8><u00e5><u00c6><u00d8><u00c5><solidus><backslash>'
decoded = fmeSession.decodeFromFMEParsableText(encoded)
fmeLogger.logMessageString(decoded)

logged:

%U%U;%L2:%L1;test:.,;:æøåÆØÅ/\
View original
Did this help you find an answer to your question?

2 replies

takashi
Influencer
  • Best Answer
  • September 1, 2017

Hi @lifalin2016, I don't know where a comprehensive list of FME encodings is, but Python FME Objects API provides a method to decode an FME encoded text string.

See the decodeFromFMEParsableText method of the fmeobjects.FMESession class.

e.g.

import fmeobjects
fmeSession = fmeobjects.FMESession()
fmeLogger = fmeobjects.FMELogFile()
encoded = '%U:<space>%U;%L2:%L1;test:.<comma><semicolon>:<u00e6><u00f8><u00e5><u00c6><u00d8><u00c5><solidus><backslash>'
decoded = fmeSession.decodeFromFMEParsableText(encoded)
fmeLogger.logMessageString(decoded)

logged:

%U%U;%L2:%L1;test:.,;:æøåÆØÅ/\

lifalin2016
Contributor
Forum|alt.badge.img+29
  • Author
  • Contributor
  • September 4, 2017
takashi wrote:

Hi @lifalin2016, I don't know where a comprehensive list of FME encodings is, but Python FME Objects API provides a method to decode an FME encoded text string.

See the decodeFromFMEParsableText method of the fmeobjects.FMESession class.

e.g.

import fmeobjects
fmeSession = fmeobjects.FMESession()
fmeLogger = fmeobjects.FMELogFile()
encoded = '%U:<space>%U;%L2:%L1;test:.<comma><semicolon>:<u00e6><u00f8><u00e5><u00c6><u00d8><u00c5><solidus><backslash>'
decoded = fmeSession.decodeFromFMEParsableText(encoded)
fmeLogger.logMessageString(decoded)

logged:

%U%U;%L2:%L1;test:.,;:æøåÆØÅ/\
Thanks Takashi,

 

Just what I was looked for !

 

Cheers :-)

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings