Focal Point
[CLOSED] Listbox Options Align

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8307042196

April 15, 2019, 03:15 PM
TexasStingray
[CLOSED] Listbox Options Align
I'm upgrading a few of my HTML UI's from 8008 to 8204. I have noticed that when a dynamic list is populated from a fex and the format for the display column in the XML is integer that the UI rights aligns the data by adding the html space code into the value. Is there away to tell it not to right align the data. 8008 did not do this and now its can change the user does not want. I tried F12 and setting the style attributes to it but the html code for a space it is issue.

Thanks for your help.

This message has been edited. Last edited by: FP Mod Chuck,




Scott

I know that this seems to be simple but what if you define your xml as below
SET ASNAMES ON
TABLE FILE GGSALES
SUM TOTAL COMPUTE SEQ_NOX /A7 = LJUST(7, FPRINT(SEQ_NO, 'I5', 'A7'), 'A7'); AS 'VALUE'
BY SEQ_NO AS 'CODE'
ON TABLE PCHOLD FORMAT XML
END
-RUN

Then you use VALUE as for the "Display From" and CODE as "Value From" in the control settings.
You will have the alpha value displayed as left justified but will return the numeric one to your fex.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
Yes, I did that and it does work. However, I have a lot of procedures that now need to be updated there has to be a way to tell it not to do that. Seem like a lot of work for something that should be easy.




Scott

Agree.

To be honest, normally I don't have any list where the display is only a numeric field so, I haven't faced that issue.
I have to list a description with a code (number) so everything become a char as the displayed value but I return the number to the fex.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007