cancel
Showing results for 
Search instead for 
Did you mean: 

Number Formatting Problem in Table

Former Member
0 Kudos

HI,

I have got a problem with number formats in a table. The datasource of the table is a model node.

In this node, I have an attribute with type of decimal. It has the length of 15 and 3 decimals.

When I output the data via Message Manager, it outputs the correct value, e.g. 8.600, but in the table there only is the value 8,6!

How can i achieve that the value in the table is 8,600?

I don't want to use value nodes with a getter method.

Is there any other option?

Best regards,

Peter

Accepted Solutions (1)

Accepted Solutions (1)

gill367
Active Contributor
0 Kudos

Hello Peter,

Well you can accessthe simpletype modifiable for the attribute by writing the following code in the wddodinit

	ISimpleTypeModifiable modsim =
		wdContext.node<modelnode name>
			.getNodeInfo()
			.getAttribute("x")
			.getModifiableSimpleType();
	modsim.setFormat("0.0000");

It will solve your problem.

Thanks

Sarbjeet

Former Member
0 Kudos

Hi,

oh yes, thanks. That works.

You saved the day

Best regards,

Peter

Answers (0)