Hi all,
I have read Programmers Guide and some Wikis to understand Classes and Methods usage for Server methods. But still I have some doubts on using the Innovator object inside a Method. Here I' m mentioning a small example.
public class Test { ////Kindly ignore the syntax errors if any
public string GetItemName(Innovator inn); {
Item part = inn.newItem("Part","get");
part.setAttribute("where","[PART].item_number like 'PRT-001' " );
Item res_part = part.apply(); string part_name = res_part.getProperty("name"); return part_name; }
public static void main(){
Test t = new Test(); ///Instance ///// Call the GetItemName method
//// I want to store the Method return value in a temporary variable to use inside Main()
String new_name = t.GetItemName( inn); ///Here I" m confused with what the parameter to be passed
} /// Error states that 'inn' does' t exists in current context
How can I use the GetItemName method' s return value inside Main()?
What should be the Parameter to be passed here? And what happens if I declare static Main() as an entry point to the Method?
Thanks in advance, Vin