cancel
Showing results for 
Search instead for 
Did you mean: 

How to display the size of the model?

Former Member
0 Kudos

Hi,

Im having an model and i have mapped it to the component controller. now i want to know the model size?

i have used the following code to get the size

wdContext.node__Ao_Ep_Get_Appl_Detail_Input().size();

how to display this size in the screen during deployment?

Thanks,

Suresh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Use

wdComponentAPI.getMessageManager().reportSuccess(message)

Ex:

In your case

String msg = <b>String.valueOf</b>(wdContext.node__Ao_Ep_Get_Appl_Detail_Input().size());

wdComponentAPI.getMessageManager().reportSuccess(msg);

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Ayyaparaj,

i have used the same thing wat you have said.

since size is an integer im not able to use as "String msg="

i have tried using "int msg=" , but im not able to use integer in the messagemanager..

how to do it?

Thanks,

Suresh

Former Member
0 Kudos

Hi,

I have highlighted the area to convert int to String.

Regards

Ayyapparaj

former_member751941
Active Contributor
0 Kudos

Hi Suresh,

reportSuccess function take parameter of type String.It will not take int.

Try this.

int size = wdContext.node__Ao_Ep_Get_Appl_Detail_Input().size();

wdComponentAPI.getMessageManager().reportSuccess("Size of Appl Details : "+ size);

Regards,

Mithu