cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Adaptive webservice model

Former Member
0 Kudos

Hi All,

I have an application which uses AdaptiveWebserviceModel that access Webservice which accepts VO as input and output.

The VO contains 1: String array(for storing all strings in my form)

Create,Update,Delete are working properly.

But coming to Retrieve operation, If I write like this

ArrayOfString arrStr=wdContext.currentArrEmployeeVO_retrieveElement().modelObject().getNames();

List l1=new ArrayList();

l1=l1=arrStr.getString();

l1=arrStr.getString();

Iterator it1=l1.iterator();

while(it1.hasNext())

{

EmployeeRetrieve empRetrieve=new EmployeeRetrieve();//ModelObject

String_Item st=new String_Item(empRetrieve);

st=(String_Item)it1.next();

msgmgr.reportSuccess(""+(st.getAttributeValue("Item").toString()));

}

If in the backend Strings are as follows

One Two null null Three null Four

My problem is the above code is not displaying the values properly

It's displaying

One Two Three Four null null null

Iam using 7.1 version

Please anybody help me and try

Thanks in advance

LakshmiNarayanaChowdary.N

Accepted Solutions (1)

Accepted Solutions (1)

former_member197348
Active Contributor
0 Kudos

Hi,

It's nothing to do with the front-end. Your model is sorting out the null objects to end of the list. Try to use key, value pairs (where key is not null) you will the order that you entered.

regards,

Siva

Answers (4)

Answers (4)

Former Member
0 Kudos

Thnks to all

Former Member
0 Kudos

Hi

Lakshmi Narayana Chowdary Namala

If your question is answered please allot points also.

Regards

SURYA

Former Member
0 Kudos

Thnks to all

Former Member
0 Kudos

Thnks to all

Former Member
0 Kudos

Thnks to all