This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
def pi_init(self, str_xml: str):
Handles extracting user-entered file name, and input data verification.
Called when the Alteryx engine is ready to provide the tool configuration from the GUI.
:param str_xml: The raw XML from the GUI.
# Getting the user-entered file name string from the GUI, and the output anchor from the XML file.
self.file_path = Et.fromstring(str_xml).find('browseFile').text if 'browseFile' in str_xml else ''
self.tables = Et.fromstring(str_xml).find('tablesList').text if 'tablesList' in str_xml else 'EMPTY'
self.tables is always EMPTY - it's incorrect In str_xml also does not have any passed values.
Also can someone tell me how from python to change the value of the self.file_path on frontend ?