Skip to main content
Thathula Ranasingha 님이 #Data Management에 질문했습니다
Hi all,

 

I have a common global class which i used in my save button.

 

common class has a function i call repeatly from my controller class to get a String (Which has a query)

 

How can i call that function once and use later without querying.??

 

I use that string in global common class. 

 

for{

 

*My controller class call to method1

 

Method 1 calls to that function to get the String

 

}

 

How can i do this.

 

please help me,

 

Thanks a lot
답변 2개
  1. 2014년 5월 19일 오전 7:34
    Thathula -

     

    Avoid the query inside the loop.I am afraid you may have to restruction the parameters being passed to method1 (if any) and how method1 calls your global method.

     

    Please post the code for mare sugggestions.

     

    Cheers,

     

    Amit
0/9000