Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Hello All,
i am using LoadFromFile.doFileLoad(filepath, null, null, null, new Hashtable()); method to load data in to Windchill,
when i execute the program, all data loaded in Windchill at Site Level.
now i want to load same data at Product Level.
My Org Name :: Org1
My ProdutName:: Test Product
i seen Windchill API Releated to doFileLoad Method as shown below,
public static void doFileLoad(String data_filename, String out_filename, String method, String user, Hashtable cmd_line)
data_filename
- Full pathname of file with data to be loaded.map_filename
- Full pathname of file with mapping of attribute names to sequence of data in the data file.out_filename
- Not currently implemented. To be a trace or recovery file.token
- The token used to delimit fields of data in the data file.method
- A string used with the object name (the first field) from the data file to key into the mapdata file. The line in the map data file will then contain the method name to pass this information to and the ordered list of fieldnames to match with the line in the data file.user
- The user to execute the method, if no user is given in the line from the data file.cmd_line
- Name/Value variables that can be substituted into the data from the data file. Supported API: truePass the "-CONT_PATH" (container path) argument via the "cmd_line" variable (the Hashtable).
e.g.
String containerPath = "/wt.inf.container.OrgContainer=Org1/wt.pdmlink.PDMLinkProduct=Test Product";
Hashtable cmd_line = new Hashtable();
cmd_line.put("-CONT_PATH", containerPath);
LoadFromFile.doFileLoad(filepath, null, null, null, cmd_line);