I want save a Module to file,How can I do?
const module = await RWS.Rapid.getModule(‘T_ROB1’, ‘TestModule’);
Next ?
I want save a Module to file,How can I do?
const module = await RWS.Rapid.getModule(‘T_ROB1’, ‘TestModule’);
Next ?
which position you want to save? in the $HOME? or to PC?
$HOME/Data, thank you! the old sdk have function ‘Saves the RAPID module to the specified file path’ SaveToFile(string filePath), I want complete same function
const test3 = async (moduleName) => {
const Url = '/rw/rapid/tasks/T_ROB1/modules/' + moduleName + '/save';
const valueStr = 'name=' + moduleName + '&path=$HOME/data';
await RWS.Network.post(Url, valueStr);
}
export default test3;
use this in the button onClick event: await UserFunction.test3(‘m2’);// ‘m2’ is the module name
thank you! the function work perfect!